OSDN Git Service

2009-04-16 Emmanuel Briot <briot@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-04-16  Emmanuel Briot  <briot@adacore.com>
2
3         * prj-nmsc.adb (Path_Name_Of): fix memory leak
4
5 2009-04-16  Robert Dewar  <dewar@adacore.com>
6
7         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
8
9 2009-04-16  Vincent Celier  <celier@adacore.com>
10
11         * fmap.adb (Initialize): Show the current line when the mapping file
12         is detected as "incorrectly formatted".
13
14 2009-04-16  Robert Dewar  <dewar@adacore.com>
15
16         * sem_ch12.adb: Minor reformatting
17
18         * sem_ch5.adb: Minor comment addition
19
20         * sem_util.adb: Minor reformatting
21
22         * sinput-p.adb: Minor reformatting
23         Add missing pragma Warnings (On)
24
25 2009-04-16  Ed Falis  <falis@adacore.com>
26
27         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
28
29 2009-04-16  Vincent Celier  <celier@adacore.com>
30
31         * ali-util.adb: Minor comment spelling error fix
32
33 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
34
35         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
36         generate an assignment loop in case of overlap.
37
38 2009-04-16  Olivier Hainque  <hainque@adacore.com>
39
40         * gnat_ugn.texi (gnatmem description): Make it explicit that
41         gnatmem is designed to work in association with static runtime
42         library only.
43
44 2009-04-16  Thomas Quinot  <quinot@adacore.com>
45
46         * sem_type.adb: Minor reformatting
47
48 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
49
50         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
51         concerning return codes of gettimeofday and return value check.
52
53 2009-04-16  Ed Falis  <falis@adacore.com>
54
55         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
56         body can be renaming of imported routines.
57
58 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
59
60         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
61         targeted fashion.
62
63 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
64
65         * exp_ch9.adb: Comment improvements.
66         (Build_Entry_Family_Name): Add parentheses around the index of a entry
67         family member.
68
69 2009-04-15  Bob Duff  <duff@adacore.com>
70
71         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
72         "while X /= null loop" where X is unchanged inside the loop. We were
73         not warning in this case, because of the pointers -- we feared that the
74         loop variable could be updated via a pointer, if there are any pointers
75         around the place. But that is impossible in this case.
76
77         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
78         the case of dereferences. In X.all, X cannot be an l-value. We now
79         catch that case (and implicit dereferences, too).
80
81 2009-04-15  Vincent Celier  <celier@adacore.com>
82
83         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
84
85 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
86
87         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
88         From code reading.
89         (Analyze_Package_Instantiation): If generic unit in child instance is
90         the same as generic unit in parent instance, look for an outer homonym
91         to locate the desired generic.
92
93 2009-04-15  Bob Duff  <duff@adacore.com>
94
95         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
96         warnings unless the loop comes from source, because checking generated
97         loops is a waste of time, and makes it harder to debug
98         Check_Infinite_Loop_Warning.
99
100         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
101         tested in the while loop is a renaming, do not warn. Otherwise, we get
102         false alarms, because it's usually renaming something that we can't
103         deal with (an indexed component, a global variable, ...).
104
105         * gnat_rm.texi: Fix typo
106
107 2009-04-15  Thomas Quinot  <quinot@adacore.com>
108
109         * sem_ch6.adb: Minor reformatting
110
111 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
112
113         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
114         immediate parent of the controlled function call is a component
115         association.
116
117 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
118
119         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
120         corresponding class-wide type is also in use.
121
122 2009-04-15  Thomas Quinot  <quinot@adacore.com>
123
124         * frontend.adb: Minor comment fix
125
126 2009-04-15  Robert Dewar  <dewar@adacore.com>
127
128         * gnatchop.adb (BOM_Length): New global variable
129         (Write_Unit): Add new parameter Write_BOM
130         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
131         to Write_Unit
132
133         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
134
135 2009-04-15  Geert Bosch  <bosch@adacore.com>
136
137         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
138         (Backend_Overflow_Checks): Set to True.
139
140 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
141
142         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
143         keyword is given in a record extension.
144
145 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
146
147         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
148         of a controlled function call in the context of a record aggregate.
149         This does not apply to array aggregates since the call will be expanded
150         into assignments.
151
152 2009-04-15  Ed Falis  <falis@adacore.com>
153
154         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
155         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
156         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
157         s-osinte-vxworks* and s-vxwext*.
158
159 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
160
161         * gcc-interface/Make-lang.in: Update dependencies.
162
163         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
164         and s-vxwext*.
165
166 2009-04-15  Robert Dewar  <dewar@adacore.com>
167
168         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
169         of node for location for warning messages.
170
171         * gnatchop.adb: Minor reformatting
172
173 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
174
175         * exp_ch6.adb: additional guard for renaming declarations for in
176         parameters of an array type.
177
178 2009-04-15  Robert Dewar  <dewar@adacore.com>
179
180         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
181         in case they were rewritten by expander (Force_Evaluation).
182
183         * targparm.adb (Get_Target_Parameters): Correct check for
184         Suppress_Exception_Locations.
185
186 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
187
188         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
189         inlined  is of an array type that is not bit-packed, use a renaming
190         declaration to capture its value, rather than a constant declaration.
191
192 2009-04-15  Robert Dewar  <dewar@adacore.com>
193
194         * rtsfind.adb: Minor reformatting.
195
196 2009-04-15  Emmanuel Briot  <briot@adacore.com>
197
198         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
199         Restore, and free the saved context.
200
201 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
202
203         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
204         for illegal private extension from a synchronized interface parent in
205         front of check for illegal limited extension so that limited extension
206         from a synchronized interface will be rejected.
207         (Check_Ifaces): Check that a private extension that has a synchronized
208         interface as a progenitor must be explicitly declared synchronized.
209         Also check that a record extension cannot derive from a synchronized
210         interface.
211
212 2009-04-15  Pascal Obry  <obry@adacore.com>
213
214         * adaint.h (__gnat_unlink): Add spec.
215         (__gnat_rename): Likewise.
216
217 2009-04-15  Vincent Celier  <celier@adacore.com>
218
219         * prj-nmsc.adb: Minor spelling error corrections in error messages
220
221 2009-04-15  Robert Dewar  <dewar@adacore.com>
222
223         * sinfo.ads: Minor comment update
224
225         * opt.ads: Minor comment updates
226
227         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
228         modular type.
229
230 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
231
232         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
233         that generates the code needed to update a dispatch table when a
234         primitive operation is declared with a subprogram body without previous
235         spec. Insertion of the generated code is responsibility of the caller.
236         (Make_DT): When building static tables, append the code created by
237         Register_Primitive to update a secondary table after it has been
238         constructed.
239
240         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
241
242         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
243         on an overriding operation that implements an interface operation only
244         if not building static dispatch tables.
245
246 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
247
248         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
249         does not cause overflow when converted to Duration. Use the safe value
250         as the maximum allowable time delay..
251
252 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
253
254         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
255         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
256         translated to "-j 2".
257
258 2009-04-15  Bob Duff  <duff@adacore.com>
259
260         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
261         with_clauses, to avoid code duplication. Change this processing so we
262         always add a with_clause on the main unit if needed.
263
264 2009-04-15  Pascal Obry  <obry@adacore.com>
265
266         Add support for Win32 native encoding for delete/rename routines.
267         
268         * adaint.c (__gnat_unlink): New routine.
269         (__gnat_rename): New routine.
270         Simple wrapper routines used to convert to proper encoding on
271         Windows.
272
273         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
274         call to the C library.
275
276         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
277
278 2009-04-15  Robert Dewar  <dewar@adacore.com>
279
280         * s-tassta.adb: Minor reformatting
281
282 2009-04-15  Robert Dewar  <dewar@adacore.com>
283
284         * frontend.adb (Frontend): Set proper default for
285         Warn_On_Non_Local_Exception.
286
287         * opt.ads (Exception_Handler_Encountered): New flag
288         (No_Warn_On_Non_Local_Exception): New flag
289
290         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
291
292         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
293         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
294
295 2009-04-15  Cyrille Comar  <comar@adacore.com>
296
297         * s-tassta.adb, a-exextr.adb, a-elchha.adb
298         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
299         message when exception traces are active since it would generate
300         redundant information.
301         (Exception_Traces.Notify_Exception): put message output by a critical
302         section to avoid unsynchronized output.
303         (Trace_Unhandled_Exception_In_Task): put message output by a critical
304         section to avoid unsynchronized output.
305
306 2009-04-15  Emmanuel Briot  <briot@adacore.com>
307
308         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
309         (Free): New subprogram.
310
311 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
312
313         * a-calend.adb: Add new constant Nanos_In_Four_Years.
314         (Formatting_Operations.Time_Of): Change the way four year chunks of
315         nanoseconds are added to the intermediate result.
316
317 2009-04-15  Nicolas Setton  <setton@adacore.com>
318
319         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
320         does not need to wait for a carriage return.
321
322 2009-04-15  Tristan Gingold  <gingold@adacore.com>
323
324         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
325         is set.
326
327 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
328
329         * freeze.adb (Freeze_Entity): improve error message for improper use of
330         incomplete types.
331         Diagnose additional illegal uses of incomplete types in formal parts.
332         appearing in formal parts.
333
334         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
335
336 2009-04-15  Robert Dewar  <dewar@adacore.com>
337
338         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
339
340 2009-04-15  Nicolas Roche  <roche@adacore.com>
341
342         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
343         current thread.
344
345         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
346
347         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
348
349 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
350
351         * sem_ch4.adb: improve error message on exponentiation.
352
353 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
354
355         * a-calend.adb: Move constant Epoch_Offset from package
356         Conversion_Operations to top level.
357         (Delay_Operations.To_Duration): Define a constant which represents
358         "end of time" and use it as a guard against very distant delay dates.
359         Protect the code against overflow when performing the origin shift to
360         Unix time.
361
362 2009-04-15  Robert Dewar  <dewar@adacore.com>
363
364         * sem_prag.adb: Minor reformatting.
365
366         * sem_type.adb: Minor reformatting
367
368 2009-04-15  Javier Miranda  <miranda@adacore.com>
369
370         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
371         support to check eliminated subprograms.
372
373         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
374
375         * sem_elim.adb (Set_Eliminated): Add support for elimination of
376         dispatching subprograms.
377
378         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
379         operations. Initialize with "null" the slots of eliminated dispaching
380         primitives.
381         (Write_DT): Add output for eliminated primitives.
382
383         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
384
385 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
386
387         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
388         the second is redundant, regardless of scopes.
389
390 2009-04-15  Vincent Celier  <celier@adacore.com>
391
392         * prj-nmsc.adb (Get_Directories): Check for sources before checking
393         the object directory as when there are no sources, they may not be any
394         object directory.
395
396         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
397         directory, when there are no exec directory.
398
399 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
400
401         * sem_type.adb (Remove_Conversions): In order to resolve spurious
402         ambiguities, refine removal of universal interpretations from complex
403         expressions with literal arguments, when some numeric operators have
404         been declared abstract.
405
406 2009-04-15  Ed Falis  <falis@adacore.com>
407
408         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
409         and backward compatibility for targets using probing for stack overflow
410
411 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
412
413         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
414         after any declaration, including renaming declarations.
415
416 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
417
418         * gcc-interface/Make-lang.in: Update dependencies.
419
420         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
421         Update xenomai target pairs.
422
423 2009-04-15  Javier Miranda  <miranda@adacore.com>
424
425         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
426
427         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
428         functions returning anonymous access to class-wide limited types. Mark
429         also the containing scope as a task master.
430
431         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
432         limited-withed packages. Required to restore their visibility after
433         processing packages associated with implicit with-clauses.
434
435         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
436         associated with return statements because this work is now done by
437         Check_Anonymous_Return.
438         (Build_Master): Code cleanup.
439
440 2009-04-15  Thomas Quinot  <quinot@adacore.com>
441
442         * sem_warn.ads: Minor reformatting
443
444 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
445
446         * sem_ch3.adb: better error message for illegal interfaces
447
448         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
449         formal is an incomplete type from a limited_with clause.
450
451 2009-04-15  Vincent Celier  <celier@adacore.com>
452
453         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
454         Externally_Built indicating if the project is externally built. If it
455         is, and --subdirs is specified, but the subdir does not exist, look
456         for the specified directory, without the subdir.
457
458 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
459
460         * a-tasatt.adb: Fix typo, plus minor reformatting
461
462         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
463
464         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
465
466 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
467
468         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
469         private extension whose parent is a synchronized interface carries an
470         explicit synchronized keyword.
471
472 2009-04-15  Thomas Quinot  <quinot@adacore.com>
473
474         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
475         instantiate generic shared object package with the corresponding
476         record type.
477
478 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
479
480         * system-linux-sparc.ads: Remove obsolete entries.
481
482 2009-04-15  Thomas Quinot  <quinot@adacore.com>
483
484         * s-tasuti.ads: Add ??? comment
485
486 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
487
488         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
489         type even if the designated type comes from a limited_with clause, to
490         ensure that the symbol for the finalization list of the access type is
491         created.
492
493 2009-04-10  Robert Dewar  <dewar@adacore.com>
494
495         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
496         for warning suppression.
497
498 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
499
500         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
501         identical, there is no redudancy to check.
502
503 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
504
505         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
506         calls initializing SS_Allocator (which is initialized in following
507         code).
508         (Expand_Simple_Function_Return): Add comment about False value for
509         Comes_From_Source on secondary-stack allocator.
510
511         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
512         (Build_Entry_Name): Add comment.
513
514 2009-04-10  Robert Dewar  <dewar@adacore.com>
515
516         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
517
518         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
519         bound tested, since this is now done more generally in Sem_Res.
520
521         * sem_res.adb (Resolve_Comparison_Op): Add call to
522         Check_Lower_Bound_Tested.
523         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
524
525         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
526         (Low_Bound_Tested): New name for Low_Bound_Known flag
527
528         * exp_ch5.adb: Minor reformatting
529
530         * exp_ch4.adb:
531         Add comments on copying the Comes_From_Source flag for allocators
532
533         * sinfo.ads:
534         Add comments on copying the Comes_From_Source flag for allocators
535
536         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
537         Comes_From_Source flag from old allocator to new one.
538
539 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
540
541         * sem_ch6.ads: Address missing documentation query
542
543 2009-04-10  Vincent Celier  <celier@adacore.com>
544
545         * prj-attr.adb:
546         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
547         and Response_File_Switches.
548
549         * prj-nmsc.adb (Process_Linker): Process new attributes
550         Max_Command_Line_Length, Response_File_Format and
551         Response_File_Switches.
552
553         * prj.ads (Response_File_Format): New enumeration type
554         (Project_Configuration): New componants Max_Command_Line_Length,
555         Resp_File_Format and Resp_File_Options.
556
557         * snames.ads-tmpl: Add new standard names for linking response files
558         for gprbuild: GNU, None, Object_List, Option_List,
559         Max_Command_Line_Length, Response_File_Format and
560         Response_File_Switches.
561
562 2009-04-10  Geert Bosch  <bosch@adacore.com>
563
564         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
565         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
566         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
567         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
568         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
569         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
570         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
571         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
572         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
573         system-vxworks-arm.ads, system-vxworks-m68k.ads,
574         system-vxworks-mips.ads, system-vxworks-ppc.ads,
575         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
576         (Backend_Overflow_Checks): Set to True.
577
578 2009-04-10  Thomas Quinot  <quinot@adacore.com>
579
580         * exp_attr.adb: Minor reformatting
581
582 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
583
584         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
585         analyze the expression for a postcondition, even if the compiler mode
586         is Generate_Code.
587
588 2009-04-10  Robert Dewar  <dewar@adacore.com>
589
590         * sem_aux.adb: Minor reformatting
591
592 2009-04-10  Ed Falis  <falis@adacore.com>
593
594         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
595
596         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
597
598 2009-04-10  Thomas Quinot  <quinot@adacore.com>
599
600         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
601         undocumented formal.
602         Minor reformatting
603
604         * a-direio.ads: Fix typo in comment
605
606         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
607         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
608         Use uniform phrasing for comment at start of subprogram body.
609
610         * xsnamest.adb: Add note to explain why we use specific names for the
611         newly generated files instead of generating snames.{ads,adb,h} directly
612
613 2009-04-10  Sergey Rybin  <rybin@adacore.com>
614
615         * vms_data.ads:
616         Add qualifier for new gnatstub option '--no-exception'
617
618         * gnat_ugn.texi:
619         Add the description of the new gnatstub option '--no-exception'
620
621 2009-04-10  Robert Dewar  <dewar@adacore.com>
622
623         * rtsfind.adb: Minor reformatting
624
625 2009-04-10  Thomas Quinot  <quinot@adacore.com>
626
627         * sem_disp.adb: Minor reformatting.
628         Add comment pointing to RM clause for the case of warning against a
629         (failed) attempt at declaring a primitive operation elsewhere than in a
630         package spec.
631
632 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
633
634         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
635         an actual for a previous formal package of the current instance.
636
637 2009-04-10  Bob Duff  <duff@adacore.com>
638
639         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
640         them first, rather than on the extended main unit.
641
642 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
643
644         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
645         specification of full view carries a null exclusion indicator, create
646         an itype for it, to check for conformance with partial view.
647
648 2009-04-10  Bob Duff  <duff@adacore.com>
649
650         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
651
652         * rtsfind.adb: Minor comment changes, and remove useless code.
653
654         * sinfo.ads: Add ??? comment.
655
656 2009-04-10  Vincent Celier  <celier@adacore.com>
657
658         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
659
660 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
661
662         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
663         type is a synchronized type, retrieve tag information from the
664         corresponding record, which has the dispatch table link.
665
666 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
667
668         * g-comlin.adb (Group_Analysis): Take care of switches that might be
669         decomposed afterwards, but are present as-is in the command line
670         configuration, and thus should be kept as-is.
671
672 2009-04-10  Robert Dewar  <dewar@adacore.com>
673
674         * gnat_rm.texi: Document that postconditions are tested on implicit
675         returns.
676
677         * sem_aux.adb: Minor reformatting
678
679 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
680
681         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
682         setting Etype.
683         
684         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
685         Null_Exclusion_In_Return_Present when an access-to-function type has a
686         result type with an explicit not null.
687
688         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
689         given on the result type, then create a null-excluding itype for the
690         function.
691
692         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
693         the case where a null exclusion is imposed on a named access type.
694         (Analyze_Subprogram_Specification): Push and pop the scope of the
695         function around the call to Analyze_Return_Type in the case of no
696         formals, for consistency with handling when formals are present
697         (Process_Formals does this). Ensures that any itype created for the
698         return type will be associated with the proper scope.
699
700         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
701         exclusion is given on a generic function's result type, then create a
702         null-excluding itype for the generic function.
703         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
704         for an actual for a formal in object according to the setting on the
705         formal. Ensures null exclusion checks are done when the association is
706         elaborated.
707
708         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
709         N_Access_Function_Definition.
710
711         * sinfo.adb: Add Get_ and Set_ operations for
712         Null_Exclusion_In_Return_Present.
713
714 2009-04-10  Bob Duff  <duff@adacore.com>
715
716         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
717         call to the _Postconditions procedure in the case of implicit returns
718         from analysis to expansion. This eliminates some duplicated code. Use
719         the Postcondition_Proc to find the identity of this procedure during
720         expansion.
721
722 2009-04-10  Robert Dewar  <dewar@adacore.com>
723
724         * sem_ch6.adb: Minor code clean up.
725
726         * einfo.ads, sem_attr.adb: Minor comment fixes.
727
728 2009-04-10  Robert Dewar  <dewar@adacore.com>
729
730         * sem_ch8.adb: Minor reformatting
731
732 2009-04-10  Robert Dewar  <dewar@adacore.com>
733
734         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
735         procedures.
736
737         * sem_ch6.adb: Minor code clean up.
738
739 2009-04-10  Robert Dewar  <dewar@adacore.com>
740
741         * mlib-tgt-specific-xi.adb: Minor reformatting
742
743 2009-04-10  Bob Duff  <duff@adacore.com>
744
745         * einfo.ads: Minor comment fixes
746
747 2009-04-10  Vincent Celier  <celier@adacore.com>
748
749         * snames.ads-tmpl: Remove names that are no longer used in the
750         Project Manager.
751         Mark specifically those that are used only in gprbuild
752
753 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
754
755         * init.c: Adjust EH support code on Alpha/Tru64.
756
757 2009-04-10  Bob Duff  <duff@adacore.com>
758
759         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
760         procedure on every path that could return implicitly (not via a return
761         statement) from a procedure.
762
763 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
764
765         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
766         valid scope for a task declarations and therefore for a master id.
767
768 2009-04-10  Robert Dewar  <dewar@adacore.com>
769
770         * sem_aux.adb: Minor reformatting
771
772 2009-04-10  Vincent Celier  <celier@adacore.com>
773
774         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
775         True.
776         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
777         (Set_Obsolescent_Check): New procedure to change the value of
778         Obsolescent_Check_Flag.
779
780         * scn.ads (Set_Obsolescent_Check): New procedure to control
781         Obsolescent_Check.
782
783         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
784         obsolescent features while preprocessing.
785
786 2009-04-10  Thomas Quinot  <quinot@adacore.com>
787
788         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
789         generated files on all platforms.
790
791 2009-04-10  Robert Dewar  <dewar@adacore.com>
792
793         * sem_aux.adb: Minor reformatting
794
795 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
796
797         * sem_ch3.adb (Access_Definition): Handle properly the case of a
798         protected function with formals that returns an anonymous access type.
799
800 2009-04-10  Thomas Quinot  <quinot@adacore.com>
801
802         * sem_disp.adb: Minor reformatting
803
804 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
805
806         * seh_init.c: Do not use the 32-bit specific implementation of
807         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
808         version TBD).
809
810 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
811
812         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
813         a '/' at the end so we better use the complete target name to determine
814         whether it is a PowerPC 55xx target.
815
816 2009-04-10  Thomas Quinot  <quinot@adacore.com>
817
818         * sem_eval.adb: Minor reformatting
819
820 2009-04-10  Thomas Quinot  <quinot@adacore.com>
821
822         * snames.h, snames.ads, snames.adb: Remove files, now generated from
823         templates.
824
825         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
826         above.
827
828         * xsnamest.adb: New file.
829
830         * gcc-interface/Make-lang.in: New target for automated generation of
831         snames.ads, snames.adb and snames.h
832
833 2009-04-10  Tristan Gingold  <gingold@adacore.com>
834
835         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
836         avoid compile time warnings.
837         Do not add gcc/config in include search list while compiling the RTS.
838         Pragma Thread_Local_Storage is available on any target.
839
840 2009-04-10  Bob Duff  <duff@adacore.com>
841
842         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
843
844 2009-04-10  Tristan Gingold  <gingold@adacore.com>
845
846         * init.c: Install signal handler on Darwin.
847
848 2009-04-10  Robert Dewar  <dewar@adacore.com>
849
850         * sem_prag.adb: Minor reformatting
851
852         * exp_util.adb (Make_Non_Empty_Check): New function
853         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
854         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
855
856 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
857
858         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
859
860 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
861
862         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
863         tool prefix for AVR and PowerPC 55xx targets.
864
865 2009-04-10  Robert Dewar  <dewar@adacore.com>
866
867         * sem_warn.adb (Within_Postcondition): New function
868         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
869
870 2009-04-10  Robert Dewar  <dewar@adacore.com>
871
872         * sem_warn.adb: Minor reformatting
873
874         * make.adb: Minor reformatting.
875
876 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
877
878         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
879         entity and the scope is a subprogram, retrieve the Sloc of the
880         subprogram's body rather than using the sloc of the spec, for better
881         line-stepping behavior in gdb.
882         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
883         controller, use the Sloc of the first declaration of the containing list
884         rather than that of the node that triggered creation of the list
885         controller.
886
887 2009-04-10  Vincent Celier  <celier@adacore.com>
888
889         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
890         to avoid gcc warning.
891
892 2009-04-10  Robert Dewar  <dewar@adacore.com>
893
894         * g-comlin.adb: Add ??? comment
895
896 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
897
898         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
899         unreferenced entities for a package with no visible declarations.
900
901 2009-04-10  Robert Dewar  <dewar@adacore.com>
902
903         * exp_ch9.adb: Minor reformatting
904
905 2009-04-10  Thomas Quinot  <quinot@adacore.com>
906
907         * sem_prag.adb: Minor reformatting
908
909 2009-04-10  Vincent Celier  <celier@adacore.com>
910
911         * prj-nmsc.adb:
912         (Check_Library_Attributes): For a project qualified as a library project
913         that is not a library project, indicate in the error message which
914         attributes are missing (Library_Dir and/or Library_Name).
915
916 2009-04-10  Bob Duff  <duff@adacore.com>
917
918         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
919         generated nodes, because it might confuse various circuits in the FE.
920
921 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
922
923         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
924         of pragma. It will be recopied and analyzed when used in call to
925         Create_Task.
926
927         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
928         initialization operations and recognize use of it in procedure calls
929         within init_procs.
930
931         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
932         argument, because it may have side-effects.
933
934         * exp_ch2.adb: Remove obsolete comments on default functions
935
936 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
937
938         * adaint.c (RTX section): Do for RTX the same thing as we do for
939         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
940
941 2009-04-10  Robert Dewar  <dewar@adacore.com>
942
943         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
944
945         * sem_res.adb (Resolve_Call): Fix test for
946         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
947         a non-dynamic scope).
948
949 2009-04-10  Robert Dewar  <dewar@adacore.com>
950
951         * make.adb: Add comment.
952         Minor reformatting
953
954 2009-04-10  Nicolas Setton  <setton@adacore.com>
955
956         * s-osprim-darwin.adb: New file.
957
958         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
959
960 2009-04-10  Thomas Quinot  <quinot@adacore.com>
961
962         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
963
964 2009-04-09  Nick Clifton  <nickc@redhat.com>
965
966         * adadecode.h: Change copyright header to refer to version
967         3 of the GNU General Public License with version 3.1 of the
968         GCC Runtime Library Exception and to point readers at the
969         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
970         page.
971         * 9drpc.adb: Likewise.
972         * a-assert.adb: Likewise.
973         * a-astaco.adb: Likewise.
974         * a-calari.adb: Likewise.
975         * a-calcon.adb: Likewise.
976         * a-calcon.ads: Likewise.
977         * a-caldel.ads: Likewise.
978         * a-calend-vms.adb: Likewise.
979         * a-calend-vms.ads: Likewise.
980         * a-calend.adb: Likewise.
981         * a-calend.ads: Likewise.
982         * a-calfor.adb: Likewise.
983         * a-catizo.adb: Likewise.
984         * a-cdlili.adb: Likewise.
985         * a-cdlili.ads: Likewise.
986         * a-cgaaso.adb: Likewise.
987         * a-cgaaso.ads: Likewise.
988         * a-cgarso.adb: Likewise.
989         * a-cgcaso.adb: Likewise.
990         * a-chacon.adb: Likewise.
991         * a-chacon.ads: Likewise.
992         * a-chahan.adb: Likewise.
993         * a-chahan.ads: Likewise.
994         * a-chlat9.ads: Likewise.
995         * a-chtgke.adb: Likewise.
996         * a-chtgke.ads: Likewise.
997         * a-chtgop.adb: Likewise.
998         * a-chtgop.ads: Likewise.
999         * a-chzla1.ads: Likewise.
1000         * a-chzla9.ads: Likewise.
1001         * a-cidlli.adb: Likewise.
1002         * a-cidlli.ads: Likewise.
1003         * a-cihama.adb: Likewise.
1004         * a-cihama.ads: Likewise.
1005         * a-cihase.adb: Likewise.
1006         * a-cihase.ads: Likewise.
1007         * a-ciorma.adb: Likewise.
1008         * a-ciorma.ads: Likewise.
1009         * a-ciormu.adb: Likewise.
1010         * a-ciormu.ads: Likewise.
1011         * a-ciorse.adb: Likewise.
1012         * a-ciorse.ads: Likewise.
1013         * a-clrefi.adb: Likewise.
1014         * a-clrefi.ads: Likewise.
1015         * a-cohama.adb: Likewise.
1016         * a-cohama.ads: Likewise.
1017         * a-cohase.adb: Likewise.
1018         * a-cohase.ads: Likewise.
1019         * a-cohata.ads: Likewise.
1020         * a-coinve.adb: Likewise.
1021         * a-coinve.ads: Likewise.
1022         * a-colien.adb: Likewise.
1023         * a-colien.ads: Likewise.
1024         * a-colire.adb: Likewise.
1025         * a-colire.ads: Likewise.
1026         * a-comlin.adb: Likewise.
1027         * a-comlin.ads: Likewise.
1028         * a-convec.adb: Likewise.
1029         * a-convec.ads: Likewise.
1030         * a-coorma.adb: Likewise.
1031         * a-coorma.ads: Likewise.
1032         * a-coormu.adb: Likewise.
1033         * a-coormu.ads: Likewise.
1034         * a-coorse.adb: Likewise.
1035         * a-coorse.ads: Likewise.
1036         * a-coprnu.adb: Likewise.
1037         * a-coprnu.ads: Likewise.
1038         * a-crbltr.ads: Likewise.
1039         * a-crbtgk.adb: Likewise.
1040         * a-crbtgk.ads: Likewise.
1041         * a-crbtgo.adb: Likewise.
1042         * a-crbtgo.ads: Likewise.
1043         * a-crdlli.adb: Likewise.
1044         * a-crdlli.ads: Likewise.
1045         * a-cwila1.ads: Likewise.
1046         * a-cwila9.ads: Likewise.
1047         * a-decima.adb: Likewise.
1048         * a-decima.ads: Likewise.
1049         * a-diocst.adb: Likewise.
1050         * a-diocst.ads: Likewise.
1051         * a-direct.adb: Likewise.
1052         * a-direct.ads: Likewise.
1053         * a-direio.adb: Likewise.
1054         * a-direio.ads: Likewise.
1055         * a-dirval-mingw.adb: Likewise.
1056         * a-dirval-vms.adb: Likewise.
1057         * a-dirval.adb: Likewise.
1058         * a-dirval.ads: Likewise.
1059         * a-dynpri.adb: Likewise.
1060         * a-einuoc.adb: Likewise.
1061         * a-einuoc.ads: Likewise.
1062         * a-elchha.adb: Likewise.
1063         * a-elchha.ads: Likewise.
1064         * a-envvar.adb: Likewise.
1065         * a-excach.adb: Likewise.
1066         * a-except-2005.adb: Likewise.
1067         * a-except-2005.ads: Likewise.
1068         * a-except.adb: Likewise.
1069         * a-except.ads: Likewise.
1070         * a-excpol-abort.adb: Likewise.
1071         * a-excpol.adb: Likewise.
1072         * a-exctra.adb: Likewise.
1073         * a-exctra.ads: Likewise.
1074         * a-exetim-mingw.adb: Likewise.
1075         * a-exetim-mingw.ads: Likewise.
1076         * a-exexda.adb: Likewise.
1077         * a-exexpr-gcc.adb: Likewise.
1078         * a-exexpr.adb: Likewise.
1079         * a-exextr.adb: Likewise.
1080         * a-exstat.adb: Likewise.
1081         * a-filico.adb: Likewise.
1082         * a-filico.ads: Likewise.
1083         * a-finali.adb: Likewise.
1084         * a-finali.ads: Likewise.
1085         * a-interr.ads: Likewise.
1086         * a-intnam-aix.ads: Likewise.
1087         * a-intnam-darwin.ads: Likewise.
1088         * a-intnam-dummy.ads: Likewise.
1089         * a-intnam-freebsd.ads: Likewise.
1090         * a-intnam-hpux.ads: Likewise.
1091         * a-intnam-irix.ads: Likewise.
1092         * a-intnam-linux.ads: Likewise.
1093         * a-intnam-lynxos.ads: Likewise.
1094         * a-intnam-mingw.ads: Likewise.
1095         * a-intnam-rtems.ads: Likewise.
1096         * a-intnam-solaris.ads: Likewise.
1097         * a-intnam-tru64.ads: Likewise.
1098         * a-intnam-vms.ads: Likewise.
1099         * a-intnam-vxworks.ads: Likewise.
1100         * a-intsig.adb: Likewise.
1101         * a-intsig.ads: Likewise.
1102         * a-ngcefu.adb: Likewise.
1103         * a-ngcoar.adb: Likewise.
1104         * a-ngcoty.adb: Likewise.
1105         * a-ngcoty.ads: Likewise.
1106         * a-ngelfu.adb: Likewise.
1107         * a-ngrear.adb: Likewise.
1108         * a-ngrear.ads: Likewise.
1109         * a-nudira.adb: Likewise.
1110         * a-nudira.ads: Likewise.
1111         * a-nuflra.adb: Likewise.
1112         * a-nuflra.ads: Likewise.
1113         * a-numaux-darwin.adb: Likewise.
1114         * a-numaux-darwin.ads: Likewise.
1115         * a-numaux-libc-x86.ads: Likewise.
1116         * a-numaux-vxworks.ads: Likewise.
1117         * a-numaux-x86.adb: Likewise.
1118         * a-numaux-x86.ads: Likewise.
1119         * a-numaux.ads: Likewise.
1120         * a-rbtgso.adb: Likewise.
1121         * a-rbtgso.ads: Likewise.
1122         * a-reatim.ads: Likewise.
1123         * a-retide.adb: Likewise.
1124         * a-retide.ads: Likewise.
1125         * a-rttiev.adb: Likewise.
1126         * a-rttiev.ads: Likewise.
1127         * a-secain.adb: Likewise.
1128         * a-secain.ads: Likewise.
1129         * a-sequio.adb: Likewise.
1130         * a-sequio.ads: Likewise.
1131         * a-shcain.adb: Likewise.
1132         * a-shcain.ads: Likewise.
1133         * a-siocst.adb: Likewise.
1134         * a-siocst.ads: Likewise.
1135         * a-slcain.adb: Likewise.
1136         * a-slcain.ads: Likewise.
1137         * a-ssicst.adb: Likewise.
1138         * a-ssicst.ads: Likewise.
1139         * a-stboha.adb: Likewise.
1140         * a-stmaco.ads: Likewise.
1141         * a-storio.adb: Likewise.
1142         * a-strbou.adb: Likewise.
1143         * a-strbou.ads: Likewise.
1144         * a-stream.ads: Likewise.
1145         * a-strfix.adb: Likewise.
1146         * a-strhas.adb: Likewise.
1147         * a-strmap.adb: Likewise.
1148         * a-strmap.ads: Likewise.
1149         * a-strsea.adb: Likewise.
1150         * a-strsea.ads: Likewise.
1151         * a-strsup.adb: Likewise.
1152         * a-strsup.ads: Likewise.
1153         * a-strunb.adb: Likewise.
1154         * a-strunb.ads: Likewise.
1155         * a-ststio.adb: Likewise.
1156         * a-ststio.ads: Likewise.
1157         * a-stunau.adb: Likewise.
1158         * a-stunau.ads: Likewise.
1159         * a-stunha.adb: Likewise.
1160         * a-stwibo.adb: Likewise.
1161         * a-stwibo.ads: Likewise.
1162         * a-stwifi.adb: Likewise.
1163         * a-stwiha.adb: Likewise.
1164         * a-stwima.adb: Likewise.
1165         * a-stwima.ads: Likewise.
1166         * a-stwise.adb: Likewise.
1167         * a-stwise.ads: Likewise.
1168         * a-stwisu.adb: Likewise.
1169         * a-stwisu.ads: Likewise.
1170         * a-stwiun.adb: Likewise.
1171         * a-stwiun.ads: Likewise.
1172         * a-stzbou.adb: Likewise.
1173         * a-stzbou.ads: Likewise.
1174         * a-stzfix.adb: Likewise.
1175         * a-stzhas.adb: Likewise.
1176         * a-stzmap.adb: Likewise.
1177         * a-stzmap.ads: Likewise.
1178         * a-stzsea.adb: Likewise.
1179         * a-stzsea.ads: Likewise.
1180         * a-stzsup.adb: Likewise.
1181         * a-stzsup.ads: Likewise.
1182         * a-stzunb.adb: Likewise.
1183         * a-stzunb.ads: Likewise.
1184         * a-suteio.adb: Likewise.
1185         * a-suteio.ads: Likewise.
1186         * a-swbwha.adb: Likewise.
1187         * a-swmwco.ads: Likewise.
1188         * a-swunau.adb: Likewise.
1189         * a-swunau.ads: Likewise.
1190         * a-swuwha.adb: Likewise.
1191         * a-swuwti.adb: Likewise.
1192         * a-swuwti.ads: Likewise.
1193         * a-sytaco.adb: Likewise.
1194         * a-sytaco.ads: Likewise.
1195         * a-szbzha.adb: Likewise.
1196         * a-szmzco.ads: Likewise.
1197         * a-szunau.adb: Likewise.
1198         * a-szunau.ads: Likewise.
1199         * a-szuzha.adb: Likewise.
1200         * a-szuzti.adb: Likewise.
1201         * a-szuzti.ads: Likewise.
1202         * a-tags.adb: Likewise.
1203         * a-tags.ads: Likewise.
1204         * a-tasatt.ads: Likewise.
1205         * a-taside.adb: Likewise.
1206         * a-taside.ads: Likewise.
1207         * a-taster.adb: Likewise.
1208         * a-teioed.adb: Likewise.
1209         * a-teioed.ads: Likewise.
1210         * a-textio.adb: Likewise.
1211         * a-textio.ads: Likewise.
1212         * a-tiboio.adb: Likewise.
1213         * a-ticoau.adb: Likewise.
1214         * a-ticoau.ads: Likewise.
1215         * a-ticoio.adb: Likewise.
1216         * a-ticoio.ads: Likewise.
1217         * a-tideau.adb: Likewise.
1218         * a-tideau.ads: Likewise.
1219         * a-tideio.adb: Likewise.
1220         * a-tideio.ads: Likewise.
1221         * a-tienau.adb: Likewise.
1222         * a-tienau.ads: Likewise.
1223         * a-tienio.adb: Likewise.
1224         * a-tienio.ads: Likewise.
1225         * a-tifiio.adb: Likewise.
1226         * a-tifiio.ads: Likewise.
1227         * a-tiflau.adb: Likewise.
1228         * a-tiflau.ads: Likewise.
1229         * a-tiflio.adb: Likewise.
1230         * a-tiflio.ads: Likewise.
1231         * a-tigeau.adb: Likewise.
1232         * a-tigeau.ads: Likewise.
1233         * a-tiinau.adb: Likewise.
1234         * a-tiinau.ads: Likewise.
1235         * a-tiinio.adb: Likewise.
1236         * a-tiinio.ads: Likewise.
1237         * a-timoau.adb: Likewise.
1238         * a-timoau.ads: Likewise.
1239         * a-timoio.adb: Likewise.
1240         * a-timoio.ads: Likewise.
1241         * a-tiocst.adb: Likewise.
1242         * a-tiocst.ads: Likewise.
1243         * a-titest.adb: Likewise.
1244         * a-wichun.adb: Likewise.
1245         * a-wichun.ads: Likewise.
1246         * a-witeio.adb: Likewise.
1247         * a-witeio.ads: Likewise.
1248         * a-wtcoau.adb: Likewise.
1249         * a-wtcoau.ads: Likewise.
1250         * a-wtcoio.adb: Likewise.
1251         * a-wtcstr.adb: Likewise.
1252         * a-wtcstr.ads: Likewise.
1253         * a-wtdeau.adb: Likewise.
1254         * a-wtdeau.ads: Likewise.
1255         * a-wtdeio.adb: Likewise.
1256         * a-wtdeio.ads: Likewise.
1257         * a-wtedit.adb: Likewise.
1258         * a-wtedit.ads: Likewise.
1259         * a-wtenau.adb: Likewise.
1260         * a-wtenau.ads: Likewise.
1261         * a-wtenio.adb: Likewise.
1262         * a-wtenio.ads: Likewise.
1263         * a-wtfiio.adb: Likewise.
1264         * a-wtfiio.ads: Likewise.
1265         * a-wtflau.adb: Likewise.
1266         * a-wtflau.ads: Likewise.
1267         * a-wtflio.adb: Likewise.
1268         * a-wtflio.ads: Likewise.
1269         * a-wtgeau.adb: Likewise.
1270         * a-wtgeau.ads: Likewise.
1271         * a-wtinau.adb: Likewise.
1272         * a-wtinau.ads: Likewise.
1273         * a-wtinio.adb: Likewise.
1274         * a-wtmoau.adb: Likewise.
1275         * a-wtmoau.ads: Likewise.
1276         * a-wtmoio.adb: Likewise.
1277         * a-wtmoio.ads: Likewise.
1278         * a-wttest.adb: Likewise.
1279         * a-wwboio.adb: Likewise.
1280         * a-zchuni.adb: Likewise.
1281         * a-zchuni.ads: Likewise.
1282         * a-ztcoau.adb: Likewise.
1283         * a-ztcoau.ads: Likewise.
1284         * a-ztcoio.adb: Likewise.
1285         * a-ztcstr.adb: Likewise.
1286         * a-ztcstr.ads: Likewise.
1287         * a-ztdeau.adb: Likewise.
1288         * a-ztdeau.ads: Likewise.
1289         * a-ztdeio.adb: Likewise.
1290         * a-ztdeio.ads: Likewise.
1291         * a-ztedit.adb: Likewise.
1292         * a-ztedit.ads: Likewise.
1293         * a-ztenau.adb: Likewise.
1294         * a-ztenau.ads: Likewise.
1295         * a-ztenio.adb: Likewise.
1296         * a-ztenio.ads: Likewise.
1297         * a-ztexio.adb: Likewise.
1298         * a-ztexio.ads: Likewise.
1299         * a-ztfiio.adb: Likewise.
1300         * a-ztfiio.ads: Likewise.
1301         * a-ztflau.adb: Likewise.
1302         * a-ztflau.ads: Likewise.
1303         * a-ztflio.adb: Likewise.
1304         * a-ztflio.ads: Likewise.
1305         * a-ztgeau.adb: Likewise.
1306         * a-ztgeau.ads: Likewise.
1307         * a-ztinau.adb: Likewise.
1308         * a-ztinau.ads: Likewise.
1309         * a-ztinio.adb: Likewise.
1310         * a-ztmoau.adb: Likewise.
1311         * a-ztmoau.ads: Likewise.
1312         * a-ztmoio.adb: Likewise.
1313         * a-ztmoio.ads: Likewise.
1314         * a-zttest.adb: Likewise.
1315         * a-zzboio.adb: Likewise.
1316         * adadecode.c: Likewise.
1317         * adaint.c: Likewise.
1318         * adaint.h: Likewise.
1319         * alloc.ads: Likewise.
1320         * argv.c: Likewise.
1321         * arit64.c: Likewise.
1322         * atree.adb: Likewise.
1323         * atree.ads: Likewise.
1324         * aux-io.c: Likewise.
1325         * cal.c: Likewise.
1326         * casing.adb: Likewise.
1327         * casing.ads: Likewise.
1328         * cio.c: Likewise.
1329         * csets.adb: Likewise.
1330         * csets.ads: Likewise.
1331         * cstreams.c: Likewise.
1332         * ctrl_c.c: Likewise.
1333         * debug.adb: Likewise.
1334         * debug.ads: Likewise.
1335         * dec.ads: Likewise.
1336         * einfo.adb: Likewise.
1337         * einfo.ads: Likewise.
1338         * elists.adb: Likewise.
1339         * elists.ads: Likewise.
1340         * env.c: Likewise.
1341         * env.h: Likewise.
1342         * errno.c: Likewise.
1343         * exit.c: Likewise.
1344         * fe.h: Likewise.
1345         * final.c: Likewise.
1346         * fname.adb: Likewise.
1347         * fname.ads: Likewise.
1348         * g-allein.ads: Likewise.
1349         * g-alleve.adb: Likewise.
1350         * g-alleve.ads: Likewise.
1351         * g-altcon.adb: Likewise.
1352         * g-altcon.ads: Likewise.
1353         * g-altive.ads: Likewise.
1354         * g-alveop.adb: Likewise.
1355         * g-alveop.ads: Likewise.
1356         * g-alvety.ads: Likewise.
1357         * g-alvevi.ads: Likewise.
1358         * g-arrspl.adb: Likewise.
1359         * g-arrspl.ads: Likewise.
1360         * g-calend.ads: Likewise.
1361         * g-comlin.adb: Likewise.
1362         * g-debpoo.adb: Likewise.
1363         * g-debpoo.ads: Likewise.
1364         * g-eacodu-vms.adb: Likewise.
1365         * g-eacodu.adb: Likewise.
1366         * g-excact.adb: Likewise.
1367         * g-excact.ads: Likewise.
1368         * g-locfil.adb: Likewise.
1369         * g-os_lib.ads: Likewise.
1370         * g-rannum.adb: Likewise.
1371         * g-rannum.ads: Likewise.
1372         * g-regist.adb: Likewise.
1373         * g-regist.ads: Likewise.
1374         * g-signal.adb: Likewise.
1375         * g-signal.ads: Likewise.
1376         * g-soccon.ads: Likewise.
1377         * g-string.adb: Likewise.
1378         * g-string.ads: Likewise.
1379         * g-strspl.ads: Likewise.
1380         * g-timsta.adb: Likewise.
1381         * g-timsta.ads: Likewise.
1382         * g-trasym-vms-alpha.adb: Likewise.
1383         * g-trasym-vms-ia64.adb: Likewise.
1384         * g-utf_32.adb: Likewise.
1385         * g-utf_32.ads: Likewise.
1386         * g-wistsp.ads: Likewise.
1387         * g-zstspl.ads: Likewise.
1388         * gmem.c: Likewise.
1389         * gnatvsn.adb: Likewise.
1390         * gnatvsn.ads: Likewise.
1391         * gsocket.h: Likewise.
1392         * hostparm.ads: Likewise.
1393         * i-c.adb: Likewise.
1394         * i-cexten.ads: Likewise.
1395         * i-cobol.adb: Likewise.
1396         * i-cobol.ads: Likewise.
1397         * i-cpoint.adb: Likewise.
1398         * i-cpoint.ads: Likewise.
1399         * i-cpp.adb: Likewise.
1400         * i-cpp.ads: Likewise.
1401         * i-cstrea-vms.adb: Likewise.
1402         * i-cstrea.adb: Likewise.
1403         * i-cstrea.ads: Likewise.
1404         * i-cstrin.adb: Likewise.
1405         * i-cstrin.ads: Likewise.
1406         * i-forbla-darwin.adb: Likewise.
1407         * i-forbla-unimplemented.ads: Likewise.
1408         * i-forbla.adb: Likewise.
1409         * i-forbla.ads: Likewise.
1410         * i-forlap.ads: Likewise.
1411         * i-fortra.adb: Likewise.
1412         * i-pacdec.adb: Likewise.
1413         * i-pacdec.ads: Likewise.
1414         * i-vxwoio.adb: Likewise.
1415         * i-vxwoio.ads: Likewise.
1416         * indepsw-aix.adb: Likewise.
1417         * indepsw-gnu.adb: Likewise.
1418         * indepsw-mingw.adb: Likewise.
1419         * indepsw.adb: Likewise.
1420         * indepsw.ads: Likewise.
1421         * init.c: Likewise.
1422         * initialize.c: Likewise.
1423         * interfac.ads: Likewise.
1424         * krunch.adb: Likewise.
1425         * krunch.ads: Likewise.
1426         * lib-list.adb: Likewise.
1427         * lib-sort.adb: Likewise.
1428         * lib.adb: Likewise.
1429         * lib.ads: Likewise.
1430         * link.c: Likewise.
1431         * math_lib.adb: Likewise.
1432         * memtrack.adb: Likewise.
1433         * mingw32.h: Likewise.
1434         * mkdir.c: Likewise.
1435         * namet-sp.adb: Likewise.
1436         * namet-sp.ads: Likewise.
1437         * namet.adb: Likewise.
1438         * namet.ads: Likewise.
1439         * nlists.adb: Likewise.
1440         * nlists.ads: Likewise.
1441         * opt.adb: Likewise.
1442         * opt.ads: Likewise.
1443         * output.adb: Likewise.
1444         * output.ads: Likewise.
1445         * raise-gcc.c: Likewise.
1446         * raise.c: Likewise.
1447         * raise.h: Likewise.
1448         * repinfo.adb: Likewise.
1449         * repinfo.ads: Likewise.
1450         * repinfo.h: Likewise.
1451         * rident.ads: Likewise.
1452         * s-addima.adb: Likewise.
1453         * s-addima.ads: Likewise.
1454         * s-addope.adb: Likewise.
1455         * s-addope.ads: Likewise.
1456         * s-arit64.adb: Likewise.
1457         * s-arit64.ads: Likewise.
1458         * s-assert.adb: Likewise.
1459         * s-assert.ads: Likewise.
1460         * s-asthan-vms-alpha.adb: Likewise.
1461         * s-asthan.adb: Likewise.
1462         * s-asthan.ads: Likewise.
1463         * s-atacco.adb: Likewise.
1464         * s-atacco.ads: Likewise.
1465         * s-auxdec-empty.adb: Likewise.
1466         * s-auxdec-empty.ads: Likewise.
1467         * s-auxdec-vms_64.ads: Likewise.
1468         * s-auxdec.adb: Likewise.
1469         * s-auxdec.ads: Likewise.
1470         * s-bitops.adb: Likewise.
1471         * s-bitops.ads: Likewise.
1472         * s-boarop.ads: Likewise.
1473         * s-carsi8.adb: Likewise.
1474         * s-carsi8.ads: Likewise.
1475         * s-carun8.adb: Likewise.
1476         * s-carun8.ads: Likewise.
1477         * s-casi16.adb: Likewise.
1478         * s-casi16.ads: Likewise.
1479         * s-casi32.adb: Likewise.
1480         * s-casi32.ads: Likewise.
1481         * s-casi64.adb: Likewise.
1482         * s-casi64.ads: Likewise.
1483         * s-casuti.ads: Likewise.
1484         * s-caun16.adb: Likewise.
1485         * s-caun16.ads: Likewise.
1486         * s-caun32.adb: Likewise.
1487         * s-caun32.ads: Likewise.
1488         * s-caun64.adb: Likewise.
1489         * s-caun64.ads: Likewise.
1490         * s-chepoo.ads: Likewise.
1491         * s-crc32.adb: Likewise.
1492         * s-crc32.ads: Likewise.
1493         * s-crtl.ads: Likewise.
1494         * s-direio.adb: Likewise.
1495         * s-direio.ads: Likewise.
1496         * s-dsaser.ads: Likewise.
1497         * s-except.adb: Likewise.
1498         * s-except.ads: Likewise.
1499         * s-exctab.adb: Likewise.
1500         * s-exctab.ads: Likewise.
1501         * s-exnint.adb: Likewise.
1502         * s-exnint.ads: Likewise.
1503         * s-exnllf.adb: Likewise.
1504         * s-exnllf.ads: Likewise.
1505         * s-exnlli.adb: Likewise.
1506         * s-exnlli.ads: Likewise.
1507         * s-expint.adb: Likewise.
1508         * s-expint.ads: Likewise.
1509         * s-explli.adb: Likewise.
1510         * s-explli.ads: Likewise.
1511         * s-expllu.adb: Likewise.
1512         * s-expllu.ads: Likewise.
1513         * s-expmod.adb: Likewise.
1514         * s-expmod.ads: Likewise.
1515         * s-expuns.adb: Likewise.
1516         * s-expuns.ads: Likewise.
1517         * s-fatflt.ads: Likewise.
1518         * s-fatgen.adb: Likewise.
1519         * s-fatgen.ads: Likewise.
1520         * s-fatlfl.ads: Likewise.
1521         * s-fatllf.ads: Likewise.
1522         * s-fatsfl.ads: Likewise.
1523         * s-ficobl.ads: Likewise.
1524         * s-fileio.adb: Likewise.
1525         * s-fileio.ads: Likewise.
1526         * s-filofl.ads: Likewise.
1527         * s-finimp.adb: Likewise.
1528         * s-finimp.ads: Likewise.
1529         * s-finroo.adb: Likewise.
1530         * s-finroo.ads: Likewise.
1531         * s-fishfl.ads: Likewise.
1532         * s-fore.adb: Likewise.
1533         * s-fore.ads: Likewise.
1534         * s-fvadfl.ads: Likewise.
1535         * s-fvaffl.ads: Likewise.
1536         * s-fvagfl.ads: Likewise.
1537         * s-gearop.adb: Likewise.
1538         * s-gearop.ads: Likewise.
1539         * s-gecobl.adb: Likewise.
1540         * s-gecobl.ads: Likewise.
1541         * s-gecola.adb: Likewise.
1542         * s-gecola.ads: Likewise.
1543         * s-gerebl.adb: Likewise.
1544         * s-gerebl.ads: Likewise.
1545         * s-gerela.adb: Likewise.
1546         * s-gerela.ads: Likewise.
1547         * s-geveop.adb: Likewise.
1548         * s-geveop.ads: Likewise.
1549         * s-gloloc.adb: Likewise.
1550         * s-gloloc.ads: Likewise.
1551         * s-hibaen.ads: Likewise.
1552         * s-imenne.adb: Likewise.
1553         * s-imenne.ads: Likewise.
1554         * s-imgbiu.adb: Likewise.
1555         * s-imgbiu.ads: Likewise.
1556         * s-imgboo.adb: Likewise.
1557         * s-imgboo.ads: Likewise.
1558         * s-imgcha.adb: Likewise.
1559         * s-imgcha.ads: Likewise.
1560         * s-imgdec.adb: Likewise.
1561         * s-imgdec.ads: Likewise.
1562         * s-imgenu.adb: Likewise.
1563         * s-imgenu.ads: Likewise.
1564         * s-imgint.adb: Likewise.
1565         * s-imgint.ads: Likewise.
1566         * s-imgllb.adb: Likewise.
1567         * s-imgllb.ads: Likewise.
1568         * s-imglld.adb: Likewise.
1569         * s-imglld.ads: Likewise.
1570         * s-imglli.adb: Likewise.
1571         * s-imglli.ads: Likewise.
1572         * s-imgllu.adb: Likewise.
1573         * s-imgllu.ads: Likewise.
1574         * s-imgllw.adb: Likewise.
1575         * s-imgllw.ads: Likewise.
1576         * s-imgrea.adb: Likewise.
1577         * s-imgrea.ads: Likewise.
1578         * s-imguns.adb: Likewise.
1579         * s-imguns.ads: Likewise.
1580         * s-imgwch.adb: Likewise.
1581         * s-imgwch.ads: Likewise.
1582         * s-imgwiu.adb: Likewise.
1583         * s-imgwiu.ads: Likewise.
1584         * s-inmaop-dummy.adb: Likewise.
1585         * s-inmaop-vms.adb: Likewise.
1586         * s-inmaop.ads: Likewise.
1587         * s-interr-hwint.adb: Likewise.
1588         * s-interr-sigaction.adb: Likewise.
1589         * s-interr-vms.adb: Likewise.
1590         * s-interr.adb: Likewise.
1591         * s-interr.ads: Likewise.
1592         * s-intman-dummy.adb: Likewise.
1593         * s-intman-mingw.adb: Likewise.
1594         * s-intman-posix.adb: Likewise.
1595         * s-intman-solaris.adb: Likewise.
1596         * s-intman-vms.adb: Likewise.
1597         * s-intman-vms.ads: Likewise.
1598         * s-intman-vxworks.adb: Likewise.
1599         * s-intman-vxworks.ads: Likewise.
1600         * s-intman.ads: Likewise.
1601         * s-io.adb: Likewise.
1602         * s-io.ads: Likewise.
1603         * s-linux-alpha.ads: Likewise.
1604         * s-linux-hppa.ads: Likewise.
1605         * s-linux.ads: Likewise.
1606         * s-maccod.ads: Likewise.
1607         * s-mantis.adb: Likewise.
1608         * s-mantis.ads: Likewise.
1609         * s-mastop-irix.adb: Likewise.
1610         * s-mastop.adb: Likewise.
1611         * s-mastop.ads: Likewise.
1612         * s-memcop.ads: Likewise.
1613         * s-memory-mingw.adb: Likewise.
1614         * s-memory.adb: Likewise.
1615         * s-memory.ads: Likewise.
1616         * s-os_lib.ads: Likewise.
1617         * s-oscons-tmplt.c: Likewise.
1618         * s-osinte-aix.adb: Likewise.
1619         * s-osinte-darwin.adb: Likewise.
1620         * s-osinte-freebsd.adb: Likewise.
1621         * s-osinte-irix.adb: Likewise.
1622         * s-osinte-lynxos-3.adb: Likewise.
1623         * s-osinte-rtems.ads: Likewise.
1624         * s-osinte-tru64.adb: Likewise.
1625         * s-osinte-vxworks-kernel.adb: Likewise.
1626         * s-osinte-vxworks.adb: Likewise.
1627         * s-osprim-mingw.adb: Likewise.
1628         * s-osprim-posix.adb: Likewise.
1629         * s-osprim-solaris.adb: Likewise.
1630         * s-osprim-unix.adb: Likewise.
1631         * s-osprim-vms.adb: Likewise.
1632         * s-osprim-vms.ads: Likewise.
1633         * s-osprim-vxworks.adb: Likewise.
1634         * s-osprim.ads: Likewise.
1635         * s-pack03.adb: Likewise.
1636         * s-pack03.ads: Likewise.
1637         * s-pack05.adb: Likewise.
1638         * s-pack05.ads: Likewise.
1639         * s-pack06.adb: Likewise.
1640         * s-pack06.ads: Likewise.
1641         * s-pack07.adb: Likewise.
1642         * s-pack07.ads: Likewise.
1643         * s-pack09.adb: Likewise.
1644         * s-pack09.ads: Likewise.
1645         * s-pack10.adb: Likewise.
1646         * s-pack10.ads: Likewise.
1647         * s-pack11.adb: Likewise.
1648         * s-pack11.ads: Likewise.
1649         * s-pack12.adb: Likewise.
1650         * s-pack12.ads: Likewise.
1651         * s-pack13.adb: Likewise.
1652         * s-pack13.ads: Likewise.
1653         * s-pack14.adb: Likewise.
1654         * s-pack14.ads: Likewise.
1655         * s-pack15.adb: Likewise.
1656         * s-pack15.ads: Likewise.
1657         * s-pack17.adb: Likewise.
1658         * s-pack17.ads: Likewise.
1659         * s-pack18.adb: Likewise.
1660         * s-pack18.ads: Likewise.
1661         * s-pack19.adb: Likewise.
1662         * s-pack19.ads: Likewise.
1663         * s-pack20.adb: Likewise.
1664         * s-pack20.ads: Likewise.
1665         * s-pack21.adb: Likewise.
1666         * s-pack21.ads: Likewise.
1667         * s-pack22.adb: Likewise.
1668         * s-pack22.ads: Likewise.
1669         * s-pack23.adb: Likewise.
1670         * s-pack23.ads: Likewise.
1671         * s-pack24.adb: Likewise.
1672         * s-pack24.ads: Likewise.
1673         * s-pack25.adb: Likewise.
1674         * s-pack25.ads: Likewise.
1675         * s-pack26.adb: Likewise.
1676         * s-pack26.ads: Likewise.
1677         * s-pack27.adb: Likewise.
1678         * s-pack27.ads: Likewise.
1679         * s-pack28.adb: Likewise.
1680         * s-pack28.ads: Likewise.
1681         * s-pack29.adb: Likewise.
1682         * s-pack29.ads: Likewise.
1683         * s-pack30.adb: Likewise.
1684         * s-pack30.ads: Likewise.
1685         * s-pack31.adb: Likewise.
1686         * s-pack31.ads: Likewise.
1687         * s-pack33.adb: Likewise.
1688         * s-pack33.ads: Likewise.
1689         * s-pack34.adb: Likewise.
1690         * s-pack34.ads: Likewise.
1691         * s-pack35.adb: Likewise.
1692         * s-pack35.ads: Likewise.
1693         * s-pack36.adb: Likewise.
1694         * s-pack36.ads: Likewise.
1695         * s-pack37.adb: Likewise.
1696         * s-pack37.ads: Likewise.
1697         * s-pack38.adb: Likewise.
1698         * s-pack38.ads: Likewise.
1699         * s-pack39.adb: Likewise.
1700         * s-pack39.ads: Likewise.
1701         * s-pack40.adb: Likewise.
1702         * s-pack40.ads: Likewise.
1703         * s-pack41.adb: Likewise.
1704         * s-pack41.ads: Likewise.
1705         * s-pack42.adb: Likewise.
1706         * s-pack42.ads: Likewise.
1707         * s-pack43.adb: Likewise.
1708         * s-pack43.ads: Likewise.
1709         * s-pack44.adb: Likewise.
1710         * s-pack44.ads: Likewise.
1711         * s-pack45.adb: Likewise.
1712         * s-pack45.ads: Likewise.
1713         * s-pack46.adb: Likewise.
1714         * s-pack46.ads: Likewise.
1715         * s-pack47.adb: Likewise.
1716         * s-pack47.ads: Likewise.
1717         * s-pack48.adb: Likewise.
1718         * s-pack48.ads: Likewise.
1719         * s-pack49.adb: Likewise.
1720         * s-pack49.ads: Likewise.
1721         * s-pack50.adb: Likewise.
1722         * s-pack50.ads: Likewise.
1723         * s-pack51.adb: Likewise.
1724         * s-pack51.ads: Likewise.
1725         * s-pack52.adb: Likewise.
1726         * s-pack52.ads: Likewise.
1727         * s-pack53.adb: Likewise.
1728         * s-pack53.ads: Likewise.
1729         * s-pack54.adb: Likewise.
1730         * s-pack54.ads: Likewise.
1731         * s-pack55.adb: Likewise.
1732         * s-pack55.ads: Likewise.
1733         * s-pack56.adb: Likewise.
1734         * s-pack56.ads: Likewise.
1735         * s-pack57.adb: Likewise.
1736         * s-pack57.ads: Likewise.
1737         * s-pack58.adb: Likewise.
1738         * s-pack58.ads: Likewise.
1739         * s-pack59.adb: Likewise.
1740         * s-pack59.ads: Likewise.
1741         * s-pack60.adb: Likewise.
1742         * s-pack60.ads: Likewise.
1743         * s-pack61.adb: Likewise.
1744         * s-pack61.ads: Likewise.
1745         * s-pack62.adb: Likewise.
1746         * s-pack62.ads: Likewise.
1747         * s-pack63.adb: Likewise.
1748         * s-pack63.ads: Likewise.
1749         * s-parame-ae653.ads: Likewise.
1750         * s-parame-hpux.ads: Likewise.
1751         * s-parame-rtems.adb: Likewise.
1752         * s-parame-vms-alpha.ads: Likewise.
1753         * s-parame-vms-ia64.ads: Likewise.
1754         * s-parame-vms-restrict.ads: Likewise.
1755         * s-parame-vxworks.adb: Likewise.
1756         * s-parame-vxworks.ads: Likewise.
1757         * s-parame.adb: Likewise.
1758         * s-parame.ads: Likewise.
1759         * s-parint.adb: Likewise.
1760         * s-parint.ads: Likewise.
1761         * s-pooglo.adb: Likewise.
1762         * s-pooglo.ads: Likewise.
1763         * s-pooloc.adb: Likewise.
1764         * s-pooloc.ads: Likewise.
1765         * s-poosiz.adb: Likewise.
1766         * s-poosiz.ads: Likewise.
1767         * s-powtab.ads: Likewise.
1768         * s-proinf-irix-athread.adb: Likewise.
1769         * s-proinf-irix-athread.ads: Likewise.
1770         * s-proinf.adb: Likewise.
1771         * s-proinf.ads: Likewise.
1772         * s-purexc.ads: Likewise.
1773         * s-rannum.adb: Likewise.
1774         * s-rannum.ads: Likewise.
1775         * s-restri.adb: Likewise.
1776         * s-restri.ads: Likewise.
1777         * s-rident.ads: Likewise.
1778         * s-rpc.adb: Likewise.
1779         * s-rpc.ads: Likewise.
1780         * s-scaval.adb: Likewise.
1781         * s-scaval.ads: Likewise.
1782         * s-secsta.adb: Likewise.
1783         * s-secsta.ads: Likewise.
1784         * s-sequio.adb: Likewise.
1785         * s-sequio.ads: Likewise.
1786         * s-shasto.adb: Likewise.
1787         * s-shasto.ads: Likewise.
1788         * s-soflin.adb: Likewise.
1789         * s-soflin.ads: Likewise.
1790         * s-solita.adb: Likewise.
1791         * s-solita.ads: Likewise.
1792         * s-sopco3.adb: Likewise.
1793         * s-sopco3.ads: Likewise.
1794         * s-sopco4.adb: Likewise.
1795         * s-sopco4.ads: Likewise.
1796         * s-sopco5.adb: Likewise.
1797         * s-sopco5.ads: Likewise.
1798         * s-stache.adb: Likewise.
1799         * s-stache.ads: Likewise.
1800         * s-stalib.adb: Likewise.
1801         * s-stalib.ads: Likewise.
1802         * s-stausa.adb: Likewise.
1803         * s-stausa.ads: Likewise.
1804         * s-stchop-limit.ads: Likewise.
1805         * s-stchop-rtems.adb: Likewise.
1806         * s-stchop-vxworks.adb: Likewise.
1807         * s-stchop.adb: Likewise.
1808         * s-stchop.ads: Likewise.
1809         * s-stoele.adb: Likewise.
1810         * s-stoele.ads: Likewise.
1811         * s-stopoo.adb: Likewise.
1812         * s-stopoo.ads: Likewise.
1813         * s-stratt.adb: Likewise.
1814         * s-stratt.ads: Likewise.
1815         * s-strcom.adb: Likewise.
1816         * s-strcom.ads: Likewise.
1817         * s-string.adb: Likewise.
1818         * s-string.ads: Likewise.
1819         * s-strops.adb: Likewise.
1820         * s-strops.ads: Likewise.
1821         * s-strxdr.adb: Likewise.
1822         * s-ststop.adb: Likewise.
1823         * s-ststop.ads: Likewise.
1824         * s-taasde.adb: Likewise.
1825         * s-taasde.ads: Likewise.
1826         * s-tadeca.adb: Likewise.
1827         * s-tadeca.ads: Likewise.
1828         * s-tadert.adb: Likewise.
1829         * s-tadert.ads: Likewise.
1830         * s-taenca.adb: Likewise.
1831         * s-taenca.ads: Likewise.
1832         * s-taprob.ads: Likewise.
1833         * s-taprop-dummy.adb: Likewise.
1834         * s-taprop-hpux-dce.adb: Likewise.
1835         * s-taprop-irix.adb: Likewise.
1836         * s-taprop-linux.adb: Likewise.
1837         * s-taprop-lynxos.adb: Likewise.
1838         * s-taprop-mingw.adb: Likewise.
1839         * s-taprop-posix.adb: Likewise.
1840         * s-taprop-solaris.adb: Likewise.
1841         * s-taprop-tru64.adb: Likewise.
1842         * s-taprop-vms.adb: Likewise.
1843         * s-taprop-vxworks.adb: Likewise.
1844         * s-taprop.ads: Likewise.
1845         * s-tarest.adb: Likewise.
1846         * s-tarest.ads: Likewise.
1847         * s-tasdeb.adb: Likewise.
1848         * s-tasdeb.ads: Likewise.
1849         * s-tasinf-irix.ads: Likewise.
1850         * s-tasinf-linux.adb: Likewise.
1851         * s-tasinf-linux.ads: Likewise.
1852         * s-tasinf-mingw.adb: Likewise.
1853         * s-tasinf-mingw.ads: Likewise.
1854         * s-tasinf-solaris.adb: Likewise.
1855         * s-tasinf-solaris.ads: Likewise.
1856         * s-tasinf-tru64.ads: Likewise.
1857         * s-tasinf.adb: Likewise.
1858         * s-tasinf.ads: Likewise.
1859         * s-tasini.adb: Likewise.
1860         * s-tasini.ads: Likewise.
1861         * s-taskin.adb: Likewise.
1862         * s-taskin.ads: Likewise.
1863         * s-taspri-dummy.ads: Likewise.
1864         * s-taspri-hpux-dce.ads: Likewise.
1865         * s-taspri-mingw.ads: Likewise.
1866         * s-taspri-solaris.ads: Likewise.
1867         * s-taspri-tru64.ads: Likewise.
1868         * s-taspri-vms.ads: Likewise.
1869         * s-taspri-vxworks.ads: Likewise.
1870         * s-tasque.adb: Likewise.
1871         * s-tasque.ads: Likewise.
1872         * s-tasren.adb: Likewise.
1873         * s-tasren.ads: Likewise.
1874         * s-tasres.ads: Likewise.
1875         * s-tassta.adb: Likewise.
1876         * s-tassta.ads: Likewise.
1877         * s-tasuti.adb: Likewise.
1878         * s-tasuti.ads: Likewise.
1879         * s-tfsetr-default.adb: Likewise.
1880         * s-tfsetr-vxworks.adb: Likewise.
1881         * s-tpinop.adb: Likewise.
1882         * s-tpinop.ads: Likewise.
1883         * s-tpoben.adb: Likewise.
1884         * s-tpoben.ads: Likewise.
1885         * s-tpobop.adb: Likewise.
1886         * s-tpobop.ads: Likewise.
1887         * s-tpopde-vms.adb: Likewise.
1888         * s-tpopde-vms.ads: Likewise.
1889         * s-tpopsp-lynxos.adb: Likewise.
1890         * s-tpopsp-posix-foreign.adb: Likewise.
1891         * s-tpopsp-posix.adb: Likewise.
1892         * s-tpopsp-solaris.adb: Likewise.
1893         * s-tpopsp-vxworks.adb: Likewise.
1894         * s-tporft.adb: Likewise.
1895         * s-tposen.adb: Likewise.
1896         * s-tposen.ads: Likewise.
1897         * s-traceb.adb: Likewise.
1898         * s-traceb.ads: Likewise.
1899         * s-traces-default.adb: Likewise.
1900         * s-traces.adb: Likewise.
1901         * s-traces.ads: Likewise.
1902         * s-traent-vms.adb: Likewise.
1903         * s-traent-vms.ads: Likewise.
1904         * s-traent.adb: Likewise.
1905         * s-traent.ads: Likewise.
1906         * s-trafor-default.adb: Likewise.
1907         * s-trafor-default.ads: Likewise.
1908         * s-tratas-default.adb: Likewise.
1909         * s-tratas.adb: Likewise.
1910         * s-tratas.ads: Likewise.
1911         * s-unstyp.ads: Likewise.
1912         * s-utf_32.adb: Likewise.
1913         * s-utf_32.ads: Likewise.
1914         * s-vaflop-vms-alpha.adb: Likewise.
1915         * s-vaflop.adb: Likewise.
1916         * s-vaflop.ads: Likewise.
1917         * s-valboo.adb: Likewise.
1918         * s-valboo.ads: Likewise.
1919         * s-valcha.adb: Likewise.
1920         * s-valcha.ads: Likewise.
1921         * s-valdec.adb: Likewise.
1922         * s-valdec.ads: Likewise.
1923         * s-valenu.adb: Likewise.
1924         * s-valenu.ads: Likewise.
1925         * s-valint.adb: Likewise.
1926         * s-valint.ads: Likewise.
1927         * s-vallld.adb: Likewise.
1928         * s-vallld.ads: Likewise.
1929         * s-vallli.adb: Likewise.
1930         * s-vallli.ads: Likewise.
1931         * s-valllu.adb: Likewise.
1932         * s-valllu.ads: Likewise.
1933         * s-valrea.adb: Likewise.
1934         * s-valrea.ads: Likewise.
1935         * s-valuns.adb: Likewise.
1936         * s-valuns.ads: Likewise.
1937         * s-valuti.adb: Likewise.
1938         * s-valuti.ads: Likewise.
1939         * s-valwch.adb: Likewise.
1940         * s-valwch.ads: Likewise.
1941         * s-veboop.adb: Likewise.
1942         * s-veboop.ads: Likewise.
1943         * s-vector.ads: Likewise.
1944         * s-vercon.adb: Likewise.
1945         * s-vercon.ads: Likewise.
1946         * s-vmexta.adb: Likewise.
1947         * s-vmexta.ads: Likewise.
1948         * s-vxwext-kernel.ads: Likewise.
1949         * s-vxwext-rtp.adb: Likewise.
1950         * s-vxwext-rtp.ads: Likewise.
1951         * s-vxwext.ads: Likewise.
1952         * s-vxwork-arm.ads: Likewise.
1953         * s-vxwork-m68k.ads: Likewise.
1954         * s-vxwork-mips.ads: Likewise.
1955         * s-vxwork-ppc.ads: Likewise.
1956         * s-vxwork-sparcv9.ads: Likewise.
1957         * s-vxwork-x86.ads: Likewise.
1958         * s-wchcnv.adb: Likewise.
1959         * s-wchcnv.ads: Likewise.
1960         * s-wchcon.adb: Likewise.
1961         * s-wchcon.ads: Likewise.
1962         * s-wchjis.adb: Likewise.
1963         * s-wchjis.ads: Likewise.
1964         * s-wchstw.adb: Likewise.
1965         * s-wchstw.ads: Likewise.
1966         * s-wchwts.adb: Likewise.
1967         * s-wchwts.ads: Likewise.
1968         * s-widboo.adb: Likewise.
1969         * s-widboo.ads: Likewise.
1970         * s-widcha.adb: Likewise.
1971         * s-widcha.ads: Likewise.
1972         * s-widenu.adb: Likewise.
1973         * s-widenu.ads: Likewise.
1974         * s-widlli.adb: Likewise.
1975         * s-widlli.ads: Likewise.
1976         * s-widllu.adb: Likewise.
1977         * s-widllu.ads: Likewise.
1978         * s-widwch.adb: Likewise.
1979         * s-widwch.ads: Likewise.
1980         * s-win32.ads: Likewise.
1981         * s-winext.ads: Likewise.
1982         * s-wwdcha.adb: Likewise.
1983         * s-wwdcha.ads: Likewise.
1984         * s-wwdenu.adb: Likewise.
1985         * s-wwdenu.ads: Likewise.
1986         * s-wwdwch.adb: Likewise.
1987         * s-wwdwch.ads: Likewise.
1988         * scans.adb: Likewise.
1989         * scans.ads: Likewise.
1990         * seh_init.c: Likewise.
1991         * sfn_scan.adb: Likewise.
1992         * sinfo.adb: Likewise.
1993         * sinfo.ads: Likewise.
1994         * sinput.adb: Likewise.
1995         * sinput.ads: Likewise.
1996         * snames.adb: Likewise.
1997         * snames.ads: Likewise.
1998         * socket.c: Likewise.
1999         * stand.adb: Likewise.
2000         * stand.ads: Likewise.
2001         * stringt.adb: Likewise.
2002         * stringt.ads: Likewise.
2003         * sysdep.c: Likewise.
2004         * system-aix.ads: Likewise.
2005         * system-darwin-ppc.ads: Likewise.
2006         * system-darwin-x86.ads: Likewise.
2007         * system-darwin-x86_64.ads: Likewise.
2008         * system-freebsd-x86.ads: Likewise.
2009         * system-hpux-ia64.ads: Likewise.
2010         * system-hpux.ads: Likewise.
2011         * system-irix-n32.ads: Likewise.
2012         * system-irix-n64.ads: Likewise.
2013         * system-irix-o32.ads: Likewise.
2014         * system-linux-alpha.ads: Likewise.
2015         * system-linux-hppa.ads: Likewise.
2016         * system-linux-ia64.ads: Likewise.
2017         * system-linux-mips.ads: Likewise.
2018         * system-linux-mipsel.ads: Likewise.
2019         * system-linux-ppc.ads: Likewise.
2020         * system-linux-ppc64.ads: Likewise.
2021         * system-linux-s390.ads: Likewise.
2022         * system-linux-s390x.ads: Likewise.
2023         * system-linux-sh4.ads: Likewise.
2024         * system-linux-sparc.ads: Likewise.
2025         * system-linux-sparcv9.ads: Likewise.
2026         * system-linux-x86.ads: Likewise.
2027         * system-linux-x86_64.ads: Likewise.
2028         * system-lynxos-ppc.ads: Likewise.
2029         * system-lynxos-x86.ads: Likewise.
2030         * system-mingw-x86_64.ads: Likewise.
2031         * system-mingw.ads: Likewise.
2032         * system-rtems.ads: Likewise.
2033         * system-solaris-sparc.ads: Likewise.
2034         * system-solaris-sparcv9.ads: Likewise.
2035         * system-solaris-x86.ads: Likewise.
2036         * system-solaris-x86_64.ads: Likewise.
2037         * system-tru64.ads: Likewise.
2038         * system-vms-ia64.ads: Likewise.
2039         * system-vms-zcx.ads: Likewise.
2040         * system-vms.ads: Likewise.
2041         * system-vms_64.ads: Likewise.
2042         * system-vxworks-arm.ads: Likewise.
2043         * system-vxworks-m68k.ads: Likewise.
2044         * system-vxworks-mips.ads: Likewise.
2045         * system-vxworks-ppc.ads: Likewise.
2046         * system-vxworks-sparcv9.ads: Likewise.
2047         * system-vxworks-x86.ads: Likewise.
2048         * system.ads: Likewise.
2049         * table.adb: Likewise.
2050         * table.ads: Likewise.
2051         * targext.c: Likewise.
2052         * targparm.ads: Likewise.
2053         * tree_in.adb: Likewise.
2054         * tree_in.ads: Likewise.
2055         * tree_io.adb: Likewise.
2056         * tree_io.ads: Likewise.
2057         * types.adb: Likewise.
2058         * types.ads: Likewise.
2059         * uintp.adb: Likewise.
2060         * uintp.ads: Likewise.
2061         * uname.adb: Likewise.
2062         * uname.ads: Likewise.
2063         * urealp.adb: Likewise.
2064         * urealp.ads: Likewise.
2065         * vx_stack_info.c: Likewise.
2066         * widechar.adb: Likewise.
2067         * widechar.ads: Likewise.
2068         * exp_attr.adb: Change copyright header to refer to version
2069         3 of the GNU General Public License and to point readers at the
2070         COPYING3 file and the FSF's license web page.
2071         * sem.adb: Likewise.
2072         * sem_attr.ads: Likewise.
2073         * freeze.adb: Likewise.
2074         * freeze.ads: Likewise.
2075         * errout.ads: Likewise.
2076         * erroutc.adb: Likewise.
2077         * exp_ch11.ads: Likewise.
2078
2079 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2080
2081         * config-lang.in: Change copyright header to refer to version
2082         3 of the GNU General Public License and to point readers at the
2083         COPYING3 file and the FSF's license web page.
2084         * gcc-interface/trans.c: Likewise.
2085         * gnathtml.pl: Likewise.
2086         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
2087         * gcc-interface/gigi.h: Likewise.
2088         * gcc-interface/misc.c: Likewise.
2089         * gcc-interface/targtyps.c: Likewise.
2090
2091 2009-04-09  Nicolas Setton  <setton@adacore.com>
2092
2093         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
2094
2095         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
2096         struct_timeval.
2097
2098 2009-04-09  Bob Duff  <duff@adacore.com>
2099
2100         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
2101         internally-generated nodes related to select statements to avoid
2102         confusing the debugger.
2103
2104 2009-04-09  Pascal Obry  <obry@adacore.com>
2105
2106         * make.adb: Ensure that all linker arguments are duplicated.
2107
2108 2009-04-09  Robert Dewar  <dewar@adacore.com>
2109
2110         * sem_ch5.adb: Minor reformatting
2111
2112 2009-04-09  Vincent Celier  <celier@adacore.com>
2113
2114         * vms_data.ads:
2115         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
2116         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
2117         New qualifier /LXDEBUG=nnn for -gnatDnnn
2118         For H820-010
2119
2120         * gnat_ugn.texi:
2121         Update documentation for VMS qualifiers equivalent to -gnatGnn and
2122         -gnatDnn
2123
2124 2009-04-09  Nicolas Setton  <setton@adacore.com>
2125
2126         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
2127         to match layout of siginfo_t in sys/signal.h.
2128
2129         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
2130
2131 2009-04-09  Thomas Quinot  <quinot@adacore.com>
2132
2133         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
2134
2135 2009-04-09  Nicolas Setton  <setton@adacore.com>
2136
2137         * s-oscons-tmplt.c: Allow long lines in the generated spec.
2138         Add generation of Darwin-specific constants needed when binding to the
2139         pthread library.
2140
2141 2009-04-09  Robert Dewar  <dewar@adacore.com>
2142
2143         * checks.adb:
2144         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
2145         when no invalid values exist, Avoid duplicate read of atomic variable.
2146
2147         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
2148         (Standard_Unsigned): Set Is_Known_Valid
2149
2150         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
2151         subtype declaration if no constraint.
2152         (Set_Modular_Size): Set Is_Known_Valid if appropriate
2153         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
2154
2155 2009-04-09  Robert Dewar  <dewar@adacore.com>
2156
2157         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
2158         switch.ads: for numeric switches, an optional equal sign is always
2159         allowed.
2160
2161 2009-04-09  Vincent Celier  <celier@adacore.com>
2162
2163         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
2164         the case of file names is not significant.
2165
2166 2009-04-09  Vincent Celier  <celier@adacore.com>
2167
2168         * errout.adb: Remove dependency on package Style
2169
2170         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
2171         moved to Stylesw.
2172         
2173         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
2174         Styleg.
2175
2176         * errutil.adb, par.adb: Import Stylesw
2177
2178 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
2179
2180         * opt.ads: Fix typos.
2181
2182 2009-04-09  Robert Dewar  <dewar@adacore.com>
2183
2184         * einfo.adb: Minor reformatting
2185
2186 2009-04-09  Robert Dewar  <dewar@adacore.com>
2187
2188         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
2189         units.
2190
2191         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
2192
2193 2009-04-09  Robert Dewar  <dewar@adacore.com>
2194
2195         * g-comver.adb: Minor reformatting.
2196
2197 2009-04-09  Thomas Quinot  <quinot@adacore.com>
2198
2199         * lib-load.ads (Load_Unit): Update documentation.
2200
2201 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
2202
2203         * lib-load.adb (Load_Unit): When loading the parent of a child unit
2204         named in a with_clause, retain the with_clause to preserve a
2205         limited_with indication.
2206
2207 2009-04-09  Robert Dewar  <dewar@adacore.com>
2208
2209         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
2210         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
2211         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
2212         possible to replace an OR of two separate tests.
2213
2214 2009-04-09  Robert Dewar  <dewar@adacore.com>
2215
2216         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
2217         Maximum_Messages.
2218         
2219         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
2220         warning status as well.
2221         
2222         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
2223         
2224         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
2225         Maximum_Messages.
2226         
2227         * bindusg.adb, usage.adb: Update line for -gnatm switch
2228
2229         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
2230         -mnn binder switch.
2231
2232 2009-04-09  Robert Dewar  <dewar@adacore.com>
2233
2234         * sem_ch10.adb: Minor reformatting.
2235
2236 2009-04-09  Bob Duff  <duff@adacore.com>
2237
2238         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
2239         Set Sloc of generated nodes for calls to Undefer_Aborts and
2240         Save_Occurrence to No_Location, so the debugger ignores them and
2241         therefore does not jump back and forth when single stepping.
2242
2243 2009-04-09  Robert Dewar  <dewar@adacore.com>
2244
2245         * switch-b.adb: Minor reformatting.
2246
2247 2009-04-09  Robert Dewar  <dewar@adacore.com>
2248
2249         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
2250         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
2251         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
2252         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
2253         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
2254         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
2255         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
2256         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
2257         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
2258         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
2259         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
2260
2261 2009-04-09  Robert Dewar  <dewar@adacore.com>
2262
2263         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
2264
2265         * atree.h: Add Elist26
2266
2267         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
2268         backends.
2269
2270 2009-04-09  Javier Miranda  <miranda@adacore.com>
2271
2272         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
2273         retrieve from the Dispatch_Table_Wrappers list the external name.
2274         Addition of documentation.
2275         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
2276         used to export secondary dispatch tables (in the previous version of
2277         the frontend only primary dispatch tables were exported). Addition of
2278         documentation.
2279         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
2280         dispatch table of a given tagged type. 
2281         (Make_Tags): Modified to import secondary dispatch tables.
2282
2283         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
2284         (Constant_Redeclaration): Code cleanup.
2285
2286         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
2287         Dispatch_Table_Wrappers.  Update documentation.
2288
2289         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
2290         Renamed to Dispatch_Table_Wrappers.
2291
2292         * sem_util.adb (Collect_Interface_Components): Improve handling of
2293         private types.
2294
2295         * atree.ads (Elist26, Set_Elist26): New subprograms
2296
2297         * atree.adb (Elist26, Set_Elist26): New subprograms
2298
2299 2009-04-09  Javier Miranda  <miranda@adacore.com>
2300
2301         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
2302         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
2303         tagged types.
2304
2305 2009-04-09  Robert Dewar  <dewar@adacore.com>
2306
2307         * s-direio.adb: Minor reformatting
2308
2309         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
2310
2311 2009-04-09  Robert Dewar  <dewar@adacore.com>
2312
2313         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
2314
2315 2009-04-09  Pascal Obry  <obry@adacore.com>
2316
2317         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
2318         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
2319         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
2320         a-filico.ads: Add some missing overriding keywords.
2321
2322 2009-04-09  Pascal Obry  <obry@adacore.com>
2323
2324         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
2325         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
2326         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
2327         reformatting.
2328
2329 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
2330
2331         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
2332         missing overriding indicator if the new declaration is not seen as
2333         primitive.
2334
2335 2009-04-09  Thomas Quinot  <quinot@adacore.com>
2336
2337         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
2338         overflows in computation of bounds.
2339
2340 2009-04-09  Pascal Obry  <obry@adacore.com>
2341
2342         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
2343         typos in comment.
2344
2345 2009-04-09  Robert Dewar  <dewar@adacore.com>
2346
2347         * sem_attr.adb (Check_Stream_Attribute): Check violation of
2348         restriction No_Streams
2349
2350         * gnat_rm.texi: Clarify No_Streams restriction
2351
2352         * g-socket.adb: Minor reformatting.
2353
2354 2009-04-09  Thomas Quinot  <quinot@adacore.com>
2355
2356         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
2357
2358 2009-04-09  Geert Bosch  <bosch@adacore.com>
2359
2360         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
2361         (Set_Result): Likewise.
2362         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
2363         conversion, as required by RM 4.6(31).
2364
2365 2009-04-08  Robert Dewar  <dewar@adacore.com>
2366
2367         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
2368         suppressed.
2369         
2370         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
2371         resolution steps.
2372
2373 2009-04-08  Robert Dewar  <dewar@adacore.com>
2374
2375         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
2376         No_Local_Allocators restriction preventing local instantiation.
2377
2378 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2379
2380         * sem_eval.adb: Minor comment fix
2381
2382 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2383
2384         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
2385         New limited controlled type used to automate the initialization and
2386         finalization of the sockets implementation.
2387         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
2388
2389 2009-04-08  Vincent Celier  <celier@adacore.com>
2390
2391         * prj-attr.adb: New read-only project-level attribute Project_Dir
2392
2393         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
2394         read-only attribute of the same name.
2395         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
2396         (Recursive_Process): Ditto
2397
2398         * snames.adb: Add new standard name Project_Dir
2399
2400         * snames.ads: Add new standard name Project_Dir
2401
2402 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2403
2404         * checks.adb: Minor reformatting
2405
2406 2009-04-08  Vincent Celier  <celier@adacore.com>
2407
2408         * vms_data.ads: Add documentation for new style keyword
2409         OVERRIDING_INDICATORS
2410
2411 2009-04-08  Robert Dewar  <dewar@adacore.com>
2412
2413         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
2414         spec is in the current unit.
2415
2416 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2417
2418         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
2419         presence of entity.
2420
2421         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
2422
2423 2009-04-08  Vincent Celier  <celier@adacore.com>
2424
2425         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
2426
2427 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2428
2429         * checks.ads: Minor reformatting
2430
2431 2009-04-08  Robert Dewar  <dewar@adacore.com>
2432
2433         * gnat_rm.texi: Update documentation of pragma Obsolescent
2434         
2435         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
2436         be omitted, and allow Entity parameter to be omitted.
2437
2438 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2439
2440         * exp_util.adb: Minor comment fix
2441
2442 2009-04-08  Robert Dewar  <dewar@adacore.com>
2443
2444         * g-socket.ads: Fix bad syntax in pragma Obsolescent
2445
2446         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
2447         argument with no identifier following one that has an identifier. Was
2448         missed in some cases.
2449
2450         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
2451         identifier.
2452         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
2453
2454         * snames.adb: Add Name_Policy
2455
2456         * snames.ads: Add Name_Policy
2457
2458 2009-04-08  Robert Dewar  <dewar@adacore.com>
2459
2460         * gnat_rm.texi: Minor reformatting
2461
2462         * par-ch2.adb: Minor reformatting
2463
2464 2009-04-08  Robert Dewar  <dewar@adacore.com>
2465
2466         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
2467
2468 2009-04-08  Robert Dewar  <dewar@adacore.com>
2469
2470         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
2471         properly in the presence of Remote_Types or Remote_Call_Interface.
2472
2473         * sem_util.adb: Add comment.
2474
2475 2009-04-08  Robert Dewar  <dewar@adacore.com>
2476
2477         * ug_words: Add /ASSUME_VALID for -gnatB
2478
2479         * vms_data.ads: Add /ASSUME_VALID for -gnatB
2480
2481         * sem_cat.adb: Add clarifying commment
2482
2483         * a-direio.ads (Bytes): Make sure value is non-zero
2484
2485 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2486
2487         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
2488         that does not come from source, check for a rewritten function call in
2489         prefixed notation before other forms of rewriting.
2490
2491 2009-04-08  Robert Dewar  <dewar@adacore.com>
2492
2493         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
2494         these are now obsolescent units used only for bootrapping with an
2495         older compiler.
2496
2497 2009-04-08  Robert Dewar  <dewar@adacore.com>
2498
2499         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
2500
2501         * sem_ch3.adb: Minor comment updates
2502
2503 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2504
2505         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
2506         that come from source.
2507
2508 2009-04-08  Tristan Gingold  <gingold@adacore.com>
2509
2510         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
2511         * gcc-interface/decl.c (prepend_attributes): New case
2512         Pragma_Thread_Local_Storage.
2513         * gcc-interface/utils.c (process_attributes): New case
2514         ATTR_THREAD_LOCAL_STORAGE.
2515
2516 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2517
2518         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
2519         by the back-end if it contains a call to a subprogram without a
2520         previous spec that is declared in the same unit.
2521
2522         * errout.ads: Update comments on uses of dirs
2523
2524 2009-04-08  Robert Dewar  <dewar@adacore.com>
2525
2526         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
2527
2528 2009-04-08  Tristan Gingold  <gingold@adacore.com>
2529
2530         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
2531         variables.
2532         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
2533
2534 2009-04-08  Vincent Celier  <celier@adacore.com>
2535
2536         * prj-nmsc.adb:
2537         (Add_Source): Add the mapping of the unit name to source file name in
2538         the Unit_Sources_HT hash table, if the unit name is not null.
2539
2540         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
2541
2542         * prj.ads (Unit_Sources_Htable): New hash table instantiation
2543         (Project_Tree_Data): New component Unit_Sources_HT
2544
2545 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2546
2547         * sem_ch8.adb: Minor reformatting.
2548         Minor code reorganization.
2549
2550 2009-04-08  Robert Dewar  <dewar@adacore.com>
2551
2552         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
2553         snames.ads, freeze.adb, par-prag.adb: Add implementation of
2554         pragma Thread_Local_Storage, setting new flag
2555         Has_Pragma_Thread_Local_Storage in corresponding entities.
2556
2557 2009-04-08  Emmanuel Briot  <briot@adacore.com>
2558
2559         * prj.ads: Update comment on switches file
2560
2561         * prj-nmsc.adb: Code clean up. Use renaming clauses.
2562
2563 2009-04-08  Robert Dewar  <dewar@adacore.com>
2564
2565         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
2566
2567 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2568
2569         * ali-util.adb: Minor comment fix
2570
2571 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2572
2573         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
2574         appears in a context clause, and the enclosing package is mentioned in
2575         a limited_with_clause.
2576         (Use_One_Type): Reject clause if type is still incomplete.
2577
2578 2009-04-08  Emmanuel Briot  <briot@adacore.com>
2579
2580         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
2581         avoid copies of Source_Data variables when possible, since these
2582         involve calls to memcpy() which are done too many times.
2583
2584 2009-04-08  Robert Dewar  <dewar@adacore.com>
2585
2586         * exp_ch4.adb (Expand_Concatenate): Clean up code
2587
2588 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2589
2590         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
2591         type for the case of concatenating a constrained array indexed by an
2592         enumeration type.
2593
2594 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2595
2596         * sem_ch6.adb (Check_Conformance): when checking conformance of an
2597         operation that overrides an abstract operation inherited from an
2598         interface, return False if only one of the controlling formals is an
2599         access parameter.
2600
2601 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2602
2603         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
2604         mandated by AI05-105.
2605
2606 2009-04-07  Vincent Celier  <celier@adacore.com>
2607
2608         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
2609
2610 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2611
2612         * usage.adb: Minor fix in usage message.
2613
2614         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
2615         match declaration; the correct subtype is Node_Id, not Entity_Id,
2616         because the expected node kind is an identifier, not a defining
2617         identifier.
2618
2619         * switch-c.adb: Minor reformatting.
2620
2621         * uintp.adb: Minor reformatting.
2622
2623 2009-04-07  Robert Dewar  <dewar@adacore.com>
2624
2625         * exp_ch13.adb: Minor reformatting
2626
2627 2009-04-07  Robert Dewar  <dewar@adacore.com>
2628
2629         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
2630         against missing parent.
2631
2632 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2633
2634         * xoscons.adb: Minor reformatting
2635
2636 2009-04-07  Robert Dewar  <dewar@adacore.com>
2637
2638         * rtsfind.ads: Remove obsolete string concatenation entries
2639
2640 2009-04-07  Robert Dewar  <dewar@adacore.com>
2641
2642         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
2643
2644 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2645
2646         * sem_ch10.adb (Check_Body_Required): Handle properly imported
2647         subprograms.
2648
2649 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
2650
2651         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
2652         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
2653         is of a scalar or string type then suppress the setting of the
2654         expression to Empty.
2655
2656         * freeze.adb (Warn_Overlay): Also emit the warnings about default
2657         initialization for the cases of scalar and string objects when
2658         Init_Or_Norm_Scalars is True.
2659
2660 2009-04-07  Bob Duff  <duff@adacore.com>
2661
2662         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
2663
2664 2009-04-07  Bob Duff  <duff@adacore.com>
2665
2666         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
2667         Form parameter of Text_Translation=No allows binary mode for Text_IO
2668         files.
2669
2670         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
2671
2672 2009-04-07  Javier Miranda  <miranda@adacore.com>
2673
2674         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
2675         processing the bounds for bit packed arrays or VM target machines.
2676
2677 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2678
2679         * g-sothco.ads (Int_Access): Remove extraneous access type (use
2680         anonymous access instead).
2681         (Get_Socket_From_Set): Fix incorrectly reverted formals
2682         Last and Socket to match the underlying C routine.
2683
2684         * g-socket.adb, g-socket.ads
2685         (Get): Use named parameter associations instead of positional ones in
2686         call go Get_Socket_From_Set, since this routine has two formals of the
2687         same type.
2688         (Image): New procedure.
2689
2690         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2691         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
2692         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
2693         for type of Arg formal.
2694
2695         * sem_warn.adb: Minor reformatting
2696
2697 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2698
2699         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
2700         over record components.
2701
2702 2009-04-07  Nicolas Roche  <roche@adacore.com>
2703
2704         * gsocket.h:
2705         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
2706         has disappeared between VxWorks 6.4 and VxWorks 6.5
2707         In RTP mode use time.h instead of times.h
2708
2709 2009-04-07  Robert Dewar  <dewar@adacore.com>
2710
2711         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
2712
2713 2009-04-07  Kevin Pouget  <pouget@adacore.com>
2714
2715         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
2716         expanded code for constrained types.
2717
2718 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2719
2720         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
2721         AI05-105: in an object renaming declaration, anonymousness is a name
2722         resolution rule.
2723
2724         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2725
2726 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
2727
2728         * g-comlin.adb (Expansion): Fix old regression: also return directory
2729         names when matching.
2730
2731 2009-04-07  Robert Dewar  <dewar@adacore.com>
2732
2733         * exp_ch4.adb:
2734         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
2735         (Expand_Concatenate): New name for Expand_Concatenate_String which has
2736         been rewritten to handle all types.
2737         (Expand_Concatenate_Other): Remove
2738
2739 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2740
2741         * lib-xref.adb (Generate_Reference): A default subprogram in an
2742         instance appears within the tree for the instance, but generates an
2743         implicit reference in the ALI.
2744
2745 2009-04-07  Javier Miranda  <miranda@adacore.com>
2746
2747         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
2748         derived type that has discriminants, propagate the list of interfaces
2749         to the corresponding new base type. In addition, propagate also
2750         attribute Limited_Present (found working in this patch).
2751
2752 2009-04-07  Robert Dewar  <dewar@adacore.com>
2753
2754         * exp_ch4.adb: Rewrite concatenation expansion.
2755
2756 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2757
2758         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
2759         relevant to packages.
2760
2761 2009-04-07  Robert Dewar  <dewar@adacore.com>
2762
2763         * sem_attr.adb: Minor reformatting
2764
2765         * sem_ch6.adb: Minor reformatting
2766
2767 2009-04-07  Tristan Gingold  <gingold@adacore.com>
2768
2769         * socket.c: Add more protections against S_resolvLib_ macros.
2770
2771 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2772
2773         * sem_attr.adb: Minor reformatting
2774
2775 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2776
2777         * sem_ch6.adb (New_Overloaded_Entity): New predicate
2778         Is_Overriding_Alias to handle properly types that inherit two homonym
2779         operations that have distinct dispatch table entries.
2780
2781 2009-04-07  Emmanuel Briot  <briot@adacore.com>
2782
2783         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
2784         looking for the end of a parenthesis group
2785
2786 2009-04-07  Tristan Gingold  <gingold@adacore.com>
2787
2788         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
2789
2790         * socket.c Don't use resolvLib_ macros if not defined.
2791
2792 2009-04-07  Robert Dewar  <dewar@adacore.com>
2793
2794         * g-socket.adb: Minor reformatting.
2795
2796         * g-socthi-mingw.adb: Minor reformatting
2797
2798         * g-sothco.ads: Minor reformatting
2799
2800         * exp_ch4.adb:
2801         (Expand_Concatenate_String): Complete rewrite to generate efficient code
2802         inline instead of relying on external library routines.
2803
2804         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
2805         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
2806         obsolescent
2807
2808 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2809
2810         * sem_attr.adb:
2811         (Eval_Attribute): for attributes of array objects that are not strings,
2812         attributes are not static if nominal subtype of object is unconstrained.
2813
2814 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2815
2816         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
2817         operations for a type T in an instance do not override each other,
2818         when T is derived from a formal private type, the corresponding
2819         operations inherited by a type derived from T outside
2820         of the instance do not override each other either.
2821
2822 2009-04-07  Robert Dewar  <dewar@adacore.com>
2823
2824         (Osint.Fail): Change calling sequence to have one string arg
2825         (Make.Make_Failed): Same change
2826         All callers are adjusted to use concatenation
2827
2828 2009-04-07  Robert Dewar  <dewar@adacore.com>
2829
2830         * exp_ch4.adb: Fix documentation typo
2831
2832 2009-04-07  Robert Dewar  <dewar@adacore.com>
2833
2834         * tbuild.ads: Minor reformatting
2835
2836 2009-04-07  Javier Miranda  <miranda@adacore.com>
2837
2838         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
2839         when compiling under ZFP runtime.
2840
2841 2009-04-07  Robert Dewar  <dewar@adacore.com>
2842
2843         * g-comlin.adb: Minor reformatting
2844
2845 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2846
2847         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2848         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2849         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
2850         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
2851
2852 2009-04-07  Robert Dewar  <dewar@adacore.com>
2853
2854         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
2855
2856         * opt.ads (Sprint_Line_Limit): New parameter
2857         
2858         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
2859         
2860         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
2861         
2862         * usage.adb: Output information for -gnatGnn -gnatDnn
2863
2864 2009-04-07  Robert Dewar  <dewar@adacore.com>
2865
2866         * make.adb: Minor reformatting
2867
2868 2009-04-07  Robert Dewar  <dewar@adacore.com>
2869
2870         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
2871
2872 2009-04-07  Robert Dewar  <dewar@adacore.com>
2873
2874         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
2875
2876 2009-04-07  Robert Dewar  <dewar@adacore.com>
2877
2878         * checks.adb:
2879         Remove Assume_Valid parameter from In_Subrange_Of calls
2880         
2881         * sem_eval.adb:
2882         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2883         (Is_In_Range): Remove incorrect use of Assume_Valid
2884         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
2885         
2886         * sem_eval.ads:
2887         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2888         (Is_In_Range): Documentation cleanup
2889         (Is_Out_Of_Range): Documentation cleanup
2890
2891         * gnat_rm.texi:
2892         Add documentation for Assume_No_Invalid_Values pragma
2893
2894         * sem_ch12.adb: Minor reformatting
2895
2896         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
2897
2898         * sem_prag.adb: Improve error message.
2899
2900         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
2901         LF/CR no longer recognized as line terminator
2902
2903         * switch.ads: Minor documentation improvement
2904
2905         * vms_data.ads: Minor reformatting
2906
2907 2009-04-07  Robert Dewar  <dewar@adacore.com>
2908
2909         * checks.adb (Determine_Range): Add Assume_Valid parameter
2910         
2911         * checks.ads (Determine_Range): Add Assume_Valid parameter
2912         
2913         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
2914          Is_Null_Loop to suppress warnings in a loop body.
2915         
2916         * exp_ch4.adb:
2917         (Rewrite_Comparison): Major rewrite to accomodate invalid values
2918         
2919         * exp_ch5.adb:
2920         (Expand_N_Loop_Statement): Delete loop known not to execute
2921         
2922         * opt.ads:
2923         (Assume_No_Invalid_Values): Now set to False, and as documented, this
2924          fully enables the proper handling of invalid values.
2925         
2926         * sem_attr.adb:
2927         New calling sequence for Is_In_Range
2928         
2929         * sem_ch5.adb:
2930         (Analyze_Iteration_Scheme): Accomodate possible invalid values
2931          in determining if a loop range is null.
2932         
2933         * sem_eval.adb:
2934         (Is_In_Range): Add Assume_Valid parameter
2935         (Is_Out_Of_Range): Add Assume_Valid_Parameter
2936         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
2937          also to do more accurate and complete range analysis, catching more
2938          cases.
2939         
2940         * sem_eval.ads:
2941         (Is_In_Range): Add Assume_Valid parameter
2942         (Is_Out_Of_Range): Add Assume_Valid_Parameter
2943         
2944         * sem_util.adb:
2945         New calling sequence for Is_In_Range
2946         
2947         * sinfo.adb:
2948         (Suppress_Loop_Warnings): New flag
2949         
2950         * sinfo.ads:
2951         (Is_Null_Loop): Update documentation
2952         (Suppress_Loop_Warnings): New flag
2953         
2954         * gnat_ugn.texi: Document -gnatB switch
2955
2956 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
2957
2958         * gnatvsn.ads: Bump version number.
2959
2960 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2961
2962         * exp_ch3.adb: Minor rewording (comments)
2963
2964 2009-04-07  Robert Dewar  <dewar@adacore.com>
2965
2966         * exp_disp.adb: Minor reformatting
2967
2968 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2969
2970         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
2971         underlying type.
2972         * gcc-interface/trans.c (lvalue_required_p): Likewise.
2973
2974 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2975
2976         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
2977         Do not convert the result.  Remove obsolete comment.
2978
2979 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2980
2981         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
2982         DECL_CONTEXT.
2983         (Subprogram_Body_to_gnu): Fix pasto.
2984
2985 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2986
2987         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
2988         (void_type_decl_node): Remove.
2989         (init_gigi_decls): Likewise.
2990         (gnat_install_builtins): Declare.
2991         (record_builtin_type): Likewise.
2992         (create_type_stub_decl): Likewise.
2993         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
2994         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
2995         artificial.
2996         <E_Array_Subtype>: Use the index types, not only their name, in the
2997         record giving the names of the bounds, if any.
2998         For a packed array type, make it artificial only if the base type
2999         was artificial as well.  Remove redundant statement.
3000         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
3001         dummy types.
3002         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
3003         (rest_of_type_decl_compilation_no_defer): Likewise.
3004         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
3005         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
3006         and use create_type_stub_decl to build it.
3007         (gnat_pushdecl): Rewrite condition.
3008         (gnat_install_builtins): Remove bogus declaration.
3009         (record_builtin_type): New function.
3010         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
3011         of types.
3012         (create_type_stub_decl): New function.
3013         (create_type_decl): Assert that the type is not dummy.  If the type
3014         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
3015         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
3016         (build_vms_descriptor): Likewise.
3017         (init_gigi_decls): Delete and move bulk of code to...
3018         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
3019         (emit_range_check): Add gnat_node parameter.
3020         (emit_index_check): Likewise.
3021         (emit_check): Likewise.
3022         (build_unary_op_trapv): Likewise.
3023         (build_binary_op_trapv): Likewise.
3024         (convert_with_check): Likewise.
3025         (Attribute_to_gnu): Adjust calls for above changes.
3026         (call_to_gnu): Likewise.
3027         (gnat_to_gnu): Likewise.
3028         (assoc_to_constructor): Likewise.
3029         (pos_to_constructor): Likewise.
3030         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
3031         (process_type): Do not create TYPE_DECL for dummy types.
3032
3033 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3034
3035         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
3036         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
3037         * gcc-interface/utils.c: Fix comments.
3038
3039 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3040
3041         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
3042         move around.
3043         (gnat_to_gnu_type): Move around.
3044         (get_unpadded_type): Likewise.
3045         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
3046         Tidy comments.
3047
3048 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3049
3050         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
3051         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
3052         (call_to_gnu): Invoke it instead of manually checking.
3053
3054 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3055
3056         * gcc-interface/utils.c (finish_record_type): Force structural equality
3057         checks if the record type is discriminated.
3058
3059 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3060
3061         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
3062         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
3063         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
3064         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
3065         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
3066         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
3067         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
3068
3069 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
3070
3071         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
3072         of TREE_CONSTANT_OVERFLOW.
3073
3074 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
3075
3076         PR rtl-optimization/323
3077         * gcc-interface/misc.c (gnat_post_options): Set
3078         flag_excess_precision_cmdline.  Give an error for
3079         -fexcess-precision=standard for processors where the option is
3080         significant.
3081
3082 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3083
3084         PR c/39323
3085         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
3086         on bit_align.
3087
3088 2009-03-11  Olivier Hainque  <hainque@adacore.com>
3089
3090         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
3091         checks processing, remove unintended TREE_TYPE walk on index type.
3092
3093 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
3094
3095         PR ada/39264
3096         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
3097         call make_packable_type on fat pointer types.
3098         <E_Array_Subtype>: Likewise.
3099         <E_Record_Subtype>: Call make_packable_type on all record types
3100         except for fat pointer types.
3101         (make_packable_type): Likewise.
3102         (gnat_to_gnu_field): Likewise.
3103
3104 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
3105
3106         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
3107         EH_MECHANISM change made on 2007-12-06.
3108
3109 2009-02-26  Andreas Schwab  <schwab@suse.de>
3110
3111         PR ada/39172
3112         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
3113         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
3114         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
3115         (AWK): Substitute.
3116         (target_cpu_default): Substitute.
3117
3118 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
3119
3120         PR ada/39221
3121         * a-teioed.adb (Expand): Fix Result overflow.
3122
3123 2009-02-25  Laurent GUERBY <laurent@guerby.net>
3124
3125         * gcc-interface/Makefile.in: Fix multilib handling for
3126         sparc64-linux.
3127
3128 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3129
3130         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
3131
3132 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3133
3134         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
3135
3136 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
3137
3138         * gcc-interface/deftarg.c: Remove.
3139
3140 2009-02-10  Olivier Hainque  <hainque@adacore.com>
3141             Eric Botcazou  <ebotcazou@adacore.com>
3142
3143         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
3144         (copy_alias_set): Rename into...
3145         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
3146         underlying array of unconstrained arrays for the new type as well.
3147         If the old and new alias sets don't conflict, make one a subset of
3148         the other as per the OP parameter.
3149         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
3150         <E_Record_Type>: Do not copy the alias set for derived types.
3151         For all types, make the alias set of derived types a superset of
3152         that of their parent type.
3153         (make_aligning_type): Adjust calls to copy_alias_set.
3154         (make_packable_type): Likewise.
3155         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
3156         Check for alias set conflict instead of strict equality to issue the
3157         warning.
3158
3159 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
3160
3161         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3162         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
3163         (copy_alias_set): Assert that arrays have the same aliasing settings.
3164         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
3165
3166 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
3167
3168         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3169         Set TYPE_NONALIASED_COMPONENT on the array type.
3170
3171 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
3172
3173         * gcc-interface/Makefile.in: Fix mipsel linux handling.
3174
3175 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
3176
3177         * gcc-interface/Makefile.in: Fix multilib handling for
3178         powerpc64-linux.
3179
3180 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
3181
3182         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
3183         only useless conversions around renamed objects.
3184
3185 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3186
3187         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
3188         the _Tag field before any discriminants in the field list.
3189         (components_to_record): Remove obsolete comment.
3190
3191 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
3192
3193         PR ada/38450
3194         * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
3195         * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
3196         Likewise.
3197
3198 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
3199
3200         PR bootstrap/38262
3201         * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
3202
3203 2008-11-29  Eric Botcazou  <ebotcazou@adacore.com>
3204
3205         PR ada/30827
3206         * g-comver.adb (Ver_Len_Max): Fix inconsistency.
3207
3208 2008-11-27  Eric Botcazou  <ebotcazou@adacore.com>
3209
3210         * gcc-interface/decl.c: Fix various nits.
3211
3212 2008-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3213
3214         * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
3215
3216 2008-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3217
3218         PR ada/38127
3219         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
3220         special-case boolean types.  Propagate  the name.
3221         * gcc-interface/targtyps.c: Tweak comment.
3222
3223 2008-11-15  Geert Bosch  <bosch@adacore.com>
3224
3225         * gcc-interface/trans.c (emit_check): Put back a final save_expr
3226         to prevent exponential expansion during gimplification.
3227
3228 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3229
3230         * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
3231
3232 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3233
3234         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
3235         initialized to a static constant to be statically allocated even if
3236         they are of a padding type, provided the original type also has
3237         constant size.
3238
3239 2008-11-15  Laurent Guerby  <laurent@guerby.net>
3240
3241         PR ada/37993
3242         * gcc-interface/Makefile.in: Add multilib handling for x86_64
3243         on darwin.
3244         * system-darwin-x86_64.ads: New file.
3245
3246 2008-11-13  Olivier Hainque  <hainque@adacore.com>
3247
3248         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
3249         Turn Ada Pure on subprograms back into GCC CONST when eh constructs
3250         are explicit to the middle-end.  Tidy.
3251
3252 2008-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3253
3254         * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
3255         (MINUS_NOMOD_EXPR): Likewise.
3256         * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
3257         unreachable.
3258         <PLUS_NOMOD_EXPR>: New case.
3259         <MINUS_NOMOD_EXPR>: Likewise.
3260         * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
3261         assignment statement instead of using an increment operator.
3262
3263 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3264
3265         * system-irix-n64.ads: New file.
3266         * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
3267         multilibs.
3268
3269 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3270
3271         PR ada/37681
3272         * system-solaris-x86_64.ads: New file.
3273         * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
3274
3275 2008-11-07  Bechir Zalila  <bechir.zalila@gmail.com>
3276             Eric Botcazou  <ebotcazou@adacore.com>
3277
3278         PR ada/34289
3279         * lib.ads: (Enable_Switch_Storing): Declare.
3280         * lib.adb: (Enable_Switch_Storing): New procedure.
3281         * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
3282         * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
3283         (Display): Never display -gnatea
3284         * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
3285
3286 2008-11-07  Thomas Quinot  <quinot@adacore.com>
3287
3288         * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
3289         for empty range in original base type, not converted result type.
3290
3291 2008-11-07  Geert Bosch  <bosch@adacore.com>
3292
3293         * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
3294         and result for call to __gnat_mulv64.
3295
3296 2008-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3297
3298         * gcc-interface/trans.c: Fix formatting nits.
3299
3300 2008-11-07  Geert Bosch  <bosch@adacore.com>
3301
3302         * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
3303         overflow check for constant result.
3304
3305 2008-11-07  Geert Bosch  <bosch@adacore.com>
3306
3307         * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
3308         overflow check for addition/subtraction if neither operand is constant.
3309
3310 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
3311
3312         * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
3313         files for the target-dependent part of the runtime.
3314         (SPARC/Linux): Likewise.
3315
3316 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
3317
3318         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
3319         optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
3320         purposes.
3321
3322 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
3323
3324         * gcc-interface/misc.c (gnat_printable_name): Always return a copy
3325         in GC memory.
3326
3327 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
3328
3329         PR ada/19419
3330         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
3331         Generate a call to memmove for an assignment between overlapping
3332         array slices.
3333
3334 2008-11-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3335
3336         PR target/37977
3337         * gcc-interface/Makefile.in: Add multilib handling for
3338         s390-linux and s390x-linux.
3339
3340 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
3341
3342         * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
3343         check-acats-subtargets and check-gnat-subtargets.
3344         (check_acats_targets): New variable.
3345         (check-acats-subtargets, check-acats%): New targets.
3346         (check-acats): If -j is used and CHAPTERS is empty, run the testing
3347         in multiple make goals, possibly parallel, and afterwards run
3348         dg-extract-results.sh to merge the sum and log files.
3349
3350 2008-10-17  Geert Bosch  <bosch@adacore.com>
3351
3352         * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
3353         to use only a single check instead of three, and avoid unnecessary
3354         COMPOUND_EXPR.
3355         (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
3356         creating more opportunities for optimizations.
3357
3358 2008-10-13  Jakub Jelinek  <jakub@redhat.com>
3359
3360         PR middle-end/37601
3361         * gcc-interface/utils.c (gnat_types_compatible_p): Handle
3362         NULL TYPE_DOMAIN.
3363
3364 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3365
3366         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
3367         dealing with volatileness to after code dealing with renaming.
3368
3369 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3370
3371         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
3372         * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
3373
3374 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3375
3376         * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
3377         (unchecked_convert): Use it to disable problematic folding with
3378         VIEW_CONVERT_EXPR in the general case.  Always disable it for the
3379         special VIEW_CONVERT_EXPR built for integral types and cope with
3380         its addressability issues by preserving the first conversion.
3381
3382 2008-10-01  Andreas Schwab  <schwab@suse.de>
3383
3384         * system-linux-ppc64.ads: New file.
3385         * gcc-interface/Makefile.in: Add multilib handling for
3386         powerpc-linux.
3387
3388 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
3389
3390         * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
3391         to that of ptr_mode instead of word_mode.
3392
3393 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
3394
3395         PR ada/5911
3396         * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
3397
3398 2008-09-25  Samuel Tardieu  <sam@rfc1149.net>
3399
3400         PR ada/37641
3401         * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
3402         instead of deprecated FILE_WRITE_PROPERTIES.
3403
3404 2008-09-22  Olivier Hainque  <hainque@adacore.com>
3405
3406         * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
3407         are never assigned, volatile entities are not constant for code
3408         generation purposes.
3409
3410 2008-09-21  Laurent Guerby  <laurent@guerby.net>
3411
3412         PR ada/5911
3413         * gcc-interface/Makefile.in: Add multilib handling for x86_64
3414         and sparc.
3415         * system-linux-sparcv9.ads: New file.
3416
3417 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3418
3419         * exp_dbug.ads: Document new convention for the XVZ variable.
3420         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
3421         debug info if necessary for the type padding the component type.
3422         <E_Array_Subtype>: Likewise.
3423         (maybe_pad_type): Emit the XVZ variable in units.
3424         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
3425         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
3426         on statements generated to initialize the parameter attributes cache.
3427         Set the source line of the end label of the body on the special return
3428         statement built for a procedure with copy-in copy-out parameters.
3429
3430 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3431
3432         PR ada/37585
3433         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
3434         inlined external functions if they contain a nested function not
3435         declared inline.
3436
3437 2008-09-18  Jan Hubicka  <jh@suse.cz>
3438
3439         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
3440         (end_subprog_body): Do not set DECL_INLINE.
3441
3442 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
3443
3444         PR ada/21327
3445         * gnat_ugn.texi: Use proper format in direntry.
3446
3447 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3448
3449         * gcc-interface/trans.c (gigi): Declare the name of the compilation
3450         unit as the first global name.
3451
3452 2008-09-14  Jan Hubicka  <jh@suse.cz>
3453
3454         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
3455
3456 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3457
3458         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
3459         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
3460         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
3461         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
3462         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
3463         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
3464         gcc-interface/gigi.h, gcc-interface/trans.c,
3465         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
3466         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
3467         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
3468         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
3469         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
3470         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3471         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
3472         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
3473         comments.
3474         * gnathtml.pl: Fix typos.
3475
3476 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
3477
3478         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
3479         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
3480         layer. RTEMS binds to OS provided adapter routines so there are
3481         no modifications to s-osinte-rtems.adb.
3482
3483 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
3484             Joel Sherrill  <joel.sherrill@oarcorp.com>
3485
3486        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
3487
3488        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
3489
3490        * s-interr-hwint.adb: New file.
3491
3492         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
3493         needed by s-interr-hwint.adb.
3494
3495         * s-osinte-vxworks-kernel.adb: New file.
3496
3497 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
3498
3499         * s-stchop-rtems.adb: Add file missed in early commit.  Already
3500         referenced in gcc-interface/Makefile.in.
3501
3502 2008-08-30  Thomas Quinot  <quinot@adacore.com>
3503
3504         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
3505         be built even without a separate libada directory.
3506
3507 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
3508
3509         * lib-xref.ads: Fix typo in subprogram reference definition.
3510
3511 2008-08-22  Robert Dewar  <dewar@adacore.com>
3512
3513         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
3514         to avoid warning.
3515
3516         * g-trasym.adb: Ditto
3517
3518         * s-utf_32.adb (Get_Category): Fix obvious typo
3519
3520         * s-wwdcha.adb: Minor code reorganization
3521         Remove dead code
3522
3523 2008-08-22  Robert Dewar  <dewar@adacore.com>
3524
3525         * checks.adb (Determine_Range): Deal with values that might be invalid
3526
3527         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
3528         configuration switches.
3529
3530         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
3531
3532         * sem_prag.adb: Implement pragma Assume_No_Default_Values
3533
3534         * snames.adb, snames.ads, snames.h:
3535         Add entries for pragma Assume_No_Invalid_Values
3536
3537         * switch-c.adb: Add processing for -gnatB switch
3538
3539         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
3540
3541 2008-08-22  Javier Miranda  <miranda@adacore.com>
3542
3543         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
3544         init procedure all the expanded code associated with the spec of
3545         task types and protected types.
3546
3547 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
3548
3549         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
3550         component expression copies rather than directly setting Etype and
3551         Is_Static_Expression.
3552
3553 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
3554
3555         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
3556         private types to allow for types derived from a private type with
3557         preelaborable initialization, but return False for a private extension
3558         (unless it has the pragma).
3559
3560 2008-08-22  Robert Dewar  <dewar@adacore.com>
3561
3562         * opt.ads: Minor code reorganization (put entries in alpha order)
3563
3564 2008-08-22  Pascal Obry  <obry@adacore.com>
3565
3566         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
3567         spawn.
3568
3569 2008-08-22  Geert Bosch  <bosch@adacore.com>
3570
3571         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
3572         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
3573
3574 2008-08-22  Doug Rupp  <rupp@adacore.com>
3575
3576         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
3577         __gnat_set_features.
3578
3579         * init.c
3580         (__gnat_set_features): New function.
3581         (__gnat_features_set): New tracking variable.
3582         (__gl_no_malloc_64): New feature global variable
3583
3584 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3585
3586         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
3587         use_type_clause in an instance.
3588
3589 2008-08-22  Bob Duff  <duff@adacore.com>
3590
3591         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
3592
3593 2008-08-22  Robert Dewar  <dewar@adacore.com>
3594
3595         * exp_ch6.adb: Minor reformatting
3596
3597         * exp_ch7.adb: Minor reformatting
3598
3599         * exp_ch7.ads: Put routines in proper alpha order
3600
3601         * exp_dist.adb: Minor reformatting
3602
3603 2008-08-22  Vincent Celier  <celier@adacore.com>
3604
3605         * prj.ads: Minor comment update
3606
3607 2008-08-22  Robert Dewar  <dewar@adacore.com>
3608
3609         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
3610
3611 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3612
3613         * exp_tss.adb:
3614         (Base_Init_Proc): For a protected subtype, use the base type of the
3615         corresponding record to locate the propoer initialization procedure.
3616
3617 2008-08-22  Robert Dewar  <dewar@adacore.com>
3618
3619         * checks.adb:
3620         (In_Subrange_Of): New calling sequence
3621         (Determine_Range): Prepare for new processing using base type
3622
3623         * exp_ch4.adb:
3624         (Compile_Time_Compare): Use new calling sequence
3625
3626         * exp_ch5.adb:
3627         (Compile_Time_Compare): Use new calling sequence
3628
3629         * sem_eval.adb:
3630         (Compile_Time_Compare): New calling sequence allows dealing with
3631         invalid values.
3632         (In_Subrange_Of): Ditto
3633
3634         * sem_eval.ads:
3635         (Compile_Time_Compare): New calling sequence allows dealing with
3636         invalid values.
3637         (In_Subrange_Of): Ditto
3638
3639 2008-08-22  Pascal Obry  <obry@adacore.com>
3640
3641         * adaint.c: Fix possible race condition on win32_wait().
3642
3643 2008-08-22  Bob Duff  <duff@adacore.com>
3644
3645         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
3646         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
3647         exp_intr.adb, exp_ch3.adb: Rename:
3648         Exp_Ch7.Controlled_Type => Needs_Finalization
3649         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
3650         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
3651          Has_Controlled_Parts
3652         (Has_Some_Controlled_Component): Fix bug in array case.
3653
3654 2008-08-22  Robert Dewar  <dewar@adacore.com>
3655
3656         * sem_ch8.adb: Minor reformatting
3657
3658 2008-08-22  Kevin Pouget  <pouget@adacore.com>
3659
3660         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
3661         Shared_Var_Close procedure specifications from package spec to package body.
3662
3663         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
3664         RE_Shared_Var_WOpen entries.
3665
3666         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
3667         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
3668
3669 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
3670
3671         * init.c: adjust EH support code on Alpha/Tru64 as well.
3672
3673         * raise-gcc.c: Add back a couple of comments.
3674
3675 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3676
3677         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
3678         involved and the return type is class-wide, use the type of the expression
3679         for the generated access type. Suppress useless discriminant checks on the
3680         allocator.
3681
3682 2008-08-22  Bob Duff  <duff@adacore.com>
3683
3684         * exp_ch7.adb: Minor comment fix
3685
3686         * exp_ch6.ads: Minor comment fix
3687
3688 2008-08-22  Thomas Quinot  <quinot@adacore.com>
3689
3690         * sem_ch8.adb: Minor reformatting
3691         Minor code reorganization (introduce subprogram to factor duplicated
3692         code).
3693
3694 2008-08-22  Sergey Rybin  <rybin@adacore.com>
3695
3696         * gnat_ugn.texi: Change the description of gnatcheck default rule
3697         settings.
3698
3699 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
3700
3701         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
3702         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
3703         do not adjust the PC anymore.
3704         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
3705         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
3706
3707         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
3708         instead of _Unwind_GetIP.
3709
3710 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
3711
3712         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
3713         with a range is transformed into a positional aggregate, any copied
3714         component literals should be marked Is_Static_Expression.
3715
3716         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
3717         not being known at at compile time when Configurable_Run_Time_Mode is
3718         true.
3719
3720 2008-08-22  Robert Dewar  <dewar@adacore.com>
3721
3722         * exp_attr.adb:
3723         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
3724         Read or Input attribute.
3725
3726 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3727
3728         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
3729         clauses in related units is redundant, if one of the units is a package
3730         instantiation, use its instance_spec to determine which unit is the
3731         ancestor of the other.
3732
3733 2008-08-22  Javier Miranda  <miranda@adacore.com>
3734
3735         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
3736         attributes add missing support to handle designated types that come
3737         from the limited view.
3738
3739         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
3740
3741 2008-08-22  Sergey Rybin  <rybin@adacore.com>
3742
3743         * vms_data.ads: Add entry for new gnatcheck -mNNN option
3744
3745         * gnat_ugn.texi: Add description for gnatcheck option '-m'
3746
3747 2008-08-22  Sergey Rybin  <rybin@adacore.com>
3748
3749         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
3750         acoording to the latest changes in the metric rule interface
3751
3752 2008-08-22  Vincent Celier  <celier@adacore.com>
3753
3754         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
3755         (Check): Check if the file names registered in the ALI file for the
3756         spec, the body and each of the subunits are the ones expected.
3757
3758 2008-08-22  Robert Dewar  <dewar@adacore.com>
3759
3760         * g-catiio.adb: Code cleanup.
3761
3762 2008-08-20  Vincent Celier  <celier@adacore.com>
3763
3764         * make.adb (Gnatmake): Remove extra space in version line
3765
3766         * ali.adb:
3767         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
3768         as the name may already have been entered in the table by the Project
3769         Manager.
3770
3771 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
3772
3773         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
3774         weak symbols so we use the version provided by MaRTE when available.
3775
3776 2008-08-20  Emmanuel Briot  <briot@adacore.com>
3777
3778         * g-catiio.ads, g-catiio.adb:
3779         (Value): Avoid an unnecessary system call to Clock in most cases.
3780         This call is only needed when only the time is provided in the string,
3781         and ignored in all other cases. This is more efficient.
3782
3783 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
3784
3785         * raise-gcc.c: Fix formatting nits.
3786
3787 2008-08-20  Robert Dewar  <dewar@adacore.com>
3788
3789         * sem_ch13.adb:
3790         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
3791         non-existing component clause.
3792
3793         * exp_ch5.adb: Minor reformatting
3794
3795         * g-comlin.adb: Minor reformatting
3796
3797         * make.adb: Minor reformatting
3798
3799         * prj-proc.adb: Minor reformatting
3800
3801         * stylesw.ads: Minor reformatting
3802
3803 2008-08-20  Vincent Celier  <celier@adacore.com>
3804
3805         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
3806         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
3807         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
3808          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
3809         and a switch is not recognized by gnatmake.
3810         (Gnatmake): Implement new scheme for gnatmake switches and global
3811         compilation switches.
3812         (Switches_Of): Try successively Switches (<file name>),
3813         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
3814
3815 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3816
3817         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
3818         implement style check that overriding operations are explicitly marked
3819         at such.
3820
3821         * style.ads (Missing_Overriding): new procedure that provides interface
3822         to previous one.
3823
3824         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
3825         that the declaration or body of overriding operations carries an
3826         explicit overriding indicator.
3827
3828         * sem_ch8.adb
3829         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
3830         explicit indicator should be present.
3831
3832         * sem_ch6.adb (Verify_Overriding_Indicator,
3833         Check_Overriding_Indicator): If operation is overriding, check whether
3834         declaration and/or body of subprogram should be present
3835
3836 2008-08-20  Vincent Celier  <celier@adacore.com>
3837
3838         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
3839         gprbuild when casing is MixedCase, whatever the casing of the letters
3840         in the file name.
3841
3842 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
3843
3844         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
3845         creating dummy init proc.
3846         (Requires_Init_Proc): Return False in the case No_Default_Initialization
3847         is in force and the type does not have associated default
3848         initialization. Move test of Is_Public (with tests of restrictions
3849         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
3850         for default initialization.
3851
3852 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
3853
3854         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
3855         of any alias or prefix but having attached parameters (as \"-O2\").
3856
3857 2008-08-20  Robert Dewar  <dewar@adacore.com>
3858
3859         * s-fileio.adb: Minor reformatting
3860
3861 2008-08-20  Thomas Quinot  <quinot@adacore.com>
3862
3863         * exp_strm.adb (Build_Elementary_Input_Call,
3864         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
3865         selects the stream attribute routines for long float types.
3866
3867 2008-08-20  Vincent Celier  <celier@adacore.com>
3868
3869         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
3870
3871         * prj.ads (Array_Data): Add a component Location
3872
3873 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3874
3875         * sem_prag.adb:
3876         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
3877         argument for ASIS and navigation use.
3878
3879 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3880
3881         * einfo.ads: Add comment.
3882
3883 2008-08-20  Bob Duff  <duff@adacore.com>
3884
3885         * sem_eval.ads: Minor comment fix.
3886
3887 2008-08-20  Bob Duff  <duff@adacore.com>
3888
3889         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
3890         folding. We were folding things like "False and then ...", but not
3891         "X and then ..." where X is a constant whose value is known at compile
3892         time.
3893
3894 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
3895
3896         * exp_ch5.adb (Controlled_Type): New routine.
3897         (Expand_N_Extended_Return_Statement): When generating a move of the
3898         final list in extended return statements, check the type of the
3899         function and in the case of double expanded return statements, the type
3900         of the returned object.
3901         (Expand_Simple_Function_Return): Perform an interface conversion when
3902         the type of the returned object is an interface and the context is an
3903         extended return statement.
3904
3905 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3906
3907         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
3908         and the full view is visible, set flag on full view as well.
3909
3910 2008-08-20  Thomas Quinot  <quinot@adacore.com>
3911
3912         * g-comlin.adb: Minor reformatting
3913         Minor code reorganization.
3914
3915         * freeze.adb: Minor reformatting
3916
3917 2008-08-20  Vincent Celier  <celier@adacore.com>
3918
3919         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
3920         source of another project.
3921
3922 2008-08-20  Pascal Obry  <obry@adacore.com>
3923
3924         * s-os_lib.ads: Minor reformatting.
3925
3926 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
3927
3928         * gnatvsn.ads: Minor reformatting.
3929
3930 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
3931
3932         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
3933         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
3934         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
3935         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
3936         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
3937         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
3938         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
3939         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
3940         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
3941         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
3942         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
3943         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
3944         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
3945         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
3946         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
3947         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
3948         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
3949         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
3950         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
3951         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
3952         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
3953         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
3954         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
3955         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
3956         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
3957         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
3958         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
3959         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
3960         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
3961         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
3962         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
3963         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
3964         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
3965         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
3966         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
3967         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
3968         s-poosiz.adb, link.c: Fix copyright notice.
3969
3970 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
3971
3972         * g-comlin.ads: Update comments.
3973
3974 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3975
3976         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
3977
3978 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
3979
3980         * exp_ch11.adb:
3981         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
3982         Make_Implicit_Exception_Handler when rewriting an exception handler with
3983         a choice parameter, and pass the handler's Sloc instead of that of the
3984         handled sequence of statements. Make_Implicit_Exception_Handler sets the
3985         Sloc to No_Location (unless debugging generated code), which we don't
3986         want for the case of a user handler.
3987
3988 2008-08-20  Robert Dewar  <dewar@adacore.com>
3989
3990         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
3991
3992         * sem_ch13.adb:
3993         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
3994         now labeled as info msgs, not warnings.
3995
3996         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
3997
3998         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
3999
4000         * a-textio.adb: Remove redundant test.
4001
4002         * a-witeio.adb: Minor code reorganization
4003         Remove redundant test found working on another issue
4004
4005         * a-ztexio.adb: Minor code reorganization
4006         Remove redundant test found working on another issue
4007
4008 2008-08-20  Thomas Quinot  <quinot@adacore.com>
4009
4010         * s-fileio.adb (Open) Use C helper function to determine whether a
4011         given errno value corresponds to a "file not found" error.
4012
4013         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
4014
4015 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
4016
4017         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
4018         to get access to the per-task errno variable.
4019         (__set_errno for MaRTE): Do not redefine this function here since it is
4020         already defined in MaRTE.
4021
4022 2008-08-20  Tristan Gingold  <gingold@adacore.com>
4023
4024         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
4025
4026 2008-08-20  Robert Dewar  <dewar@adacore.com>
4027
4028         * freeze.adb: Minor reformatting
4029
4030         * g-comlin.adb: Minor reformatting
4031
4032         * g-socket.adb: Minor reformatting
4033
4034         * g-socthi-mingw.adb: Minor reformatting
4035
4036         * g-stheme.adb: Minor reformatting
4037
4038 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
4039
4040         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
4041         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
4042         confusion between partial and full views of an ancestor of the context
4043         type when the parent is a private extension declared in a parent unit,
4044         and full views are available for the context type.
4045
4046 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
4047             Robert Dewar  <dewar@adacore.com>
4048
4049         PR ada/30827
4050         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
4051         version string.
4052         Move comment in the right place.
4053         * g-comver.adb (Version): Look for a zero-termination in
4054         addition to a closing parenthesis.
4055
4056 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
4057
4058         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
4059         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
4060         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
4061         Is_Package_Or_Generic_Package instead of hand-crafted tests.
4062
4063 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
4064
4065         PR ada/15808
4066         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
4067         as well.
4068
4069 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4070
4071         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
4072
4073 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4074
4075         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
4076         for back-copy statements in lieu of that of the actual.
4077
4078 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4079
4080         PR ada/20548
4081         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
4082         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
4083         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
4084         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
4085
4086 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
4087
4088         PR ada/36777
4089         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
4090         * sem_attr.adb (Check_Type): The current instance of a protected
4091         object is not a type name.
4092         (Analyze_Access_Attribute): Accept instances of protected objects.
4093         (Analyze_Attribute, Attribute_Address clause): Ditto.
4094         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
4095         the prefix as being the current instance if needed.
4096
4097 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
4098
4099         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
4100         Remove duplicate s-win32.o. Add s-winext.o.
4101
4102 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
4103
4104         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
4105         with SOSC.SOCK__STREAM.
4106         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
4107         SOSC.MSG_OOB.
4108
4109 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
4110
4111         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
4112         * gsocket.h, socket.c: Update to support RTEMS.
4113         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
4114
4115 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
4116             Robert Dewar <dewar@adacore.com>
4117
4118         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
4119         left argument even when right argument is 0.
4120         (Expand_N_Op_Mod): Ditto when right argument is 1.
4121         (Expand_N_Op_Multiply): Ditto when any argument is 0.
4122         (Expand_N_Op_Rem): Ditto when right argument is 1.
4123
4124 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4125
4126         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
4127         by warn_unused.
4128
4129 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
4130
4131         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
4132         from Freeze_Entity. Used to generate cross-reference information for
4133         types declared in generic packages.
4134
4135 2008-08-08  Thomas Quinot  <quinot@adacore.com>
4136
4137         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
4138         compatibility shim.
4139
4140 2008-08-08  Thomas Quinot  <quinot@adacore.com>
4141
4142         * gsocket.h:
4143         On Windows, include <errno.h> and redefine only selected errno values
4144         from their <winsock2.h> definitions.
4145
4146         * s-osinte-freebsd.ads: Minor reformatting
4147
4148         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
4149
4150         * g-soccon.ads: New file.
4151
4152         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
4153         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
4154         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
4155         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
4156         unit, to allow building software that depends on this internal unit
4157         with both older and newer compilers.
4158
4159 2008-08-08  Robert Dewar  <dewar@adacore.com>
4160
4161         * s-strxdr.adb: Minor reformatting
4162
4163 2008-08-08  Bob Duff  <duff@adacore.com>
4164
4165         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
4166         checking for integer operations (including division by zero)", which
4167         is wrong -- divide by zero is not part of overflow checking.
4168         Also added misc clarification about what check-suppression means.
4169
4170         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
4171
4172 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
4173
4174         * g-comlin.adb (Add_Switch): Handle addition of switches at the
4175         begining of the command line.
4176         (Append, Add): Renaming of Append to Add as this now allows addition
4177         at the begining of the list.
4178
4179         * g-comlin.ads (Add_Switch): Handle addition of switches at the
4180         begining of the command line.
4181
4182 2008-08-08  Thomas Quinot  <quinot@adacore.com>
4183
4184         * g-sercom.ads:
4185         (Name): Document application scope (only legacy PC serial ports on
4186         Linux and Windows).
4187
4188 2008-08-08  Thomas Quinot  <quinot@adacore.com>
4189
4190         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
4191         previous change, not needed after all.
4192
4193 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
4194
4195         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
4196         exclusion indicator is present
4197
4198 2008-08-08  Robert Dewar  <dewar@adacore.com>
4199
4200         * g-comlin.adb: Minor code reorganization
4201         Minor reformatting
4202
4203         * g-comlin.ads: Minor reformatting
4204
4205         * s-fileio.adb: Minor reformatting
4206
4207         * sem_attr.adb: Minor code reorganization (use Nkind_In)
4208         Minor reformatting
4209
4210 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
4211
4212         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
4213         with s-oscons-tmplt.i.
4214
4215 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
4216
4217         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
4218
4219 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
4220
4221         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
4222         of incomplete type.
4223
4224         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
4225         of a formal parameter of an incomplete type. Improve error message for
4226         other improper uses of incomplete types.
4227
4228 2008-08-06  Robert Dewar  <dewar@adacore.com>
4229
4230         * gnat_ugn.texi: Clarify -gnato documentation
4231
4232 2008-08-06  Thomas Quinot  <quinot@adacore.com>
4233
4234         * gcc-interface/Makefile.in,
4235         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
4236         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
4237         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
4238         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
4239         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
4240         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
4241         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
4242         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
4243         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
4244         Remove GNAT.Sockets.Constants. This internal package is replaced by
4245         System.OS_Constants.
4246
4247 2008-08-06  Thomas Quinot  <quinot@adacore.com>
4248
4249         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
4250         Remove obsolete targets referencing gen-soccon
4251         When generating s-oscons.ads, use a file name that includes the
4252         THREAD_KIND, to ensure that the (potentially different) version from a
4253         previous build with a different threads flavour does not get reused.
4254
4255 2008-08-06  Thomas Quinot  <quinot@adacore.com>
4256
4257         * sem_res.adb: Minor reformatting
4258
4259         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
4260         only when the operating system reports a non-existing file or directory
4261         (ENOENT), otherwise raise Name_Error.
4262
4263         * exp_ch11.adb: Minor reformatting
4264
4265 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
4266
4267         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
4268         incomplete, add the access_to_subprogram type to the list of private
4269         dependents only if the incomplete type will be completed in the current
4270         scope.
4271         (Build_Discriminant_Constraints): If the type of the discriminant is
4272         access_to_variable, reject a constraint that is access_to_constant.
4273
4274 2008-08-06  Thomas Quinot  <quinot@adacore.com>
4275
4276         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
4277         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
4278         g-sttsne-dummy.ads: New files.
4279
4280         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
4281         with pragma Unimplemented_Unit for sockets packages on Nucleus.
4282
4283 2008-08-06  Pascal Obry  <obry@adacore.com>
4284
4285         * adaint.c: Another fix for ACL support on Windows.
4286
4287 2008-08-06  Javier Miranda  <miranda@adacore.com>
4288
4289         * exp_disp (Expand_Interface_Actuals): Adds missing support for
4290         expansion of calls to subprograms using selected components.
4291
4292 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
4293
4294         * sem_res.adb (Resolve_Call): Use base type to determine whether a
4295         dereference is needed because a subtype of an access_to_subprogram is
4296         simply an access-subtype
4297
4298 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
4299
4300         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
4301         parameters, always specify the expected separator.
4302
4303 2008-08-06  Thomas Quinot  <quinot@adacore.com>
4304
4305         * xnmake.adb: Use new XUtil package for platform independent text
4306         output.
4307
4308 2008-08-06  Vincent Celier  <celier@adacore.com>
4309
4310         * gnat_ugn.texi: Document compiler switch -gnateG
4311
4312 2008-08-06  Quentin Ochem  <ochem@adacore.com>
4313
4314         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
4315         in the case of an empty pattern size.
4316         (Compute_Result): Do not do any computation in the case of an empty
4317         pattern size.
4318         (Report_Result): Fixed computation of the overflow guard.
4319
4320 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
4321
4322         * g-awk.adb (Finalize): Do not use directly objects of the type in the
4323         finalization routine to prevent elaboration order anomalies in new
4324         finalization scheme.
4325
4326 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
4327
4328         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
4329         declaration for the same type.
4330
4331 2008-08-06  Thomas Quinot  <quinot@adacore.com>
4332
4333         * sem.adb: Minor rewording (comment)
4334
4335 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
4336
4337         * g-comlin.adb (Define_Switch, Get_Switches): New.
4338         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
4339         ungrouping switches.
4340         (For_Each_Simple_Switch): Allow more control over parameters handling.
4341         This generic method now allows ungrouping of switches with parameters
4342         and switches with more than one letter after the prefix.
4343         (Set_Command_Line): Take care of switches that are prefixed with a
4344         switch handling parameters without delimiter (-gnatya and -gnaty3 for
4345         example).
4346         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
4347         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
4348         the operation.
4349         (Start, Alias_Switches, Group_Switches): Take care of parameters
4350         possibly present inside a group.
4351
4352         * g-comlin.ads (Define_Switch): New method used to define a list of
4353         expected switches, that are necessary for correctly ungrouping switches
4354         with more that one character after the prefix.
4355         (Get_Switches): Method that builds a getopt string from the list of
4356         switches as set previously by Define_Switch.
4357         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
4358         status of the operation. Also allow the removal of switches with
4359         parameters only.
4360         (Command_Line_Configuration_Record): Maintain a list of expected
4361         switches.
4362
4363 2008-08-06  Doug Rupp  <rupp@adacore.com>
4364
4365         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
4366         TARGET_MALLOC64 clear.
4367
4368         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
4369         if TARGET_MALLOC64 clear.
4370
4371         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
4372         (TARGET_MALLC64): New macro. Default to clear.
4373
4374 2008-08-06  Doug Rupp  <rupp@adacore.com>
4375
4376         * gcc-interface/utils2.c (snames.h) Include
4377         (TARGET_ABI_OPEN_VMS): Initialize.
4378         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
4379         for Convention C.
4380
4381 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
4382
4383         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
4384         null exclusion in a discriminant declaration
4385
4386         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
4387         indicators when type is not an access type.
4388
4389         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
4390         indicators when type is not an access type.
4391
4392 2008-08-06  Javier Miranda  <miranda@adacore.com>
4393
4394         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
4395         with the target interface before expanding the code of the interface
4396         conversion.
4397
4398 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4399
4400         * freeze.adb:
4401         (Freeze_Entity): A deferred constant does not violate the restriction
4402         No_Default_Initialization,
4403
4404         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
4405         can carry a null exclusion indicator, and on which an error may be
4406         posted if the indicator is redundant.
4407
4408         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
4409         does not apply to a subtype mark that already excludes null.
4410
4411         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
4412         exclusion does not apply to a subtype mark that already excludes null.
4413
4414 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4415
4416         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
4417
4418 2008-08-05  Doug Rupp  <rupp@adacore.com>
4419
4420         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
4421
4422 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4423
4424         * gsocket.h: Make this file includable in a Nucleus environment, which
4425         does not support sockets.
4426
4427         * socket.c: Remove Nucleus-specific hack.
4428
4429 2008-08-05  Pascal Obry  <obry@adacore.com>
4430
4431         * adaint.c: Remove support for readable attribute on vxworks and nucleus
4432
4433 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4434
4435         * sem_attr.adb:
4436         (Analyze_Attribute, case 'Result): handle properly the case where some
4437         operand of the expression in a post-condition generates a transient
4438         block.
4439
4440         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
4441         right-hand side when it is an anonymous access_to_subprogram, to force
4442         static accessibility check when needed.
4443
4444 2008-08-05  Sergey Rybin  <rybin@adacore.com>
4445
4446         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
4447         rule according to the change in the rule option.
4448         Add documentation for -gnatw.b/-gnatw.B
4449
4450 2008-08-05  Robert Dewar  <dewar@adacore.com>
4451
4452         * ug_words: Add entries for -gnatw.b/-gnatw.B
4453
4454         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
4455
4456 2008-08-05  Vincent Celier  <celier@adacore.com>
4457
4458         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
4459         (File).
4460
4461         * a-ztdeio.adb: Ditto.
4462
4463 2008-08-05  Pascal Obry  <obry@adacore.com>
4464
4465         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
4466         readable attribute.
4467
4468 2008-08-05  Vincent Celier  <celier@adacore.com>
4469
4470         * s-wchwts.adb:
4471         (Wide_String_To_String): Returns a String with the same 'First as its
4472         parameter S.
4473         (Wide_Wide_String_To_String): Ditto
4474
4475         * s-wchwts.ads:
4476         (Wide_String_To_String): Document that the lowest index of the returned
4477         String is equal to S'First.
4478
4479 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4480
4481         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
4482
4483         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
4484         s-oscons.ads
4485
4486 2008-08-05  Robert Dewar  <dewar@adacore.com>
4487
4488         * opt.ads (Warn_On_Biased_Representation): New flag
4489
4490         * sem_ch13.adb:
4491         (Analyze_Attribute_Definition_Clause): Issue warning when biased
4492         representation is required.
4493         (Minimum_Size): Don't allow biasing if enum rep clause case
4494
4495         * sem_warn.adb:
4496         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
4497         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
4498
4499         * usage.adb: Add lines for -gnatw.b/B switches
4500
4501 2008-08-05  Pascal Obry  <obry@adacore.com>
4502
4503         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
4504
4505         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
4506
4507 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4508
4509         * socket.c: Minor reformatting.
4510
4511 2008-08-05  Robert Dewar  <dewar@adacore.com>
4512
4513         * sem_ch3.adb: Minor reformatting
4514
4515         * prj-nmsc.adb: Minor reformatting
4516
4517 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4518
4519         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
4520         visibility check on the component type if the simple test fails.
4521
4522 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
4523
4524         * init.c (__gnat_install_handler for linux): If we are building the
4525         Xenomai run time then we need to do two additional things: avoid
4526         memory swapping and transform the Linux environment task into a native
4527         Xenomai task.
4528
4529         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
4530         time): Use interface to Xenomai native skin and avoid linux-specific
4531         way of setting CPU affinity.
4532         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
4533
4534 2008-08-05  Bob Duff  <duff@adacore.com>
4535
4536         * checks.ads: Minor comment fix
4537
4538 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4539
4540         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
4541         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
4542         CS8.
4543
4544 2008-08-05  Robert Dewar  <dewar@adacore.com>
4545
4546         * mlib.adb: Minor code reorganization
4547         Minor reformatting
4548
4549         * make.adb: Minor reformatting
4550
4551         * prj-attr.ads: Minor reformatting
4552
4553         * s-os_lib.adb: Minor reformatting
4554
4555         * s-fileio.adb: Minor code reorganization
4556         Minor reformatting
4557
4558         * prj.ads: Minor reformatting
4559
4560 2008-08-05  Bob Duff  <duff@adacore.com>
4561
4562         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
4563         unresolved initial value of "null", because it causes implicitly
4564         generated "=" operators to be ambiguous, and because this type should
4565         not be passed to gigi.
4566
4567 2008-08-05  Vincent Celier  <celier@adacore.com>
4568
4569         * mlib.adb: Update comments.
4570
4571         * make.adb (Switches_Of): Check for Switches (others), before checking
4572         for Default_Switches ("Ada").
4573         (Gnatmake): Use Builder'Switches (others) in preference to
4574         Builder'Default_Switches ("Ada") if there are several mains.
4575
4576         * prj-attr-pm.adb:
4577         (Add_Attribute): Add component Others_Allowed in Attribute_Record
4578         aggregate.
4579
4580         * prj-attr.adb:
4581         Add markers to indicates that attributes Switches allow others as index
4582         (Others_Allowed_For): New Boolean function, returning True for
4583         attributes with the mark.
4584         (Initialize): Recognize optional letter 'O' as the marker for
4585         associative array attributes where others is allowed as the index.
4586
4587         * prj-attr.ads:
4588         (Others_Allowed_For): New Boolean function
4589         (Attribute_Record): New Boolean component Others_Allowed
4590
4591         * prj-dect.adb:
4592         (Parse_Attribute_Declaration): For associative array attribute where
4593         others is allowed as the index, allow others as an index.
4594
4595         * prj-nmsc.adb:
4596         (Process_Binder): Skip associative array attributes with index others
4597         (Process_Compiler): Ditto
4598
4599         * prj-util.adb:
4600         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
4601         index is All_Other_Names.
4602
4603         * prj.ads:
4604         (All_Other_Names): New constant
4605
4606         * prj-proc.adb:
4607         (Process_Declarative_Items): Skip associative array attribute when index
4608         is reserved word "others".
4609
4610 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
4611
4612         * gen-oscons.c: Adapt for VMS where termios.h is not available.
4613
4614 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4615
4616         * a-rttiev.adb: Minor reformatting (comments)
4617
4618         * gen-soccon.c: Rename to gen-oscons.c
4619
4620         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
4621         GNAT.Sockets.Constants.
4622         Add new constants for GNAT.Serial_Communications and System.File_IO.
4623
4624 2008-08-05  Javier Miranda  <miranda@adacore.com>
4625
4626         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
4627         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
4628         implementation of this routine has been simplified.
4629
4630 2008-08-05  Pascal Obry  <obry@adacore.com>
4631
4632         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
4633         Set_Read_Only Win32 implementation.
4634
4635 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4636
4637         * exp_strm.adb: Minor reformatting (comments)
4638
4639         * sem_ch12.adb: Minor reformatting.
4640
4641 2008-08-05  Robert Dewar  <dewar@adacore.com>
4642
4643         * sem_ch3.adb: Minor reformatting
4644
4645         * checks.adb: Minor reformatting
4646
4647 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4648
4649         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
4650         restriction on Prefix.
4651
4652 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
4653
4654         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
4655         methods needed to handle switch sections when building a command line.
4656         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
4657         Current_Section): New public methods or methods modified to handle
4658         building command lines with sections.
4659         (Set_Command_Line): Take into account sections when analysing a switch
4660         string.
4661         (Start): Sort the switches by sections before iterating the command line
4662         elements.
4663
4664         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
4665         Is_New_Section, Current_Section): New methods or methods modified to
4666         handle building command lines with sections.
4667
4668 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4669
4670         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
4671         discriminants, indicate that the corresponding object declaration has
4672         no initialization, to prevent spurious warnings when the access type is
4673         null-excluding.
4674
4675 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4676
4677         * sem_res.adb (Resolve_Call): If this is a call to the predefined
4678         Abort_Task, warn if the call appears within a protected operation.
4679
4680 2008-08-04  Robert Dewar  <dewar@adacore.com>
4681
4682         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
4683
4684 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4685
4686         * sem_ch3.adb:
4687         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
4688         anonymous access to protected subprogram that is the return type of the
4689         specification of a subprogram body.
4690
4691         * sem_ch6.adb:
4692         (Analyze_Subprogram_Body): if the return type is an anonymous access to
4693         subprogram, freeze it now to prevent access anomalies in the back-end.
4694
4695         * exp_ch9.adb: Minor code cleanup.
4696         Make sure that new declarations are inserted into the tree before
4697         analysis (from code reading).
4698
4699 2008-08-04  Robert Dewar  <dewar@adacore.com>
4700
4701         * exp_ch5.adb:
4702         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
4703         at point of return.
4704
4705 2008-08-04  Thomas Quinot  <quinot@adacore.com>
4706
4707         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
4708
4709 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
4710
4711         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
4712
4713 2008-08-04  Javier Miranda  <miranda@adacore.com>
4714
4715         * sem_prag.adb (Process_Convention): Add missing support for
4716          N_Private_Extension_Declaration nodes.
4717
4718 2008-08-04  Robert Dewar  <dewar@adacore.com>
4719
4720         * exp_ch4.adb: Minor reformatting
4721
4722 2008-08-04  Pascal Obry  <obry@adacore.com>
4723
4724         * adaint.h: Add missing prototype.
4725
4726         * adaint.c: Refine support for Windows file attributes.
4727
4728 2008-08-04  Robert Dewar  <dewar@adacore.com>
4729
4730         * sem_res.adb:
4731         (Valid_Conversion): Catch case of designated types having different
4732         sizes, even though they statically match.
4733
4734 2008-08-04  Javier Miranda  <miranda@adacore.com>
4735
4736         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
4737         added in previous patch to handle access to subprograms.
4738
4739 2008-08-04  Robert Dewar  <dewar@adacore.com>
4740
4741         * freeze.adb:
4742         (Freeze_Entity): Only check No_Default_Initialization restriction for
4743         constructs that come from source
4744
4745 2008-08-04  Thomas Quinot  <quinot@adacore.com>
4746
4747         * exp_ch6.adb: Minor comment fix.
4748
4749         * sem_ch4.adb: Minor reformatting.
4750
4751 2008-08-04  Robert Dewar  <dewar@adacore.com>
4752
4753         * sem_res.adb: (Large_Storage_Type): Improve previous change.
4754
4755 2008-08-04  Pascal Obry  <obry@adacore.com>
4756
4757         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
4758         file attributes.
4759
4760 2008-08-04  Javier Miranda  <miranda@adacore.com>
4761
4762         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
4763         for N_Formal_Object_Declaration nodes. Adding kludge required by
4764         First_Formal to provide its functionality with access to functions.
4765         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
4766         for anonymous access types returned by functions.
4767
4768         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
4769         conversion of null-excluding access types (required only once to force
4770         the generation of the required runtime check).
4771
4772         * sem_type.adb (Covers): minor reformating
4773
4774         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
4775         with internally generated nodes. Avoid generating the error inside init
4776         procs.
4777
4778         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
4779         (Resolve_Null): Generate the null-excluding check in case of assignment
4780         to a null-excluding object.
4781         (Valid_Conversion): Add missing support for anonymous access to
4782         subprograms.
4783
4784         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
4785         anonymous access types whose designated type is an itype. This case
4786         occurs with anonymous access to protected subprograms types.
4787         (Analyze_Return_Type):  Add missing support for anonymous access to
4788         protected subprogram.
4789
4790         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
4791         subprograms addition of missing check on matching convention. Required
4792         to properly handle access to protected subprogram types.
4793
4794         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
4795         null excluding access types.
4796
4797 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4798
4799         * sem_ch12.adb: Add comments
4800
4801         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
4802         access type and the allocator is not initialized, warn rather than
4803         reporting an error.
4804
4805 2008-08-04  Robert Dewar  <dewar@adacore.com>
4806
4807         * exp_ch4.adb: Minor reformatting
4808
4809         * exp_dist.adb: Minor reformatting
4810
4811         * g-comlin.adb: Minor reformatting
4812
4813 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
4814
4815         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
4816         target to the type of the aggregate in the case where the target object
4817         is class-wide.
4818
4819         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
4820         result type is class-wide and inherently limited, and the expression
4821         has a specific type, create a return object of the specific type, for
4822         more efficient handling of returns of build-in-place aggregates (avoids
4823         conversions of the class-wide return object to the specific type on
4824         component assignments).
4825
4826         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
4827         about a type mismatch for a class-wide function with a return object
4828         having a specific type when the object declaration doesn't come from
4829         source. Such an object can result from the expansion of a simple return.
4830
4831 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
4832
4833         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
4834
4835         * gcc-interface/Makefile.in: Use 64bit-specific system files when
4836         compiling for 64bit windows.
4837
4838 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
4839
4840         * g-comlin.adb (Group_Switches): Preserve the switch order when
4841         grouping and allow switch grouping of switches with more than one
4842         character extension (e.g. gnatw.x).
4843         (Args_From_Expanded): Remove this now obsolete method.
4844
4845 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4846
4847         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
4848         chain at once, to ensure that type is properly decorated for back-end,
4849         when allocator appears within a loop.
4850
4851 2008-08-04  Kevin Pouget  <pouget@adacore.com>
4852
4853         * snames.h, snames.adb, snames.ads:
4854         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
4855
4856         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
4857         Build_To_Any_Call and Build_TypeCode_Call procedures.
4858
4859         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
4860
4861         * rtsfind.ads: Add corresponding names.
4862
4863         * tbuild.adb: Update prefix restrictions to allow '_' character.
4864
4865 2008-08-04  Doug Rupp  <rupp@adacore.com>
4866
4867         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
4868         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
4869         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
4870         use it.  Calculate pointer range overflow using 64bit types.
4871
4872 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4873
4874         * sem_ch3.adb (Access_Definition): A formal object declaration is a
4875         legal context for an anonymous access to subprogram.
4876
4877         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
4878         indirect call, report success to the caller to include possible
4879         interpretation.
4880
4881         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
4882         check when the type
4883         of the extended return is an anonymous access_to_subprogram type.
4884
4885         * sem_res.adb:
4886         (Resolve_Call): Insert a dereference if the type of the subprogram is an
4887         access_to_subprogram and the context requires its return type, and a
4888         dereference has not been introduced previously.
4889
4890 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
4891
4892         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
4893         gnatcheck support in GPS.
4894
4895 2008-08-04  Vincent Celier  <celier@adacore.com>
4896
4897         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
4898         requested
4899
4900 2008-08-04  Vincent Celier  <celier@adacore.com>
4901
4902         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
4903         variable, but don't check the resulting value as it has no impact on
4904         the processing.
4905
4906         * opt.ads:
4907         (Generate_Processed_File): New Boolean flag, set to True in the compiler
4908         when switch -gnateG is used.
4909
4910         * prep.adb:
4911         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
4912         when the source is modified by the preprocessor and there is no
4913         preprocessing errors.
4914
4915         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
4916
4917         * sinput-l.adb:
4918         (Load_File): Output the result of preprocessing if the source text was
4919         modified.
4920
4921         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
4922
4923         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
4924
4925         * ug_words: Add VMS equivalent for -gnateG
4926
4927         * vms_data.ads:
4928         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
4929
4930 2008-08-04  Doug Rupp  <rupp@adacore.com>
4931
4932         * gcc-interface/utils2.c:
4933         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
4934         in 32bit descriptor.
4935
4936 2008-08-04  Robert Dewar  <dewar@adacore.com>
4937
4938         * par-ch10.adb: Minor reformatting
4939
4940         * i-cobol.adb: Minor reformatting.
4941
4942 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4943
4944         * sem_ch3.adb (Access_Definition): Create an itype reference for an
4945         anonymous access return type of a regular function that is not a
4946         compilation unit.
4947
4948 2008-08-04  Vincent Celier  <celier@adacore.com>
4949
4950         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
4951
4952         * snames.adb: New standard name Global_Compilation_Switches
4953
4954         * snames.ads: New standard name Global_Compilation_Switches
4955
4956         * make.adb: Correct spelling error in comment
4957
4958 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
4959
4960         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
4961         target.
4962
4963 2008-08-04  Thomas Quinot  <quinot@adacore.com>
4964
4965         * sem_ch10.adb: Minor comment fix.
4966
4967 2008-08-04  Robert Dewar  <dewar@adacore.com>
4968
4969         * restrict.adb: Improved messages for restriction warnings
4970
4971         * restrict.ads: Improved messages for restriction messages
4972
4973         * s-rident.ads (Profile_Name): Add No_Profile
4974
4975 2008-08-04  Robert Dewar  <dewar@adacore.com>
4976
4977         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
4978
4979 2008-08-04  Robert Dewar  <dewar@adacore.com>
4980
4981         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
4982
4983 2008-08-04  Vincent Celier  <celier@adacore.com>
4984
4985         * prj-proc.adb:
4986         (Copy_Package_Declarations): When inheriting package Naming from a
4987         project being extended, do not inherit source exception names.
4988
4989 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4990
4991         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
4992         list of declaration to find previous subprogram, do not go to the
4993         original node of a generic unit.
4994
4995 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
4996
4997         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
4998         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
4999
5000 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
5001
5002         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
5003         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
5004         and adjust for above renaming.
5005         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
5006         gnu_expr_alt_type parameter.  Convert the expression to it instead
5007         of changing its type in place.
5008         (build_function_stub): Adjust call to above function.
5009
5010 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
5011
5012         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
5013         code.  Do not get full definition of deferred constants with address
5014         clause for a use.  Do not ignore deferred constant definitions with
5015         address clause.  Ignore constant definitions already marked with the
5016         error node.
5017         <object>: Remove obsolete comment.  For a deferred constant with
5018         address clause, get the initializer from the full view.
5019         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
5020         Rework and remove obsolete comment.
5021         <N_Object_Declaration>: For a deferred constant with address clause,
5022         mark the full view with the error node.
5023         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
5024         formatting nits.
5025
5026 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
5027
5028         * rtsfind.ads: Add block IO versions of stream routines for Strings.
5029
5030         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
5031         sem_prag.adb, snames.adb, snames.ads, snames.h,
5032         par-prag.adb: Undo previous stream related changes.
5033
5034         * s-rident.ads: Add new restriction No_Stream_Optimizations.
5035
5036         * s-ststop.ads, s-ststop.adb: Comment reformatting.
5037         Define enumeration type to designate different IO mechanisms.
5038         Enchance generic package Stream_Ops_Internal to include an
5039         implementation of Input and Output.
5040
5041         * exp_attr.adb (Find_Stream_Subprogram): If restriction
5042         No_Stream_Optimization is active, choose the default byte IO
5043         implementations of stream attributes for Strings.
5044         Otherwise use the corresponding block IO version.
5045
5046 2008-08-01  Olivier Hainque  <hainque@adacore.com>
5047
5048         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
5049         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
5050
5051 2008-08-01  Robert Dewar  <dewar@adacore.com>
5052
5053         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
5054         convert plain identifier into defining identifier.
5055
5056 2008-08-01  Robert Dewar  <dewar@adacore.com>
5057
5058         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
5059         warnings
5060
5061         * lib-xref.adb: Add error defense.
5062
5063 2008-08-01  Bob Duff  <duff@adacore.com>
5064
5065         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
5066
5067 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
5068
5069         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
5070         correct accessibility levels. In the "when others" case, retrieve the
5071         access level of the Etype of Prev rather than Prev_Orig, because the
5072         original exression has not always been analyzed.
5073
5074 2008-08-01  Robert Dewar  <dewar@adacore.com>
5075
5076         * prj-nmsc.adb: Minor reformatting
5077
5078         * sem_ch4.adb: Minor reformatting
5079         Minor code reorganization
5080
5081         * prj.ads: Minor reformatting
5082
5083         * s-os_lib.adb: Minor reformatting
5084
5085         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
5086         half encodings
5087
5088         * scans.ads: Minor reformatting.
5089
5090         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
5091         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
5092
5093         * sem_res.adb:
5094         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
5095
5096         * sem_ch12.adb: Minor comment reformatting
5097
5098         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
5099         keyword
5100
5101 2008-08-01  Robert Dewar  <dewar@adacore.com>
5102
5103         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
5104         generating code
5105
5106 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
5107
5108         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
5109         converted is a real literal and the target type has static bounds,
5110         perform the conversion exactly to prevent floating-point anomalies on
5111         some targets.
5112
5113 2008-08-01  Vincent Celier  <celier@adacore.com>
5114
5115         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
5116
5117         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
5118
5119         * prj.adb (Object_Exist_For): Use Object_Generated, not
5120         Objects_Generated that is removed and was never modified anyway.
5121
5122         * prj.ads:
5123         (Path_Syntax_Kind): New enumeration type
5124         (Language_Config): New component Path_Syntax, defaulted to Host.
5125         Components PIC_Option and Objects_Generated removed, as they are not
5126         used.
5127
5128         * snames.adb: New standard name Path_Syntax
5129
5130         * snames.ads: New standard name Path_Syntax
5131
5132 2008-08-01  Vincent Celier  <celier@adacore.com>
5133
5134         * mlib-utl.adb:
5135         (Adalib_Path): New variable to store the path of the adalib directory
5136         when procedure Specify_Adalib_Dir is called.
5137         (Lib_Directory): If Adalib_Path is not null, return its value
5138         (Specify_Adalib_Dir): New procedure
5139
5140         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
5141
5142 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
5143
5144         * sem_prag.adb:
5145         (Check_Precondition_Postcondition): If not generating code, analyze the
5146         expression in a postcondition that appears in a subprogram body, so that
5147         it is properly decorated for ASIS use.
5148
5149 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
5150
5151         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
5152         Orig_Prev to Prev in the case where the actual is N_Function_Call or
5153         N_Identifier. This was interfering with other cases that are rewritten
5154         as N_Identifier, such as allocators, resulting in passing of the wrong
5155         accessibility level, and based on testing this code is apparently no
5156         longer needed at all.
5157
5158 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
5159
5160         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
5161         procedure call whose prefix
5162         is a parameterless function call that returns an access_to_procedure.
5163
5164 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
5165
5166         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
5167         for RTX. Adding a suffix that is incremented at each iteration.
5168
5169 2008-08-01  Robert Dewar  <dewar@adacore.com>
5170
5171         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
5172         Raise_Exception
5173
5174 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
5175
5176         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
5177         paths, which are authorized by Windows but can lead to errors when used
5178         elsewhere.
5179
5180 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
5181
5182         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
5183         a pending instantiation for the body of a subprogram that is to be
5184         inlined.
5185
5186         * sem_ch12.adb:
5187         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
5188
5189         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
5190         create a pending instance for its body, so that calls to the subprogram
5191         can be inlined by the back-end.
5192
5193 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
5194
5195         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
5196         rts-rtx-w32).
5197
5198 2008-08-01  Robert Dewar  <dewar@adacore.com>
5199
5200         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
5201
5202 2008-08-01  Doug Rupp  <rupp@adacore.com>
5203
5204         * gnat_rm.texi: Document new mechanism Short_Descriptor.
5205
5206         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
5207         mechanism values.
5208
5209         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5210         mechanism and Short_Descriptor mechanism values.
5211
5212         * snames.adb (preset_names): Add short_descriptor entry.
5213
5214         * snames.ads: Add Name_Short_Descriptor.
5215
5216         * types.h: Add new By_Short_Descriptor mechanism values.
5217
5218         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5219         mechanism and Short_Descriptor mechanism values.
5220
5221         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
5222         values.
5223         (Descriptor_Codes): Modify range for new mechanism values.
5224
5225         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
5226         mechanism values.
5227
5228         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
5229         (gnat_to_gnu_param): Handle By_Short_Descriptor.
5230
5231         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
5232         (build_vms_descriptor32): New prototype.
5233         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
5234
5235         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
5236         argument in call fill_vms_descriptor.
5237
5238         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
5239         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
5240         (build_vms_descriptor): Renamed from build_vms_descriptor64.
5241         (convert_vms_descriptor32): New function.
5242         (convert_vms_descriptor64): New function.
5243         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
5244         descriptors.
5245
5246         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
5247         no longer needed.
5248
5249 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
5250
5251         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
5252         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
5253         name.
5254
5255 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
5256
5257         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
5258         current directory so only fully qualified names are allowed.
5259
5260 2008-08-01  Robert Dewar  <dewar@adacore.com>
5261
5262         * gnat_ugn.texi:
5263         Minor editing, remove uncomfortable use of semicolon
5264
5265         * s-ststop.adb: Add some ??? comments
5266
5267         * sem_ch10.adb: Minor reformatting
5268
5269         * snames.ads:
5270         Minor comment fixes, some pragmas were not properly
5271         categorized in the comments, documentation change only
5272
5273         * xref_lib.adb: Minor reformatting
5274
5275         * sinput.adb: Minor reformatting
5276
5277         * gnatchop.adb: Minor reformatting
5278
5279         * sem_util.ads: Minor reformatting.
5280
5281         * opt.ads: Minor documentation fix
5282
5283         * scng.adb: Minor reformatting
5284
5285         * prj-part.adb: Update comments
5286
5287 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
5288
5289         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
5290         tagged synchronized type, use corresponding record type.
5291
5292 2008-08-01  Doug Rupp  <rupp@adacore.com>
5293
5294         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
5295         dummy transfer address for debugging.
5296
5297         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
5298
5299         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
5300
5301 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
5302
5303         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
5304         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
5305
5306 2008-07-31  Pascal Obry  <obry@adacore.com>
5307
5308         * prj-nmsc.adb: Keep Object and Exec directory casing.
5309
5310 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
5311
5312         * system-rtx-rtss.ads
5313         Change the default stack size. It is important to set the commit part.
5314
5315         * s-taprop-rtx.adb
5316         (Initialize): Get the clock resolution.
5317         (RT_Resolution): Return the clock resolution that is indicated by the
5318         system.
5319
5320         * s-parame-vxworks.adb
5321         Document that this body is used for RTX in RTSS (kernel) mode.
5322
5323         * gcc-interface/Makefile.in
5324         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
5325         s-parame-vxworks.adb body in order to have reasonable stack sizes in
5326         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
5327         cannot ask for too big values.
5328
5329 2008-07-31  Robert Dewar  <dewar@adacore.com>
5330
5331         * exp_aggr.adb: Minor reformatting
5332
5333         * makeutl.adb: Minor reformatting
5334
5335         * prj-env.adb: Minor reformatting
5336
5337 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5338
5339         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
5340         tagged type is completed by a concurrent type.
5341
5342 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
5343
5344         * sem_aggr.adb:
5345         (Resolve_Record_Aggregate): Bypass error that a type without
5346         components must have a "null record" aggregate when compiling for Ada
5347         2005, since it's legal to give an aggregate of form (others => <>)
5348         for such a type.
5349
5350 2008-07-31  Javier Miranda  <miranda@adacore.com>
5351
5352         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
5353         handle synchronized types. Required to handle well the object.operation
5354         notation applied to synchronized types.
5355
5356 2008-07-31  Quentin Ochem  <ochem@adacore.com>
5357
5358         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
5359         anymore - just used internally.
5360         Added handling of very small tasks - when the theoretical size is
5361         already full at the point of the call.
5362         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
5363         not need to be added to the result.
5364
5365 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5366
5367         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
5368         corresponding spec is a primitive wrapper. Update comment.
5369
5370 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5371
5372         * bindgen.adb Comment reformatting. Update the list of run-time globals.
5373         (Gen_Adainit_Ada): Add the declaration, import and value set for
5374         configuration flag Canonical_Streams.
5375         (Gen_Adainit_C): Add the declaration and initial value of external
5376         symbol __gl_canonical_streams.
5377
5378         * init.c: Update the list of global values computed by the binder.
5379
5380         * opt.ads: Add flag Canonical_Streams.
5381
5382         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
5383         semantically handled pragmas.
5384
5385         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
5386         (Analyze_Pragma): Add case for pragma Canonical_Streams.
5387
5388         * snames.adb: Add character value for name Canonical_Streams.
5389
5390         * snames.ads:
5391         Add Name_Canonical_Streams to the list of configuration pragmas.
5392         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
5393
5394         * snames.h: Add a definition for Pragma_Canonical_Streams.
5395
5396         * s-ststop.adb:
5397         Add a flag and import to seize the value of external symbol
5398         __gl_canonical_streams. Update comment and initial value of constant
5399         Use_Block_IO.
5400
5401         * gnat_rm.texi: Add section of pragma Canonical_Streams.
5402
5403         * gnat_ugn.texi:
5404         Add pragma Canonical_Streams to the list of configuration pragmas.
5405
5406 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5407
5408         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
5409         has the form A.B.C and B is a unit renaming, analyze its compilation
5410         unit and add a with_clause on A.b to the context.
5411
5412 2008-07-31  Vincent Celier  <celier@adacore.com>
5413
5414         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
5415         return the empty string, instead of raising Constraint_Error.
5416
5417 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
5418
5419         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
5420
5421         * checks.adb (Apply_Accessibility_Check): Insert the check on
5422         Insert_Node.
5423
5424         * exp_attr.adb:
5425         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
5426         to new parameter Insert_Node on call to Apply_Accessibility_Check.
5427         Necessary to distinguish the insertion node because the dereferenced
5428         formal may come from a rename, but the check must be inserted in
5429         front of the attribute.
5430
5431         * exp_ch4.adb:
5432         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
5433         call to Apply_Accessibility_Check.
5434         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
5435         on call to Apply_Accessibility_Check.
5436         Minor reformatting
5437
5438 2008-07-31  Javier Miranda  <miranda@adacore.com>
5439
5440         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
5441         types when the candidate type is a synchronized type.
5442
5443         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
5444         types, and complete management of synchronized types adding missing
5445         code to handle formal that is a synchronized type.
5446
5447         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
5448         are not available and cause the compiler to blowup. Found compiling
5449         test with switch -gnatc
5450
5451         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
5452         Has_Correct_Formal_Mode plus code cleanup.
5453
5454 2008-07-31  Bob Duff  <duff@adacore.com>
5455
5456         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
5457         recognized as two end-of-lines, but it should be just one.
5458
5459 2008-07-31  Thomas Quinot  <quinot@adacore.com>
5460
5461         * exp_ch9.adb: Minor reformatting
5462
5463         * tbuild.ads: Fix several occurrences of incorrectly referring to
5464         Name_Find as Find_Name.
5465
5466 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5467
5468         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
5469         and the context is an object declaration with non-static bounds, treat
5470         the aggregate as non-static.
5471
5472 2008-07-31  Vincent Celier  <celier@adacore.com>
5473
5474         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
5475         Move back spec of Parse_Single_Project to body, as it is not called
5476         outside of package Prj.Part.
5477         (Project_Data): Remove components Linker_Name, Linker_Path and
5478         Minimum_Linker_Options as they are no longer set.
5479         Remove function There_Are_Ada_Sources from package Prj and move code
5480         in the only place it was used, in Prj.Env.Set_Ada_Paths.
5481
5482 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
5483
5484         * mlib-utl.ads: Fix typo.
5485
5486 2008-07-31  Robert Dewar  <dewar@adacore.com>
5487
5488         * sem_ch12.adb: Minor reformatting
5489
5490 2008-07-31  Sergey Rybin  <rybin@adacore.com>
5491
5492         * gnat_ugn.texi: Change the description of the
5493         Overly_Nested_Control_Structures: now the rule always requires a
5494         positive parameter for '+R' option
5495
5496 2008-07-31  Thomas Quinot  <quinot@adacore.com>
5497
5498         * g-pehage.adb: Minor reformatting
5499
5500 2008-07-31  Pascal Obry  <obry@adacore.com>
5501
5502         * s-finimp.ads: Minor reformatting.
5503
5504 2008-07-31  Vincent Celier  <celier@adacore.com>
5505
5506         * s-regexp.ads: Minor comment fix
5507
5508 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
5509
5510         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
5511         so that we can compile this file successfully with -gnatc.
5512
5513 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5514
5515         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
5516         of the type when looking for stream subprograms for type String,
5517         Wide_String and Wide_Wide_String.
5518
5519         * s-ststop.adb: Change the initialization expression of constant
5520         Use_Block_IO.
5521
5522 2008-07-31  Geert Bosch  <bosch@adacore.com>
5523
5524         * arit64.c:
5525         New file implementing __gnat_mulv64 signed integer multiplication with
5526         overflow checking
5527
5528         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
5529
5530         * gcc-interface/gigi.h:
5531         (standard_types): Add ADT_mulv64_decl
5532         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
5533
5534         * gcc-interface/utils.c:
5535         (init_gigi_decls): Add initialization of mulv64_decl
5536
5537         * gcc-interface/trans.c:
5538         (build_unary_op_trapv): New function
5539         (build_binary_op_trapv): New function
5540         (gnat_to_gnu): Use the above functions instead of
5541         build_{unary,binary}_op
5542
5543         * gcc-interface/Makefile.in
5544         (LIBGNAT_SRCS): Add arit64.c
5545         (LIBGNAT_OBJS): Add arit64.o
5546
5547 2008-07-31  Vincent Celier  <celier@adacore.com>
5548
5549         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
5550         Linker'Default_Switches are declared. Warn if they are declared.
5551
5552 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5553
5554         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
5555         Insert_Actions to place the pointer declaration in the code, rather
5556         than Insert_Before_And_Analyze, so that insertions of temporaries are
5557         kept in the proper order when transient scopes are present.
5558
5559
5560 2008-07-31  Robert Dewar  <dewar@adacore.com>
5561
5562         * einfo.adb (Spec_PPC): Now defined for generic subprograms
5563
5564         * einfo.ads (Spec_PPC): Now defined for generic subprograms
5565
5566         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
5567         subprogram case
5568
5569 2008-07-31  Vincent Celier  <celier@adacore.com>
5570
5571         * s-os_lib.adb: Minor comment fix
5572
5573 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5574
5575         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
5576         transfer pre/postconditions from generic copy to original tree, so that
5577         they will appear in each instance.
5578         (Process_PPCs): Do not transform postconditions into a procedure in a
5579         generic context, to prevent double expansion of check pragmas.
5580
5581         * sem_attr.adb: In an instance, the prefix of the 'result attribute
5582         can be the renaming of the
5583         current instance, so check validity of the name accordingly.
5584
5585 2008-07-31  Robert Dewar  <dewar@adacore.com>
5586
5587         * mlib-utl.ads: Minor reformatting
5588
5589 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5590
5591         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
5592         from context. This attribute must be usable in Ada95 mode.
5593         The attribute can appear in the body of a function marked
5594         Inline_Always, but in this case the postocondition is not enforced.
5595
5596         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
5597         of an inlined call pre- and postconditions are legal
5598
5599 2008-07-31  Vincent Celier  <celier@adacore.com>
5600
5601         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
5602         were for gprmake only
5603
5604 2008-07-31  Robert Dewar  <dewar@adacore.com>
5605
5606         * gnat_ugn.texi: Update -gnatN documentation.
5607
5608         * gnat_rm.texi: Add note about pre/postcondition
5609         pragmas not checked in conjunction with front-end inlining.
5610
5611 2008-07-31  Robert Dewar  <dewar@adacore.com>
5612
5613         * g-pehage.adb, g-pehage.ads: Minor reformatting
5614
5615 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
5616
5617         * mlib-utl.ads, prj-makr.ads: Add comments.
5618
5619 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5620
5621         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
5622         [WINDOWS]: Add s-winext.o.
5623
5624 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5625
5626         PR ada/36554
5627         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
5628         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
5629         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
5630         Set precision to 1 for subtype of BOOLEAN_TYPE.
5631         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
5632         (make_type_from_size): Deal with BOOLEAN_TYPE.
5633         * gcc-interface/misc.c (gnat_print_type): Likewise.
5634         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
5635         Set boolean_type_node as its translation in the table, as well
5636         as boolean_false_node for False and boolean_true_node for True.
5637         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
5638         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
5639         (create_param_decl): Deal with BOOLEAN_TYPE.
5640         (build_vms_descriptor): Likewise.
5641         (build_vms_descriptor64): Likewise.
5642         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
5643
5644 2008-07-30  Robert Dewar  <dewar@adacore.com>
5645
5646         * exp_ch9.adb: Minor reformatting
5647
5648         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
5649         if no primitive operation is found.
5650
5651         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
5652
5653         * sem_ch8.adb: Minor reformatting
5654
5655 2008-07-30  Laurent Pautet  <pautet@adacore.com>
5656
5657         * g-pehage.adb:
5658         Remove a limitation on the length of the words handled by the minimal
5659         perfect hash function generator.
5660
5661         * g-pehage.ads:
5662         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
5663         Fix some typos.
5664
5665 2008-07-30  Robert Dewar  <dewar@adacore.com>
5666
5667         * gnatlink.adb: Minor reformatting
5668
5669 2008-07-30  Thomas Quinot  <quinot@adacore.com>
5670
5671         * rtsfind.adb (Check_RPC): Check version consistency even when not
5672         generating RCI stubs. Provide more detailed error message in case of
5673         mismatch.
5674
5675 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
5676
5677         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
5678         as a actual in an instance, check for a missing attribute to prevent
5679         program_error on an illegal program.
5680
5681         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
5682         error if primitive is not found, so that exception can be handled
5683         elsewhere on illegal programs.
5684
5685 2008-07-30  Robert Dewar  <dewar@adacore.com>
5686
5687         * uintp.adb (UI_GCD): Fix potential overflow
5688
5689 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5690
5691         * einfo.adb: Flag245 is now used.
5692         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
5693         check to include functions.
5694         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5695         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
5696         include functions.
5697         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
5698         to the list of displayed flags.
5699
5700         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
5701         Wrapped_Entity. These two flags are now present in functions.
5702         New flag Is_Private_Primitive.
5703         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5704
5705         * exp_ch9.adb:
5706         (Build_Wrapper_Bodies): New subprogram.
5707         (Build_Wrapper_Body): The spec and body have been moved to in
5708         Build_Wrapper_ Bodies. Code cleanup.
5709         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
5710         Wrappers are now generated for primitives declared between the private
5711         and full view of a concurrent type that implements an interface.
5712         (Build_Wrapper_Specs): New subprogram.
5713         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
5714         creation mechanism with a call to Build_Wrapper_Bodies.
5715         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
5716         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
5717         (Expand_N_Task_Body): Replace the wrapper body creation
5718         mechanism with a call to Build_Wrapper_Bodies.
5719         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
5720         creation mechanism with a call to Build_Wrapper_Specs.
5721         (Is_Private_Primitive_Subprogram): New subprogram.
5722         (Overriding_Possible): Code cleanup.
5723         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
5724
5725         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
5726
5727         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
5728         (Process_Full_View): Build wrapper specs for all primitives
5729         that belong to a private view completed by a concurrent type
5730         implementing an interface.
5731
5732         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
5733         is a primitive of a
5734         concurrent type with a private view that implements an interface, try to
5735         find the proper spec.
5736         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
5737         primitive if the type of its first parameter is a non-generic tagged
5738         private type.
5739         (Analyze_Subprogram_Specification): Code reformatting.
5740         (Disambiguate_Spec): New routine.
5741         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
5742         (Is_Private_Concurrent_Primitive): New routine.
5743
5744         * sem_ch6.ads:
5745         (Find_Corresponding_Spec): Add a formal to control the output of errors.
5746
5747 2008-07-30  Doug Rupp  <rupp@adacore.com>
5748
5749         * gigi.h (build_vms_descriptor64): New function prototype.
5750         (fill_vms_descriptor): Modified function prototype.
5751
5752         * utils.c (build_vms_descriptor64): New function.
5753
5754         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
5755
5756         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
5757         argument.
5758
5759         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
5760         64bit and 32bit descriptor and save the 64bit version as an alternate
5761         TREE_TYPE in the parameter.
5762         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
5763         thin pointer.
5764
5765         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
5766
5767 2008-07-30  Robert Dewar  <dewar@adacore.com>
5768
5769         * make.adb: Minor reformatting
5770
5771         * mlib-utl.adb: Minor reformatting
5772
5773         * osint.ads: Minor reformatting
5774
5775 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
5776
5777         * adaint.c
5778         (__gnat_file_exists): Do not use __gnat_stat for RTX.
5779         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
5780         avoid the use of this symbol from libgcc.a in RTX kernel mode.
5781
5782         * cio.c
5783         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
5784         the function RtPrintf for console output.
5785
5786         * argv.c Do not use the environ variable for RTX.
5787
5788         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
5789         been moved before the call to Osint.Add_Default_Search_Dirs in order
5790         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
5791         from the appropriate run time.
5792
5793         * targparm.ads
5794         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
5795         target is a RTSS module for RTX.
5796
5797         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
5798         RTX_RTSS_Kernel_Module
5799         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
5800
5801         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
5802         exception handling mechanism for Windows and RTX in Win32 mode, but
5803         not for RTX in kernel mode (RTSS).
5804         (LIBGNAT_SRCS): Remove ada.h
5805
5806 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
5807
5808         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
5809         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5810         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
5811         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
5812         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
5813         ALL_ADA_CFLAGS): Remove.
5814         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
5815         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5816         (GCC_CFLAGS): Remove X_CFLAGS.
5817         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
5818         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
5819         (ADA_CFLAGS): Substitute.
5820
5821 2008-07-30  Laurent Guerby  <laurent@guerby.net>
5822
5823         PR ada/5911
5824         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
5825         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
5826         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
5827         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
5828         by stamp-gnatlib2-rts.
5829
5830 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5831
5832         PR documentation/15479
5833         * gnat-style.texi: Remove AdaCore copyright statement and GPL
5834         statement for GNAT.  Add @copying stanza, use it.  Update to
5835         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
5836         title as Front-Cover Text.
5837         * gnat_rm.texi: Likewise.
5838         * gnat_ugn.texi: Likewise.
5839
5840 2008-07-29  Jan Hubicka  <jh@suse.cz>
5841
5842         * trans.c (process_inlined_subprograms): Remove tree_really_inline
5843         check.
5844
5845 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
5846
5847         * gcc-interface: New directory.
5848
5849         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
5850         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
5851         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
5852         to gcc-interface subdirectory.
5853
5854 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5855
5856         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
5857
5858 2008-07-28  Jan Hubicka  <jh@suse.cz>
5859
5860         * misc.c (gnat_post_options): Do not set flag_no_inline.
5861
5862 2008-07-28  Richard Guenther  <rguenther@suse.de>
5863
5864         Merge from gimple-tuples-branch.
5865
5866         2008-07-22  Olivier Hainque  <hainque@adacore.com>
5867
5868         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
5869         this is called for an elab proc to be discarded if empty.
5870         * utils.c (end_subprog_body): Honor ELAB_P.
5871         (build_function_stub): Adjust call to end_subprog_body.
5872         * trans.c (Subprogram_Body_to_gnu): Likewise.
5873         (gigi): Reorganize processing of elab procs to prevent
5874         gimplifying twice, using the new end_subprog_body argument.
5875
5876         2008-07-19  Richard Guenther  <rguenther@suse.de>
5877
5878         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
5879         (utils.o): Likewise.
5880         * trans.c: Include tree-iterator.h.
5881         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
5882         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
5883         (set_expr_location_from_node): Likewise.
5884         (gigi): Tuplify.
5885         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
5886         of GENERIC_NEXT.
5887         * utils.c: Include tree-iterator.h.
5888         * gigi.h (gnat_gimplify_expr): Adjust prototype.
5889
5890         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
5891
5892         * trans.c: Include gimple.h instead of tree-gimple.h.
5893         * utils.c: Same.
5894
5895         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
5896
5897         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
5898
5899 2008-07-25  Jan Hubicka  <jh@suse.cz>
5900
5901         * utils.c (end_subprog_body): Remove inline trees check.
5902         * misc.c (gnat_post_options): Do not set flag_inline_trees.
5903
5904 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5905
5906         * raise-gcc.c: Move tsystem.h before tm.h.
5907
5908 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
5909
5910         * gnathtml.pl: New file.
5911
5912 2008-07-19  Olivier Hainque  <hainque@adacore.com>
5913
5914         * targtyps.c (get_target_default_allocator_alignment): Use
5915         MALLOC_ABI_ALIGNMENT.
5916
5917 2008-07-17  Olivier Hainque  <hainque@adacore.com>
5918
5919         * adaint.c (__MINGW32__ section): Include ctype.h and define
5920         a fallback ISALPHA if IN_RTS.
5921         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
5922
5923 2008-07-17  Olivier Hainque  <hainque@adacore.com>
5924
5925         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
5926         argument, to apply to references in addition to definitions.  Prevent
5927         setting TREE_STATIC on externals.
5928         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
5929
5930 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5931
5932         PR documentation/15479
5933         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
5934         Replace backets around optional parameters with @ovar
5935         where possible, use @r{[}, @r{]} otherwise.
5936         Replace some @r, @i, and @emph with @var where appropriate.
5937
5938 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5939
5940         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
5941
5942 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5943
5944         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
5945         -Wc++-compat warnings.
5946         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
5947         __gnat_locate_exec_on_path): Likewise.
5948         * decl.c (annotate_value): Likewise.
5949         * misc.c (gnat_handle_option): Likewise.
5950         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
5951         post_error_ne_tree): Likewise.
5952
5953 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5954
5955         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
5956         version of its type, attempt to first convert its elements.
5957
5958 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
5959
5960         * Makefile.in: Fix *86 kfreebsd target specific pairs.
5961
5962 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
5963
5964         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
5965
5966 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5967
5968         * utils2.c (known_alignment): Derive the alignment from pointed-to
5969         types only if it is otherwise unknown.
5970         <INTEGER_CST>: Tidy.
5971         <MULT_EXPR>: Likewise.
5972         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
5973         that of the base.
5974
5975 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5976
5977         PR ada/36573
5978         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
5979
5980 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5981
5982         * gnat_rm.texi (Implementation Defined Characteristics)
5983         (Standard Library Routines): Use @smallexample for indented
5984         text.  Drop Indentation outside examples.
5985         * gnat_ugn.texi: Likewise.
5986
5987 2008-06-13  Olivier Hainque  <hainque@adacore.com>
5988
5989         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
5990         if undefined.
5991         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
5992         realignment with force_align_arg_pointer attribute on foreign
5993         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5994
5995 2008-06-13  Olivier Hainque  <hainque@adacore.com>
5996
5997         * utils.c (rest_of_record_type_compilation): When computing
5998         encodings for the components of a variable size type, early
5999         strip conversions on the current position expression to make
6000         sure it's shape is visible.  Use remove_conversions for this
6001         purpose.
6002
6003 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
6004
6005         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
6006         constrained subtype of a discriminated type, discard the fields that
6007         are beyond its limits according to its size.
6008
6009 2008-06-10  Olivier Hainque  <hainque@adacore.com>
6010
6011         * utils.c (create_subprog_decl): If this is for the 'main' entry
6012         point according to the asm name, redirect main_identifier_node.
6013
6014 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
6015
6016         * decl.c (components_to_record): Adjust the packedness for the
6017         qualified union as well.
6018
6019 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
6020
6021         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
6022         checks non fatal.
6023
6024 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
6025
6026         * sem_res.adb (Large_Storage_Type): A type is large if it
6027         requires as many bits as Positive to store its values and its
6028         bounds are known at compile time.
6029         * sem_ch13.adb (Minimum_Size): Note that this function returns
6030         0 if the size is not known at compile time.
6031
6032 2008-06-06  Nicolas Setton  <setton@adacore.com>
6033             Olivier Hainque  <hainque@adacore.com>
6034
6035         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
6036         attribute, parallel descriptive type attached to another
6037         type for debug info generation purposes.
6038         * utils.c (add_parallel_type): New function, register
6039         parallel type to be attached to a type.
6040         (get_parallel_type): New function, fetch a registered
6041         parallel type, if any.
6042         (rest_of_record_type_compilation): Register the parallel
6043         type we make for variable size records.
6044         * gigi.h (add_parallel_type, get_parallel_type): Declare.
6045         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
6046         parallel debug types we make.
6047         * trans.c (extract_encoding, decode_name): New functions.
6048         (gigi): If the DWARF attribute extensions are available, setup
6049         to use them.
6050         * lang.opt: Register language specific processing request
6051         for -gdwarf+.
6052         * misc.c (gnat_dwarf_extensions): New global variable. How much
6053         do we want of our DWARF extensions. 0 by default.
6054         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
6055         (gnat_post_options): Map gnat_dwarf_extensions to the
6056         commonuse_gnu_debug_info_extensions for later processing.
6057
6058 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
6059
6060         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
6061
6062 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6063
6064         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
6065         * gnat_ugn.texi (Style Checking)
6066         (Adding the Results of Compiler Checks to gnatcheck Output)
6067         (Example of Binder Output File): Fix typos.
6068         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
6069         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
6070         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
6071         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
6072         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
6073         sinfo.ads, utils.c: Fix typos in comments.
6074         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
6075
6076 2008-05-29  Thomas Quinot  <quinot@adacore.com>
6077
6078         * sem_eval.adb: Minor reformatting
6079
6080 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
6081
6082         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
6083         is abstract, do not apply abstractness check on subprogram if this is
6084         a renaming declaration.
6085
6086 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
6087
6088         PR ada/864
6089         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
6090         allow recognition of program suffix in addition to prefix.
6091
6092         * gnatchop.adb (Locate_Executable): Add support for prefix.
6093
6094         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
6095         mlib-utl.adb: Adjust calls to Program_Name.
6096
6097 2008-05-29  Robert Dewar  <dewar@adacore.com>
6098
6099         * sem_ch3.adb: Minor reformatting
6100         * sem_prag.adb: Minor reformatting
6101         * sem_res.adb: Minor reformatting
6102         * sinput-p.ads: Minor reformatting
6103
6104 2008-05-29  Javier Miranda  <miranda@adacore.com>
6105
6106         * sem_util.adb:
6107         (Abstract_Interface_List): Add missing support for full type-declaration
6108         associated with synchronized types.
6109
6110 2008-05-29  Robert Dewar  <dewar@adacore.com>
6111
6112         * sem_eval.adb (Is_Same_Value): Take care of several more cases
6113
6114 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
6115
6116         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
6117         access type, wrap the expression in a conversion to force an
6118         accessibility check.
6119
6120         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
6121         accessibility checks even when expansion is disabled in order to
6122         generate messages in the presence of previous errors or in
6123         semantics-only mode.
6124
6125 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
6126
6127         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
6128         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
6129
6130 2008-05-28  Vincent Celier  <celier@adacore.com>
6131
6132         PR ada/34446
6133         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
6134         preprocessing expressions
6135
6136 2008-05-28  Vincent Celier  <celier@adacore.com>
6137
6138         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
6139         for preprocessing
6140
6141         * sinput-p.ads: Minor comment update and reformatting
6142
6143 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
6144
6145         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
6146         type has a deeper level than any master only when it is the type of an
6147         access parameter.
6148
6149 2008-05-28  Javier Miranda  <miranda@adacore.com>
6150
6151         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
6152
6153 2008-05-28  Javier Miranda  <miranda@adacore.com>
6154
6155         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
6156         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
6157         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
6158         Add code that was previously located in
6159         Find_Overridden_Synchronized_Primitive because it is only used here.
6160
6161 2008-05-28  Sergey Rybin  <rybin@adacore.com>
6162
6163         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
6164         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
6165
6166 2008-05-28  Robert Dewar  <dewar@adacore.com>
6167
6168         * restrict.ads:
6169         Add missing restrictions, and properly label all GNAT defined ones
6170
6171         * rtsfind.ads:
6172         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
6173         Add entry for Ada.Task_Termination.Set_Specific_Handler
6174         Add entry for Ada.Task_Termination.Specific_Handler
6175
6176         * s-rident.ads:
6177         Add missing restrictions and properly mark all gnat defined ones
6178
6179         * sem_ch3.adb:
6180         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
6181
6182         * sem_res.adb:
6183         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
6184
6185         * gnat_rm.texi: Add missing restrictions, and properly label all
6186         GNAT defined ones
6187
6188 2008-05-28  Robert Dewar  <dewar@adacore.com>
6189
6190         * restrict.adb:
6191         (Check_Restriction): violation of restriction No_Finalization is
6192         treated as a serious error to stop expansion
6193
6194 2008-05-28  Robert Dewar  <dewar@adacore.com>
6195
6196         * exp_util.adb: Minor reformatting
6197         * exp_util.ads: Minor reformatting.
6198
6199 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
6200
6201         * Make-lang.in: Remove gprmake.
6202
6203         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
6204
6205 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
6206
6207         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
6208         improper progenitor names, and avoid cascaded errors.
6209
6210 2008-05-28  Robert Dewar  <dewar@adacore.com>
6211
6212         * gnat_rm.texi: Add note on Old giving warning when applied to constant
6213
6214         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
6215         a constant
6216
6217 2008-05-28  Robert Dewar  <dewar@adacore.com>
6218
6219         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
6220         size
6221
6222 2008-05-28  Robert Dewar  <dewar@adacore.com>
6223
6224         * exp_ch5.adb:
6225         (Expand_Simple_Function_Return): Copy unaligned result into temporary
6226
6227 2008-05-28  Javier Miranda  <miranda@adacore.com>
6228
6229         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
6230         for user-defined predefined primitives.
6231
6232         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
6233         (Find_Overridden_Synchronized_Primitive): Ditto.
6234
6235         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
6236
6237 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
6238
6239         * a-ststio.adb, s-direio.adb:
6240         Further code clean up of previous change.
6241         Update comments.
6242
6243 2008-05-27  Vincent Celier  <celier@adacore.com>
6244
6245         * prj-nmsc.adb: Minor reformatting
6246
6247 2008-05-27  Bob Duff  <duff@adacore.com>
6248
6249         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
6250         untagged private type with a tagged full type, where the full type has
6251         a self reference, create the corresponding class-wide type early, in
6252         case the self reference is "access T'Class".
6253
6254 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6255
6256         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
6257         tasks and context is an object declaration. create master entity before
6258         expansion.
6259
6260 2008-05-27  Robert Dewar  <dewar@adacore.com>
6261
6262         * mlib-prj.adb: Minor reformatting
6263
6264         * prj-part.adb: Minor reformatting
6265
6266         * prj.ads: Minor reformatting
6267
6268         * exp_ch3.adb: Minor reformatting.
6269
6270         * sem_ch3.ads: Minor reformatting
6271
6272         * sem_eval.adb: Minor reformatting
6273
6274 2008-05-27  Vincent Celier  <celier@adacore.com>
6275
6276         * gnatcmd.adb:
6277         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
6278
6279 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6280
6281         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
6282         tasks, create an activation chain now, before the expansion into
6283         assignments and build-in-place calls that require the presence of an
6284         activation chain.
6285         (Backend_Processing_Possible): If the component type is inherently
6286         limited, the aggregate must be expanded into individual built-in-place
6287         assignments.
6288
6289         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
6290         determine whether an allocation extra parameter must be built, to
6291         handle case of a private type whose full type is a discriminated type
6292         with defaults.
6293
6294 2008-05-27  Bob Duff  <duff@adacore.com>
6295
6296         * gnat_rm.texi:
6297         Document the new behavior regarding trampolines.
6298
6299 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
6300
6301         * a-direio.adb, a-sequio.adb: Replace address clause by
6302         unrestricted_access, simpler and compatible with .NET.
6303
6304 2008-05-27  Vincent Celier  <celier@adacore.com>
6305
6306         * prj-part.adb:
6307         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
6308         a project file, so that symbolic links are not resolved.
6309
6310 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
6311
6312         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
6313         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
6314         portable across GNAT targets, since this kind of address clause is not
6315         supported by VM back-ends (.NET/JGNAT).
6316
6317 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
6318
6319         * bindgen.adb: Update comments.
6320
6321         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
6322
6323 2008-05-27  Vincent Celier  <celier@adacore.com>
6324
6325         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
6326         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
6327         mlib-tgt.adb, prj-env.adb, prj-env.ads:
6328         (Path_Information): New record type
6329         Use component of type Path_Information when there are two paths, one in
6330         canonical format and one in display format.
6331         Update the project manager to these new components.
6332
6333 2008-05-27  Robert Dewar  <dewar@adacore.com>
6334
6335         * makeutl.adb: Minor reformatting
6336         * prj-nmsc.adb: Minor reformatting
6337         * s-stausa.adb: Minor reformatting
6338         * s-stausa.ads: Minor reformatting
6339         * sem_ch6.adb: Minor reformatting
6340
6341 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6342
6343         * sem_res.adb: Minor comment fixes
6344
6345 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6346
6347         * makeutl.adb: Minor code reorganization
6348
6349         * exp_aggr.adb: Add ??? comment
6350         Fix typo
6351
6352         * exp_ch6.adb: Minor reformatting
6353
6354 2008-05-27  Quentin Ochem  <ochem@adacore.com>
6355
6356         * s-stausa.adb (Initialize): Updated result initialization, and
6357         initialization of environment stack.
6358         (Fill_Stack): Improved computation of the pattern zone, taking into
6359         account already filled at the calling point.
6360         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
6361         Measure and Overflow_Guard.
6362         (Report_Result): Fixed computation of the result using new fields of
6363         Stack_Analyzer.
6364
6365         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
6366         params by more explicit Stack_Size / Max_Pattern_Size params.
6367         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
6368         Added Stack_Used_When_Filling field.
6369         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
6370         Min_Measure and Max_Measure fields.
6371
6372         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
6373
6374 2008-05-27  Vincent Celier  <celier@adacore.com>
6375
6376         * prj-nmsc.adb:
6377         (Check_File): Make sure that a unit that replaces the same unit in a
6378          project being extended is properly processed.
6379
6380 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6381
6382         * sem_ch3.adb:
6383         (Get_Discr_Value): Remove obsolete code that failed to find the value
6384         of a discriminant for an inherited task component appearing in a type
6385         extension.
6386
6387 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6388
6389         (System.File_IO.{Close, Delete, Reset}):
6390         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
6391
6392         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
6393         Pass File parameter by reference.
6394
6395 2008-05-27  Vincent Celier  <celier@adacore.com>
6396
6397         * prj-nmsc.adb:
6398         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
6399         sources of the same project that have the same object file name.
6400         (Find_Explicit_Sources): Always remove a source exception that was not
6401         found.
6402
6403 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6404
6405         * sem_ch3.adb: Minor reformatting
6406
6407 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6408
6409         * sem_ch6.adb:
6410         (Is_Interface_Conformant): Handle properly a primitive operation that
6411         overrides an interface function with a controlling access result.
6412         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
6413         inherited and overriding operations, omit as well the conformance check
6414         on result types, to prevent spurious errors.
6415
6416 2008-05-27  Vincent Celier  <celier@adacore.com>
6417
6418         * makeutl.ads, makeutl.adb:
6419         (Set_Location): New procedure
6420         (Get_Location): New function
6421         (Update_Main): New procedure
6422
6423 2008-05-27  Vincent Celier  <celier@adacore.com>
6424
6425         * prj-nmsc.adb:
6426         (Check_Library): Allow standard project to be extended as a static
6427         library project.
6428         (Get_Mains): Do not inherit attribute Main in an extending library
6429         project.
6430
6431 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6432
6433         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
6434         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
6435         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
6436         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
6437         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
6438         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
6439         * system-mingw.ads (Always_Compatible_Rep): Likewise.
6440         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
6441         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
6442         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
6443
6444 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6445
6446         * sem_attr.adb: add guard to previous patch.
6447
6448 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6449
6450         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
6451         a synchronized tagged type, do not attempt to build dispatch table for
6452         full view. The table is built for the corresponding record type, which
6453         has its own declaration.
6454
6455 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
6456
6457         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
6458         to the known type entity E, rather than setting it to Any_Type. Fixes
6459         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
6460         for objects whose type had an illegal constraint.
6461
6462 2008-05-27  Vincent Celier  <celier@adacore.com>
6463
6464         * gnat_ugn.texi:
6465         Add succinct documentation for attribute Excluded_Source_List_File
6466
6467 2008-05-27  Vincent Celier  <celier@adacore.com>
6468
6469         * prj-attr.adb: Add new project level attribute Map_File_Option
6470
6471         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
6472
6473         * prj.ads: Minor reformatting and comment update
6474         (Project_Configuration): New component Map_File_Option
6475
6476         * snames.adb: New standard name Map_File_Option
6477
6478         * snames.ads: New standard name Map_File_Option
6479
6480 2008-05-27  Vincent Celier  <celier@adacore.com>
6481
6482         * xsnames.adb: Remove unused variable Oname
6483
6484 2008-05-27  Doug Rupp  <rupp@adacore.com>
6485
6486         * exp_ch6.adb:
6487         (Expand_N_Function_Call): Fix comments. Minor reformatting.
6488
6489         * exp_vfpt.ads:
6490         (Expand_Vax_Foreign_Return): Fix comments.
6491
6492 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6493
6494         * exp_dist.adb: Minor reformating
6495
6496 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
6497
6498         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
6499         No_Default_Initialization, which is now delayed until the freeze point
6500         of the object. Add a comment about deferral of the check.
6501
6502         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
6503         on objects is moved here.
6504
6505 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6506
6507         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
6508         (Compare_Array_S16): Adjust for above change.
6509         * s-casi32.adb (Uword): Likewise.
6510         (Compare_Array_S32): Likewise.
6511         * s-casi64.adb (Uword): Likewise.
6512         (Compare_Array_S64): Likewise.
6513         * s-caun16.adb (Uhalf): Likewise.
6514         (Compare_Array_U16): Likewise.
6515         * s-caun32.adb (Uword): Likewise.
6516         (Compare_Array_U32): Likewise.
6517         * s-caun64.adb (Uword): Likewise.
6518         (Compare_Array_U64): Likewise.
6519
6520 2008-05-26  Robert Dewar  <dewar@adacore.com>
6521
6522         * exp_ch6.adb: Add ??? comment for previous change
6523
6524         * exp_vfpt.adb: Minor reformatting
6525
6526         * exp_vfpt.ads: Add ??? comment for last change
6527
6528         * sem_attr.adb: Add some ??? comments for previous change
6529
6530         * s-vaflop.ads: Add comments for previous change
6531
6532 2008-05-26  Doug Rupp  <rupp@adacore.com>
6533
6534         * s-vaflop-vms-alpha.adb:
6535         Remove System.IO use clause, to prevent spurious ambiguities when
6536         package is access through rtsfind.
6537
6538 2008-05-26  Sergey Rybin  <rybin@adacore.com>
6539
6540         * tree_io.ads (ASIS_Version_Number): Update because of the changes
6541         made in front-end
6542
6543 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6544
6545         * sem_attr.adb:
6546         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
6547         converted to S (A)'address only if A .. B is known to be a non-null
6548         range.
6549
6550 2008-05-26  Doug Rupp  <rupp@adacore.com>
6551
6552         * s-vaflop.adb:
6553         (Return_D, Return_F, Return_G): New functions.
6554
6555         * s-vaflop.ads:
6556         (Return_D, Return_F, Return_G): New functions.
6557
6558         * exp_vfpt.adb:
6559         (Expand_Vax_Foreign_Return): New procedure
6560
6561         * exp_vfpt.ads:
6562         (Expand_Vax_Foreign_Return): New procedure
6563
6564         * rtsfind.ads:
6565         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
6566         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
6567
6568         * exp_ch6.adb:
6569         Import Exp_Vfpt
6570         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
6571
6572         * s-vaflop-vms-alpha.adb:
6573         (Return_D, Return_F, Return_G): New functions.
6574
6575 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
6576
6577         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
6578         init proc entity when there is actual default initialization associated
6579         with the component type, to avoid spurious errors on objects of scalar
6580         array types that are marked Is_Public when No_Default_Initialization
6581         applies.
6582
6583 2008-05-26  Thomas Quinot  <quinot@adacore.com>
6584
6585         * rtsfind.ads, rtsfind.adb:
6586         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
6587         (Check_RPC): Support per-PCS-kind API versioning.
6588
6589         exp_dist.ads, exp_dist.adb:
6590         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
6591         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
6592          library function Get_RACW.
6593         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
6594         library function Get_Reference.
6595         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
6596         through an intermediate Any.
6597         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
6598         going through an intermediate Any.
6599
6600         * sem_dist.adb: Minor reformatting.
6601
6602 2008-05-26  Javier Miranda  <miranda@adacore.com>
6603
6604         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
6605         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6606         (Is_Internal): Adding documentation on internal entities that have
6607         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
6608
6609         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
6610         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6611         Added assertion to force entities with this attribute to have
6612         attribute Is_Internal set to True.
6613         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
6614
6615         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
6616         renamed as Derive_Progenitor_Subprograms. In addition, its code is
6617         a new implementation.
6618         (Add_Interface_Tag_Components): Remove special management of
6619         synchronized interfaces.
6620         (Analyze_Interface_Declaration): Minor reformating
6621         (Build_Derived_Record_Type): Minor reformating
6622         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
6623         predefined primitive inherited from interface type because the body of
6624         internally generated predefined primitives of tagged types are generated
6625         later by Freeze_Type
6626         (Derive_Subprogram): Avoid generating an internal name if the parent
6627         subprogram overrides an interface primitive.
6628         (Derive_Subprograms): New implementation that keeps separate the
6629         management of tagged types not implementing interfaces, from tagged
6630         types that implement interfaces.
6631         (Is_Progenitor): New implementation.
6632         (Process_Full_View): Add documentation
6633         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
6634         by call to Derive_Progenitor_Subprograms.
6635
6636         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
6637         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6638         Skip_Controlling_Formals.
6639
6640         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
6641         (Check_Conventions): New implementation. Remove local subprogram
6642         Skip_Check. Remove formal Search_From of routine Check_Convention.
6643         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6644         Skip_Controlling_Formals.
6645         (New_Overloaded_Entity): Enable addition of predefined dispatching
6646         operations.
6647
6648         * sem_disp.ads
6649         (Find_Primitive_Covering_Interface): New subprogram.
6650
6651         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
6652         the task body procedure as a primitive of the corresponding tagged
6653         type.
6654         (Check_Operation_From_Private_Type): Avoid adding twice an entity
6655         to the list of primitives.
6656         (Find_Primitive_Covering_Interface): New subprogram.
6657         (Override_Dispatching_Operation): Add documentation.
6658
6659         * sem_type.adb (Covers): Minor reformatings
6660
6661         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
6662         Collect_Interfaces.
6663         Rename formal.
6664         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
6665         (Implements_Interface): New subprogram.
6666         (Is_Parent): Removed.
6667         (Primitive_Names_Match): New subprogram.
6668         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6669         (Ultimate_Alias): New subprogram.
6670
6671         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
6672         Collect_Interfaces.
6673         Remove special management for synchronized types. Rename formal. Remove
6674         internal subprograms Interface_Present_In_Parent and Add_Interface.
6675         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
6676         on non-record types by code to return false in such case.
6677         (Implements_Interface): New subprogram.
6678         (Is_Parent): Removed. No special management is now required for
6679         synchronized types covering interfaces.
6680         (Primitive_Names_Match): New subprogram.
6681         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6682         (Ultimate_Alias): New subprogram.
6683
6684         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
6685         Add internal entities associated with secondary dispatch tables to
6686         the list of tagged type primitives that are not interfaces.
6687         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
6688         (Make_Predefined_Primitive_Specs): Code reorganization to improve
6689         the management of predefined equality operator. In addition, if
6690         the type has an equality function corresponding with a primitive
6691         defined in an interface type, the inherited equality is abstract
6692         as well, and no body can be created for it.
6693
6694         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
6695         exp_util to exp_disp.
6696         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
6697         an entity corresponds with one of the predefined primitives required
6698         to implement interfaces.
6699         Update copyright notice.
6700
6701         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
6702         final check on abstract subprograms all the primitives associated with
6703         interface primitives because they must be visible in the public and
6704         private part.
6705         (Write_DT): Use Find_Dispatching_Type to locate the name of the
6706         interface type. This allows the use of this routine, for debugging
6707         purposes, when the tagged type is not fully decorated.
6708         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
6709         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
6710         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
6711         entity corresponds with one of the predefined primitives required to
6712         implement interfaces.
6713
6714         * exp_util.adb (Find_Interface_ADT): New implementation
6715         (Find_Interface): Removed.
6716
6717         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
6718         list of interfaces associated with nodes
6719         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
6720
6721 2008-05-26  Thomas Quinot  <quinot@adacore.com>
6722
6723         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
6724         condition for assignment to temporary.
6725
6726 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6727
6728         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
6729         checks on the upper bound if the index type is a modular type, to
6730         prevent wrap-around computations when size is close to upper bound of
6731         type.
6732
6733 2008-05-26  Robert Dewar  <dewar@adacore.com>
6734
6735         * sem_ch3.adb: Minor reformatting
6736
6737 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6738
6739         * sem_ch12.adb (Remove_Parent): Use specification of instance
6740         to retrieve generic parent,
6741         to handle properly the case where the instance is a child unit.
6742         Add guard to handle properly wrapper packages.
6743         Minor reformatting
6744
6745 2008-05-26  Thomas Quinot  <quinot@adacore.com>
6746
6747         * sinfo.ads: Minor reformatting
6748
6749 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
6750
6751         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
6752         Generate a tag check when the result subtype of a function, defined by
6753         an access definition, designates a specific tagged type.
6754         (Make_Tag_Check): New routine.
6755
6756 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
6757
6758         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
6759
6760 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6761
6762         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
6763         (builtin_decl_for): Likewise.
6764         * trans.c (gigi): Likewise.
6765         * utils.c (def_builtin_1): Fix formatting.
6766
6767 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
6768
6769         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
6770         Create the statements which map a string name to protected or task
6771         entry indix.
6772
6773         * exp_ch9.adb: Add with and use clause for Stringt.
6774         Minor code reformatting.
6775         (Build_Entry_Names): New routine.
6776         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
6777         for flag Build_Entry_Names which controls the allocation of the data
6778         structure for the string names of entries.
6779
6780         * exp_ch9.ads (Build_Entry_Names): New subprogram.
6781
6782         * exp_util.adb (Entry_Names_OK): New function.
6783
6784         * exp_util.ads (Entry_Names_OK): New function.
6785
6786         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
6787         enumerations RE_Id and RE_Unit_Table.
6788
6789         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
6790         (Free_Entry_Names_Array): New routine.
6791
6792         * s-taskin.ads: Comment reformatting.
6793         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
6794         Add component Entry_Names to record Ada_Task_Control_Block.
6795         (Free_Entry_Names_Array): New routine.
6796
6797         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
6798         dynamically allocate an array
6799         of string pointers. This structure holds string entry names.
6800         (Free_Entry_Names): New routine.
6801         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
6802         (Set_Entry_Names): New routine.
6803
6804         * s-tassta.ads:
6805         (Create_Task): Add formal Build_Entry_Names. The flag is used to
6806         control the allocation of the data structure which stores entry names.
6807         (Set_Entry_Name): New routine.
6808
6809         * s-tpoben.adb:
6810         Add with and use clause for Ada.Unchecked_Conversion.
6811         (Finalize): Deallocate the entry names array.
6812         (Free_Entry_Names): New routine.
6813         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
6814         create an array of string pointers to hold the entry names.
6815         (Set_Entry_Name): New routine.
6816
6817         * s-tpoben.ads:
6818         Add field Entry_Names to record Protection_Entries.
6819         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
6820         (Set_Entry_Name): New routine.
6821
6822 2008-05-26  Vincent Celier  <celier@adacore.com>
6823
6824         * prj-nmsc.adb:
6825         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
6826
6827         * prj.ads:
6828         (Project_Configuration): New component Shared_Lib_Driver
6829
6830 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6831
6832         * inline.adb:
6833         (Cleanup_Scopes): For a protected operation, transfer finalization list
6834         to protected body subprogram, to force cleanup actions when needed.
6835
6836 2008-05-26  Robert Dewar  <dewar@adacore.com>
6837
6838         * sem_cat.adb: Minor reformatting
6839
6840         * gnatname.adb: Minor reformatting
6841
6842         * osint.ads: Minor reformatting
6843
6844         * s-carun8.ads: Minor reformatting
6845
6846         * g-heasor.ads: Minor comment fix (unit is now pure)
6847
6848 2008-05-26  Robert Dewar  <dewar@adacore.com>
6849
6850         * exp_ch2.adb:
6851         (Expand_Current_Value): Properly type generated integer literal
6852
6853 2008-05-26  Sergey Rybin  <rybin@adacore.com>
6854
6855         * gnat_ugn.texi: Add description for the new gnatcheck rule -
6856         Separate_Numeric_Error_Handlers.
6857
6858 2008-05-26  Pascal Obry  <obry@adacore.com>
6859
6860         * sem_aggr.adb: Minor reformatting.
6861
6862 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
6863
6864         * s-osinte-aix.adb:
6865         (To_Target_Priority): Setting the time slice value to 0 or greater sets
6866         the scheduling policy to FIFO within priorities or round-robin
6867         respectively.
6868         Hence, the priority must be set in this case to the one selected by the
6869         user.
6870
6871 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6872
6873         * sem_ch12.adb:
6874         (Remove_Parent): If the enclosing scope is an instance whose generic
6875         parent is declared within some parent scope of the just completed
6876         instance, make full views of the entities in that parent visible, when
6877         applicable.
6878
6879 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6880
6881         * mingw32.h (STD_MINGW): Set to true for target w64.
6882
6883 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6884
6885         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
6886         instead of TREE_STATIC on the ADDR_EXPR.
6887
6888 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
6889
6890         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
6891         (Sloc_to_locus): Do not overwrite known GCC locations when translating
6892         GNAT standard locations.
6893
6894 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6895
6896         * gigi.h (mark_visited): Declare.
6897         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
6898         only the topmost node of expressions.
6899         (elaborate_expression_1): Look deeper for read-only variables.
6900         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
6901         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
6902         (mark_visited_r): New function.
6903
6904 2008-05-23  Vincent Celier  <celier@adacore.com>
6905
6906         * snames.adb: New standard name Excluded_Source_List_File.
6907
6908         * snames.ads: New standard name Excluded_Source_List_File.
6909
6910         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
6911
6912         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
6913         Get excluded sources from
6914         file indicated by attribute Excluded_Source_List_File, when present and
6915         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
6916
6917 2008-05-23  Robert Dewar  <dewar@adacore.com>
6918
6919         * exp_dist.adb: Minor reformatting
6920
6921 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
6922
6923         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
6924         slice, convert it to an indexed component, which is equivalent, more
6925         efficient, and usable even if the slice itself is not addressable.
6926
6927 2008-05-23  Olivier Hainque  <hainque@adacore.com>
6928
6929         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
6930         convention also allows access to named compiler built-in subprograms
6931         such as the GCC __builtin family.
6932
6933 2008-05-23  Vincent Celier  <celier@adacore.com>
6934
6935         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
6936         sep. If there are several possibilities, choose the one with the
6937         longer prefix.
6938
6939 2008-05-23  Vincent Celier  <celier@adacore.com>
6940
6941         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
6942         back end switches when executable specified with --GCC= is same as
6943         default, even if there are additional options.
6944
6945         * gnat_ugn.texi:
6946         Document when the back end switches from the ALI file are taken into
6947         account when gnatlink is invoked with --GCC=
6948
6949 2008-05-23  Thomas Quinot  <quinot@adacore.com>
6950
6951         * s-os_lib.adb:
6952         (copy_File): Do not open destination file if source file is unreadable.
6953
6954 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6955
6956         * utils.c (handle_type_generic_attribute): Adjust to accept
6957         fixed arguments before an elipsis.
6958
6959 2008-05-21  Thomas Quinot  <quinot@adacore.com>
6960
6961         * g-sothco.ads, g-sothco.adb: New files.
6962
6963 2008-05-20  Thomas Quinot  <quinot@adacore.com>
6964
6965         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
6966
6967         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
6968         Add missing "with" of Ada.Unchecked_Conversion
6969
6970         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
6971         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
6972         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6973         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6974         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
6975         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
6976         Move common code out of GNAT.Sockets.Thin implementations and into
6977         Thin_Common.
6978         New constant SIZEOF_fd_set
6979         New flag Has_Sockaddr_Len
6980         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6981
6982         * g-stsifd-sockets.adb
6983         (Create): Remove call to Set_Length; use Set_Family to set the family
6984         and (on appropriate platforms) length fields in struct sockaddr.
6985
6986         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
6987         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
6988         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
6989         Move common code out of GNAT.Sockets.Thin implementations and into
6990         Thin_Common.
6991
6992         * g-socket.ads, g-socket.adb:
6993         Move common code out of GNAT.Sockets.Thin implementations and into
6994         Thin_Common.
6995         (Connect_Socket, Accept_Socket): Provide new versions of these two
6996         routines that operate with a user specified timeout.
6997         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
6998         this is now handled automatically by Set_Family on platforms that
6999         require it.
7000
7001         * gen-soccon.c:
7002         Move common code out of GNAT.Sockets.Thin implementations and into
7003         Thin_Common.
7004         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
7005         this constant to 0 (not -1) because we use it to initialize an
7006         unsigned_char value.
7007         Align values for numeric constants only.
7008         Handle the case of systems that do not support AF_INET6.
7009         New constant SIZEOF_fd_set
7010         New flag Has_Sockaddr_Len
7011         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7012
7013         * gsocket.h: New flag Has_Sockaddr_Len
7014         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7015
7016 2008-05-20  Santiago Uruena  <uruena@adacore.com>
7017
7018         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
7019
7020 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
7021
7022         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
7023         the underlying issue with malloc/free has been fixed. Remove associated
7024         comments.
7025         Minor reformatting.
7026         Related to PR ada/24533
7027
7028 2008-05-20  Robert Dewar  <dewar@adacore.com>
7029
7030         * ali.adb: Correct casing of ASCII.NUL
7031
7032         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
7033         properly.
7034
7035 2008-05-20  Robert Dewar  <dewar@adacore.com>
7036             Gary Dismukes  <dismukes@adacore.com>
7037
7038         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
7039         overflow if result converted to wider integer type.
7040         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
7041         discriminated types when discriminant checks are suppressed.
7042
7043 2008-05-20  Vincent Celier  <celier@adacore.com>
7044
7045         * cstand.adb (Print_Standard): Issue the correct Size clause for type
7046         Wide_Wide_Character.
7047
7048 2008-05-20  Tristan Gingold  <gingold@adacore.com>
7049
7050         * decl.c: Do not emit a variable for a object that has an address
7051         representation clause whose value is known at compile time.
7052         When a variable has an address clause whose value is known at compile
7053         time, refer to this variable by using directly the address instead of
7054         dereferencing a pointer.
7055
7056 2008-05-20  Robert Dewar  <dewar@adacore.com>
7057
7058         PR ada/30740
7059         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
7060         subtypes, always False for non-modular types.
7061         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
7062         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
7063         for Shared_Storage package.
7064         (Is_RACW_Stub_Type): New entity flag.
7065
7066         * exp_ch4.adb
7067         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
7068         case where we have a modular type with a non-binary modules.
7069         Comments reformattings.
7070
7071         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
7072         all types.
7073
7074 2008-05-20  Javier Miranda  <miranda@adacore.com>
7075
7076         * exp_aggr.adb
7077         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
7078         tests did not covered the case in which the type of the aggregate has
7079         no progenitors but some its parents has progenitors.
7080
7081 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
7082             Hristian Kirtchev  <kirtchev@adacore.com>
7083
7084         * exp_ch3.adb
7085         (Expand_N_Object_Declaration): Correct the condition which triggers the
7086         generation of a call to Displace when initializing a class-wide object.
7087         (Build_Dcheck_Functions): Build discriminant-checking for null variants
7088         when Frontend_Layout_On_Target is true to ensure that they're available
7089         for calling when a record variant size function is built in Layout.
7090
7091 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7092
7093         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7094         procedure for a derived type retrieve the discriminant values from the
7095         parent using the corresponding discriminant.
7096         (Expand_N_Assignment_Statement): Skip generation of implicit
7097         if-statement associated with controlled types if we are
7098         compiling with restriction No_Finalization.
7099
7100 2008-05-20  Vincent Celier  <celier@adacore.com>
7101
7102         * prj.adb (Hash (Project_Id)): New function
7103         (Project_Empty): Add new component Interfaces_Defined
7104
7105         * prj.ads (Source_Data): New component Object_Linked
7106         (Language_Config): New components Object_Generated and Objects_Linked
7107         (Hash (Project_Id)): New function
7108         (Source_Data): New Boolean components In_Interfaces and
7109         Declared_In_Interfaces.
7110         (Project_Data): New Boolean component Interfaces_Defined
7111
7112         * prj-attr.adb:
7113         New project level attribute Object_Generated and Objects_Linked
7114         Add new project level attribute Interfaces
7115
7116         * prj-dect.adb: Use functions Present and No throughout
7117         (Parse_Variable_Declaration): If a string type is specified as a simple
7118         name and is not found in the current project, look for it also in the
7119         ancestors of the project.
7120
7121         * prj-makr.adb:
7122         Replace procedure Make with procedures Initialize, Process and Finalize
7123         to implement H414-023: process different directories with different
7124         patterns.
7125         Use functions Present and No throughout
7126
7127         * prj-makr.ads:
7128         Replace procedure Make with procedures Initialize, Process and Finalize
7129
7130         * prj-nmsc.adb
7131         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
7132         the language configuration.
7133         (Process_Project_Level_Array_Attributes): Process new attributes
7134         Object_Generated and Object_Linked.
7135         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
7136         False, to indicate that the erreor/warning is a continuation.
7137         (Check): Call Report_No_Sources with Contnuation = True after the first
7138         call.
7139         (Error_Msg): Process successively contnuation character and warning
7140         character.
7141         (Find_Explicit_Sources): Check that all declared sources have been found
7142         (Check_File): Indicate in hash table Source_Names when a declared source
7143         is found.
7144         (Check_File): Set Other_Part when found
7145         (Find_Explicit_Sources): In multi language mode, check if all exceptions
7146         to the naming scheme have been found. For Ada, report an error if an
7147         exception has not been found. Otherwise, disregard the exception.
7148         (Check_Interfaces): New procedure
7149         (Add_Source): When Other_Part is defined, set mutual pointers in spec
7150         and body.
7151         (Check): In multi-language mode, call Check_Interfaces
7152         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
7153         for an excluded source.
7154         (Remove_Source): A source replacing a source in the interfaces is also
7155         in the interfaces.
7156
7157         * prj-pars.adb: Use function Present
7158
7159         * prj-part.adb: Use functions Present and No throughout
7160         (Parse_Single_Project): Set the parent project for child projects
7161         (Create_Virtual_Extending_Project): Register project with no qualifier
7162         (Parse_Single_Project): Allow an abstract project to be extend several
7163         times. Do not allow an abstract project to extend a non abstract
7164         project.
7165
7166         * prj-pp.adb: Use functions Present and No throughout
7167         (Print): Take into account the full associative array attribute
7168         declarations.
7169
7170         * prj-proc.adb: Use functions Present and No throughout
7171         (Expression): Call itself with the same From_Project_Node for the
7172         default value of an external reference.
7173
7174         * prj-strt.adb: Use functions Present and No throughout
7175         (Parse_Variable_Reference): If a variable is specified as a simple name
7176         and is not found in the current project, look for it also in the
7177         ancestors of the project.
7178
7179         * prj-tree.ads, prj-tree.adb (Present): New function
7180         (No): New function
7181         Use functions Present and No throughout
7182         (Parent_Project_Of): New function
7183         (Set_Parent_Project_Of): New procedure
7184
7185         * snames.ads, snames.adb:
7186         Add new standard names Object_Generated and Objects_Linked
7187
7188 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
7189
7190         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
7191         and the derived type are of the same kind.
7192         (Expand_Call): Generate type conversions for actuals of
7193         record or array types when the parent and the derived types differ in
7194         size and/or packed status.
7195
7196 2008-05-20  Javier Miranda  <miranda@adacore.com>
7197             Ed Schonberg  <schonberg@adacore.com>
7198
7199         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
7200         generating dispatch tables of locally defined tagged types statically.
7201         Remove implicit if-statement that is no longer required.
7202         (Expand_Dispatching_Call): If this is a call to an instance of the
7203         generic dispatching constructor, the type of the first argument may be
7204         a subtype of Tag, so always use the base type to recognize this case.
7205
7206 2008-05-20  Thomas Quinot  <quinot@adacore.com>
7207
7208         * exp_dist.adb
7209         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
7210         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
7211         assigning NULL into the result, to avoid a spurious warning.
7212         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
7213         is not frozen.
7214         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
7215         type.
7216         (Build_From_Any_Function, Build_To_Any_Function,
7217         Build_TypeCode_Function): For a type that has user-specified stream
7218         attributes, use an opaque sequence of octets as the representation.
7219
7220 2008-05-20  Kevin Pouget  <pouget@adacore.com>
7221
7222         * exp_smem.ads, exp_smem.adb: Construction of access and assign
7223         routines has been replaced by an instantiation of
7224         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
7225         shared variable declaration.
7226         Calls to access and assign routines have been replaced by calls to
7227         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
7228         instantiated package.
7229
7230         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
7231         It identifies the new generic package added in s-shasto.
7232
7233         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
7234         is instantiated for each shared passive variable. It provides
7235         supporting procedures called upon each read or write access by the
7236         expanded code.
7237
7238         * sem_attr.adb:
7239         For this runtime unit (always compiled in GNAT mode), we allow
7240         stream attributes references for limited types for the case where
7241         shared passive objects are implemented using stream attributes,
7242         which is the default in GNAT's persistent storage implementation.
7243
7244 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7245
7246         * freeze.adb
7247         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
7248         convention from its base type, do not set the type to that of integer,
7249         because it may inherit a size clause.
7250         Warn on a size clause with a size different
7251         from that of Integer, if the type has convention C.
7252
7253 2008-05-20  Vincent Celier  <celier@adacore.com>
7254
7255         * gnatname.adb
7256         (Scan_Args): Rewrite to take into account new switch --and to separate
7257         arguments into sections.
7258         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
7259         section, then Finalize.
7260
7261 2008-05-20  Tristan Gingold  <gingold@adacore.com>
7262
7263         * init.c: Enable stack probing on ppc-linux.
7264
7265         * tracebak.c: Add symbolic traceback for ppc-linux.
7266
7267         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
7268
7269 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
7270
7271         * Makefile.in
7272         (common-tools): New rule, to avoid parallel build failure on gnat tools.
7273         Reenable parallel builds on this Makefile.
7274
7275         * Make-lang.in: Update dependencies.
7276
7277 2008-05-20  Robert Dewar  <dewar@adacore.com>
7278
7279         * opt.ads (Treat_Restrictions_As_Warnings): New switch
7280
7281         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
7282         Treat_Restrictions_As_Warnings.
7283
7284         * switch-c.adb: Recognize new switch -gnatr
7285
7286         * usage.adb: Add line for -gnatr
7287
7288 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
7289
7290         * par-ch3.adb
7291         (P_Access_Definition): Change the error message when parsing "access
7292         all" in Ada 95 mode. The message no longer forces the user to recompile
7293         in 05 mode only to discover that anonymous access types are not allowed
7294         to have "all".
7295
7296 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
7297
7298         * par-ch9.adb
7299         (P_Protected): Update the error message on missing "-gnat05" switch when
7300         using interfaces in conjunction with protected types. Remove the
7301         incorrect error message associated with the presence of "private" after
7302         a "with".
7303
7304 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7305
7306         * sem_aggr.adb: Update comments.
7307         Improve previous change for PR ada/17985
7308
7309 2008-05-20  Thomas Quinot  <quinot@adacore.com>
7310
7311         * sem_cat.adb
7312         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
7313         the visible part of the spec of a remote types unit.
7314         (Validate_Remote_Access_Object_Type_Declaration):
7315         New local subprogram Is_Valid_Remote_Object_Type, replaces
7316         Is_Recursively_Limited_Private.
7317         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
7318         non-controlling formals (and the return type, even though this is not
7319         explicit in the standard) must support external streaming.
7320         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
7321         as above for of RAS types and RCI subprograms. (The return type is not
7322         checked yet).
7323         Update comments related to RACWs designating limited interfaces per
7324         ARG ruling on AI05-060.
7325
7326         * sem_util.ads, sem_util.adb
7327         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
7328         Is_Remote_Call_Interface to identify RACW types in a stable and
7329         consistent way. We used to rely in this predicate on the privateness of
7330         the designated type and its ancestors, but depending on the currently
7331         visible private parts, this caused false negatives. We now uniformly
7332         rely on checks made at the point where the RACW type is declared.
7333         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
7334
7335 2008-05-20  Javier Miranda  <miranda@adacore.com>
7336             Ed Schonberg  <schonberg@adacore.com>
7337             Hristian Kirtchev  <kirtchev@adacore.com>
7338
7339         * sem_ch3.adb
7340         (Analyze_Object_Declaration): Fix over-conservative condition
7341         restricting use of predefined assignment with tagged types that have
7342         convention CPP.
7343         (Analyze_Object_Declaration): Relax the check regarding deferred
7344         constants declared in scopes other than packages since they can be
7345         completed with pragma Import.
7346         Add missing escaping of all-caps word 'CPP' in error messages.
7347         (Build_Discriminated_Subtype): Do not inherit representation clauses
7348         from parent type if subtype already carries them, because they are
7349         inherited earlier during derivation and already include those that may
7350         come from a partial view.
7351
7352         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
7353         Check the declarations of a subprogram body for proper deferred
7354         constant completion.
7355
7356         * sem_ch7.ads, sem_ch7.adb
7357         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
7358
7359 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7360             Thomas Quinot  <quinot@adacore.com>
7361
7362         * sem_ch4.adb
7363         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
7364         F is a parameterless function that returns an array, and S is a subtype
7365         mark.
7366         (Analyze_Call): Insert dereference when the prefix is a parameterless
7367         function that returns an access to subprogram and the call has
7368         parameters.
7369         Reject a non-overloaded call whose name resolves to denote
7370         a primitive operation of the stub type generated to support a remote
7371         access-to-class-wide type.
7372
7373 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7374
7375         * sem_ch8.adb
7376         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
7377         when there is a use clause for the same entity in the context.
7378         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
7379         created for a stream attribute of an abstract type or interface type.
7380
7381 2008-05-20  Thomas Quinot  <quinot@adacore.com>
7382
7383         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
7384         subprogram.
7385
7386         * sem_type.adb
7387         (Add_One_Interp): Ignore any interpretation that is a primitive
7388         operation of an RACW stub type (these primitives are only executed
7389         through dispatching, never through static calls).
7390         (Collect_Interps): When only one interpretation has been found, set N's
7391         Entity and Etype to that interpretation, otherwise Entity and Etype may
7392         still refer to an interpretation that was ignored by Add_One_Interp,
7393         in which case would end up with being marked as not overloaded but with
7394         an Entity attribute not pointing to its (unique) correct interpretation.
7395
7396 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7397
7398         * sem_eval.adb
7399         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
7400         denotes the whole array of its prefix.
7401
7402 2008-05-20  Robert Dewar  <dewar@adacore.com>
7403
7404         * sem_res.adb (Resolve_Op_Not): Warn on double negation
7405
7406 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7407
7408         * sprint.adb
7409         (Print_Itype): Do not modify the sloc of the component type of a
7410         (packed) array itype, because it is an unrelated type whose source
7411         location is independent of the point of creation of the itype itself.
7412
7413 2008-05-20  Thomas Quinot  <quinot@adacore.com>
7414
7415         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
7416         Append.
7417
7418 2008-05-20  Robert Dewar  <dewar@adacore.com>
7419             Vincent Celier  <celier@adacore.com>
7420
7421         * vms_data.ads: Add entry for -gnatr
7422         Put GNAT SYNC section in proper alpha order
7423         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
7424
7425         * gnat_ugn.texi: Add documentation for new gnatname switch --and
7426         Update the style checks section
7427         Add documentation of -gnatr
7428         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
7429         subsection the explanation how compiler checks should be disabled for
7430         gnatcheck.
7431         Update the list of Ada 95 reserved words used by in the project language
7432         Add documentation for project qualifiers.
7433         Document that abstract projects may be extended by different projects in
7434         the same project tree.
7435         Add documentation for gnatmake switch -d
7436
7437         * ug_words: Add -gnatyy VMS equivalence string.
7438         Add entry for -gnatr
7439
7440 2008-05-20  Bob Duff  <duff@adacore.com>
7441
7442         * a-rttiev.adb
7443         (Set_Handler): Remove code from both of these that implements
7444         RM-D.15(15/2), because it causes a race condition and potential
7445         deadlock.
7446         (Process_Queued_Events): Add comment explaining "exception when others
7447         => null". Add clarifying ".all", even though implicit .all is legal
7448         here.
7449
7450 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
7451
7452         * s-winext.ads: Replace representation clause by pragma Pack. Gives
7453         equivalent representation, but has the advantage of allowing
7454         compilation of this file under 64 bits platforms.
7455
7456         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
7457
7458         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
7459
7460         * adaint.c:
7461         Don't define dummy implementation of convert_addresses on ppc-linux.
7462
7463 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7464
7465         * exp_ch7.adb
7466         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
7467         if expression is aggregate component.
7468
7469 2008-05-20  Robert Dewar  <dewar@adacore.com>
7470
7471         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
7472         sem_ch12.adb: Update comments. Minor reformatting.
7473
7474         * exp_ch2.adb: Typo
7475
7476         * s-unstyp.ads: Fixed some typos in comments.
7477
7478 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
7479
7480         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
7481         type/constant.
7482
7483         * g-socthi-vxworks.ads: Update to latest socket changes.
7484
7485         * a-caldel-vms.adb: Resync with a-caldel spec.
7486
7487         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
7488         Update comments.
7489
7490 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7491
7492         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
7493         for dummy types pointed to by the converted pointer types.
7494
7495 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
7496
7497         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
7498         of records and unions.
7499         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
7500
7501 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
7502             Robert Dewar <dewar@adacore.com>
7503
7504         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
7505         restrictions to the prefix of 'Old.
7506         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
7507         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
7508         variables.
7509
7510 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7511
7512         PR ada/24880
7513         PR ada/26635
7514         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
7515         expression to an integral type with lower precision, use NOP_EXPR
7516         directly in a couple of special cases.
7517
7518 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7519             Ed Schonberg <schonberg@adacore.com>
7520
7521         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
7522         constraint expressions.
7523
7524 2008-05-12  Tomas Bily  <tbily@suse.cz>
7525
7526         * utils2.c (known_alignment, contains_save_expr_p)
7527         (gnat_mark_addressable): Use CASE_CONVERT.
7528         * decl.c (annotate_value): Likewise.
7529         * trans.c (maybe_stabilize_reference): Likewise.
7530         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
7531         * utils.c (rest_of_record_type_compilation): Likewise.
7532         * trans.c (protect_multiple_eval, Attribute_to_gnu)
7533         (protect_multiple_eval): Likewise.
7534
7535 2008-05-08  Andreas Schwab  <schwab@suse.de>
7536
7537         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
7538         DECL_IS_PURE to DECL_PURE_P.
7539
7540 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7541
7542         * decl.c (maybe_pad_type): Add ??? comment.
7543
7544 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7545
7546         * decl.c (components_to_record): Zero the alignment of the qualified
7547         union built for the variant part upon creating it.
7548
7549 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7550
7551         * decl.c (maybe_pad_type): Try to get a form of the type with integral
7552         mode even if the alignment is not a factor of the original size.  But
7553         make sure to create the inner field with the original size.  Reorder.
7554         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
7555         record as always addressable.
7556         * utils.c (convert): Deal specially with conversions between original
7557         and packable versions of a record type.
7558         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
7559         recognizing an assignment between padded objects.
7560
7561 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7562
7563         * decl.c (make_packable_type): Resize the last component to its RM size
7564         only if it is of an aggregate type.
7565         * trans.c (call_to_gnu): Fix nit in comment.
7566         (gnat_to_gnu): Likewise.
7567
7568 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
7569
7570         * Makefile.in: Adapt sh4-linux target.
7571
7572 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
7573
7574         PR ada/35792
7575         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
7576         tagged type by an untagged protected or task type.
7577
7578 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
7579             Tristan Gingold  <gingold@adacore.com>
7580
7581         PR ada/36007
7582         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
7583         of aliased objects with an unconstrained nominal subtype.
7584         Cap the promotion to the effective alignment of the word mode.
7585
7586 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7587
7588         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
7589         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
7590         Use '&&' instead of ';'.
7591
7592 2008-04-24  Olivier Hainque  <hainque@adacore.com>
7593
7594         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
7595         doesn't require signed arithmetic anymore.
7596
7597 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
7598
7599         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
7600         (call_to_gnu): Don't set TREE_INVARIANT.
7601         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
7602
7603 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
7604
7605         * s-osinte-rtems.adb: Add sigalstack function.
7606         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
7607         function. Add Alternate_Stack and Alternate_Stack_Size.
7608         Add missing process_shared field to pthread_condattr_t
7609         and change ss_low_priority to int from timespec.
7610
7611 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
7612
7613         * i-forbla.adb: Link against -llapack and -lblas by default
7614         instead of the private -lgnalasup.
7615
7616 2008-04-21  Olivier Hainque  <hainque@adacore.com>
7617
7618         Access to most C builtins from Ada
7619         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
7620         (handle_pure_attribute, handle_novops_attribute,
7621         handle_nonnull_attribute, handle_sentinel_attribute,
7622         handle_noreturn_attribute, handle_malloc_attribute,
7623         handle_type_generic_attribute): New attribute handlers, from C fe.
7624         (gnat_internal_attribute_table): Map the new handlers.
7625         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
7626         (init_gigi_decls): ... here.
7627         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
7628         Move to a section dedicated to builtins processing.
7629         (build_void_list_node, builtin_type_for_size): New functions.
7630         (def_fn_type, get_nonnull_operand): Likewise.
7631         (install_builtin_elementary_type, install_builtin_function_types,
7632         install_builtin_attributes): Likewise.
7633         (fake_attribute_handler): Fake handler for attributes we don't
7634         support in Ada.
7635         (def_builtin_1): New function, worker for DEF_BUILTIN.
7636         (install_builtin_functions): New function.
7637         (gnat_install_builtins): Move to the builtins processing section.
7638         Now calling the newly introduced installers.
7639
7640 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7641
7642         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
7643         constant objects, but not exceptions.
7644         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
7645         compatibility test.
7646         * utils.c (create_var_decl_1): Likewise.
7647         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
7648         the type when copying to padded object and the source is a constructor.
7649
7650 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7651
7652         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
7653         alignment, reset it to zero if it would end up not being greater
7654         than that of the type.
7655
7656 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7657
7658         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
7659         the padded type has a variable size.
7660
7661 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7662
7663         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
7664         target pointer mechanism as soon as the size is not constant.
7665
7666 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7667
7668         * gigi.h (create_var_decl_1): Declare.
7669         (create_var_decl): Turn into a macro invoking create_var_decl_1.
7670         (create_true_var_decl): Likewise.
7671         * utils.c (create_var_decl_1): Make global and reorder parameters.
7672         (create_var_decl): Delete.
7673         (create_true_var_decl): Likewise.
7674
7675 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7676
7677         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
7678         objects by default.
7679         * fe.h (Debug_Flag_Dot_A): Delete.
7680         * debug.adb (-gnatd.a): Update documentation.
7681
7682 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
7683
7684         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
7685         "not null" parameter.
7686
7687 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
7688
7689         * g-socket.adb: Add a message "IPv6 not supported" to the
7690         Socket_Error exception.
7691
7692 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
7693
7694         PR ada/29015
7695         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
7696         the type is known instead of the underlying type.
7697
7698 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
7699
7700         PR ada/22387
7701         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7702         procedure for a derived type retrieve the discriminant values from
7703         the parent using the corresponding discriminant.
7704
7705 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
7706             Gary Dismukes  <dismukes@adacore.com>
7707
7708         PR ada/28733
7709         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
7710         which is not an entity (and hence not a package).
7711         (End_Use_Package): Ditto.
7712
7713 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
7714
7715         PR ada/16086
7716         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
7717         protected operation that matches the signature, not only an entry, a
7718         regular subprogram or a literal.
7719
7720 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7721
7722         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
7723         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
7724         if a size or alignment is specified.  Do not take into account
7725         alignment promotions for the computation of the object's size.
7726         <type>: Call maybe_pad_type only if a size or alignment is specified.
7727         (maybe_pad_type): Really reuse the RM_Size of the original type if
7728         requested.
7729         * trans.c (Attribute_to_gnu): Fix a couple of nits.
7730         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
7731         statements.  Use the padded view of the type when copying between
7732         padded objects of the same underlying type.
7733
7734 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7735
7736         * vms_data.ads: Fix typo in constant.
7737         * gen-soccon.c: Fix typo in error string.
7738         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
7739         Fix typos.
7740         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
7741         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
7742         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
7743         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
7744         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
7745         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
7746         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
7747         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
7748         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
7749         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
7750         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
7751         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
7752         sinfo.ads: Fix typos in comments.
7753
7754 2008-04-14  Robert Dewar  <dewar@adacore.com>
7755
7756         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
7757         to every non-object and change error message.
7758
7759 2008-04-14  Robert Dewar  <dewar@adacore.com>
7760
7761         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
7762         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
7763         directly.
7764
7765 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7766
7767         PR ada/18680
7768         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
7769         apply pragma Linker_Section on type.
7770
7771 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7772
7773         PR ada/16098
7774         * sem_prag.adb (Error_Pragma_Ref): New.
7775         (Process_Convention): Specialized message for non-local
7776         subprogram renaming. Detect the problem in homonyms as well.
7777
7778 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7779
7780         PR ada/15915
7781         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
7782         * sem_ch12.adb (Instantiate_Object): Use it.
7783         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
7784         storage pool denotes a variable as per RM 13.11(15).
7785
7786 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7787
7788         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
7789         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
7790
7791 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
7792
7793         PR ada/20822
7794         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
7795         line endings even on non-Unix platforms.
7796
7797 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7798
7799         PR ada/35050
7800         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
7801         renaming information.
7802
7803 2008-04-13  Samuel Tardieu  <sam@rfc1149.net>
7804
7805         PR ada/17985
7806         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
7807         itself.
7808
7809 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7810
7811         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
7812         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
7813         snames.ads, sprint.adb, stand.ads, stringt.ads,
7814         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
7815         switch.ads, sysdep.c, table.adb, table.ads,
7816         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
7817         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
7818         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
7819         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
7820         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
7821         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
7822         Fix comment typos.
7823
7824         * sem_ch10.adb, sem_ch10.ads,
7825         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
7826         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
7827         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7828         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
7829         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
7830         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
7831         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
7832         sem_warn.ads: Fix comment typos.
7833
7834         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
7835         s-soflin.ads, s-stalib.ads, s-stausa.adb,
7836         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
7837         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7838         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
7839         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7840         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
7841         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
7842         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
7843         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
7844         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
7845         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
7846         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
7847         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
7848         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
7849         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
7850         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
7851         sem_cat.adb, sem_cat.ads: Fix comment typos.
7852
7853 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
7854
7855         PR ada/35825
7856         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
7857
7858 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
7859
7860         * s-linux-hppa.ads: Fix syntax errors.
7861
7862 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7863
7864         * gnat_ugn.texi: Fix typos.
7865         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
7866         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
7867         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
7868         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
7869         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
7870         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
7871         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
7872         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
7873         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
7874         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
7875         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
7876         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
7877         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
7878         s-osinte-darwin.ads, s-osinte-freebsd.ads,
7879         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
7880         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
7881         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
7882         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
7883         s-parame-hpux.ads, s-parame-vms-alpha.ads,
7884         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
7885         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
7886         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
7887         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
7888         s-rident.ads: Fix comment typos.
7889
7890 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
7891
7892         PR ada/28305
7893         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
7894         environment if generic instance is a top-level one.
7895
7896 2008-04-09  Doug Rupp  <rupp@adacore.com>
7897
7898         * decl.c (validate_size): Set minimum size for fat pointers same as
7899         access types. Code clean ups.
7900
7901         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
7902         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
7903
7904         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
7905
7906         * s-crtl.ads (malloc32) New function, alias for malloc
7907         (realloc32) New function, alias for realloc
7908
7909         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
7910
7911         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
7912         allocator size is 32 and default pointer size is 64.
7913         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
7914         lhs type if smaller, whatever the modes.
7915
7916         * gigi.h (malloc32_decl): New macro definition
7917
7918         * utils.c (init_gigi_decls): New malloc32_decl
7919         Various code clean ups.
7920
7921         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7922         Task_Address vice System.Address.
7923
7924         * s-taspri-vms.ads: Import System.Aux_DEC
7925         (Task_Address): New subtype of System.Aux_DEC.Short_Address
7926         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
7927
7928         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7929         Task_Address vice System.Address.
7930
7931         * s-inmaop-vms.adb: Import System.Task_Primitives
7932         (To_Address): Unchecked convert to Task_Address vice System.Address
7933
7934         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
7935         expires now.
7936         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
7937         (To_Address) Unchecked convert to Task_Address vice System.Address
7938
7939         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
7940
7941         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
7942
7943 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7944
7945         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
7946         (fdesc_type_node): Define.
7947         (null_fdesc_node): Likewise.
7948         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
7949         uses descriptors for vtables and the type comes from a dispatch table,
7950         return the descriptor type.
7951         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
7952         uses descriptors for vtables and the type comes from a dispatch table,
7953         build a descriptor in the static case and copy the existing one in the
7954         non-static case.
7955         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
7956         the type is a pointer-to-subprogram coming from a dispatch table,
7957         return the null descriptor.
7958         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
7959         vtables, the source type is the descriptor type and the target type
7960         is a pointer type, first build the pointer.
7961         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
7962         build the descriptor type and the null descriptor.
7963
7964 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7965
7966         * decl.c (prepend_attributes): Fix typo.
7967         * trans.c (Pragma_to_gnu): Likewise.
7968         * utils.c (gnat_genericize): Likewise.
7969
7970 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7971             Richard Kenner  <kenner@adacore.com>
7972
7973         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
7974         * decl.c (gnat_to_gnu_entity): Adjust for above change.
7975         <E_Record_Type>: Try to get a better form of the component for
7976         packing, even if it has an integral mode.
7977         <E_Record_Subtype>: Likewise.
7978         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
7979         exception suppressing the final conversion between record types.
7980
7981 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7982
7983         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
7984         alignment for space, promote the alignment of non-scalar variables with
7985         no size and alignment.
7986         * gigi.h (gnat_types_compatible_p): Declare.
7987         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
7988         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
7989         * utils.c (gnat_types_compatible_p) : New predicate.
7990         (convert): Use it throughout to test for cases where a mere view
7991         conversion is sufficient.
7992         * utils2.c (build_binary_op): Minor tweaks.
7993         (build_unary_op): Likewise.
7994
7995 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7996
7997         * decl.c (adjust_packed): Expand comment.
7998
7999 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
8000
8001         * s-tasuti.ads: Use Task_Address instead of System.Address.
8002
8003         * makeutl.adb (Path_Or_File_Name): New function
8004
8005         * nlists.ads, itypes.ads: Update comments.
8006
8007         * s-crtl.ads (malloc32, realloc32): New functions.
8008
8009         * s-auxdec.ads (Short_Address_Size): New constant.
8010
8011         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
8012
8013         * s-ststop.ads, s-ststop.adb: New file.
8014
8015         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
8016         Minor reformatting.
8017
8018 2008-04-08  Pascal Obry  <obry@adacore.com>
8019
8020         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
8021         (Stop_Bits_Number): New type.
8022         (Parity_Check): Likewise.
8023         (Set): Add parameter to set the number of stop bits and
8024         the parity. Parameter timeout is now a duration instead
8025         of a plain integer.
8026
8027         * g-sercom-linux.adb:
8028         Implement the stop bits and parity support for GNU/Linux.
8029         Fix handling of timeout, it must be given in tenth of seconds.
8030
8031         * g-sercom-mingw.adb:
8032         Implement the stop bits and parity support for Windows.
8033         Use new s-win32.ads unit instead of declaring Win32 services
8034         directly into this body.
8035         Update handling of timeout as now a duration.
8036
8037         * s-win32.ads, s-winext.ads: New files.
8038
8039 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
8040             Arnaud Charlet  <charlet@adacore.com>
8041
8042         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
8043
8044         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
8045         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
8046
8047         * s-osinte-lynxos-3.ads,
8048         (Alternate_Stack): Remove when not needed. Simplify declaration
8049         otherwise.
8050         (Alternate_Stack_Size): New constant.
8051
8052         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
8053         'Unrestricted_Access.
8054
8055         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
8056         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
8057         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
8058         s-osinte-solaris.ads, s-osinte-vms.ads
8059         (SA_ONSTACK): New constant.
8060         (stack_t): New record type.
8061         (sigaltstack): New imported function.
8062         (Alternate_Stack): New imported variable.
8063         (Alternate_Stack_Size): New constant.
8064
8065         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
8066
8067         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
8068         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
8069         s-taspri-vms.ads (Task_Address): New subtype of System.Address
8070         (Task_Address_Size): New constant size of System.Address
8071         (Alternate_Stack_Size): New constant.
8072
8073         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
8074         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
8075         Establish the alternate stack if the platform makes use of n alternate
8076         signal stack for stack overflows.
8077         (Create_Task): Take into account the alternate stack in the stack size.
8078         (Initialize): Save the address of the alternate stack into the ATCB for
8079         the environment task.
8080         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
8081
8082         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
8083
8084         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
8085
8086         * s-intman-posix.adb:
8087         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
8088         alternate signal stack for stack overflows.
8089
8090         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
8091         x86-64, adjust the saved value of the stack pointer if the signal was
8092         raised by a stack checking probe.
8093         (HP-UX section): Use global __gnat_alternate_stack as signal handler
8094         stack and only for SIGSEGV.
8095         (Linux section): Likewise on x86 and x86-64.
8096         [VxWorks section]
8097         (__gnat_map_signal): Now static.
8098         (__gnat_error_handler): Not static any more.
8099         (__gnat_adjust_context_for_raise): New function. Signal context
8100         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
8101         propagation circuitry.
8102         (__gnat_error_handler): Second argument of a sigaction handler is a
8103         pointer, not an int, and is unused.
8104         Adjust signal context before mapping to exception.
8105         Install signal handlers for LynxOS case.
8106
8107         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
8108         (Task_Id): Set size to Task_Address_Size
8109         (To_Task_id): Unchecked convert from Task_Address vice System.Address
8110         (To_Address): Unchecked convert to Task_Address vice System.Address
8111
8112         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
8113         address into the ATCB if the platform makes use of an alternate signal
8114         stack for stack overflows.
8115         (Free_Task): Add call to Finalize_Attributes_Link.
8116         Add argument Relative_Deadline to pass the value specified for
8117         the task. This is not yet used for any target.
8118
8119         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
8120         the value specified for the task.
8121
8122 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
8123
8124         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
8125         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
8126         s-vxwext-rtp.adb): New files.
8127
8128         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
8129         Minor updates to accomodate changes above.
8130
8131 2008-04-08  Pascal Obry  <obry@adacore.com>
8132
8133         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
8134         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
8135         Use new s-win32.ads unit instead of declaration
8136         from s-osinte-mingw.ads.
8137
8138         * s-osinte-mingw.ads:
8139         Move all non tasking based interface to s-win32.ads.
8140
8141         * s-osprim-mingw.adb:
8142         Remove duplicated declarations and use s-win32.ads
8143         unit instead.
8144
8145 2008-04-08  Vincent Celier  <celier@adacore.com>
8146             Arnaud Charlet  <charlet@adacore.com>
8147
8148         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
8149         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
8150         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
8151         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8152         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
8153
8154         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
8155         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
8156         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
8157         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
8158         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
8159         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
8160         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
8161         mlib-tgt-specific-mingw.adb: New names.
8162
8163         * Makefile.in:
8164         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
8165         Get rid of gnatbl.
8166         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
8167         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
8168         Minor updates for VMS
8169
8170         * gnatbl.c: Removed.
8171
8172 2008-04-08  Thomas Quinot  <quinot@adacore.com>
8173
8174         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
8175         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
8176         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
8177         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
8178         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
8179         ASCII.NUL throughout.
8180
8181 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
8182             Matthew Heaney  <heaney@adacore.com>
8183
8184         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
8185         renaming.
8186
8187         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
8188         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
8189         to convention for non-RM specs.
8190         Add descriptive header, and documented each operation
8191         document each operation
8192
8193 2008-04-08  Robert Dewar  <dewar@adacore.com>
8194             Bob Duff  <duff@adacore.com>
8195             Gary Dismukes  <dismukes@adacore.com>
8196             Ed Schonberg  <schonberg@adacore.com>
8197
8198         * alloc.ads: Add entries for Obsolescent_Warnings table
8199
8200         * einfo.ads, einfo.adb: Minor reformatting.
8201         (Is_Discriminal): New subprogram.
8202         (Is_Prival): New subprogram.
8203         (Is_Protected_Component): New subprogram.
8204         (Is_Protected_Private): Removed.
8205         (Object_Ref, Set_Object_Ref): Removed.
8206         (Prival, Set_Prival): Change assertion.
8207         (Privals_Chain, Set_Privals_Chain): Removed.
8208         (Prival_Link, Set_Prival_Link): New subprogram.
8209         (Protected_Operation, Set_Protected_Operation): Removed.
8210         (Protection_Object, Set_Protection_Object): New subprogram.
8211         (Write_Field17_Name): Remove case for Object_Ref.
8212         (Write_Field20_Name): Add case for Prival_Link.
8213         (Write_Field22_Name): Remove case for Protected_Operation,
8214         Privals_Chain.
8215         Add case for Protection_Object.
8216         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
8217         so clients
8218         (Overlays_Constant): New flag
8219         (Is_Constant_Object): New predicate
8220         (Is_Standard_Character_Type): New predicate
8221         (Optimize_Alignment_Space): New flag
8222         (Optimize_Alignment_Time): New flag
8223         (Has_Postconditions): New flag
8224         (Obsolescent_Warrning): Field removed
8225         (Spec_PPC_List): New field
8226         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
8227         subprograms to get and set the relative deadline associated to a task.
8228
8229         * exp_attr.adb (May_Be_External_Call): Account for the case where the
8230         Access attribute is part of a named parameter association.
8231         (Expand_Access_To_Protected_Op): Test for the attribute occurring
8232         within an init proc and use that directly as the scope rather than
8233         traversing up to the protected operation's enclosing scope. Only apply
8234         assertion on Is_Open_Scopes in the case the scope traversal is done.
8235         For the init proc case use the address of the first formal (_init) as
8236         the protected object reference.
8237         Implement Invalid_Value attribute
8238         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
8239         contents of the dispatch table there is no need to duplicate the
8240         itypes associated with record types (i.e. the implicit full view
8241         of private types).
8242         Implement Enum_Val attribute
8243         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
8244         within _Postconditions procedure
8245         (Expand_N_Attribute_Reference, case Result): Implement new attribute
8246
8247         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
8248         a return statement calls a function that is not available in
8249         configurable runtime.
8250         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
8251         (Expand_Non_Function_Return): Generate call to _Postconditions proc
8252         (Expand_Simple_Function_Return): Ditto
8253
8254         * frontend.adb: Add call to Sem_Aux.Initialize
8255
8256         * sem_aux.ads, sem_aux.adb: New file.
8257
8258         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
8259         Add new Pragma_Relative_Deadline.
8260         Add support for pragmas Check and Check_Policy
8261
8262         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
8263         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
8264         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
8265         missing check because they are not allowed in CPP tagged types.
8266         Add Sure parameter to Note_Possible_Modification calls
8267         Add implementation of Invalid_Value attribute
8268         Implement new attribute Has_Tagged_Values
8269         Implement Enum_Val attribute
8270         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
8271         generated attributes.
8272         (Analyze_Attribute, case Result): If prefix of the attribute is
8273         overloaded, it always resolves to the enclosing function.
8274         (Analyze_Attribute, case Result): Properly deal with analysis when
8275         Postconditions are not active.
8276         (Resolve_Attribute, case Result): Properly deal with appearence during
8277         preanalysis in spec.
8278         Add processing for attribute Result
8279
8280         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
8281         for operators.
8282         (Analyze_Subprogram_Body): Install private_with_clauses when the body
8283         acts as a spec.
8284         (Check_Inline_Pragma): recognize an inline pragma that appears within
8285         the subprogram body to which it applies.
8286         (Analyze_Function_Return): Check that type of the expression of a return
8287         statement in a function with a class-wide result is not declared at a
8288         deeper level than the function.
8289         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
8290         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
8291         user- defined operators.
8292         (Install_Formals): Moved to spec to allow use from Sem_Prag for
8293         analysis of precondition/postcondition pragmas.
8294         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
8295         Last_Formal, along with lots of comments on what this is about
8296         (Analyze_Subprogram_Body): Fix case where we move entities from the
8297         spec to the body when there are no body entities (now possible with
8298         precondition and postcondition pragmas).
8299         (Process_PPCs): New procedure
8300         (Analyze_Subprogram_Body): Add call to Process_PPCs
8301
8302         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
8303         clause.
8304         (Pop_Scope): Restore Check_Policy_List on scope exit
8305         (Push_Scope): Save Check_Policy_List on scope entry
8306         Change name In_Default_Expression      => In_Spec_Expression
8307         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8308         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
8309         (Analyze_Object_Renaming): Allow 'Reference as object
8310         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
8311         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
8312         of restriction identifier.
8313         Add Sure parameter to Note_Possible_Modication calls
8314
8315         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
8316         Don't check for primitive operations when calling Rep_Item_Too_Late.
8317         (Process_Import_Or_Interface): Do not place flag on formal
8318         subprograms.
8319         (Analyze_Pragma, case Export): If the entity is a deferred constant,
8320         propagate information to full view, which is the one elaborated by the
8321         back-end.
8322         (Make_Inline): the pragma is effective if it applies to an internally
8323         generated subprogram declaration for a body that carries the pragma.
8324         (Analyze_Pragma, case Optimize_Alignment): Set new flag
8325         Optimize_Alignment_Local.
8326         (Analyze_PPC_In_Decl_Part): New procedure
8327         (Get_Pragma_Arg): Moved to outer level
8328         (Check_Precondition_Postcondition): Change to allow new visibility
8329         rules for package spec
8330         (Analyze_Pragma, case Check_Policy): Change placement rules to be
8331         same as pragma Suppress/Unsuppress.
8332         Change name In_Default_Expression      => In_Spec_Expression
8333         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8334         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
8335         (Check_Precondition_Postcondition): Do proper visibility preanalysis
8336         for the case of these pragmas appearing in the spec.
8337         (Check_Enabled): New function
8338         (Initialize): New procedure
8339         (Tree_Read): New procedure
8340         (Tree_Write): New procedure
8341         (Check_Precondition_Postcondition): New procedure
8342         Implement pragmas Check and Check_Policy
8343         Merge Assert processing with Check
8344
8345         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
8346         New warning flag -gnatw.e
8347
8348         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
8349         returning whether a task (or main procedure) has a pragma
8350         Relative_Deadline.
8351         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
8352         (or main procedure) has a pragma Relative_Deadline.
8353         Add Next_Pragma field to N_Pragma node
8354         (PPC_Enabled): New flag
8355         (Next_Pragma): Now used for Pre/Postcondition processing
8356
8357         * snames.h, snames.ads, snames.adb: New standard name
8358         Inherit_Source_Path
8359         Add entry for 'Invalid_Value attribute
8360         Add entry for new attribute Has_Tagged_Values
8361         Add entry for Enum_Val attribute
8362         Add new standard names Aggregate, Configuration and Library.
8363         Add _Postconditions
8364         Add _Result
8365         Add Pragma_Precondition
8366         Add Pragma_Postcondition
8367         Add Attribute_Result
8368         New standard name Archive_Builder_Append_Option
8369         (Preset_Names): Add _relative_deadline and relative_deadline definitions
8370         There was also a missing non_preemptive_within_priorities.
8371         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
8372         Relative_Deadline.
8373         Add support for pragmas Check and Check_Policy
8374
8375         * tree_gen.adb: Call Sem_Aux.Tree_Write
8376
8377         * tree_in.adb: Call Sem_Aux.Tree_Read
8378
8379         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
8380         sequence
8381
8382         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
8383         sequence
8384
8385         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
8386         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
8387         Relative_Deadline.
8388         (Expand_Pragma_Check): New procedure
8389
8390         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
8391         buffer.
8392
8393         * sinfo.adb (PPC_Enabled): New flag
8394
8395 2008-04-08  Robert Dewar  <dewar@adacore.com>
8396             Gary Dismukes  <dismukes@adacore.com>
8397             Javier Miranda  <miranda@adacore.com>
8398             Ed Schonberg  <schonberg@adacore.com>
8399
8400         * fe.h: Remove global Optimize_Alignment flag, no longer used
8401
8402         * layout.adb: Test Optimize_Alignment flags rather than global switch
8403
8404         * lib.ads, lib.adb: New OA_Setting field in library record
8405
8406         * lib-load.adb: New OA_Setting field in library record
8407
8408         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
8409         units mentioned in limited_with_ clauses in the ali file, with an
8410         'Y' marker.
8411         New Ox fields in U line
8412
8413         * opt.adb: New flag Optimize_Alignment_Local
8414         (Check_Policy_List[_Config]): New flags
8415
8416         * opt.ads (Invalid_Value_Used): New flag
8417         New switch Optimize_Alignment_Local
8418         (Warn_On_Parameter_Order): New flag
8419         (Check_Policy_List[_Config]): New flags
8420
8421         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
8422         limited_with clauses.
8423         New data structures for Optimize_Alignment
8424
8425         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
8426         New procedure
8427         (Check_Consistent_Optimize_Alignment): Rework for new structure
8428         (Check_Consistent_Restrictions): Fix incorrect error message
8429
8430         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
8431         created class-wide type (to the Parent field of the specific type).
8432         (Install_Siblings): Handle properly private_with_clauses on subprogram
8433         bodies and on generic units.
8434         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
8435         illegal limited_with_clause that names a non-existent package.
8436         (Check_Body_Required): Determine whether a unit named a limited_with
8437         clause needs a body.
8438         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
8439         Capture Optimize_Alignment settings to set new OA_Setting field in
8440         library record.
8441         (Build_Limited_Views): Include task and protected type declarations.
8442
8443         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
8444         case of a possible constant redeclaration where the current object is
8445         an entry index constant.
8446         (Analyze_Object_Declaration): Generate an error in case of CPP
8447         class-wide object initialization.
8448         (Analyze_Object_Declaration): Add extra information on warnings for
8449         declaration of unconstrained objects.
8450         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
8451         conflicts with the setting of Stored_Constraint in the case where the
8452         access type entity has already been created as an E_Incomplete_Type due
8453         to a limited with clause.
8454         Use new Is_Standard_Character_Type predicate
8455         (Analyze_Object_Declaration): Apply access_constant check only after
8456         expression has been resolved, given that it may be overloaded with
8457         several access types.
8458         (Constant_Redeclaration): Additional legality checks for deferred
8459         constant declarations tha involve anonymous access types and/or null
8460         exclusion indicators.
8461         (Analyze_Type_Declaration): Set Optimize_Alignment flags
8462         (Analyze_Subtype_Declaration): Ditto
8463         (Analyze_Object_Declaration): Ditto
8464         (Analyze_Object_Declaration): Don't count tasks in generics
8465         Change name In_Default_Expression      => In_Spec_Expression
8466         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8467         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
8468         (Process_Discriminants): Additional check for illegal use of default
8469         expressions in access discriminant specifications in a type that is not
8470         explicitly limited.
8471         (Check_Abstract_Overriding): If an inherited function dispaches on an
8472         access result, it must be overridden, even if the type is a null
8473         extension.
8474         (Derive_Subprogram): The formals of the derived subprogram have the
8475         names and defaults of the parent subprogram, even if the type is
8476         obtained from the actual subprogram.
8477         (Derive_Subprogram): In the presence of interfaces, a formal of an
8478         inherited operation has the derived type not only if it descends from
8479         the type of the formal of the parent operation, but also if it
8480         implements it. This is relevant for the renamings created for the
8481         primitive operations of the actual for a formal derived type.
8482         (Is_Progenitor): New predicate, to determine whether the type of a
8483         formal in the parent operation must be replaced by the derived type.
8484
8485         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
8486         predicate recursive to handle components that have a user-defined
8487         Initialize procedure. Handle controlled derived types whose ancestor
8488         has a user-defined Initialize procedured.
8489         (Note_Possible_Modification): Add Sure parameter, generate warning if
8490         sure modification of constant
8491         Use new Is_Standard_Character_Type predicate
8492         (Find_Parameter_Type): when determining whether a protected operation
8493         implements an interface operation, retrieve the type of the formal from
8494         the entity when the formal is an access parameter or an
8495         anonymous-access-to-subprogram.
8496         Move Copy_Parameter_List to sem_util, for use when building stubbed
8497         subprogram bodies.
8498         (Has_Access_Values): Tagged types now return False
8499         (Within_HSS_Or_If): New procedure
8500         (Set_Optimize_Alignment_Flags): New procedure
8501         Change name In_Default_Expression      => In_Spec_Expression
8502         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8503         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
8504
8505 2008-04-08  Tristan Gingold  <gingold@adacore.com>
8506
8507         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
8508
8509 2008-04-08  Tristan Gingold  <gingold@adacore.com>
8510
8511 PR ada/10768
8512
8513         * cuintp.c: Fix 16 bits issue for AVR.
8514         On AVR, integer is 16 bits, so it can't be used to do math with
8515         Base (=32768).
8516         So use long_integer instead.
8517
8518 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8519
8520         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
8521         System.OS_Primitives.
8522         Change type of various constants, parameters and local variables from
8523         Time to representation type OS_Time.
8524         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
8525         Remove the declaration of constant Mili_F from several routines. New
8526         body for internal package Conversions_Operations.
8527         (Time_Of): Add default parameters for several formals.
8528
8529         * a-caldel.adb: Minor reformatting
8530
8531         * a-calend.ads, a-calend.adb: New body for internal package
8532         Conversions_Operations.
8533         (Time_Of): Add default parameters for several formals.
8534
8535         * Makefile.rtl: Add a-ststop
8536         Add Ada.Calendar.Conversions to the list of runtime files.
8537         Add g-timsta
8538
8539         * a-calcon.adb, a-calcon.ads: New files.
8540
8541 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
8542             Tristan Gingold  <gingold@adacore.com>
8543
8544         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
8545         (Install_Restricted_Handlers): New procedure
8546         which is a simplified version of Install_Handlers that does not store
8547         previously installed.
8548
8549         * s-interr-vxworks.adb: Fix ACATS cxc3001
8550         On VxWorks interrupts can't be detached.
8551         (Install_Restricted_Handlers): New procedure.
8552
8553         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
8554         procedure.
8555
8556 2008-04-08  Olivier Hainque  <hainque@adacore.com>
8557
8558         * s-intman-vxworks.ads, s-intman-vxworks.adb
8559         (Map_And_Raise_Exception): Remove. Was an import of only part of the
8560         required services already implemented elsewhere.
8561         (Notify_Exception): Delete body, import __gnat_error_handler instead.
8562         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
8563         argument passed to the handler, which we need for ZCX propagation
8564         purposes.
8565
8566 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8567
8568         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
8569
8570         * g-timsta.adb, g-timsta.ads: New files.
8571
8572 2008-04-08  Robert Dewar  <dewar@adacore.com>
8573
8574         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
8575         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
8576         (Raise_Exception_Always): Fix documentation accordingly
8577
8578 2008-04-08  Robert Dewar  <dewar@adacore.com>
8579
8580         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
8581         Stream_Convert)
8582
8583         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
8584         FOnly
8585
8586 2008-04-08  Javier Miranda  <miranda@adacore.com>
8587             Robert Dewar  <dewar@adacore.com>
8588             Ed Schonberg  <schonberg@adacore.com>
8589
8590         * a-tags.adb (Register_Interface_Offset): New subprogram.
8591         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
8592         (To_Predef_Prims_Table_Ptr): Removed.
8593         (Acc_Size): Removed.
8594         (To_Acc_Size): Removed.
8595         (Parent_Size): Modified to the call the subprogram returning the size of
8596         the parent by means of the new TSD component Size_Func.
8597
8598         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
8599         (DT_Offset_To_Top_Offset): New constant value that is used to generate
8600         code referencing the Offset_To_Top component of the dispatch table's
8601         prologue.
8602         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
8603         use of 'address to initialize dispatch table slots.
8604         (Size_Func): New component of the TSD. Used by the run-time to call the
8605         size primitive of the tagged type.
8606
8607         * checks.adb (Apply_Access_Check): Avoid check when accessing the
8608         Offset_To_Top component of a dispatch table.
8609         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
8610         deferred constant declaration. do not add a null expression, to prevent
8611         spurious errors when full declaration is analyzed.
8612         (Apply_Discriminant_Check): If both discriminant constraints share a
8613         node which is not static but has no side effects, do not generate a
8614         check for that discriminant.
8615         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
8616         subexpr, since the prefix of an attribute is a name.
8617
8618         * checks.ads: Fix nit in comment.
8619
8620         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
8621         and body of predefined primitives in case of CPP tagged type
8622         derivations.
8623         (Freeze_Type): Deal properly with no storage pool case
8624         (Make_Predefined_Primitive_Specs): Generate specification of abstract
8625         primitive Deep_Adjust if a nonlimited interface is derived from a
8626         limited interface.
8627         (Build_Dcheck_Functions): Create discriminant-checking functions only
8628         for variants that have some component(s).
8629         (Build_Slice_Assignment): In expanded code for slice assignment, handle
8630         properly the case where the slice bounds extend to the last value of the
8631         underlying representation.
8632         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
8633         (Is_Variable_Size_Record): An array component has a static size if
8634         index bounds are enumeration literals.
8635
8636         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
8637         an external tag has been specified for the type.
8638         (Building_Static_DT): Add missing support for private types.
8639         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
8640         to the entity associated with the parent of Typ. This is done to
8641         avoid wrong access when the parent is a private type.
8642         (Expand_Interface_Conversion): Improve error message when the
8643         configurable runtime has no support for dynamic interface conversion.
8644         (Expand_Interface_Thunk): Add missing support to interface types in
8645         configurable runtime.
8646         (Expand_Dispatching_Call): remove obsolete code.
8647         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
8648         ensure that all subtypes and aggregates associated with dispatch
8649         tables have the attribute Is_Dispatch_Table_Entity set to true.
8650         (Register_Primitive): Rename one variable to improve code reading.
8651         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
8652         of the pointer to the 'size primitive in the TSD.
8653
8654         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
8655         (RE_Offset_To_Top_Ptr): New entity.
8656         (RE_Register_Interface_Offset): New entity.
8657         (RE_Set_Dynamic_Offset_To_Top): New entity.
8658         (RE_Set_Offset_To_Top): Removed entity.
8659         (RE_Prim_Ptr): New entity
8660         (RE_Size_Func): New entity
8661         (RE_Size_Ptr): New entity
8662         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
8663         (Ada_Dispatching_Child): Define this new subrange.
8664         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
8665          RE_Time_Span, and RE_Time_Span_Zero).
8666         (RE_Unit_Table): Add new required run-time calls
8667
8668         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
8669         children.
8670
8671         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
8672         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
8673          initializes the Offset_To_Top component of a dispatch table.
8674         (Build_Predef_Prims): Removed.
8675         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
8676          its actual code.
8677         (Build_Set_Size_Function): New subprogram.
8678
8679         * exp_ch13.adb: Do not generate storage variable for storage_size zero
8680         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
8681
8682 2008-04-08  Robert Dewar  <dewar@adacore.com>
8683
8684         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
8685         computing Fore when Exp > 0
8686
8687 2008-04-08  Robert Dewar  <dewar@adacore.com>
8688
8689         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
8690
8691         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
8692         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
8693
8694         * fmap.adb: Remove Big_String declarations (now in Types)
8695         (No_Mapping_File): New Boolean global variable
8696         (Initialize): When mapping file cannot be read, set No_Mapping_File to
8697         False.
8698         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
8699         tables were empty before adding entries, open the mapping file
8700         with Truncate = True, instead of delete/re-create.
8701
8702         * fname-sf.adb: Remove Big_String declarations (now in Types)
8703
8704         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
8705         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
8706         big pointer types
8707
8708         * table.ads: Add for Table_Ptr'Storage_Size use 0
8709
8710         * types.ads: Add Big_String declarations
8711         Add Size_Clause of zero for big pointer types
8712
8713 2008-04-08  Vincent Celier  <celier@adacore.com>
8714
8715         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
8716         (Usage): Add line for switch --subdirs=
8717         Add new switch -eL, to follow symbolic links when processing project
8718         files.
8719
8720         * gnatcmd.adb: Process switches -eL and --subdirs=
8721         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
8722         Program_Name to get proper tool names when AAMP_On_Target is set.
8723         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
8724         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
8725         Osint.Program_Name).
8726
8727         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
8728         (Usage): Add lines for switches -eL and --subdirs=
8729
8730         * makeusg.adb: Add line for switch --subdirs=
8731
8732         * prj.ads:
8733         (Source_Data): New Boolean component Compiled, defaulted to True
8734         (Empty_File_Name: New global variable in private part, initialized in
8735         procedure Initialize.
8736         (Subdirs_Option): New constant string
8737         (Subdirs): New String_Ptr global variable
8738         (Language_Config): New component Include_Compatible_Languages
8739         (Project_Qualifier): New type for project qualifiers
8740         (Project_Data): New component Qualifier
8741         (Project_Configuration): New component Archive_Builder_Append_Option
8742
8743         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
8744         another imported project indicate the name of this imported project.
8745         (Check_File): When a unit is in two project files, indicate the project
8746         names and the paths of the source files for each project.
8747         (Add_Source): Set Compiled to False if compiler driver is empty. Only
8748         set object, dependency and switches file names if Compiled is True.
8749         (Process_Compiler): Allow the empty string for value of attribute Driver
8750         (Get_Directories): When Subdirs is not null and Object_Dir is not
8751          specified, locate and create if necessary the actual object dir.
8752         (Locate_Directory): When Subdirs is not empty and Create is not the
8753         empty string, locate and create if necessary the actual directory
8754         as a subdirectory of directory Name.
8755         (Check_Library_Attributes.Check_Library): Allow a project where the only
8756         "sources" are header files of file based languages to be imported by
8757         library projects, in multi-language mode (gprbuild).
8758         (Check_Library_Attributes.Check_Library): In multi-language mode
8759         (gprbuild), allow a library project to import a project with no
8760         sources, even when this is not declared explicitly.
8761         (Check_If_Externally_Built): A virtual project extending an externally
8762         built project is also externally built.
8763         (Check_Library_Attributes): For a virtual project extending a library
8764         project, inherit the library directory.
8765         (Process_Project_Level_Array_Attributes): Process new attribute
8766         Inherit_Source_Path.
8767         For projects with specified qualifiers "standard", "library" or
8768         "abstract", check that the project conforms to the qualifier.
8769         (Process_Project_Level_Simple_Attributes): Process new attribute
8770          Archive_Builder_Append_Option.
8771
8772         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
8773         (Normalize_Compiler_Switches): Only keep compiler switches that are
8774         passed to gnat1 by the gcc driver and that are stored in the ALI file
8775         by gnat1.
8776         Do not take into account switc -save-temps
8777
8778         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
8779         gprmake is called with -eL.
8780         (Scan_Arg): Recognize switch -eL
8781         (Usage): Add line for switch -eL
8782
8783         * prj.adb (Initialize): Initialize Empty_File_Name
8784         (Project_Empty): New component Qualifier
8785
8786         * prj-attr.ads, prj-attr.adb: New project level attribute
8787         Inherit_Source_Path.
8788         New project level attribute Archive_Builder_Append_Option
8789
8790         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
8791
8792         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
8793         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
8794         upward compatibility.
8795
8796         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
8797         each Trying ..." on different lines.
8798         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
8799         is "configuration" when not in configuration. Fail when in configuration
8800         when a specified qualifier is other than "configuration".
8801
8802         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
8803         full associative array together.
8804         (Recursive_Process): Put the project qualifier in the project data
8805
8806         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
8807         (Set_Project_Qualifier_Of): New procedure
8808
8809 2008-04-08  Robert Dewar  <dewar@adacore.com>
8810
8811         * errout.ads: Update comments for new handling of info: messages
8812
8813         * erroutc.adb (Matches): New procedure
8814         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
8815         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
8816          info messages as well as style messages.
8817
8818         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
8819
8820         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
8821         subprograms.
8822         (Check_A_Call): Special "info: " warnings now have ? in the text
8823         (Elab_Warning): Use info message in static case
8824
8825 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
8826
8827         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
8828         whether an array aggregate with static bounds and scalar components
8829         should be expanded into a static constant.
8830
8831 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
8832             Ed Schonberg  <schonberg@adacore.com>
8833             Robert Dewar  <dewar@adacore.com>
8834
8835         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
8836         Has_Stream_Attribute_ Definition when checking for available stream
8837         attributes on parameters of a limited type in Ada 2005. Necessary for
8838         proper recognition of visible stream attribute clauses.
8839         (Has_Stream_Attribute_Definition): If the type is derived from a
8840         private type, then use the derived type's underlying type for checking
8841         whether it has stream attributes.
8842         (Validate_Object_Declaration): The check for a user-defined Initialize
8843         procedure applies also to types with controlled components or a
8844         controlled ancestor.
8845         Reject an object declaration in a preelaborated unit if the type is a
8846         controlled type with an overriding Initialize procedure.
8847         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
8848         checking when the parent of a dereference is a selected component and
8849         the name has not been analyzed.
8850
8851         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
8852         prefixes that are invalid explicit dereferences of remote
8853         access-to-class-wide values, first checking whether the selected
8854         component is a prefixed form of call to a tagged operation.
8855         (Analyze_Call): Remove code that issues an error for limited function
8856         calls in illegal contexts, as we now support all of the contexts that
8857         were forbidden here.
8858         Allow a function call that returns a task.and appears as the
8859         prefix of a selected component.
8860         (Analyze_Reference): Give error message if we try to make a 'Reference
8861         for an object that is atomic/aliased without its type having the
8862         corresponding attribute.
8863         (Analyze_Call): Remove condition checking for attributes to allow
8864         calls to functions with inherently limited results as prefixes of
8865         attributes. Remove related comment about Class attributes.
8866         (Analyze_Selected_Component): If the prefix is a remote type, check
8867         whether this is a prefixed call before reporting an error.
8868         (Complete_Object_Operation): If the controlling formal is an access to
8869         variable reject an actual that is a constant or an access to one.
8870         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8871         primitive operations from base type.
8872
8873         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
8874         build-in-place
8875         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8876         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
8877         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8878         (Expand_N_Slice): Test for prefix that is a build-in-place function call
8879         and call Make_Build_In_Place_Call_In_Anonymous_Context.
8880         (Analyze_Call): Remove code that issues an error for limited function
8881         calls in illegal contexts, as we now support all of the contexts that
8882         were forbidden here.
8883         New calling sequence for Get_Simple_Init_Val
8884         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
8885         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
8886
8887 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8888             Ed Schonberg  <schonberg@adacore.com>
8889             Robert Dewar  <dewar@adacore.com>
8890
8891         * exp_ch2.adb: Minor reformatting.
8892         (Expand_Entry_Index_Parameter): Set the type of the identifier.
8893         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
8894         (Expand_Protected_Component): New routine.
8895         (Expand_Protected_Private): Removed.
8896         Add Sure parameter to Note_Possible_Modification calls
8897
8898         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
8899         generated subprogram declaration must inherit the overriding indicator
8900         from the instantiation node.
8901         (Validate_Access_Type_Instance): If the designated type of the actual is
8902         a limited view, use the available view in all cases, not only if the
8903         type is an incomplete type.
8904         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
8905         and the actual subtype does not exclude null.
8906         (Process_Default): Handle properly abstract formal subprograms.
8907         (Check_Formal_Package_Instance): Handle properly defaulted formal
8908         subprograms in a partially parameterized formal package.
8909         Add Sure parameter to Note_Possible_Modification calls
8910         (Validate_Derived_Type_Instance): if the formal is non-limited, the
8911         actual cannot be limited.
8912         (Collect_Previous_Instances): Generate instance bodies for subprograms
8913         as well.
8914
8915         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
8916         try to set RM_Size.
8917         Add Sure parameter to Note_Possible_Modification calls
8918         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
8919         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
8920         constant overlaid by variable and issue warning.
8921         Use new Is_Standard_Character_Type predicate
8922         (Analyze_Record_Representation_Clause): Check that the specified
8923         Last_Bit is not less than First_Bit - 1.
8924         (Analyze_Attribute_Definition_Clause, case Address): Check for
8925         self-referential address clause
8926
8927         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
8928         detection mechanism when the lhs is a prival.
8929         (Analyze_Assignment): Call Check_Unprotected_Access to detect
8930         assignment of a pointer to protected data, to an object declared
8931         outside of the protected object.
8932         (Analyze_Loop_Statement): Check for unreachable code after loop
8933         Add Sure parameter to Note_Possible_Modication calls
8934         Protect analysis from previous syntax error such as a scope mismatch
8935         or a missing begin.
8936         (Analyze_Assignment_Statement): The assignment is illegal if the
8937         left-hand is an interface.
8938
8939         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
8940         violation of restriction No_Implicit_Conditionals
8941         Add Sure parameter to Note_Possible_Modication calls
8942         Use new Is_Standard_Character_Type predicate
8943         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
8944         call as operator. Fixes problems (e.g. validity checking) which
8945         come from the result looking as though it does not come from source).
8946         (Resolve_Call): Check case of name in named parameter if style checks
8947         are enabled.
8948         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
8949         from the checking that such calls should not occur from an entry body.
8950         (Resolve_Call): If the return type of an Inline_Always function
8951         requires the secondary stack, create a transient scope for the call
8952         if the body of the function is not available for inlining.
8953         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
8954         that are actuals for in-out formals.
8955         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8956         primitive operations from base type.
8957         (Analyze_Selected_Component): If the context is a call to a protected
8958         operation the parent may be an indexed component prior to expansion.
8959         (Resolve_Actuals): If an actual is of a protected subtype, use its
8960         base type to determine whether a conversion to the corresponding record
8961         is needed.
8962         (Resolve_Short_Circuit): Handle pragma Check
8963
8964         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
8965         Use new Is_Standard_Character_Type predicate
8966         (Eval_Relational_Op): Catch more cases of string comparison
8967
8968 2008-04-08  Robert Dewar  <dewar@adacore.com>
8969             Gary Dismukes  <dismukes@adacore.com>
8970
8971         * s-rident.ads: Add No_Default_Initialization restriction
8972
8973         * exp_tss.adb:
8974         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
8975         (Set_TSS): Handle No_Default_Initialization case
8976
8977         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
8978         No_Default_Initialization
8979         (Expand_N_Subprogram_Body): Remove redundant initialization of out
8980         parameters when Normalize_Scalars is active.
8981         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
8982         Fix casing error in formal parameter name in call
8983         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
8984         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8985         dispatching call on VM targets.
8986
8987 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
8988             Thomas Quinot  <quinot@adacore.com>
8989
8990         * exp_ch7.adb (Find_Final_List): Change the test for generating a
8991         selected component from an access type's Associated_Final_Chain to
8992         check for the presence of that field, rather than assuming it exists
8993         for all named access types.
8994         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
8995         procedure to call at the end of the generated cleanup procedure.
8996         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
8997         and an At_End_Proc already exists in the handled sequence of statements
8998         for which cleanup actions are being expanded, the original cleanup
8999         action must be preserved.
9000
9001 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
9002             Ed Schonberg  <schonberg@adacore.com>
9003             Robert Dewar  <dewar@adacore.com>
9004             Gary Dismukes  <dismukes@adacore.com>
9005
9006         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
9007         Build_Unprotected_Subprogram_Body): Generate debug info for
9008         declarations related to the handling of private data in task and
9009         protected types.
9010         (Debug_Private_Data_Declarations): New subprogram.
9011         (Install_Private_Data_Declarations): Remove all debug info flagging.
9012         This is now done by Debug_Private_Data_Declarations at the correct
9013         stage of expansion.
9014         (Build_Simple_Entry_Call): If the task name is a function call, expand
9015         the prefix into an object declaration, and make the surrounding block a
9016         task master.
9017         (Build_Master_Entity): An internal block is a master if it wraps a call.
9018         Code reformatting, update comments. Code clean up.
9019         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
9020         (Replicate_Entry_Formals): If the formal is an access parameter or
9021         anonymous access to subprogram, copy the original tree to create new
9022         entities for the formals of the subprogram.
9023         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
9024         for tasks to store the value passed using pragma Relative_Deadline.
9025         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
9026         run-time call to create a task.
9027         (Build_Wrapper_Spec): If the controlling argument of the interface
9028         operation is an access parameter with a non-null indicator, use the
9029         non-null indicator on the wrapper.
9030
9031         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
9032         present, which it may not be in the case where the type entity is an
9033         incomplete view brought in by a limited with.
9034         (Analyze_Task_Type): Only retrieve the full view when present, which it
9035         may not be in the case where the type entity is an incomplete view brought
9036         in by a limited with.
9037         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
9038         private components of a protected type, to prevent the generation of freeze
9039         nodes for which there is no proper scope of elaboration.
9040
9041         * exp_util.ads, exp_util.adb
9042         (Remove_Side_Effects): If the expression is a function call that returns a
9043         task, expand into a declaration to invoke the build_in_place machinery.
9044         (Find_Protection_Object): New routine.
9045         (Remove_Side_Effects): Also make a copy of the value
9046         for attributes whose result is of an elementary type.
9047         (Silly_Boolean_Array_Not_Test): New procedure
9048         (Silly_Boolean_Array_Xor_Test): New procedure
9049         (Is_Volatile_Reference): New function
9050         (Remove_Side_Effects): Use Is_Volatile_Reference
9051         (Possible_Bit_Aligned_Component): Handle slice case properly
9052
9053         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
9054         case test to Exp_Util
9055         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
9056
9057 2008-04-08  Thomas Quinot  <quinot@adacore.com>
9058
9059         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
9060         in call
9061         (Add_RACW_Features): When processing an RACW in another unit than the
9062         main unit, set Body_Decls to No_List to indicate that the bodies of
9063         the type's TSS must not be generated.
9064         (GARLIC_Support.Add_RACW_Read_Attribute,
9065         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
9066         Body_Decls is No_List.
9067         (PolyORB_Support.Add_RACW_Read_Attribute,
9068         PolyORB_Support.Add_RACW_Write_Attribute,
9069         PolyORB_Support.Add_RACW_From_Any,
9070         PolyORB_Support.Add_RACW_To_Any,
9071         PolyORB_Support.Add_RACW_TypeCode): Same.
9072         (Transmit_As_Unconstrained): New function.
9073         (Build_Ordered_Parameters_List): Use the above to order parameters.
9074         (GARLIC_Support.Build_General_Calling_Stubs):
9075         Use the above to determine which parameters to unmarshall using 'Input
9076         at the point where their temporary is declared (as opposed to later on
9077         with a 'Read call).
9078         (PolyORB_Support.Build_General_Calling_Stubs):
9079         Use the above to determine which parameters to unmarshall using From_Any
9080         at the point where their temporary is declared (as opposed to later on
9081         with an assignment).
9082
9083 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
9084
9085         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
9086         an Input function for an access type, do not perform default
9087         initialization on the local variable that receives the value, to
9088         prevent spurious warnings when the type is null-excluding.
9089
9090 2008-04-08  Robert Dewar  <dewar@adacore.com>
9091             Ed Schonberg  <schonberg@adacore.com>
9092
9093         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
9094         units.
9095         (Size_Known): Generic formal scalar types have known at compile
9096         time size, so remove check.
9097         Fix casing error in formal parameter name in call
9098         (Freeze_Subprogram): If the subprogram is a user-defined operator,
9099         recheck its overriding indication.
9100
9101 2008-04-08  Vincent Celier  <celier@adacore.com>
9102
9103         * gnat1drv.adb: Send all messages indicating an error to standard error
9104
9105 2008-04-08  Robert Dewar  <dewar@adacore.com>
9106
9107         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
9108         (List_Applicable_Restrictions): Do not list existing restrictions
9109
9110 2008-04-08  Thomas Quinot  <quinot@adacore.com>
9111
9112         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
9113         add a pointer to generic sockets literature
9114         do not mention that the given example is "typical" usage.
9115         Remove obsolete comment about multicast not being supported on Windows.
9116         (Connect_Socket): Make Server mode IN rather than IN OUT
9117         since this formal is never modified.
9118
9119 2008-04-08  Robert Dewar  <dewar@adacore.com>
9120
9121         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
9122         the declaration for some different entity.
9123         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
9124         list is precent (following the parent subtype indication), display
9125         appropriate "and" keyword.
9126
9127         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
9128         Remove unnecessary calls to Init_Size_Align and Init_Esize.
9129         Add notes on use of Parent field of an Itype
9130
9131 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
9132             Robert Dewar  <dewar@adacore.com>
9133             Gary Dismukes  <dismukes@adacore.com>
9134
9135         * lib-xref.adb (Is_On_LHS): Remove dead code
9136         (Output_Overriden_Op): If the overridden operation is itself inherited,
9137         list the ancestor operation, which is the one whose body or absstract
9138         specification is actually being overridden. For source navigation
9139         purposes.
9140
9141         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
9142         operation is primitive for the type.
9143         (Declare_Inherited_Private_Subprograms): If the new operation overrides
9144         an inherited private subprogram, set properly the Overridden_Operation
9145         attribute, for better cross-reference information.
9146         (Analyze_Package_Specification): Do late analysis of spec PPCs
9147         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
9148         properly the full view and underlying full views of a private type in a
9149         child unit, whose full view is derived from a private type in a parent
9150         unit, and whose own full view becomes visible in the child body.
9151
9152         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
9153         primitive operation after the type has been frozen, add an explicit
9154         reference to the type and the operation, because other primitive
9155         references have been emitted already.
9156         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
9157         dispatching call on VM targets.
9158
9159 2008-04-08  Vincent Celier  <celier@adacore.com>
9160             Thomas Quinot  <quinot@adacore.com>
9161
9162         * make.adb: (Gnatmake_Called): Remove, no longer necessary
9163         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
9164         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
9165         (Insert_Project_Sources): Take into account index in multi-unit source
9166         files.
9167         After building a library project, delete all temporary files.
9168         (Initialize): Reset current output after parsing project file.
9169         (Collect_Arguments_And_Compile): Never insert in the queue the sources
9170         of library projects that are externally built.
9171         Put file name in error and inform messages if -df is used
9172         (Display): If invoked with -d7, do not display path names, but only
9173         file names.
9174
9175         * makeutl.ads (Path_Or_File_Name): New function
9176         (Path_Or_File_Name): New function
9177
9178 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
9179
9180         * Make-lang.in: Disable warnings during first stage of bootstrap
9181         Get rid of gnatbl.
9182         Update dependencies.
9183
9184 2008-04-08  Vincent Celier  <celier@adacore.com>
9185
9186         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
9187         case to decide if ALI object file is included in library.
9188         (Build_Library): Never attempt to build a library if the project is
9189         externally built.
9190
9191 2008-04-08  Thomas Quinot  <quinot@adacore.com>
9192
9193         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
9194         (No_List) is defined to return Empty.
9195
9196 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
9197
9198         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
9199         documentation.
9200         Update comments.
9201         (Read_Default_Search_Dirs): Do not consider spaces as path separators
9202         because spaces may be part of legal paths.
9203
9204 2008-04-08  Robert Dewar  <dewar@adacore.com>
9205
9206         * par-ch11.adb (P_Exception_Handler): Check indentation level for
9207         handler
9208
9209 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
9210
9211         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
9212         in a type declaration, if this is not an interface declaration or
9213         private type extension.
9214
9215 2008-04-08  Vincent Celier  <celier@adacore.com>
9216
9217         * prj-util.adb (Executable_Of): New String parameter Language. When
9218         Ada_Main is False and Language is not empty, attempt to remove the body
9219         suffix or the spec suffix of the language to get the base of the
9220         executable file name.
9221         (Put): New Boolean parameter Lower_Case, defauilted to False. When
9222         Lower_Case is True, put the value in lower case in the name list.
9223         (Executable_Of): If there is no executable suffix in the configuration,
9224         then do not modify Executable_Extension_On_Target.
9225
9226         * prj-util.ads (Executable_Of): New String parameter Language,
9227         defaulted to the empty string.
9228         (Put): New Boolean parameter Lower_Case, defauilted to False
9229
9230 2008-04-08  Robert Dewar  <dewar@adacore.com>
9231
9232         * scng.adb (Scan_Identifier): Handle case of identifier starting with
9233         wide character using UTF-8 encoding.
9234
9235 2008-04-08  Javier Miranda  <miranda@adacore.com>
9236
9237         * sem.adb (Analyze): Consider case in which we analyze an empty node
9238         that was generated by a call to a runtime function that is not
9239         available under the configurable runtime.
9240
9241         * sem.ads (Inside_Freezing_Actions): New flag.
9242         (Save_Check_Policy_List): New field in scope stack entry
9243
9244 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
9245             Robert Dewar  <dewar@adacore.com>
9246
9247         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
9248         the ancestor part of an extension aggregate for a limited type.
9249         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
9250         enumeration index bounds.
9251         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
9252         when array is too short.
9253         (Check_Expr_OK_In_Limited_Aggregate): Move function
9254         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
9255         change name).
9256         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
9257         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
9258         component associations.
9259         (Check_Non_Limited_Type): Moved to outer level and renamed.
9260         (Resolve_Record_Aggregate): In an extension aggregate, an association
9261         with a box initialization can only designate a component of the
9262         extension, not a component inherited from the given ancestor
9263
9264         * sem_case.adb: Use new Is_Standard_Character_Type predicate
9265
9266 2008-04-08  Robert Dewar  <dewar@adacore.com>
9267
9268         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
9269         negative scale
9270         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
9271         Properly handle case where Aft > Scale and input number is less than
9272         one.
9273
9274 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
9275
9276         * s-stoele.ads, s-soflin.ads: Move the location of
9277         Dummy_Communication_Block from System.Storage_Elements to
9278         System.Soft_Links.
9279
9280         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
9281         emulate Communication_Block in certain scenarios.
9282
9283 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
9284
9285         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
9286         subprogram.
9287         Add new subtype S_WWC, unchecked conversion routines From_WWC and
9288         To_WWC.
9289         (I_WWC, O_WWC): New routines for input and output of
9290         Wide_Wide_Character.
9291
9292 2008-04-08  Robert Dewar  <dewar@adacore.com>
9293
9294         * stringt.adb (Write_String_Table_Entry): Handle wide characters
9295         properly
9296
9297 2008-04-08  Robert Dewar  <dewar@adacore.com>
9298
9299         * styleg.adb (Check_Comment): Allow special char after -- in
9300         non-end-of-line case
9301
9302 2008-04-08  Robert Dewar  <dewar@adacore.com>
9303
9304         * stylesw.adb: Implement -gnaty + - y options
9305         (Set_GNAT_Style_Check_Options): Includ I in style check string
9306
9307         * stylesw.ads: Add comments for new style switch options
9308
9309 2008-04-08  Sergey Rybin  <rybin@adacore.com>
9310
9311         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
9312         to the set of the GNAT components needed by ASIS.
9313
9314 2008-04-08  Bob Duff  <duff@adacore.com>
9315
9316         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
9317
9318 2008-04-08  Tristan Gingold  <gingold@adacore.com>
9319
9320         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
9321         Improve error message generation.
9322
9323 2008-04-08  Vincent Celier  <celier@adacore.com>
9324
9325         * a-direct.adb (Start_Search): Check for Name_Error before checking for
9326         Use_Error, as specified in the RM. Check if directory is open and raise
9327         Use_Error if it is not.
9328
9329 2008-04-08  Vincent Celier  <celier@adacore.com>
9330             Robert Dewar  <dewar@adacore.com>
9331
9332         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
9333         AAMP_On_Target is set.
9334
9335         * vms_data.ads: Add NOxxx to style check switch list
9336         Add entry COMPONENTS for -gnatVe
9337         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
9338         (/SUBDIRS=).
9339         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
9340         Add qualifiers for gnatmetric coupling options
9341         Add note that -gnata enables all checks
9342         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
9343         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
9344         New warning flag -gnatw.e
9345
9346         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
9347         Add entry for -gnatyN (forgotten before)
9348         Line for new warning switch -gnatw.p
9349         New warning flag -gnatw.e
9350
9351         * gnat_ugn.texi: Add documentation fpr project file switch -aP
9352         Document -gnaty - + y
9353         Replace occurences of "package specification" with "package spec"
9354         Define preprocessing symbols in documentation of gnatprep
9355         Clarify reason for distinguishing overflow checking
9356         Add documentation for project-aware tool switches -eL and --subdirs=
9357         Complete list of configuration pragmas
9358         Specify that, even when gnatmake switch -x is used, mains on the command
9359         line need to be sources of project files.
9360         Editing of gnatcheck/gnatmetric doc.
9361         Add documentation for -gnatw.p/-gnatw.P
9362         Add missing documentation for -fno-inline-functions.
9363         Add documentation for -gnatw.e
9364
9365         * gnat_rm.texi: Add documentation for No_Default_Initialization
9366         Replace occurences of "package specification" with "package spec"
9367         Document use of * in Warnings Off string
9368         Update documentation of alignment/component clauses.
9369         Add documentation for Invalid_Value
9370         Document new consistency rule for Optimize_Alignment
9371         Add documentation for Precondition and Postcondition pragmas
9372         Add documentation for Check and Check_Policy pragmas
9373         Document new Enum_Val attribute
9374         Remove requirement for static string in pragma Assert
9375         Add documentation on GNAT.Time_Stamp
9376
9377         * ug_words: add entry for -gnatVe
9378         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
9379         Add entry for -gnatw.e
9380
9381         * debug.adb: Add missing documentation for d.a flag
9382         Document new -gnatd.a switch.
9383         Add documentation for new gnatmake debug switch -df
9384
9385 2008-04-08  Thomas Quinot  <quinot@adacore.com>
9386
9387         * gen-soccon.c: Bump year in copyright notices.
9388
9389         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
9390
9391 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
9392
9393         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
9394         Minor reformatting.
9395
9396 2008-04-08  Robert Dewar  <dewar@adacore.com>
9397             Bob Duff  <duff@adacore.com>
9398
9399         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
9400         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
9401
9402         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
9403
9404         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
9405
9406         * g-trasym.ads: Minor comment improvements
9407
9408         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
9409
9410         * a-sequio.ads, a-direio.ads: improve message for tagged type
9411
9412         * a-strunb.ads: Minor reformatting
9413
9414         * a-tifiio.adb: Minor reformatting
9415
9416         * atree.adb (Fix_Parents): Use clearer names for formals
9417         Cleanup and simplify code
9418         Use named notation in calls
9419
9420         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
9421         confusing calls
9422
9423         * uintp.adb: Used named notation for some confusing calls
9424
9425         * bindusg.adb: Minor change in one line of output
9426
9427         * cstand.adb: Minor reformatting of src representation of Standard
9428
9429         * a-assert.ads: Add comment.
9430
9431         * g-decstr.adb: Fix bad indentation
9432
9433         * expander.ads, expander.adb: Code clean up.
9434
9435         * sem_dist.ads: Minor comment improvement
9436
9437         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
9438         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
9439
9440         * i-cstrin.adb: Fix casing error in formal parameter name in call
9441
9442 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
9443
9444         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
9445         mentioned in limited_with_clauses to do create semantic dependencies
9446         even though they appear in the ali file.
9447
9448 2008-04-08  Emmanuel Briot  <briot@adacore.com>
9449
9450         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
9451         statement.
9452         (Get_Configuration): New subprogram.
9453
9454         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
9455         These optional parameters help preserve the casing of the project's name
9456         when pretty-printing.
9457
9458 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
9459             Arnaud Charlet  <charlet@adacore.com>
9460
9461         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
9462         then use __gnat_set_exit_status to report the returned status code.
9463
9464         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
9465         messages on .NET, since some constructs of the language are not
9466         properly supported.
9467
9468         * gnatlink.adb (Gnatlink): In case the command line is too long for the
9469         .NET linker, gnatlink now concatenate all .il files and pass this to
9470         ilasm.
9471
9472 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
9473             Xavier Grave  <grave@ipno.in2p3.fr>
9474
9475         * Makefile.in: Add make ifeq define for mips/mipsel support.
9476         * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
9477         system-linux-mips.ads: New files.
9478
9479 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
9480
9481         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
9482         detect systems using GNU libc.
9483         * gsocket.h: ditto.
9484         * socket.c: ditto.
9485         * adaint.c: ditto.
9486         * link.c: ditto.
9487
9488 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
9489
9490         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
9491         constant constant for sysconf call.
9492         (bit_field): New packed boolean type used by cpu_set_t.
9493         (cpu_set_t): New type corresponding to the C type with
9494         the same name. Note that on the Ada side we use a bit
9495         field array for the affinity mask. There is not need
9496         for the C macro for setting individual bit.
9497         (pthread_setaffinity_np): New imported routine.
9498         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
9499         on GNU/kFreeBSD.
9500
9501 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9502
9503         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
9504
9505 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9506
9507         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
9508         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
9509         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
9510         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
9511         Return by Depressed Stack Pointer.
9512
9513 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9514
9515         * decl.c (is_variable_size): Do not unconditionally return false
9516         on non-strict alignment platforms.
9517
9518 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9519
9520         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
9521         used to process all the variants of the specified type.
9522         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
9523         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
9524         (rest_of_type_decl_compilation): Likewise.
9525         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
9526
9527 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9528
9529         * gigi.h (insert_block): Kill.
9530         * utils.c (insert_block): Kill.
9531
9532 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9533
9534         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
9535         type has self-referential size, get the size from the initializing
9536         expression directly if it is also a constant whose nominal type
9537         has self-referential size.
9538
9539 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9540
9541         PR ada/33688
9542         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
9543
9544         PR ada/33857
9545         * env.c: Always include crt_externs.h if __APPLE__ is defined.
9546         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
9547
9548 2008-04-01  Andreas Jaeger  <aj@suse.de>
9549
9550         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
9551         IP_PKTINFO.
9552
9553 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9554
9555         * g-table.adb, g-tasloc.adb, g-traceb.ads,
9556         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
9557         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
9558         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
9559         gnatlink.adb, gnatmem.adb, gprep.adb,
9560         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
9561         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
9562         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
9563         lib-xref.ads, lib.adb, link.c, live.ads,
9564         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
9565         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
9566         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
9567         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
9568         namet.adb, namet.h, nlists.adb, nlists.ads,
9569         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
9570         osint-c.ads, osint.adb, osint.ads, output.ads,
9571         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
9572         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
9573         par-endh.adb, par-labl.adb, par-prag.adb,
9574         par-sync.adb, par-tchk.adb, par-util.adb,
9575         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
9576         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
9577         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
9578         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
9579
9580 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9581
9582         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
9583         size if it has overflowed.
9584
9585 2008-03-31  Olivier Hainque  <hainque@adacore.com>
9586             Eric Botcazou  <ebotcazou@adacore.com>
9587
9588         * utils2.c (find_common_type): Document assumption on t1/t2 vs
9589         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
9590
9591 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9592
9593         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
9594         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
9595         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9596         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
9597         exp_tss.ads, exp_util.adb, exp_util.ads,
9598         exp_vfpt.adb, freeze.adb, freeze.ads,
9599         frontend.adb, g-alleve.adb, g-altcon.adb,
9600         g-altive.ads, g-alveop.ads, g-alvevi.ads,
9601         g-arrspl.adb, g-busorg.ads, g-calend.adb,
9602         g-calend.ads, g-casuti.ads, g-cgideb.adb,
9603         g-comlin.adb, g-comlin.ads, g-curexc.ads,
9604         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
9605         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
9606         g-dyntab.adb, g-encstr.ads, g-excact.ads,
9607         g-except.ads, g-expect.ads, g-heasor.adb,
9608         g-hesora.adb, g-hesorg.adb, g-htable.ads,
9609         g-locfil.ads, g-md5.adb, g-md5.ads,
9610         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
9611         g-pehage.adb, g-pehage.ads, g-regexp.adb,
9612         g-regexp.ads, g-regpat.adb, g-regpat.ads,
9613         g-soccon-aix.ads, g-soccon-darwin.ads,
9614         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
9615         g-soccon-hpux.ads, g-soccon-irix.ads,
9616         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
9617         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
9618         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
9619         g-soccon-solaris.ads, g-soccon-tru64.ads,
9620         g-soccon-vms.ads, g-soccon-vxworks.ads,
9621         g-soccon.ads, g-socket.adb, g-socket.ads,
9622         g-socthi-mingw.adb, g-socthi-vms.adb,
9623         g-socthi-vxworks.adb, g-soliop-mingw.ads,
9624         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
9625         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
9626         typos.
9627
9628 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
9629
9630         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
9631         if the procedure is imported.
9632
9633 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9634
9635         * adaint.c: Fix warnings.
9636
9637 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9638
9639         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
9640
9641 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9642
9643         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
9644         Fix problem of status check for null file
9645
9646 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9647
9648         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
9649         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
9650         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
9651         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
9652         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
9653         comments.
9654
9655 2008-03-26  Thomas Quinot  <quinot@adacore.com>
9656
9657         PR ada/33688
9658         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
9659         Get_Socket_Option): Add support for Receive_Packet_Info.
9660
9661         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
9662         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
9663         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
9664         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
9665         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
9666         new constants SO_REUSEPORT and IP_PKTINFO
9667
9668 2008-03-26  Robert Dewar  <dewar@adacore.com>
9669
9670         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
9671         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
9672         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
9673         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
9674         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
9675         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
9676         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
9677         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9678         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
9679         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
9680         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9681         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
9682         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
9683         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
9684         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
9685         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
9686         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
9687         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
9688         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
9689         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
9690         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
9691         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
9692         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
9693         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
9694         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
9695         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
9696         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
9697         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
9698         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
9699         s-tasloc.adb: Minor reformatting.
9700         Update comments.
9701         Remove "used for" sections from comments.
9702
9703 2008-03-26  Robert Dewar  <dewar@adacore.com>
9704
9705         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9706         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9707         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9708         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9709         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9710         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9711         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9712         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9713         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9714         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9715         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9716         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9717         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9718         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9719         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
9720         double spaced if it fits on one line and otherwise single spaced.
9721
9722 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9723
9724         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
9725         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
9726         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
9727         or task info if the thread could not be created.
9728
9729 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9730
9731         * gnatvsn.ads (Library_Version): Bump to 4.4.
9732         (Current_Year): Bump to 2008.
9733
9734 2008-03-26  Robert Dewar  <dewar@adacore.com>
9735
9736         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
9737
9738         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
9739
9740         * debug.adb: Add debug flags d.r and d.v
9741         Add debug flag .T (Optimize_Alignment (Time))
9742         Add debug flag .S (Optimize_Alignment (Space))
9743
9744         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
9745         depending on setting of relevant debug flags.
9746         Replace use of Warnings_Off by Has_Warnings_Off
9747         (Freeze_Entity): In circuit for warning on suspicious convention
9748         actuals, do not give warning if subprogram has same entity as formal
9749         type, or if subprogram does not come from source.
9750         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
9751         if Optimize_Alignment set to Space.
9752
9753         * frontend.adb: Add call to Sem_Warn.Initialize
9754         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
9755         Reset Optimize_Alignment mode from debug switches .S and .T
9756
9757         * layout.adb (Layout_Composite_Object): Rewritten for
9758         Optimize_Aligment pragma.
9759
9760         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
9761         mode.
9762
9763         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
9764
9765         * par-prag.adb (N_Pragma): Chars field removed, use Chars
9766         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
9767         this change. Add entry for pragma Optimize_Alignment
9768
9769         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
9770         (Pragma_Identifier (..
9771         instead, adjustments throughout to accomodate this change.
9772         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
9773         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
9774         Add implementation of pragma Optimize_Alignment
9775
9776 2008-03-26  Vincent Celier  <celier@adacore.com>
9777
9778         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
9779         Improve memory usage to avoid use of stack.
9780
9781 2008-03-26  Robert Dewar  <dewar@adacore.com>
9782
9783         * a-teioed.ads: Correct value of Default_Fill
9784
9785         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
9786
9787 2008-03-26  Robert Dewar  <dewar@adacore.com>
9788
9789         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
9790         with Current_Output (introduce Self).
9791
9792 2008-03-26  Robert Dewar  <dewar@adacore.com>
9793
9794         * checks.adb (Ensure_Valid): Capture valid status if possible
9795         (eliminate checks)
9796
9797 2008-03-26  Robert Dewar  <dewar@adacore.com>
9798
9799         * stand.ads: Deal with reordering of package standard declarations
9800
9801         * cstand.adb: Put package Standard declarations in proper order
9802
9803 2008-03-26  Robert Dewar  <dewar@adacore.com>
9804
9805         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
9806         (Pragma_Identifier (.. instead.
9807         (OK_To_Reorder_Components): New flag
9808         (Has_Entries): Code cleanup.
9809         (Warnings_Off_Used): New flag
9810         (Warnings_Off_Used_Unmodified): New flag
9811         (Warnings_Off_Used_Unreferenced): New flag
9812         (Has_Warnings_Off): New function
9813         (Has_Unmodified): New function
9814         (Has_Unreferenced): New function
9815         (Is_Trivial_Subprogram): New flag
9816         (Is_Static_Dispatch_Table_Entity): New attribute.
9817         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
9818         (more consistent with other similar names)
9819         (Access_Subprogram_Type): New classification function
9820
9821 2008-03-26  Robert Dewar  <dewar@adacore.com>
9822
9823         * errout.ads: Document new !! insertion sequence
9824
9825         * errout.adb (N_Pragma): Chars field removed, use Chars
9826         (Pragma_Identifier (..  instead.
9827         Replace use of Warnings_Off by Has_Warnings_Off
9828         (Error_Msg_Internal): Don't delete warning ending in !!
9829
9830 2008-03-26  Robert Dewar  <dewar@adacore.com>
9831
9832         * par.adb (Check_No_Right_Paren): Removed no longer used
9833
9834         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
9835         (Pragma_Identifier (..  instead.
9836
9837         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
9838
9839         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
9840         par-ch4.adb: Minor improvements in error recovery and messages.
9841
9842         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
9843         non-serious
9844
9845         * par-ch9.adb: Minor improvements in error recovery and messages
9846         (P_Protected): Better error recovery for "protected type x;"
9847
9848         * par-util.adb: Minor improvements in error recovery and messages
9849         (Check_No_Right_Paren): Removed no longer used
9850
9851 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9852
9853         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
9854         that the prefix of an attribute is the type of the aggregate being
9855         expanded.
9856
9857 2008-03-26  Javier Miranda  <miranda@adacore.com>
9858             Robert Dewar  <dewar@adacore.com>
9859
9860         * exp_attr.adb (N_Pragma): Chars field removed.
9861         (Expand_N_Attribute_Reference): If the designated type associated with
9862         attribute 'Unrestricted_Access is a subprogram entity then replace it
9863         by an E_Subprogram_Type itype.
9864         Implement attribute Old
9865
9866         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
9867
9868         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
9869         Replace call to
9870         New_Internal_Entity by call to Create_Itype to centralize calls
9871         building itypes, ad propagate the convention of the designated
9872         subprogram. In addition, disable the machinery cleaning constant
9873         indications from all entities in current scope when 'Unrestricted_Access
9874         corresponds with a node initializing a dispatch table slot.
9875         (Analyze_Attribute): Parameterless attributes returning a string or a
9876         type will not be called with improper arguments, so we can remove junk
9877         code that was dealing with this case.
9878         Implement attribute Old
9879
9880         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
9881         Add entry for pragma Optimize_Alignment
9882         New standard names Sync and Synchronize
9883
9884 2008-03-26  Robert Dewar  <dewar@adacore.com>
9885             Arnaud Charlet  <charlet@adacore.com>
9886
9887         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
9888         stmt.
9889         (No_Exception_Propagation_Active): New function.
9890         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9891         Update comments, and review all uses of No_Exception_Propagation, which
9892         are now correct and in sync with what gigi expects.
9893
9894         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
9895         function.
9896         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9897         Update comments, and review all uses of No_Exception_Propagation, which
9898         are now correct and in sync with what gigi expects.
9899
9900 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9901
9902         * sem_ch3.adb (Access_Definition): If the access type is the return
9903         result of a protected function, create an itype reference for it
9904         because usage will be in an inner scope from the point of declaration.
9905         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
9906         OK_To_Reorder_Components.
9907         (Make_Index): If an overloaded range includes a universal integer
9908         interpretation, resolve to Standard.Integer.
9909         (Analyze_Subtype_Indication): Copy Convention to subtype
9910         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
9911         limited an synchronized progenitors in type declaration and private
9912         extension declarations.
9913
9914         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
9915         protected subprogram body, determine proper scope from subprogram
9916         declaration.
9917
9918 2008-03-26  Robert Dewar  <dewar@adacore.com>
9919
9920         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
9921         No_Run_Time_Mode
9922
9923 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
9924
9925         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
9926         of a heap allocator for a limited unconstrained function return when
9927         resstriction No_Allocators is active.
9928         (Analyze_Allocator): The restriction No_Allocators is now only checked
9929         on allocators that have Comes_From_Source set, as per RM-H.4(7).
9930
9931         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
9932         of a heap allocator for a limited unconstrained function return when
9933         resstriction No_Allocators is active.
9934         (Analyze_Allocator): The restriction No_Allocators is now only checked
9935         on allocators that have Comes_From_Source set, as per RM-H.4(7).
9936         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
9937         operands are fixed-point types, the universal_fixed predefined operation
9938         is used, regardless of whether the operand type (s) have a primitive
9939         operation of the same name.
9940
9941 2008-03-26  Javier Miranda  <miranda@adacore.com>
9942
9943         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
9944         Is_Static_Dispatch_Table
9945         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
9946         to Exchange_Declarations to exchange the private and full-view. Bug
9947         found working in this issue.
9948         (Expand_Dispatching_Call): Propagate the convention of the subprogram
9949         to the subprogram pointer type.
9950         (Make_Secondary_DT): Replace generation of Prim'Address by
9951         Address (Prim'Unrestricted_Access)
9952         (Make_DT): Replace generation of Prim'Address by
9953         Address (Prim'Unrestricted_Access)
9954         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
9955         simple call form for single entry.
9956         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
9957         tables of predefined primitives).
9958         (Make_Secondary_DT): Add support to handle access to dispatch tables of
9959         predefined primitives.
9960         (Make_Tags): Add entities to Access_Dispatch_Table associated with
9961         access to dispatch tables containing predefined primitives.
9962
9963         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
9964         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
9965         this change.
9966         (Register_Predefined_DT_Entry): Updated to handle the new contents
9967         of attribute Access_Disp_Table (pointers to dispatch tables containing
9968         predefined primitives).
9969
9970         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
9971         subprogram.
9972         (Find_Interface_ADT): Updated to skip the new contents of attribute
9973         Access_Dispatch_Table (pointers to dispatch tables containing predefined
9974         primitives).
9975
9976         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
9977         concurrent types.
9978         (Set_Convention): Use new function Is_Access_Subprogram_Type
9979         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
9980         Access_Dispatch_Table (pointers to dispatch tables containing predefined
9981         primitives).
9982
9983         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
9984         expanded code avoiding calls to Build_Predef_Prims.
9985         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
9986         call to Build_Get_Predefined_Prim_Op_Address.
9987
9988 2008-03-26  Javier Miranda  <miranda@adacore.com>
9989
9990         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
9991         subprogram Corresponding_Runtime_Package to know the runtime package
9992         that will provide support to a given protected type.
9993
9994         * exp_ch9.adb (Add_Private_Declarations,
9995         Build_Protected_Subprogram_Call,
9996         Build_Protected_Entry, Build_Simple_Entry_Call,
9997         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9998         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
9999         cleanup using the new centralized subprogram Corresponding_Runtime
10000         Package to know the runtime package that provides support to
10001         a given protected type.
10002
10003 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
10004
10005         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
10006         assignment is within the initialization procedure for a packed array,
10007         and Initialize_Scalars is enabled, compile right-hand side with checks
10008         off, because the value is purposely out of range.
10009
10010 2008-03-26  Vincent Celier  <celier@adacore.com>
10011
10012         * gnatcmd.adb: Add processing for GNAT SYNC
10013
10014         * vms_conv.ads: (Command_Type): Add command Sync
10015
10016         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
10017
10018         * vms_data.ads: Add entries for -gnatw.w
10019         Add qualifier for gnatstub --header-file option
10020         Add switches for GNAT SYNC
10021
10022         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
10023         (Add_Package_Name): New procedure
10024         (Package_Name_List): New function
10025         (Initialize): Add known package names to the list
10026         (Register_New_Package): Add the new package name to the list
10027
10028 2008-03-26  Robert Dewar  <dewar@adacore.com>
10029
10030         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
10031         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
10032         Raise_Exception by "raise with" construct.
10033
10034 2008-03-26  Pascal Obry  <obry@adacore.com>
10035
10036         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
10037         supported platforms.
10038
10039         * Makefile.rtl: Add g-sercom.o.
10040
10041         * impunit.adb: Add g-sercom.adb.
10042
10043         * s-crtl.ads (open): New routine.
10044         (close): Likewise.
10045         (write): Likewise.
10046
10047         * s-osinte-mingw.ads (BYTE): New type.
10048         (CHAR): Likewise.
10049         (OVERLAPPED): Likewise.
10050         (GENERIC_READ): New constant.
10051         (GENERIC_WRITE): Likewise.
10052         (OPEN_EXISTING): Likewise.
10053         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
10054         type instead.
10055         (CreateFile): New routine.
10056         (WriteFile): Likewise.
10057         (ReadFile): Likewise.
10058         (CloseHandle): Move next to the other file oriented routines.
10059
10060         * g-sercom.ads: New unit.
10061
10062         * g-sercom.adb: Default implementation, calls to this unit will raise
10063         a program error exception.
10064
10065         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
10066         GNU/Linux implementations.
10067
10068 2008-03-26  Robert Dewar  <dewar@adacore.com>
10069
10070         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
10071
10072         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
10073         unchecked conversion for different conventions only for subprogram
10074         pointers or on VMS.
10075
10076 2008-03-26  Vincent Celier  <celier@adacore.com>
10077
10078         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
10079         to check if the specified object file is correct.
10080
10081 2008-03-26  Thomas Quinot  <quinot@adacore.com>
10082
10083         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
10084         Comes_From_Source to exclude primitives from being checked. We want to
10085         exclude predefined primitives only, so use the appropriate specific
10086         predicate. Also, flag a formal parameter of an anonymous
10087         access-to-subprogram type as illegal for a primitive operation of a
10088         remote access to class-wide type.
10089
10090 2008-03-26  Vincent Celier  <celier@adacore.com>
10091
10092         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
10093         known, check if it may be a missspelling of a known package name. In
10094         not verbose, not mode, issue warnings only if the package name is a
10095         possible misspelling.
10096         In verbose mode, always issue a warning for a not known package name,
10097         plus a warning if the name is a misspelling of a known package name.
10098
10099         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
10100         limited withs or limited withs are parse during one call.
10101         (Parse_Single_Project): Post parse context clause in two passes: non
10102         limited withs before current project and limited withs after current
10103         project.
10104
10105         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
10106         project with the name With_Name, even if it is only extended indirectly.
10107         (Recursive_Process): Process projects in order: first single withs, then
10108         current project, then limited withs.
10109
10110         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
10111         project with the name With_Name, even if it is only extended indirectly.
10112
10113 2008-03-26  Robert Dewar  <dewar@adacore.com>
10114
10115         * scn.adb (Initialize_Scanner): Format messages belong on standard error
10116
10117 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
10118
10119         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
10120         a generic subprogram that is imported, do not attempt to compile
10121         non-existent body.
10122
10123         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
10124         imported, do not generate a raise_program_error for the non-existent
10125         body.
10126         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
10127         perform minimal name resolution on the generic to avoid spurious
10128         warnings.
10129         (Find_Actual_Type): the designated type of the actual in a child unit
10130         may be declared in a parent unit without being an actual.
10131
10132 2008-03-26  Robert Dewar  <dewar@adacore.com>
10133
10134         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
10135         * sinfo.ads, sinfo.adb (From_At_End): New flag
10136
10137 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
10138
10139         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
10140         operations that have an interface parameter.
10141         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
10142         Don't treat No_Return call as raise.
10143
10144         * sem_disp.adb (Check_Dispatching_Operations): apply check for
10145         non-primitive interface primitives to access parameters, not to all
10146         parameters of an access type.
10147
10148 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
10149
10150         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
10151         declarations of a parent unit are made visible when compiling a child
10152         instance, the parent is not a hidden open scope, even though it may
10153         contain other pending instance.
10154
10155         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
10156         hidden open scope for some child instance, it does affect the
10157         visibility status of other stach entries.
10158         (Analyze_Object_Renaming): Check that a class-wide object cannot be
10159         renamed as an object of a specific type.
10160
10161 2008-03-26  Robert Dewar  <dewar@adacore.com>
10162
10163         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
10164         recursion and raise SE directly.
10165         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
10166         set for formal type for IN mode parameter.
10167
10168 2008-03-26  Robert Dewar  <dewar@adacore.com>
10169
10170         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
10171         (Initialize): New procedure
10172         (Output_Warnings_Off_Warnings): New procedure
10173         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
10174         (Output_Non_Modifed_In_Out_Warnings): Ditto
10175         (Warn_On_Unreferenced_Entity): Ditto
10176
10177 2008-03-26  Vincent Celier  <celier@adacore.com>
10178
10179         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
10180         readable.
10181
10182 2008-03-26  Matthew Heaney  <heaney@adacore.com>
10183
10184         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
10185         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
10186         Marked with clauses as private, and controlled operations as overriding
10187
10188 2008-03-26  Robert Dewar  <dewar@adacore.com>
10189
10190         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
10191
10192 2008-03-26  Robert Dewar  <dewar@adacore.com>
10193
10194         * back_end.adb, back_end.ads: Minor reformatting
10195
10196         * bindgen.adb: Minor clarification of comments
10197
10198         * fname.ads: Minor comment fixes
10199
10200         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
10201         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
10202
10203         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
10204         xsnames.adb: Remove warnings off pragma no longer needed
10205
10206         * a-catizo.ads, a-calari.ads, a-calfor.adb,
10207         a-calfor.ads: Fix header.
10208
10209 2008-03-26  Tristan Gingold  <gingold@adacore.com>
10210
10211         * init.c: Do not adjust pc for HPARITH on alpha/vms.
10212
10213 2008-03-26  Robert Dewar  <dewar@adacore.com>
10214
10215         * lib-xref.adb: (OK_To_Set_Reference): New function
10216         (Generate_Reference): Don't set referenced from occurrence in Warnings,
10217         Unmodified, or Unreferenced pragma
10218
10219 2008-03-26  Robert Dewar  <dewar@adacore.com>
10220
10221         * alloc.ads: Add entries for Warnings_Off_Pragmas table
10222
10223 2008-03-26  GNAT Script  <nobody@adacore.com>
10224
10225         * Make-lang.in: Makefile automatically updated
10226
10227 2008-03-26  Robert Dewar  <dewar@adacore.com>
10228
10229         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
10230         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
10231         removed, use Chars (Pragma_Identifier (..  instead, adjustments
10232         throughout to accomodate this change.
10233
10234         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
10235
10236         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
10237         Einfo.Set_Needs_Debug_Info)
10238
10239 2008-03-26  Robert Dewar  <dewar@adacore.com>
10240
10241         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
10242         Add description for the new gnatstub option '--header-file'
10243         clarification of -gnatwz/-gnatwZ
10244         Add a "Irix-Specific Considerations" section to document the need to
10245         set LD_LIBRARY_PATH when using the default shared runtime library.
10246         Added documentation for both gcov and gprof.
10247
10248         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
10249         messages that are not suppressed when clients are compiled.
10250         Add documentation of s-pooglo s-pooloc
10251         Document the new GNAT.Serial_Communications API.
10252         Add documentation for 'Old attribute
10253         Add description of pragma Optimize_Alignment
10254
10255         * ug_words: Add entries for -gnatw.w -gnatw.W
10256
10257         * usage.adb: Add line for -gnatw.w (warn on warnings off)
10258
10259 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
10260
10261         Revert
10262         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
10263         PR ada/35186
10264         * decl.c (maybe_pad_type): Avoid padding an integral type when
10265         bumping its alignment is sufficient.
10266
10267 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
10268
10269         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
10270         Fix wrong formatting (lines too long)
10271
10272 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10273
10274         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
10275         a-calend-vms.adb, a-calend.adb, a-calend.ads,
10276         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
10277         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
10278         a-cohama.ads, a-comlin.ads, a-coorse.adb,
10279         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
10280         a-except-2005.ads, a-except.adb, a-except.ads,
10281         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
10282         a-exextr.adb, a-filico.ads, a-finali.ads,
10283         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
10284         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
10285         a-sequio.ads, a-strbou.ads, a-strfix.adb,
10286         checks.adb, exp_ch3.adb, exp_ch4.adb,
10287         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
10288         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
10289         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
10290         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
10291         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
10292
10293 2008-03-24  Robert Dewar  <dewar@adacore.com>
10294
10295         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
10296         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
10297         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
10298         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
10299         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
10300         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
10301         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10302         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
10303         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
10304         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
10305         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
10306         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
10307         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
10308         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
10309         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
10310         double spaced if it fits on one line and otherwise single spaced.
10311
10312 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10313
10314         PR documentation/15479
10315         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
10316         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
10317         (doc/gnat_ugn.info): Renamed from ...
10318         (doc/gnat_ugn_unw.info): ... this.
10319         (doc/gnat_ugn.dvi): Renamed from ...
10320         (doc/gnat_ugn_unw.dvi): ... this.
10321         (doc/gnat_ugn.pdf): Renamed from ...
10322         (doc/gnat_ugn_unw.pdf): ... this.
10323         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
10324         Adjusted.
10325         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
10326         unconditionally to gnat_ugn.info.  Fix cross references to the
10327         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
10328         and GNU make manuals to be proper texinfo links.
10329         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
10330
10331 2008-03-21  Olivier Hainque  <hainque@adacore.com>
10332
10333         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
10334         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
10335
10336 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10337
10338         * trans.c (addressable_p): Add notes on addressability issues.
10339
10340 2008-03-21  Olivier Hainque  <hainque@adacore.com>
10341             Ed Schonberg  <schonberg@adacore.com>
10342
10343         * trans.c (addressable_p): Accept COND_EXPR when both arms
10344         are addressable.
10345         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
10346         (call_to_gnu): Do not use name reference in the error message
10347         for a misaligned by_reference_parameter. The actual may be a
10348         general expression.
10349
10350 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
10351
10352         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10353
10354 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10355
10356         * gnat_rm.texi (Implementation Defined Characteristics)
10357         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
10358         appropriate.
10359         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
10360         (Switches for gnatchop, Installing a library): Likewise.
10361
10362 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
10363
10364         * trans.c (emit_range_check): Do not emit the check if the base type
10365         of the expression is the type against which its range must be checked.
10366
10367 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10368
10369         * decl.c (maybe_pad_type): Use value_factor_p.
10370
10371 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10372
10373         * lang.opt (nostdlib): Move around.
10374         * misc.c (gnat_handle_option): Fix formatting.
10375         (gnat_dwarf_name): Move around.
10376         * trans.c (Case_Statement_to_gnu): Fix formatting.
10377         (gnat_to_gnu): Likewise.
10378         * utils.c (aggregate_type_contains_array_p): Likewise.
10379         (create_subprog_decl): Likewise.
10380
10381 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10382
10383         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
10384         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
10385
10386 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10387
10388         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
10389         BIGGEST_ALIGNMENT when capping the alignment of records with
10390         strict alignment and size clause.
10391
10392 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10393
10394         * lang-specs.h: Pass -gnatwa if -Wall is passed.
10395         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
10396         and -Wuninitialized.
10397         (gnat_post_options): Clear warn_unused_parameter.
10398
10399 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10400
10401         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
10402         aligned bit-fields, bumping the alignment of the record type if deemed
10403         profitable.
10404         (value_factor_p): Return false instead of 0.
10405
10406 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10407
10408         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
10409         for scalar types with small alignment.
10410
10411 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10412
10413         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
10414         from that of the front-end's end label.
10415         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
10416         from that of the loop label.
10417
10418 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
10419
10420         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
10421         comment for the packed array type case.
10422         * utils.c (build_template): Use a loop to strip padding or
10423         containing records for justified modular types.
10424
10425 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
10426
10427         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
10428         large alignments specified for types.
10429         (validate_alignment): Minor cleanup.
10430
10431 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
10432
10433         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
10434         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
10435         the component for packing, if possible, as well as if a component
10436         size clause is specified.
10437         <E_Record_Subtype>: For an array type used to implement a packed
10438         array, get the component type from the original array type.
10439         Try to get a smaller form of the component for packing, if possible,
10440         as well as if a component size clause is specified.
10441         (round_up_to_align): New function.
10442         (make_packable_type): Add in_record parameter.
10443         For a padding record, preserve the size.  If not in_record and the
10444         size is too large for an integral mode, attempt to shrink the size
10445         by lowering the alignment.
10446         Ditch the padding bits of the last component.
10447         Compute sizes and mode manually, and propagate the RM size.
10448         Return a BLKmode record type if its size has shrunk.
10449         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
10450         Use Original_Array_Type to retrieve the type in case of an error.
10451         Adjust call to make_packable_type.
10452         (gnat_to_gnu_field): Likewise.
10453         (concat_id_with_name): Minor tweak.
10454         * trans.c (larger_record_type_p): New predicate.
10455         (call_to_gnu): Compute the nominal type of the object only if the
10456         parameter is by-reference.  Do the conversion actual type -> nominal
10457         type if the nominal type is a larger record.
10458         (gnat_to_gnu): Do not require integral modes on the source type to
10459         avoid the conversion for types with identical names.
10460         (addressable_p): Add gnu_type parameter.  If it is specified, do not
10461         return true if the expression is not addressable in gnu_type.
10462         Adjust recursive calls.
10463         * utils.c (finish_record_type): Remove dead code.
10464
10465 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
10466
10467         PR ada/35186
10468         * decl.c (maybe_pad_type): Avoid padding an integral type when
10469         bumping its alignment is sufficient.
10470
10471 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10472
10473         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
10474         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
10475         statement.
10476         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
10477         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
10478         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
10479         code output strings.
10480         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
10481         system-vms_64.ads: Fix typos in ada source code comments.
10482         * sinfo-cn.adb: Remove incomplete sentence.
10483
10484         PR documentation/15479
10485         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
10486
10487 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
10488
10489         PR ada/22255
10490         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
10491
10492 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
10493
10494         PR ada/34799
10495         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
10496         that underlying type is present.
10497
10498 2008-02-26  Tom Tromey  <tromey@redhat.com>
10499
10500         * misc.c (internal_error_function): Remove test of
10501         USE_MAPPED_LOCATION.
10502         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
10503         (Sloc_to_locus): Remove old location code.
10504
10505 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10506
10507         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
10508         `i.e.' by adding comma or `@:' as appropriate.
10509         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
10510         plain characters `C', use `@samp{C}'.
10511         * gnat_ugn.texi (File Naming Rules, About gnatkr)
10512         (Krunching Method): Likewise.
10513
10514         * gnat_ugn.texi (Conventions): List environment variables and
10515         metasyntactic variables.
10516         (Compiling Programs): Fix notation of metasyntactic variables.
10517         Add @file where appropriate.  Use @file for file extensions,
10518         @samp for strings.
10519         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
10520         instead of @file, @env instead of @code.
10521
10522 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10523
10524         PR documentation/15479
10525         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
10526         and `...' with `@dots{}' or `@enddots{}'.
10527
10528         PR documentation/15479
10529         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
10530         use @command instead of @code, @option instead of @samp or @code,
10531         @code instead of @var, @samp instead of @file.
10532
10533         PR documentation/15479
10534         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
10535         in Makefile rules, by using `&&' rather than `;'.
10536
10537 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10538
10539         PR documentation/15479
10540         * gnat_ugn.texi: In non-code, avoid space before colon.
10541         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
10542         (Examples of gnatxref Usage): Use @command{vi} instead of
10543         @file{vi}.
10544         (Character Set Control): Do not use @code for UTF-8.
10545         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
10546         use @code for IEEE.
10547         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
10548         sample.
10549         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
10550
10551 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
10552
10553         PR ada/35143
10554         * env.c: Add __rtems__ to if defined.
10555         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
10556         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
10557         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
10558         pragma Convention as required.
10559         * gsocket.h: Make compile in and out of RTS.
10560         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
10561         Use g-soccon-rtems.ads.
10562         * g-soccon-rtems.ads, system-rtems.ads: New files.
10563
10564 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10565
10566         PR other/35107
10567         * Make-lang.in (gnat1): Add $(GMPLIBS).
10568
10569 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
10570
10571         * decl.c (components_to_record): Improve comment.
10572
10573 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10574
10575         * decl.c (components_to_record): Do not reuse the empty union type
10576         if there is a representation clause on the record.
10577         * trans.c (addressable_p): Return true for INTEGER_CST.
10578
10579 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
10580
10581         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
10582         in pointer arithmetics.
10583         * utils2.c (build_allocator): Likewise.
10584
10585 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10586
10587         * utils.c (build_function_stub): Properly build the call expression.
10588
10589 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
10590
10591         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
10592         before converting the expression to the type of the object.
10593         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
10594         Stabilize constructors for special wrapping types.
10595
10596 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
10597
10598         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
10599         when necessary.  Merge some conditional statements.  Update comments.
10600         Rename unchecked_convert_p local variable to suppress_type_conversion.
10601         Do not suppress conversions in the In case.
10602         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
10603         into account on non strict-alignment platforms.
10604
10605 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10606
10607         * utils.c (aggregate_type_contains_array_p): New predicate.
10608         (create_field_decl): In a packed record, force byte alignment
10609         for fields without specified position that contain an array.
10610
10611 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10612
10613         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
10614
10615 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
10616
10617         PR ada/34466
10618         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
10619         sysconf call.
10620         (bit_field): New packed boolean type used by cpu_set_t.
10621         (cpu_set_t): New type corresponding to the C type with
10622         the same name. Note that on the Ada side we use a bit
10623         field array for the affinity mask. There is not need
10624         for the C macro for setting individual bit.
10625         (pthread_setaffinity_np): New imported routine.
10626
10627 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
10628
10629         PR ada/34647
10630         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10631         on OpenBSD as is done on other BSD systems.
10632
10633         PR ada/34645
10634         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
10635         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
10636         I/O.
10637
10638         PR ada/34644
10639         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
10640         clearenv().
10641
10642         PR ada/34646
10643         * init.c (__gnat_error_handler, __gnat_install_handler,
10644         __gnat_init_float): Define for OpenBSD.
10645
10646         * initialize.c (__gnat_initialize): Define for OpenBSD.
10647
10648 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
10649
10650         PR ada/34553
10651         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10652         instead of mktemp() or tmpnam() on NetBSD.
10653
10654 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
10655
10656         * trans.c (call_to_gnu): Make the temporary for non-addressable
10657         In parameters passed by reference.
10658         (addressable_p): Return true for STRING_CST and CALL_EXPR.
10659
10660 2007-12-19  Robert Dewar  <dewar@adacore.com>
10661
10662         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
10663         Add pragma Warnings (Off) for unassigned IN OUT arguments
10664
10665         * sem_warn.adb (Output_Reference): Suppress messages for internal names
10666         (Check_References): Extensive changes to tune up warnings
10667         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
10668         (Has_Pragma_Unmodifed_Check_Spec): New function
10669         (Check_References): Implement pragma Unmodified
10670         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
10671
10672         * par-prag.adb: Dummy entry for pragma Unmodified
10673
10674         * sem_prag.adb: Implement pragma Unmodified
10675
10676         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
10677         (Proc_Next_Component_Or_Discriminant): Fix typo.
10678         Update comments.
10679
10680         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
10681         Unmodified.
10682         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
10683         because the former already takes care of discarding the result.
10684         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
10685         Add comment.
10686
10687         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
10688
10689 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
10690
10691         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
10692         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10693         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
10694         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
10695         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10696         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10697         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10698         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10699         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10700         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
10701         (Dynamic_Trampolines_Used): Delete.
10702
10703         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
10704         Turn on stack probing mechanism on LynxOS.
10705
10706 2007-12-19  Bob Duff  <duff@adacore.com>
10707
10708         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
10709         the resulting tail recursion by hand. This prevents running out of
10710         memory on deeply nested concatenations, since Field2 is where the left
10711         operand of concatenations is stored.
10712         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
10713         clarify that it can only return OK or Abandon.
10714
10715         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
10716         operand by iteration, in order to avoid running out of memory on
10717         deeply-nested concatenations. Use the Parent pointer to get back up the
10718         tree.
10719         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
10720          Resolve_Op_Concat_Rest): New procedures split out of
10721         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
10722         clearer.
10723
10724         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
10725         Traverse_Func, because the former already takes care of discarding the
10726         result.
10727
10728         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
10729         because the former already takes care of discarding the result.
10730         (Remove_Warning_Messages): Use appropriate subtype for Status and
10731         Discard
10732
10733 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10734
10735         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
10736         discriminants forces expansion of the aggregate into assignments.
10737         (Init_Record_Controller):  If the type of the aggregate is untagged and
10738         is not inherently limited, the record controller is not limited either.
10739
10740 2007-12-19  Robert Dewar  <dewar@adacore.com>
10741
10742         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
10743         handling compile time known size of record or array (case of front end
10744         layout active, e.g. in GNAAMP).
10745
10746 2007-12-19  Javier Miranda  <miranda@adacore.com>
10747
10748         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
10749         that forces the construction of static dispatch tables in case of
10750         record subtypes.
10751
10752 2007-12-19  Robert Dewar  <dewar@adacore.com>
10753
10754         * exp_ch9.adb (Null_Statements): Moved to library level
10755         (Trivial_Accept_OK): New function
10756         (Expand_Accept_Declaration): Use Trivial_Accept_OK
10757         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
10758
10759 2007-12-19  Robert Dewar  <dewar@adacore.com>
10760
10761         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
10762         in complex case where array is Volatile.
10763
10764 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10765
10766         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
10767         properly the Ada2005 rules concerning when the current instance of a
10768         record type is aliased.
10769
10770 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10771
10772         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
10773         mangled declaration
10774         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
10775         declarations.
10776         (P_Variant_Part): Cleaner patch for parenthesized discriminant
10777
10778 2007-12-19  Vincent Celier  <celier@adacore.com>
10779
10780         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
10781         package is not known
10782
10783         * prj-attr.ads (Unknown_Package): New constant
10784         Do not crash when an unknown package is in several projects
10785
10786         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
10787         ignored
10788
10789         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
10790         existing package Language_Processing.
10791
10792 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10793             Gary Dismukes  <dismukes@adacore.com>
10794             Samuel Tardieu  <sam@rfc1149.net>
10795
10796         PR ada/15803, ada/15805
10797         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
10798         illegal access subtypes when there is a constrained partial view.
10799         (Check_For_Premature_Usage): New procedure inside
10800         Access_Subprogram_Declaration for checking that an access-to-subprogram
10801         type doesn't reference its own name within any formal parameters or
10802         result type (including within nested anonymous access types).
10803         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
10804         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
10805         context is an access_to_variable, the expression cannot be an
10806         access_to_constant.
10807
10808 2007-12-19  Bob Duff  <duff@adacore.com>
10809
10810         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
10811         (Analyze_Concatenation): Use iteration instead of recursion in order
10812         to avoid running out of stack space for deeply nested concatenations.
10813
10814 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10815             Gary Dismukes  <dismukes@adacore.com>
10816
10817         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
10818         whose renamed entity is a subprogram that requires overriding.
10819         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
10820         issuing an error for premature usage and issue a message that says
10821         'type' rather than 'object'.
10822
10823 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
10824
10825         PR ada/34149
10826         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
10827         presence of a statically tagged operand (Present (Static_Tag)) with
10828         test for Indeterm_Ancestor_Call when determining whether to propagate
10829         the static tag to tag-indeterminate operands (which forces dispatching
10830         on such calls).
10831         (Check_Controlling_Formals): Ada2005, access parameters can have
10832         defaults.
10833         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
10834         not insert subprogram in list of primitive operations if already there.
10835
10836 2007-12-19  Tristan Gingold  <gingold@adacore.com>
10837
10838         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
10839         global variable.
10840
10841 2007-12-19  Thomas Quinot  <quinot@adacore.com>
10842
10843         Part of PR ada/33688
10844         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
10845         datagram info on Linux.
10846
10847 2007-12-19  Vincent Celier  <celier@adacore.com>
10848
10849         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
10850         that the source path name is always found in the dependencies.
10851
10852 2007-12-19  Robert Dewar  <dewar@adacore.com>
10853
10854         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
10855         Fix name of Wide_Wide_Latin_1/9 file names
10856         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
10857         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
10858         Add missing documentation for Ada.Command_Line.Response_File
10859         Update list of warning letters for Warnings pragma
10860         Add documentation for pragma Unmodified
10861
10862 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
10863
10864         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
10865
10866 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
10867
10868         * s-vxwork-alpha.ads: Removed, no longer used.
10869
10870 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
10871
10872         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
10873
10874 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
10875
10876         PR ada/34360
10877         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
10878         mlib-tgt-specific.adb.
10879
10880 2007-12-13  Bob Duff  <duff@adacore.com>
10881
10882         * trans.c (Attribute_to_gnu): Check for violations of the
10883         No_Implicit_Dynamic_Code restriction. This checking used to be done in
10884         the front end, but is moved here so we can make it more accurate.
10885
10886 2007-12-13  Pascal Obry  <obry@adacore.com>
10887
10888         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
10889          version is provided for older GNU/Linux distribution not
10890          supporting thread affinity sets.
10891
10892         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
10893         call.
10894         (bit_field): New packed boolean type used by cpu_set_t.
10895         (cpu_set_t): New type corresponding to the C type with
10896         the same name. Note that on the Ada side we use a bit
10897         field array for the affinity mask. There is not need
10898         for the C macro for setting individual bit.
10899         (pthread_setaffinity_np): New imported routine.
10900
10901         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
10902         no null.
10903         (Create_Task): Set the processor affinity mask if information
10904         is present.
10905
10906         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
10907
10908 2007-12-13  Robert Dewar  <dewar@adacore.com>
10909
10910         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10911         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
10912         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
10913         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
10914         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
10915         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
10916         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
10917         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
10918         for subprogram pointers.
10919
10920         * g-ctrl_c.adb: New file.
10921
10922         * g-ctrl_c.ads (Install_Handler): New body.
10923
10924         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
10925         instead of obsolete function Is_Always_Inlined.
10926         (Freeze_Entity): check for tagged type in imported C subprogram
10927         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
10928         (Freeze_Entity): check for convention Ada subprogram pointer in
10929         imported C subprogram.
10930         (Freeze_Fixed_Point_Type): In the case of a base type where the low
10931         bound would be chopped off and go from negative to zero, force
10932         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
10933         bound) so that the size computation for the base type will take
10934         negative values into account.
10935
10936 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
10937             Bob Duff  <duff@adacore.com>
10938             Tristan Gingold  <gingold@adacore.com>
10939
10940         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10941         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10942         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10943         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10944         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10945         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10946         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10947         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
10948         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10949         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
10950         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
10951         (Always_Compatible_Rep): New flag to control trampolines globally.
10952         (Dynamic_Trampolines_Used): New flag for implementing the
10953         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
10954         and not yet set correctly for some targets).
10955
10956         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
10957         Simply indirectly call s-stchop when a task is created.
10958
10959         * ali.ads:
10960         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
10961         appears as an argument (entries A) in an ALI file.
10962
10963         * fe.h (Stack_Check_Limits): Declare new target parameter.
10964         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
10965
10966         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
10967         This variable is declared in C to be sure not subject to elaboration
10968         code.
10969         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
10970         Storage_Error.
10971
10972         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
10973         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
10974
10975         * s-stchop.ads: Add comments.
10976
10977         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
10978         limit method of stack checking.
10979
10980         * s-stchop-limit.ads: New file.
10981
10982 2007-12-13  Robert Dewar  <dewar@adacore.com>
10983
10984         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
10985         a-cihama.adb, g-awk.adb,
10986         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
10987         warnings
10988
10989         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
10990
10991         * sem.adb: Update handling of assigned value/unreferenced warnings
10992
10993         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
10994
10995         * lib-xref.ads: Improve documentation for k xref type
10996
10997         * lib-xref.adb:
10998         Update handling of assigned value/unreferenced warnings
10999         (Generate_Reference): Warning for reference to entity for which a
11000         pragma Unreferenced has been given should be unconditional.
11001         If the entity is a discriminal, mark the original
11002         discriminant as referenced.
11003
11004         * sem_warn.ads, sem_warn.adb
11005         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
11006         no entities referenced in package
11007         (Check_One_Unit): Don't give message about no entities referenced in
11008         a package if a pragma Unreferenced has appeared.
11009         Handle new warning flag -gnatw.a/-gnatw.A
11010         Update handling of assigned value/unreferenced warnings
11011
11012         * atree.h: Add flags up to Flag247
11013         (Flag231): New macro.
11014
11015 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
11016
11017         * adaint.h: (__gnat_plist_init): Not defined for RTX.
11018
11019         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
11020         RTX systems.
11021
11022         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
11023         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
11024         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
11025         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
11026
11027         * mingw32.h:
11028         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
11029
11030         * sysdep.c (winflush_function for RTX): Procedure that does nothing
11031         since we only have problems with Windows 95/98, which are not
11032         supported by RTX.
11033         (__gnat_ttyname): Return the empty string on Nucleus, just as
11034         done on vxworks.
11035
11036 2007-12-13  Robert Dewar  <dewar@adacore.com>
11037
11038         * a-textio.adb, a-textio.ads:
11039         Extensive changes to private part for wide character encoding
11040
11041         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
11042         (Look_Ahead): Fix mishandling of encoded sequences
11043         Move declaration of Wch_Con to private part (should not be visible)
11044
11045         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
11046         UTF-8. Probably this is never used, but if it is, brackets is
11047         clearly correct.
11048
11049         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
11050         setting wide character encoding for no main program case and when
11051         encoding is specified using -W?
11052         Initialize stack limit of environment task if stack limit method of
11053         stack checking is enabled.
11054         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
11055         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
11056         (Get_Main_Unit_Name): New function.
11057         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
11058         (Gen_Output_File): Set Bind_Main_Program to True for .NET
11059
11060         * bindusg.adb: Add line for -Wx switch
11061
11062         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
11063         Add comments
11064         Add new useful constant WC_Longest_Sequences
11065
11066         * switch-b.adb: Clean up handling of -Wx switch
11067         For -gnatWx, set Wide_Character_Encoding_Method_Specified
11068
11069         * switch-c.adb: -gnatg activates warning on assertion errors
11070         For -gnatWx, set Wide_Character_Encoding_Method_Specified
11071
11072         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
11073
11074 2007-12-13  Robert Dewar  <dewar@adacore.com>
11075             Ed Schonberg  <schonberg@adacore.com>
11076
11077         * a-ngcoty.adb: New pragma Fast_Math
11078
11079         * opt.adb: New pragma Fast_Math
11080
11081         * par-prag.adb:
11082         Add Implemented_By_Entry to the list of pragmas which do not require any
11083         special processing.
11084         (Favor_Top_Level): New pragma.
11085         New pragma Fast_Math
11086
11087         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
11088         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11089         Expand_Allocator_Expression): Take into account VM_Target
11090         (Expand_Attribute, case 'Identity):  Handle properly the case where
11091         the prefix is a task interface.
11092         New pragma Fast_Math
11093
11094         * par.adb (Next_Token_Is): New function
11095         (P_Pragma): Add Skipping parameter
11096         (U_Left_Paren): New procedure
11097         (U_Right_Paren): New procedure
11098         New pragma Fast_Math
11099
11100         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
11101         subunit
11102         New pragma Fast_Math
11103
11104         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
11105         Implemented_By_Entry.
11106         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
11107         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
11108         items, since it can apply to more than one overloadable entity. Set
11109         new flag Has_Pragma_Inline_Always for Inline_Always case.
11110         (Analyze_Pragma, case Complex_Representation): Improve error message.
11111         (Analyze_Pragma, case Assert): When assertions are disabled build the
11112         rewritten code with Sloc of expression rather than pragma, so new
11113         warning about failing is not deleted.
11114         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
11115         protected types and update error message to reflect that. Test whether
11116         the protected type is allowed for the pragma (an error is issued if the
11117         type has any entries, or components that do not have preelaborable
11118         initialization).
11119         New pragma Fast_Math
11120         (Analyze_Pragma, case No_Return): Handle generic instance
11121
11122         * snames.h, snames.ads, snames.adb:
11123         Add new predefined name for interface primitive _Disp_Requeue.
11124         New pragma Fast_Math
11125
11126         * a-tags.ads, a-tags.adb: New calling sequence for
11127         String_To_Wide_[Wide_]String
11128         (Secondary_Tag): New subprogram.
11129
11130         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
11131         from Exp_Attr
11132         New calling sequence for String_To_Wide_[Wide_]String
11133         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
11134         the use of the secondary stack for image routines.
11135
11136         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
11137         calling sequence for String_To_Wide_[Wide_]String
11138
11139         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
11140         Ada 95 mode
11141         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
11142         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11143
11144         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
11145         (P_Formal_Part): Use Skipping parameter in P_Pragma call
11146         to improve error recovery
11147
11148         * par-util.adb (Next_Token_Is): New function
11149         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
11150
11151         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
11152         semicolon if missing
11153         (P_Pragma): Implement new Skipping parameter
11154         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11155         Fix location of flag for unrecognized pragma message
11156
11157         * par-tchk.adb (U_Left_Paren): New procedure
11158         (U_Right_Paren): New procedure
11159
11160 2007-12-13  Geert Bosch  <bosch@adacore.com>
11161
11162         * a-tifiio.adb:
11163         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
11164         the second or later Scaled_Divide would omit leading zeroes,
11165         resulting in too few digits produced and a Layout_Error as result.
11166         (Put): Initialize Pos.
11167
11168 2007-12-13  Robert Dewar  <dewar@adacore.com>
11169
11170         atree.ads, atree.adb (Flag231..Flag247): New functions
11171         (Set_Flag231..Set_Flag247): New procedures
11172         (Basic_Set_Convention): Rename Set_Convention to be
11173         Basic_Set_Convention
11174         (Nkind_In): New functions
11175         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11176
11177         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
11178         instead
11179          of obsolete function Is_Always_Inlined
11180         (Register_Predefined_DT_Entry): Initialize slots of the second
11181         secondary dispatch table.
11182         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11183         (Expand_N_Function_Call): Remove special provision for stack checking.
11184
11185         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
11186         Include _Disp_Requeue in the list of predefined operations.
11187         (Find_Interface_ADT): Modified to fulfill the new specification.
11188         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11189
11190         * par-ch4.adb, nlists.ads, nlists.adb:
11191         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11192
11193         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
11194         Fix location of flag for unrecognized pragma message
11195
11196         * sem_ch7.adb: Use Nkind_In
11197
11198 2007-12-13  Vincent Celier  <celier@adacore.com>
11199
11200         * opt.ads:
11201         Indicate what flags are used by the Project Manager, gprbuild and
11202         gprclean.
11203         (Opt.Follow_Links_For_Dirs): New flag
11204         (Warn_On_Assertion_Failure): New flag
11205         (Wide_Character_Encoding_Method_Specified): New flag
11206         (Suppress_All_Inlining): New switch set by -fno-inline
11207         (Real_VMS_Target): New flag
11208         New pragma Fast_Math
11209
11210 2007-12-13  Robert Dewar  <dewar@adacore.com>
11211
11212         * back_end.adb: Recognize -fno-inline
11213
11214 2007-12-13  Robert Dewar  <dewar@adacore.com>
11215
11216         * checks.adb: Fix optimization problem with short-circuited form
11217
11218 2007-12-13  Bob Duff  <duff@adacore.com>
11219
11220         * clean.adb (Usage): Add line for -aP
11221         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
11222         with a parameter "procedure Usage", instead of passing a pointer to a
11223         procedure. This is to eliminate trampolines (since the Usage procedure
11224         is often nested in a main procedure, and it would be inconvenient to
11225         unnest it).
11226
11227         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
11228         to be generic, with a parameter "procedure Callback (...)", instead of
11229         passing a pointer to a procedure. This is to eliminate trampolines
11230         (since the Callback procedure is usually nested).
11231
11232         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
11233         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
11234         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
11235
11236         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
11237         Use the generic Heap_Sort_G instead of Heap_Sort_A.
11238
11239 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11240
11241         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
11242         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
11243         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
11244         (Renamed_In_Spec): New flag
11245         (Has_Pragma_Inline_Always): New flag
11246         Add missing doc for pragma Obsolescent_Warning
11247         Add missing doc for 17 additional unused flags (230-247)
11248         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
11249         Alphabetize with clauses.
11250         Separate Is_Thunk and Has_Thunks flags
11251         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
11252         (Related_Interface): Renamed to Related_Type.
11253         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
11254         (Set_Is_Flag): Restrict the assertion.
11255
11256 2007-12-13  Vincent Celier  <celier@adacore.com>
11257
11258         * errout.adb (Output_Source_Line): Do not keep a trailing space after
11259         the source line number if the source line is empty.
11260
11261 2007-12-13  Geert Bosch  <bosch@adacore.com>
11262
11263         * eval_fat.adb (Decompose_Int): Handle argument of zero.
11264         (Compose): Remove special casing of zero.
11265         (Exponent): Likewise.
11266         (Fraction): Likewise.
11267         (Machine): Likewise.
11268         (Decompose): Update comment.
11269
11270 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
11271
11272         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
11273         limited ancestor part, initialize controllers of enclosing record
11274         before expanding ancestor aggregate.
11275         (Gen_Assign): If a component of the aggregate is box-initialized, add
11276         code to call Initialize if the component is controlled, and explicit
11277         assignment of null if the component is an access type.
11278
11279         Handle properly aggregates for limited types that appear in object
11280         declarations when the aggregate contains controlled values such as
11281         protected types.
11282         When expanding limited aggregates into individual components, do not
11283         call Adjust on controlled components that are limited.
11284
11285 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
11286
11287         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
11288
11289 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11290
11291         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
11292         predefined primitive _Disp_Requeue.
11293         (Make_Predefined_Primitive_Specs): Create the spec for predefined
11294         primitive _Disp_Requeue.
11295         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
11296         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
11297         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
11298         an interface type. In case of limited interfaces we now declare all the
11299         predefined primitives associated with synchronized interfaces as
11300         abstract.
11301         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
11302         declarations.
11303         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
11304         tagged type is an interface type and there is no user-defined equality
11305         function.
11306         Add also bodies of predefined primitives associated with synchronized
11307         interfaces.
11308         (Freeze_Record_Type): Do not build bodies of predefined primitives of
11309         interface types because they are now defined abstract.
11310         Add missing documentation.
11311         (Expand_Record_Controller): Update occurrence of Related_Interface
11312         to Related_Type.
11313         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
11314         (Expand_N_Object_Declaration): Take into account VM_Target when handling
11315         class wide interface object declaration.
11316         (Expand_Previous_Access_Type): Do not create a duplicate master entity
11317         if the access type already has one.
11318         (Expand_N_Object_Declaration): Defend against attempt to validity check
11319         generic types. Noticed for -gnatVcf specified with previous errors.
11320
11321 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
11322
11323         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11324         Expand_Allocator_Expression): Take into account VM_Target
11325
11326         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
11327         secondary stack when VM_Target /= No_VM
11328
11329 2007-12-13  Javier Miranda  <miranda@adacore.com>
11330             Ed Schonberg  <schonberg@adacore.com>
11331
11332         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
11333         Is_Complation_Unit by Is_Library_Level_Entity in the code
11334         that decides if the static dispatch tables need to be built.
11335         (Wrap_Transient_Declaration): Do not generate a finalization call if
11336         this is a renaming declaration and the renamed object is a component
11337         of a controlled type.
11338
11339 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
11340
11341         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
11342         In the case where the renamed subprogram is a dereference, call
11343         Force_Evaluation on the prefix.
11344
11345 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11346             Ed Schonberg  <schonberg@adacore.com>
11347
11348         * exp_ch9.adb (Expand_N_Asynchronous_Select,
11349         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
11350         comment reformatting.
11351         (Set_Privals): Inherit aliased flag from formal. From code reading.
11352         (Build_Simple_Entry_Call): Out parameters of an access type are passed
11353         by copy and initialized from the actual. This includes entry parameters.
11354         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
11355         and Ada 2005 models of requeue.
11356         (Null_Statements): Still connsider do-end block null if it contains
11357         Unreferenced and Warnings pragmas.
11358         (Expand_N_Accept_Statement): Do not optimize away null do end if
11359         dispatching policy is other than defaulted.
11360         (Expand_N_Timed_Entry_Call): When the triggering statement is a
11361         dispatching call, manually analyze the delay statement.
11362         (Find_Parameter_Type): Move subprogram to Sem_Util.
11363
11364 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11365             Javier Miranda  <miranda@adacore.com>
11366
11367         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
11368         _Disp_Requeue occupies dispatch table slot number 15. Move
11369         _Disp_Timed_Select to slot 16.
11370         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
11371         generate the spec and body of _Disp_Reqeueue.
11372         (Make_DT): Build and initialize the second dispatch table.
11373         Handle initialization of RC_Offset when the parent
11374         is a private type with variable size components.
11375         (Make_Secondary_DT): Complete documentation. Add support to
11376         initialize the second dispatch table.
11377         (Make_Tags): Generate the tag of the second dispatch table.
11378         (Register_Primitive): Add support to register primitives in the
11379         second dispatch table.
11380
11381 2007-12-13  Pascal Obry  <obry@adacore.com>
11382
11383         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
11384         Windows. This signal is used by gnatmake to kill child processes for
11385         example.
11386
11387 2007-12-13  Javier Miranda  <miranda@adacore.com>
11388
11389         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11390         support for generic dispatching constructor calls in which we need to
11391         locate the tag of a secondary dispatch table associated with an
11392         interface type to properly dispatch the call.
11393         (Expand_N_Attribute_Reference [case Address],
11394         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
11395         handling of VM targets.
11396
11397 2007-12-13  Robert Dewar  <dewar@adacore.com>
11398             Ed Schonberg  <schonberg@adacore.com>
11399
11400         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
11401         assert fail
11402
11403         * ug_words: Add entries for -gnatw.a -gnatw.A
11404
11405         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
11406         literal is a subtype with non-static constraints, use the base type of
11407         the context as the base of the string subtype, to prevent type
11408         mismatches in gigi.
11409         (Resolve_Actuals): If the actual is an entity name, generate a
11410         reference before the actual is resolved and expanded, to prevent
11411         spurious warnings on formals of enclosing protected operations.
11412         (Analyze_Overloaded_Selected_Component): If type of prefix if
11413         class-wide, use visible components of base type.
11414         (Resolve_Selected_Component): Ditto.
11415         (Resolve_Short_Circuit): Detect case of pragma Assert argument
11416         evaluating to False, and issue warning message.
11417
11418         * usage.adb: Add lines for -gnatw.a and -gnatw.A
11419
11420 2007-12-13  Emmanuel Briot  <briot@adacore.com>
11421
11422         * g-calend.ads (No_Time): New constant, to represent an uninitialized
11423         time value
11424
11425         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
11426         formats.
11427         (Month_Name_To_Number): New subprogram
11428
11429         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
11430         letter to upper-case.
11431
11432 2007-12-13  Robert Dewar  <dewar@adacore.com>
11433             Ed Schonberg  <schonberg@adacore.com>
11434
11435         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
11436
11437         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
11438         context is a limited view, use non-limited view when available. If the
11439         non-limited view is an unconstrained array, this enforces consistency
11440         requirements in 3.10.2 (27).
11441         (Layout_Type): For an access type whose designated type is a limited
11442         view, examine its declaration to determine if it is an unconstrained
11443         array, and size the access type accordingly.
11444         (Layout_Type): Do not force 32-bits for convention c subprogram
11445         pointers in -gnatdm mode, only if real vms target.
11446
11447         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
11448         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11449         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
11450         violations of the No_Implicit_Dynamic_Code restriction.
11451         (Resolve_Attribute, case 'Access): If designated type of context is a
11452         limited view, use non-limited view when available. If the non-limited
11453         view is an unconstrained array, this enforces consistency requirements
11454         in 3.10.2 (27).
11455         (Layout_Type): For an access type whose designated type is a limited
11456         view, examine its declaration to determine if it is an unconstrained
11457         array, and size the access type accordingly.
11458
11459 2007-12-13  Vincent Celier  <celier@adacore.com>
11460
11461         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
11462         object directory of main project does not exist.
11463         On VMS, correctly set then environment variable for the source
11464         directories.
11465
11466 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
11467
11468         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
11469         set to True this procedure will create the value of type REG_EXPAND_SZ.
11470         It was only possible to create REG_SZ values before.
11471
11472 2007-12-13  Robert Dewar  <dewar@adacore.com>
11473
11474         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
11475         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
11476         namet-sp.adb, namet-sp.ads: New files.
11477
11478         * g-speche.adb: Use generic routine in g-spchge
11479
11480         * s-wchcnv.ads, s-wchcnv.adb:
11481         Minor code cleanup (make formal type consistent with spec)
11482
11483         * namet.adb: Update comments.
11484
11485         * par-endh.adb (Evaluate_End_Entry): Use new
11486         Namet.Sp.Is_Bad_Spelling_Of function
11487
11488         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
11489
11490         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
11491         ancestor is an access type initialized with a box, set its type
11492         explicitly, for use in subsequent expansion.
11493         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
11494         function
11495
11496 2007-12-13  Robert Dewar  <dewar@adacore.com>
11497
11498         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
11499         access Vstring)
11500
11501 2007-12-13  Robert Dewar  <dewar@adacore.com>
11502
11503         * inline.adb (Back_End_Cannot_Inline): Use new flag
11504         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11505
11506         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
11507         Has_Pragma_Inline_Always instead.
11508         of obsolete function Is_Always_Inlined
11509         (Build_Body_To_Inline): Same change
11510         (Cannot_Inline): Same change
11511         Do not give warning on exception raise in No_Return function
11512
11513         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
11514         component has two inconsistent component clauses in the same record
11515         representation clause, favor the message that complains about
11516         duplication rather than inconsistency.
11517         Update comments.
11518         (Record_Representation_Clause): Do not warn on missing component
11519         clauses for inherited components of a type extension.
11520         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
11521         an overloadable item if it is a pragma that can apply to multiple
11522         overloadable entities (e.g. Inline) because a pragma cannot be on
11523         more than one chain at a time.
11524         (Validate_Unchecked_Conversion): Add code to warn on unchecked
11525         conversion where one of the operands is Ada.Calendar.Time.
11526         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
11527         For now, ignore Component_Size clause on VM targets, as done for
11528         pragma Pack.
11529
11530 2007-12-13  Emmanuel Briot  <briot@adacore.com>
11531             Vincent Celier  <celier@adacore.com>
11532
11533         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
11534         string
11535         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
11536         prj.ads
11537         (Hash): Move instantiation of System.HTable.Hash from spec to body
11538         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
11539         systems, since we do not need to recompute the Name_Id for the canonical
11540         file name.
11541         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11542         as a parameter. This parameter is in fact always "ada" in all calls, and
11543         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
11544         while loading a project with 40000 files
11545
11546         * prj-attr.adb: Fix name of attribute Dependency_Driver
11547         Change the kind of indexing for attribute Root
11548
11549         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
11550         variables already declared, in case constructions.
11551
11552         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
11553         Current_Object_Path_File to No_Path.
11554
11555         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
11556         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
11557
11558         * prj-makr.adb: new parameter Current_Dir
11559
11560         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
11561         Ada sources when language is not Ada.
11562         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11563         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
11564         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
11565         (Locate_Directory): Always resolve links when computing Canonical_Path
11566         (Look_For_Sources): Make sure that Name_Buffer contains the file name
11567         in Source_Files before checking for the presence of a directory
11568         separator.
11569         Optimize calls to Name_Find when on case sensitive systems.
11570         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11571         as a parameter.
11572         (Prj.Nmsc.Check): new parameter Current_Dir
11573         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
11574         cannot be empty and the spec suffix cannot be the same as the body or
11575         separate suffix.
11576         (Get_Unit): When a file name can be of several unit kinds (spec, body or
11577         subunit), always consider the longest suffix.
11578         (Check_Configuration): Do not issue an error if there is no compiler
11579         for a language. Just issue a warning and ignore the sources for the
11580         language.
11581         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
11582         not empty.
11583         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
11584         (Unit_Exceptions): New hash table
11585         (Check_Naming_Schemes): Check if a file that could be a unit because of
11586         the naming scheme is not in fact a source because there is an exception
11587         for the unit.
11588         (Look_For_Sources): Put the unit exceptions in hash table
11589         Unit_Exceptions
11590         (Get_Unit_Exceptions): Give initial value No_Source to local variable
11591         Other_Part to avoid exception when code is compiled with validity
11592         checking.
11593         (Get_Sources_From_File): Check that there is no directory information
11594         in the file names.
11595         (Look_For_Sources): Check that there is no directory information in the
11596         list of file names in Source_Files.
11597         (Look_For_Sources): In multi-language mode, do not allow exception file
11598         names that are excluded.
11599         (Excluded_Sources_Htable): New hash table
11600         (Search_Directories.Check_File): New procedure to simplify
11601         Search_Directories.
11602         (Search_Directories): Do not consider excluded sources
11603         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
11604         Search_Directories.
11605         (Get_Exceptions): Set component Lang_Kind of Source_Data
11606         (Get_Unit_Exceptions): Ditto
11607         (Search_Directories): Ditto
11608
11609         * prj-pars.adb: new parameter Current_Dir
11610
11611         * prj-part.ads, prj-part.adb:
11612         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11613         (Opt.Follow_Links_For_Dirs): New flag
11614         (Project_Path_Name_Of): Cache information returned by this routine as
11615         Locate_Regular_File is a costly routine. The code to output a log
11616         information and the effective call to Locate_Regular_File is now
11617         factorized into a routine (code clean-up).
11618         (Parse, Parse_Single_Project): new parameter Current_Dir
11619         When main project file cannot be found, indicate in the error
11620         message the project path that was used to do the search.
11621
11622         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
11623         (Prj.Proc.Process*): new parameter Current_Dir
11624
11625         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
11626
11627 2007-12-13  Bob Duff  <duff@adacore.com>
11628
11629         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
11630         procedure to be called from the back end to check the
11631         No_Implicit_Dynamic_Code restriction.
11632
11633 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
11634
11635         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
11636         Fixes another case where RTE_Available_Call was ignored instead of being
11637         taken into account.
11638         (Load_Fail): Ditto.
11639
11640         * rtsfind.ads: Add new entries.
11641
11642 2007-12-13  Robert Dewar  <dewar@adacore.com>
11643
11644         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
11645         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
11646
11647         * scn.adb: Implement BOM recognition
11648
11649 2007-12-13  Thomas Quinot  <quinot@adacore.com>
11650             Ed Schonberg  <schonberg@adacore.com>
11651
11652         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
11653         subprogram body that acts as its own spec may not have a non-private
11654         WITH clause on a private sibling.
11655         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
11656         child unit is a renaming, create an implicit with_clause on that
11657         parent, and not on the unit it renames, to prevent visibility errors
11658         in the current unit.
11659
11660 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
11661
11662         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
11663         renaming declaration, use the Slocs of the formal parameters from the
11664         declaration of the formal subprogram when creating the formal parameter
11665         entities in the renaming declaration.
11666         (Analyze_Formal_Type_Declaration): Change the placement of the error
11667         message concerning illegal known discriminants. It is now posted on the
11668         type rather than on the first discriminant. This change ensures early
11669         error report.
11670         (Freeze_Subprogram_Body): If the generic subprogram is nested within
11671         the package body that contains the instance, do not generate an
11672         out-of-place freeze node for the enclosing package.
11673         (Collect_Previous_Instantiations): Ignore internal instantiations
11674         generated for formal packages.
11675         (Validate_Derived_Type_Instance): Add a check that when a formal
11676         derived type is Known_To_Have_Preelab_Init then the actual type must
11677         have preelaborable initialization, and issue an error when this
11678         condition is violated.
11679
11680 2007-12-13  Robert Dewar  <dewar@adacore.com>
11681
11682         * s-imenne.adb, s-imenne.ads: New files.
11683
11684         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
11685         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
11686         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
11687         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
11688         s-imgwch.ads: New calling sequence for Image routines to avoid sec
11689         stack usage.
11690
11691 2007-12-13  Javier Miranda  <miranda@adacore.com>
11692             Ed Schonberg  <schonberg@adacore.com>
11693
11694         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
11695         generation of spurious error if parent is an interface type; caused
11696         because predefined primitive bodies will be generated later by
11697         Freeze_Record_Type.
11698         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
11699         flag.
11700         (Derive_Subprograms): Handle derivations of predefined primitives
11701         after all the user-defined primitives to ensure that they are
11702         found in proper order in instantiations.
11703         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
11704         of Related_Interface to Related_Type.
11705         (Record_Type_Declaration): Minor reordering of calls to decorate the
11706         Tag component because the entity must have set its Ekind attribute
11707         before setting its Is_Tag attribute.
11708         (Analyze_Subtype_Declaration): In the case of subtypes with
11709         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
11710
11711 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11712             Ed Schonberg  <schonberg@adacore.com>
11713
11714         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
11715         statement to the list of contexts where a selected component with a
11716         concurrent tagged type prefix should yield a primitive operation.
11717         (Find_Primitive_Operation): Handle case of class-wide types.
11718         (Analyze_Overloaded_Selected_Component): If type of prefix is
11719         class-wide, use visible components of base type.
11720         (Resolve_Selected_Component): Ditto.
11721         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
11722         formal of a generic subprogram. find candidate interpretations by
11723         scanning the list of generic formal declarations.:
11724         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
11725         type from a limited_with_clause, and the full view is available, use it
11726         for subsequent semantic checks.
11727         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
11728         (Find_Primitive_Operation): New function.
11729         (Analyze_Overloaded_Selected_Component): insert explicit dereference
11730         only once if several interpretations of the prefix yield an access type.
11731         (Try_Object_Operation): Code and comment cleanup.
11732         (Analyze_Selected_Component): Reorder local variables. Minot comment and
11733         code reformatting. When the type of the prefix is tagged concurrent, a
11734         correct interpretation might be available in the primitive and
11735         class-wide operations of the type.
11736
11737 2007-12-13  Robert Dewar  <dewar@adacore.com>
11738             Ed Schonberg  <schonberg@adacore.com>
11739
11740         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
11741         renaming entry as subprogram using rename-as-body if subprogram spec
11742         frozen.
11743         (Use_One_Type): The clause is legal on an access type whose designated
11744         type has a limited view.
11745         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11746         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11747         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
11748         operation denoted by a selected component.
11749         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
11750         it can be an expression, possibly overloaded, that returns a task or
11751         an access to one.
11752
11753 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11754             Gary Dismukes  <dismukes@adacore.com>
11755
11756         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
11757         requeue statement is dispatching. Do not emit an error when the name is
11758         not an entry and the context is a dispatching select. Add code to
11759         perform subtype conformance between the formals of the current entry
11760         and those of the target interface primitive.
11761         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
11762         Timed_Entry_Call): Analyze the triggering statement as the first step of
11763         the processing. If this is a dispatching select, postpone the analysis
11764         of all select statements until the Expander transforms the select. This
11765         approach avoids generating duplicate identifiers after the Expander has
11766         replicated some of the select statements. In case the Expander is
11767         disabled, perform regular analysis.
11768         (Check_Triggering_Statement): New routine.
11769         (Analyze_Requeue): Exclude any interpretations that are not entries when
11770         checking overloaded names in a requeue. Also test type conformance for
11771         matching interpretations rather than requiring subtype conformance at
11772         that point to conform with the RM's resolution rule for requeues.
11773
11774 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
11775
11776         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
11777         inherited operation is a defaulted tag-indeterminate call, and there is
11778         a statically tagged actual, use the static tag as a controlling actual
11779         for the defaulted actual.
11780
11781 2007-12-13  Geert Bosch  <bosch@adacore.com>
11782
11783         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
11784         context, so do not call Check_Non_Static_Context.
11785
11786 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11787
11788         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
11789         whether formal E is an entity which may have parameters.
11790
11791 2007-12-13  Bob Duff  <duff@adacore.com>
11792             Javier Miranda  <miranda@adacore.com>
11793             Robert Dewar  <dewar@adacore.com>
11794
11795         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
11796         (Set_Convention): New procedure to set the Convention flag, and in
11797         addition make sure the Favor_Top_Level flag is kept in sync (all
11798         foreign-language conventions require Favor_Top_Level = True).
11799         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
11800         to Related_Type.
11801         (Collect_Interfaces_Info): Minor update to handle the two secondary
11802         dispatch tables. Update occurrence of Related_Interface to Related_Type.
11803         (Generate_Parent_Ref): Add parameter to specify entity to check
11804         (Is_Preelaborable_Expression): Allow the name of a discriminant to
11805         initialize a component of a type with preelaborable initialization.
11806         This includes the case of a discriminal used in such a context.
11807         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
11808         latest Ada 2005 rules about renaming and 'Access of
11809         discriminant-dependent components.
11810         (Check_Nested_Access): Add handling when there are no enclosing
11811         subprograms (e.g. case of a package body).
11812         (Find_Parameter_Type): Factor routine from several other compiler files.
11813         Remove routine from Find_Overridden_Synchronized_Primitive.
11814
11815 2007-12-13  Thomas Quinot  <quinot@adacore.com>
11816
11817         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
11818         an invalid access to an uninitialized slot in the
11819         Source_File_Index_Table.
11820
11821 2007-12-13  Thomas Quinot  <quinot@adacore.com>
11822
11823         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
11824
11825 2007-12-13  Bob Duff  <duff@adacore.com>
11826
11827         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
11828         access-to-subprogram types in this package.
11829
11830 2007-12-13  Olivier Hainque  <hainque@adacore.com>
11831
11832         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
11833         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
11834         Stack_Overlay_Address and document that we are using an internal
11835         abstraction.
11836         (Byte_Size, Unsigned_32_Size): Remove, now useless.
11837         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
11838         consistently throughout the various implementation pieces.
11839
11840         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
11841         overlay we are using to fill the stack area with patterns.
11842         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
11843         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
11844         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
11845
11846 2007-12-13  Robert Dewar  <dewar@adacore.com>
11847
11848         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
11849
11850 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
11851
11852         * s-tassta.adb:
11853         (Create_Task): Take into account tasks created by foreign threads.
11854         Code clean up: use constants instead of hard coded values.
11855
11856 2007-12-13  Robert Dewar  <dewar@adacore.com>
11857
11858         * styleg.adb (Check_Comment): More liberal rules for comment placement
11859
11860 2007-12-13  Olivier Hainque  <hainque@adacore.com>
11861
11862         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
11863         of Procedure Value instead of Frame Pointer as the invocation
11864         identifier associated with the instruction pointer in each traceback
11865         entry.
11866
11867         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
11868         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
11869         Pointer as the invocation identifier passed to tbk$symbolize.
11870
11871         * s-traent-vms.ads, s-traent-vms.adb
11872         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
11873         Procedure Value instead of Frame Pointer as the invocation identifier
11874         passed to tbk$symbolize.
11875
11876 2007-12-13  Robert Dewar  <dewar@adacore.com>
11877
11878         * tbuild.ads, tbuild.adb:
11879         Fix location of flag for unrecognized pragma message
11880
11881 2007-12-13  Robert Dewar  <dewar@adacore.com>
11882
11883         * treepr.ads, treepr.adb: (pl): implement use of positive value
11884         shorthands
11885
11886 2007-12-13  Robert Dewar  <dewar@adacore.com>
11887
11888         * xeinfo.adb: Remove warnings
11889         * xnmake.adb: Remove warnings
11890         * xsinfo.adb: Remove warnings
11891         * xtreeprs.adb: Remove warnings
11892         * xsnames.adb: Remove warnings
11893
11894         * a-ngcoar.adb: Fix typo.
11895         * s-interr.adb: Minor reformatting
11896         * env.c: Minor reformatting.
11897         * g-bytswa.adb: Minor reformatting.
11898         * g-rannum.ads: Minor documentation improvements
11899         * s-tasinf-mingw.adb: Minor header fix
11900         * a-clrefi.adb: Minor reformatting
11901         * g-sttsne.ads: Minor documentation improvement
11902         * g-sttsne-locking.ads: Minor documentation improvement
11903         * g-soliop-solaris.ads: Minor documentation improvement
11904         * g-soliop-mingw.ads: Minor documentation improvement
11905         * g-soliop.ads: Minor documentation improvement
11906         * exp_aggr.ads: Minor reformatting
11907         * debug.adb: Add documentation for the gprbuild debug flags
11908         * exp_ch2.adb: Use Nkind_In to simplify code throughout
11909         * exp_pakd.adb: Minor reformatting
11910
11911         * g-altive.ads, g-alleve.adb: Remove assertions.
11912         Add comment about minor differences between targets regarding
11913         floating-point operations.
11914
11915         * g-thread.adb: Remove pragma unreferenced.
11916         * lib.ads: Minor reformatting
11917         * par-ch9.adb: Minor reformatting of error messages
11918         * sem_case.adb: Minor reformatting
11919         * s-fileio.adb: Minor reformattinng
11920         * s-vmexta.ads: Minor typo
11921         * vxaddr2line.adb:
11922         Take into account 'Success' value as per new GNAT warning.
11923
11924 2007-12-13  Vincent Celier  <celier@adacore.com>
11925
11926         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
11927         even on Windows
11928
11929 2007-12-13  Robert Dewar  <dewar@adacore.com>
11930             Bob Duff  <duff@adacore.com>
11931
11932         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
11933         Document that suffixes may be terminations of each others
11934         Add doc for -gnatw.a and -gnatw.A
11935         Document gnatbind -Wx switch
11936         Document BOM recognition
11937         Document pragma Implemented_By_Entry.
11938         Document new units.
11939
11940         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
11941         Add doc for pragma Unreferenced suppressing no entities referenced msg
11942         Add documentation of GNAT.Directory_Operations.Iteration
11943         Add documentation of GNAT.Random_Numbers
11944         Add documentation for pragma Shared.
11945         Correct documentation for Bit_Order
11946         Add documentation for the Pool_Address attribute.
11947         Fix and improve documentation of pragma machine_attribute.
11948         New pragma Fast_Math
11949         Document BOM recognition
11950
11951         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
11952         Add /Wide_Character_Encoding for binder
11953         Add qualifier for the new gnatpp option --no-separate-loop-then
11954
11955 2007-12-13  Matthew Heaney  <heaney@adacore.com>
11956
11957         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
11958         which generic formal operations are called for each operation.
11959
11960 2007-12-13  Olivier Hainque  <hainque@adacore.com>
11961
11962         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
11963         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
11964
11965 2007-12-13  Emmanuel Briot  <briot@adacore.com>
11966
11967         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
11968         Reference_Dir unless we actually need it.
11969
11970 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
11971             Tristan Gingold  <gingold@adacore.com>
11972
11973         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
11974
11975         * s-osprim-vms.adb,
11976         a-calend-vms.adb: Remove pragma warning off and add pragma
11977         unreferenced.
11978
11979 2007-12-13  Robert Dewar  <dewar@adacore.com>
11980
11981         * impunit.adb: Add entries for missing units
11982
11983         * Makefile.rtl: Add new run-time units.
11984
11985         * Make-lang.in:  Update dependencies.
11986
11987 2007-12-13  Bob Duff  <duff@adacore.com>
11988
11989         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
11990         types, set Can_Use_Internal_Rep appropriately, based on
11991         Always_Compatible_Rep_On_Target.
11992
11993 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
11994             Arnaud Charlet  <charlet@adacore.com>
11995
11996         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
11997         it to the front end and setting the aamp_target environment variable
11998         to the switch's argument to ensure that gnaampbind and gnaamplink will
11999         take the specified library into account.
12000         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
12001         target, since the CIL compiler supports an "object" file (.il files).
12002
12003 2007-12-13  Vincent Celier  <celier@adacore.com>
12004
12005         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
12006         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
12007
12008 2007-12-13  Geert Bosch  <bosch@adacore.com>
12009
12010         * s-parame-vxworks.adb:
12011         Update comments to reflect usage of this package by Nucleus.
12012
12013 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
12014
12015         * i-vxwork.ads: Kill new warning on Convention C, since changing the
12016         spec would break code.
12017
12018         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
12019
12020         * system-vxworks-alpha.ads: Removed.
12021
12022 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
12023
12024         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
12025
12026 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
12027
12028         PR ada/34366
12029         * sem_ch3.adb (Designates_T): New function.
12030         (Mentions_T): Factor reusable part of the logic into Designates_T.
12031         Consider non-access parameters and access and non-access result.
12032         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
12033         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
12034
12035         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
12036
12037 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
12038
12039         PR ada/34361
12040         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
12041         the new implementation of target-specific calls.
12042
12043 2007-12-07  Olivier Hainque  <hainque@adacore.com>
12044
12045         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
12046         the designated full view, only follow a second level Full_View link
12047         for Non_Limited_Views of from_limited_with references.
12048
12049 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
12050
12051         PR ada/15805
12052         * sem_ch6.adb (Process_Formals): Prevent an access type formal
12053         to be initialized with an access to constant object.
12054
12055         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
12056         when an access to constant is used to initialize an access
12057         value.
12058
12059         PR ada/21346
12060         * a-direct.adb (Compose): Containing_Directory can be an empty string.
12061
12062 2007-12-07  Olivier Hainque  <hainque@adacore.com>
12063
12064         PR ada/34173
12065         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
12066         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
12067         this is from an alignment clause on the GNAT entity.
12068         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
12069         to distinguish the case where we set it from the type's alignment.
12070         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
12071         whether this alignment was set from an explicit alignment clause.
12072
12073 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
12074
12075         * decl.c (make_packable_type): Revert last change.
12076         (gnat_to_gnu_field): Avoid setting size and position multiple times.
12077         * utils.c (finish_record_type): Retrieve the real name of the type.
12078
12079 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
12080
12081         * trans.c (lvalue_required_p): Take base node directly instead
12082         of its parent.  Rename second parameter to 'gnu_type'.
12083         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
12084         <N_Slice>: Likewise.
12085         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
12086         Adjust calls to lvalue_required_p.
12087
12088 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
12089
12090         PR ada/21489
12091         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
12092         parameters of an entry call.
12093
12094 2007-12-03  Robert Dewar  <dewar@adacore.com>
12095             Samuel Tardieu  <sam@rfc1149.net>
12096
12097         PR ada/34287
12098         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
12099         of variables declared in a library-level package.
12100
12101 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
12102
12103         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
12104         of Empty_String'Unchecked_Access.
12105
12106         * Makefile.in: Add support for sh4-linux.
12107
12108         * system-linux-sh4.ads: New file.
12109
12110 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
12111
12112         PR ada/33722
12113         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
12114         and its argument must not be free()ed.
12115
12116 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
12117
12118         * decl.c (make_packable_type): Retrieve the real name of the type.
12119         (maybe_pad_type): Simplify similar code.
12120
12121 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
12122
12123         PR ada/15804
12124         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
12125         than an identifier is used after "case" in a variant_part.
12126
12127         PR ada/17318
12128         * par-ch4.adb (Is_Parameterless_Attribute): New map.
12129         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
12130         attribute name or not depending on the new map.
12131
12132         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
12133         returning a string or a type will not be called with improper
12134         arguments.
12135
12136         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
12137
12138         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
12139
12140         PR ada/32792
12141         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
12142         Signal an error when attribute argument is a fixed-point value of
12143         an unknown type.
12144
12145         PR ada/22559
12146         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
12147         a derived ordinary fixed point type.
12148
12149         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
12150         RM_Size when a Small clause is found.
12151
12152 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
12153
12154         PR 34081/C++
12155         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
12156         Pass 'false' for the new allocate_struct_function parameter.
12157         * utils.c (build_function_stub): Likewise.
12158
12159 2007-11-25  Richard Guenther  <rguenther@suse.de>
12160
12161         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
12162         (gnat_poplevel): Likewise.
12163
12164 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
12165
12166         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
12167         strict alignment, no alignment clause and a known static size, cap
12168         the type alignment to the greatest power of 2 factor of the size.
12169         (gnat_to_gnu_field): If the field has a component clause, is aliased
12170         or of a type with strict alignment, require that its size be equal to
12171         that of the type.
12172         (validate_size): Use the type size as the minimum size for a type with
12173         strict alignment.
12174
12175 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
12176
12177         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
12178         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
12179         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
12180         Use 'Access instead of 'Unchecked_Access in second and third
12181         arguments of pthread_sigmask.
12182
12183 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
12184
12185         * decl.c (ceil_alignment): New function.
12186         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
12187         (make_packable_type): Likewise.
12188
12189 2007-11-22  Olivier Hainque  <hainque@adacore.com>
12190
12191         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
12192         to fit in 80 columns.
12193
12194 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
12195
12196         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
12197         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
12198
12199 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
12200
12201         PR ada/34098
12202         * misc.c (gnat_adjust_rli): Delete.
12203         (gnat_init): Do not initialize the translation code here.
12204         Do not call set_lang_adjust_rli.
12205         * trans.c (init_code_table): Make static.
12206         (gnat_init_stmt_group): Delete.
12207         (gigi): Initialize the translation code entirely here.
12208         Emit debug info for the common types here instead of...
12209         * utils.c (gnat_init_decl_processing): ...here.
12210         * gigi.h (init_code_table): Delete.
12211         (gnat_init_stmt_group): Likewise.
12212
12213 2007-11-16  Olivier Hainque  <hainque@adacore.com>
12214
12215         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
12216         retrieving an allocator return value from a super-aligned address from
12217         here to ...
12218         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
12219         expect a super-aligned address for a fat or thin pointer.
12220
12221 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
12222
12223         * trans.c (call_to_gnu): Always set the source location on the call
12224         expression.  If the function returns-by-target, also set it on the
12225         address expression.
12226
12227 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
12228
12229         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
12230         sections of non-supported Interix target.
12231
12232         * s-osinte-interix.ads: Removed.
12233
12234         * i-cstrin.ads (chars_ptr): Make it a C convention type.
12235
12236 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
12237
12238         * a-tasatt.adb: Add a comment at the beginning of the package
12239         explaining why in general 'Unchecked_Access must be used instead
12240         of 'Access.
12241
12242         * sem_prag.adb (Process_Convention): Move the test for the
12243         entity on which the Convention pragma applies down to also
12244         forbid pragma Convention on enumeration literals reached
12245         through renamings.
12246
12247 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
12248
12249         * a-tasatt.adb: Revert previous change for this file as it will
12250         generate an error when this package is instantiated from a
12251         local context.
12252
12253 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
12254
12255         * a-tasatt.adb: Type Wrapper should be declared in comment instead
12256         of already declared type Node_Access.
12257         Use 'Access instead of 'Unchecked_Access when applicable. Local
12258         lifetime is the one of the package.
12259         (Set_Value): W is allocated on the heap.
12260
12261         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
12262         applicable.
12263         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
12264         access type.
12265         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
12266         access type.
12267
12268         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
12269         applicable.
12270         (elaboration code): Timer_Queue lifetime is the one of the
12271         package.
12272
12273         * tracebak.c (i386 alternative): Remove useless comparaison
12274         which is always false; LOWEST_ADDRESS is 0 and is never greater
12275         than an unsigned integer.
12276
12277         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
12278         embedded check for "Ada_Version >= Ada_05".
12279
12280 2007-11-07  Olivier Hainque  <hainque@adacore.com>
12281
12282         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
12283         craft and expand comment.
12284
12285 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
12286
12287         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
12288
12289 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
12290
12291         * misc.c (gnat_handle_option): Replace call to abort with
12292         call to gcc_unreachable.
12293         (gnat_init): Likewise.
12294         (gnat_expand_expr): Likewise.
12295         (fp_prec_to_size): Likewise.
12296         (fp_size_to_prec): Likewise.
12297
12298 2007-10-23  Richard Guenther  <rguenther@suse.de>
12299
12300         PR bootstrap/33608
12301         * tracebak.c: #undef abort after including system.h.
12302
12303 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
12304
12305         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
12306         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
12307         for win32 targets.
12308         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
12309
12310 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
12311
12312         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
12313         Set the protection status of the guard page based on the value of On.
12314
12315         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
12316
12317         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
12318         (Exit_Task): Pass False to Hide_Yellow_Zone.
12319
12320 2007-10-15  Robert Dewar  <dewar@adacore.com>
12321
12322         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12323         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
12324         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
12325         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
12326         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
12327         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
12328         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
12329         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
12330         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
12331         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
12332         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
12333         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
12334         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
12335         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
12336         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
12337         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
12338         Minor reformatting.
12339         Add Unreferenced and Warnings (Off) pragmas for cases of
12340         variables modified calls where they are IN OUT or OUT parameters and
12341         the resulting values are not subsequently referenced. In a few cases,
12342         we also remove redundant code found by the new warnings.
12343
12344         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
12345         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
12346         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
12347         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
12348         warning controlled by -gnatw.o that warns on cases of out parameter
12349         values being ignored.
12350
12351 2007-10-15  Geert Bosch  <bosch@adacore.com>
12352
12353         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
12354
12355         * expect.c: Initial port to arm-mentor-nucleus.
12356         Use kill for __gnat_kill() on VMS.
12357
12358 2007-10-15  Emmanuel Briot  <briot@adacore.com>
12359
12360         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
12361         value.
12362         (Xref_Record): Change type for Line, since in the case of a reference to
12363         a predefined entity (as happens for array index types), the line is set
12364         to 0.
12365         Add support for parsing multiple array index types info, or
12366         multiple inherited interfaces info. This information cannot be stored
12367         in Xref_Entity_Record, which only supports a single instance of Tref_*,
12368         and is therefore stored in the list of references instead. It has a
12369         special treatement later on in tools that use this information.
12370
12371 2007-10-15  Tristan Gingold  <gingold@adacore.com>
12372
12373         * debug.adb: Document use of -gnatd.a and -gnatd.I
12374
12375         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
12376
12377 2007-10-15  Javier Miranda  <miranda@adacore.com>
12378
12379         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
12380         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
12381         care of access to class-wide interface types plus removal of bizarre
12382         conversion of tagged object to access type (reported by Gary
12383         Dismukes). After this patch there is no need to perform any
12384         additional management on these nodes in Expand_Interface_Actuals.
12385
12386         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
12387         that handles use of 'Access and 'Unchecked_Access applied to
12388         actuals covering interface types. Such code is now
12389         centralized in Expand_N_Attribute_Reference.
12390
12391 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
12392
12393         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
12394         of tagged types whose ultimate ancestor is a CPP type.
12395         (Freeze_Array_Type): For a packed array type, generate an initialization
12396         procedure if the type is public, to handle properly a client that
12397         specifies Normalize_Scalars.
12398
12399 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
12400
12401         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
12402         inside a generic body, retrieve the full view of the entry family
12403         discrete subtype if available.
12404
12405 2007-10-15  Thomas Quinot  <quinot@adacore.com>
12406
12407         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
12408         attempt to generate stubs for hidden primitive operations.
12409
12410 2007-10-15  Vincent Celier  <celier@adacore.com>
12411
12412         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
12413         returning None, used when there is no platform specific body for
12414         MLib.Tgt.Specific.
12415
12416 2007-10-15  Bob Duff  <duff@adacore.com>
12417
12418         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
12419         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
12420         the generic Heap_Sort_G, in order to avoid trampolines.
12421
12422 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
12423             Jose Ruiz  <ruiz@adacore.com>
12424
12425         * vx_stack_info.c: New file.
12426
12427         * i-forbla-unimplemented.ads: New file.
12428
12429         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
12430         for unsupported configurations; use it on VMS targets instead of the
12431         real one.
12432         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
12433         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
12434         used by VxWorks targets to have access to task-specific data and be
12435         able to extract the stack boundaries for stack checking.
12436         Use system-vms-ia64.ads on ivms.
12437
12438         * Make-lang.in: Update dependencies.
12439
12440         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
12441         (vx_stack_info.c).
12442
12443 2007-10-15  Vincent Celier  <celier@adacore.com>
12444
12445         * snames.adb, snames.ads: Add new standard name runtime_library_dir
12446
12447         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
12448
12449         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
12450
12451         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
12452         the source is unknown.
12453
12454         * prj-ext.adb: Spelling error fix
12455
12456         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
12457         95 reserved word in its name.
12458         (Process_Project_Level_Array_Attributes): Process new attribute
12459         Runtime_Library_Dir.
12460
12461         * prj-part.adb (Parse_Single_Project): Do not check the name of the
12462         config project against the user project names.
12463
12464         * prj-proc.adb (Expression): In multi-language mode, indexes that do
12465         not include a dot are always case insensitive.
12466         (Process_Declarative_Items): Ditto
12467         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
12468         detected.
12469
12470         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
12471         True, compare both indexes in lower case.
12472
12473 2007-10-15  Robert Dewar  <dewar@adacore.com>
12474
12475         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
12476
12477 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
12478
12479         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
12480         association for an access component, add an association with null as
12481         the expression. Remove testing for array subtypes and the setting in
12482         that case of Ctyp to the array component type, which prevented proper
12483         inclusion of an association for null-initialized arrays. Collapse
12484         condition that tests for array subtypes into just a test of
12485         Is_Partially_Initialized_Type (which already covers arrays anyway).
12486
12487 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
12488
12489         * sem_ch12.adb: Minor code reformatting.
12490         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
12491         find the parent package which may have been hidden by local
12492         declarations.
12493
12494 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
12495
12496         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
12497         flag of derived concurrent types, taking into account the flag setting
12498         on the parent subtype and any new set of discriminants.
12499
12500 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
12501
12502         * sem_ch4.adb: Minor code and comment reformatting.
12503         (Analyze_Allocator): When the designated type of an unconstrained
12504         allocator is a record with unknown discriminants or an array with
12505         unknown range bounds, emit a detailed error message depending on the
12506         compilation mode and whether the designated type is limited.
12507
12508 2007-10-15  Tristan Gingold  <gingold@adacore.com>
12509
12510         * system-vms-ia64.ads: New file.
12511
12512         * system-vms_64.ads: Minor comment fix.
12513
12514 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
12515
12516         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
12517         body generated for a function with a controlling result that is a null
12518         extension, discard the generated body in favor of the current explicit
12519         one.
12520
12521 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
12522
12523         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
12524         examining its original form, to handle properly operator calls that
12525         have been rewritten.
12526
12527 2007-10-15  Olivier Hainque  <hainque@adacore.com>
12528
12529         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
12530         instead of a procedure value in each traceback entry.
12531
12532         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
12533         instead of procedure value to TBK$SYMBOLIZE.
12534
12535         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
12536         field.
12537         (TB_Entry_For): Account for the PV/FP renaming.
12538
12539         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
12540         add comment.
12541         (Null_TB_Entry): Account for change of component name.
12542         (PV_For): Rename as FP_For.
12543
12544 2007-10-15  Tristan Gingold  <gingold@adacore.com>
12545
12546         * trans.c (gnat_to_gnu): Remove the padding structure more often.
12547         This optimize assignment to over-aligned record.
12548
12549 2007-10-15  Emmanuel Briot  <briot@adacore.com>
12550
12551         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
12552         interfaces.
12553
12554         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
12555         type, for dispatching calls.
12556
12557 2007-10-15  Vincent Celier  <celier@adacore.com>
12558             Robert Dewar  <dewar@adacore.com>
12559
12560         * gnat_ugn.texi: Add documentation for switches --version and --help
12561         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
12562         gnatxref, gnatfind, gnatls, and gnatclean.
12563         Document -gnatw.o.
12564         Mention attribute Excluded_Source_Dirs
12565         Replace obsolescent attribute Locally_Removed_Files with attribute
12566         Excluded_Source_Files.
12567         Improve documentation of -u (gnatbind)
12568         Document how to do reliable stack checking for the environmental task
12569         on iVMS.
12570
12571         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
12572         Document attribute Excluded_Source_Files and indicate that attribute
12573         Locally_Removed_Files is obsolescent.
12574
12575 2007-10-15  Thomas Quinot  <quinot@adacore.com>
12576
12577         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
12578
12579         * gen-soccon.c:
12580         Update documentation to note that OpenVMS 8.3 or later must be used
12581         to generate g-soccon-vms.ads.
12582
12583         * atree.adb: Add ??? comment
12584
12585         * exp_util.adb: Minor reformatting.
12586         Add ??? comment in Kill_Dead_Code.
12587
12588 2007-10-15  Robert Dewar  <dewar@adacore.com>
12589
12590         * errout.ads: Comment clarification
12591
12592         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
12593         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
12594
12595         * lib.ads: Comment update
12596
12597         * init.c: Minor reformatting.
12598
12599         * sem_attr.adb: Minor formatting
12600
12601         * osint-b.ads: Minor reformatting
12602
12603         * sem_ch9.adb: Implement -gnatd.I switch
12604
12605         * g-comlin.adb: (Start): Fix handling of empty command line.
12606
12607         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
12608         even when -rules follows the -cargs section.
12609
12610 2007-10-08  Ollie Wild  <aaw@google.com>
12611
12612         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
12613         gnat_return_tree.
12614         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
12615         gnat_return_tree.
12616         (gnat_eh_runtime_type): Removed.
12617         (gnat_return_tree): New function.
12618
12619 2007-10-08  Ben Elliston  <bje@au.ibm.com>
12620
12621         PR ada/33454
12622         Revert:
12623         2007-08-31  Ben Elliston  <bje@au.ibm.com>
12624
12625         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
12626         when compiling for powerpc64-*-linux.
12627         * system-linux-ppc64.ads: New file.
12628
12629 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
12630
12631         Mapped location support
12632         * back_end.adb (Call_Back_End): Pass information about source
12633         files instead of units to gigi.
12634         * gigi.h (struct File_Info_Type): New.
12635         (gigi): Rename and change type of number_units parameter, change
12636         type of file_info_ptr parameter.
12637         * trans.c (number_files): New global variable.
12638         (gigi): Rename and change type of number_units parameter, change
12639         type of file_info_ptr parameter.
12640         If mapped location support is enabled, create the isomorphic mapping
12641         between source files and line maps.
12642         (Sloc_to_locus): If mapped location support is enabled, translate
12643         source location into mapped location.
12644         (annotate_with_node): Rename into set_expr_location_from_node.
12645         Call set_expr_location instead of annotate_with_locus.
12646         (Pragma_to_gnu): Adjust for above change.
12647         (Loop_Statement_to_gnu): Likewise.
12648         (call_to_gnu): Likewise.
12649         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
12650         (gnat_to_gnu): Likewise.
12651         (add_stmt_with_node): Likewise.
12652         (add_cleanup): Likewise.
12653         * utils.c (gnat_init_decl_processing): Do not set input_line.
12654
12655 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
12656
12657         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
12658         (Applicable_Use): Emit a warning when a package tries to use itself.
12659         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
12660         is already in use or the package where it is declared is in use or is
12661         declared in the current package.
12662         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
12663
12664         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
12665         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
12666         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
12667
12668 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
12669
12670         * a-calend-vms.adb, a-calend.adb:
12671         Add a section on leap seconds control along with two entities used to
12672         enable and disable leap seconds support. The array Leap_Second_Times is
12673         now constant and contains hard time values pre-generated. Remove
12674         all elaboration code used to populate the table of leap seconds.
12675
12676         * bindgen.adb:
12677         Add entity Leap_Seconds_Support to the list of global run-time variables
12678         along with a comment on its usage and values.
12679         (Gen_Adainit_Ada): Add code to generate the declaration and import of
12680         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
12681         or one (enabled) depending on the presence of binder switch "-y".
12682         (Gen_Adainit_C): Add code to generate the declaration of external int
12683         __gl_leap_seconds_support. Set is value to zero (disabled) or one
12684         (enabled) depending on the presence of binder switch "-y".
12685
12686         * init.c: Add __gl_leap_seconds_support to the list of global values
12687         computed by the binder.
12688
12689 2007-09-26  Jerome Guitton  <guitton@adacore.com>
12690
12691         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
12692         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
12693          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12694         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
12695
12696         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
12697
12698         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
12699         function which can be called by the debugger to interrupt the tasks of
12700         an Ada application asynchronously, as needed on VxWorks.
12701         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
12702
12703         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
12704         renamed from Stop_All_Tasks. Update comments.
12705         (Stop_All_tasks): New function declaration.
12706
12707 2007-09-26  Olivier Hainque  <hainque@adacore.com>
12708
12709         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
12710         #include <utime.h> and #define GCC_RESOURCE_H before
12711         #include <sys/wait.h>.
12712         Add more protections in __gnat_translate_vms.
12713
12714         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
12715         #include <sys/wait.h>.
12716
12717 2007-09-26  Thomas Quinot  <quinot@adacore.com>
12718             Sergey Rybin  <rybin@adacore.com>
12719
12720         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
12721
12722         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12723         where it belongs.
12724
12725         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12726
12727         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12728         where it belongs.
12729
12730         * sem_dist.ads: Minor comment fix
12731
12732         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12733
12734 2007-09-26  Javier Miranda  <miranda@adacore.com>
12735             Eric Botcazou  <ebotcazou@adacore.com>
12736
12737         * a-tags.adb:
12738         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
12739          indirection added to the HT_Link component of the TSD. This is required
12740          to statically allocate the TSD.
12741
12742         * a-tags.ads:
12743         Minor reordering of the declarations in the private part. Required to
12744         add a level of indirection to the contents of the TSD component HT_Link.
12745         This is required to statically allocate the TSD.
12746
12747         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
12748         Is_Statically_Allocated set from constant objects.
12749         Do not make exported constants created by the compiler volatile.
12750         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
12751         as read-only.
12752
12753         * trans.c (Identifier_to_gnu): For constants, unshare initializers
12754         before returning them.
12755
12756         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
12757         public part of the package.
12758         (Make_DT): Move HT_Link component out of the TSD record. For this
12759         purpose Make_DT now declares a separate object that stores the
12760         HT_Link value, and initializes the TSD component with the address
12761         of this new object. The addition of this level of indirection is
12762         required to statically allocate the TSD because the TSD cannot
12763         have variable components.
12764         (Expand_Interface_Conversion): Improve the expanded code.
12765         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
12766
12767         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
12768         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
12769         if we are building static dispatch tables then we must not generate
12770         extra code to register the primitive because the dispatch table will
12771         be built at the end of the library package; otherwise we notify that
12772         we cannot build the static dispatch table.
12773
12774 2007-09-26  Robert Dewar  <dewar@adacore.com>
12775
12776         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
12777         overlays.
12778
12779         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
12780         (Analyze_Record_Representation_Clause): Suppress junk warning for
12781         missing component clause.
12782         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
12783         tests for controlled type overlay to composites with controlled
12784         components.
12785         (Analyze_Record_Representation_Clause): Add reference for component name
12786
12787 2007-09-26  Javier Miranda  <miranda@adacore.com>
12788             Gary Dismukes  <dismukes@adacore.com>
12789
12790         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
12791         for thunks associated with interface types.
12792
12793         * einfo.ads: Improve documentatation of Is_Internal
12794         (Is_Thunk): New attribute applicable to subprograms. True for thunks
12795         associated with interface types.
12796         Extensive comment fixes regarding flags that appear in all entities. The
12797         documentation is now consistent for all such flags (there were a number
12798         of errors in the documentation in this regard).
12799
12800         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
12801
12802         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
12803         of these procedures are passed a function call that already has
12804         build-in-place actuals (testing new flag
12805         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
12806         the case where processing continues.
12807         (Expand_Call): If the call is generated from a thunk body then we
12808         propagate the extra actuals associated with the accessibility
12809         level of the access type actuals.
12810
12811         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
12812         of each extra formal of a protected operation to reference the
12813         corresponding extra formal of the subprogram denoted by the
12814         operation's Protected_Body_Subprogram.
12815
12816         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
12817         N_Function_Call nodes.
12818
12819 2007-09-26  Robert Dewar  <dewar@adacore.com>
12820
12821         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
12822
12823         * debug.adb: Add d.s flag.
12824
12825 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
12826
12827         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
12828         debug variable so that it won't be initialized when pragma
12829         Initialize_Scalars is in effect.
12830
12831 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
12832
12833         * freeze.adb (Freeze_Entity): Remove check for preelaborable
12834         initialization of a full view. This is moved to
12835         Analyze_Package_Specification.
12836
12837         * sem_ch7.adb (Analyze_Package_Specification): Add check for
12838         preelaborable initialization of a full view in entity loop.
12839         (Uninstall_Declarations): If entity is a use-visible compilation unit,
12840         its child units are use-visible only if they are visible child units.
12841
12842         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
12843         whether an expression can be used within a type declaration that
12844         requires preelaborable init.
12845         (Check_Components): Replace inline code that does partial checking for
12846         preelaborable default expressions with call to
12847         Is_Preelaborable_Expression.
12848         (Has_Preelaborable_Initialization): In the case of a generic actual
12849         subtype, (that is, Is_Generic_Actual is True), return the result of
12850         applying Has_Preelaborable_Initialization to the generic actual's base
12851         type.
12852
12853 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
12854
12855         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
12856         call to Jan_1_Day _Of_Week to optimize its performance.
12857         (Is_Leap): Move the routine to the scope of Week_In_Year.
12858         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
12859         weekday on which January 1 falls of Year - 1 and Year + 1. This function
12860         avoids calling Time_Of and Split, thus making it more efficent.
12861         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
12862
12863         * g-calend.ads (Week_In_Year): Change comment to reflect new
12864         implementation.
12865
12866 2007-09-26  Emmanuel Briot  <briot@adacore.com>
12867
12868         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
12869         Command_Line): New types
12870         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
12871         support for defining how switches can be grouped on a command line (as
12872         is the case for -gnatw... for GNAT), and how simple switches can be
12873         used as aliases for more complex switches (-gnatwa is same as
12874         -gnatwbcef...)
12875         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
12876         (Start, Current_*): New subprograms
12877         Added support for parsing an array of strings in addition to the real
12878         command line.
12879         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
12880          be moved from the body to the private part of the spec.
12881         (*): All subprograms now have an extra parameter with default value to
12882         specify which parser should be used. For backward compatibility, it
12883         defaults to parsing the command line of the application. They were also
12884         modified to properly handle cases where each of the argument does not
12885         start at index 1 (which is always true for Ada.Command_Line, but not
12886         when processing any Argument_List).
12887         (Free): New subprogram
12888         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
12889         Argument): New subprograms
12890         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
12891         special characters like ':', '=',... are now handled in a single place,
12892         which makes the code more extensible eventually.
12893         (Getopt, Full_Switch): When the switch was returned as part of the
12894         special character '*', make sure it is prepended by the switch character
12895         ('-' in general), so that the application knows whether "foo" or "-foo"
12896         was specified on the command line.
12897
12898 2007-09-26  Florian Villoing  <villoing@adacore.com>
12899
12900         * g-dirope.adb (Remove_Dir): In case we are removing directories
12901         recursively, make sure that if an exception is raised during the
12902         processing, the current working directory is reset to its initial
12903         value before propagating the exception.
12904
12905 2007-09-26  Vincent Celier  <celier@adacore.com>
12906
12907         * gnatbind.adb: If there are several ALI files specified and there is
12908         a main program to bind, the first ALI is expected to contain the main
12909         subprogram and the names of the binder generated files will be derived
12910         from the first ALI file name.
12911         (Gnatbind): Fix insertion character in invocation of Error_Msg
12912
12913 2007-09-26  Vincent Celier  <celier@adacore.com>
12914
12915         * gnatcmd.adb (Check_Files): Do not include sources that have been
12916         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
12917
12918 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
12919
12920         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
12921         information about each of its index types, following the type
12922         reference for its component type.
12923
12924 2007-09-26  Vincent Celier  <celier@adacore.com>
12925
12926         * make.adb: (Kill): New procedure (__gnat_kill imported)
12927         (Running_Compile, Outstanding_Compiles): Global variables that
12928         were previously local to procedure Compile_Sources.
12929         (Sigint_Intercepted): Send signal SIGINT to all outstanding
12930         compilation processes.
12931
12932         (Gnatmake): If project files are used, create the mapping of all the
12933         sources, so that the correct paths will be found.
12934
12935         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
12936
12937 2007-09-26  Vincent Celier  <celier@adacore.com>
12938
12939         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
12940
12941         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
12942         Replace components Compiler_Min_Options and Binder_Min_Options with
12943         Compiler_Required_Switches and Binder_Required_Switches in record
12944         Language_Config.
12945         Remove components Default_Language and Config in Project_Tree_Data,
12946         no longer used.
12947
12948         * prj-attr.adb: New attributes Required_Switches (<language>) in
12949         packages Compiler and Binder.
12950
12951         * prj-nmsc.adb: Major rewrite of the processing of configuration
12952         attributes for gprbuild. No impact on GNAT tools.
12953
12954         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
12955         process configuration attributes: this is done in Prj.Nmsc.Check.
12956         (Recursive_Process): Make a full copy of packages inherited from project
12957         being extended, instead of a shallow copy.
12958         (Process_Project_Tree_Phase_1): New procedure
12959         (Process_Project_Tree_Phase_1): New procedure
12960         (Process): Implementation now uses the two new procedures
12961
12962         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
12963         from the project config, not the tree config that no longer exists.
12964
12965 2007-09-26  Vincent Celier  <celier@adacore.com>
12966
12967         * Make-lang.in: Update dependencies..
12968
12969 2007-09-26  Vincent Celier  <celier@adacore.com>
12970
12971         * osint.adb, osint.ads: Minor reformatting
12972
12973         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
12974
12975 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
12976
12977         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
12978         message to cite use of <> in aggregate component associations rather
12979         than wrongly indicating use of limited aggregates.
12980
12981 2007-09-26  Robert Dewar  <dewar@adacore.com>
12982
12983         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
12984         Address_Taken.
12985
12986 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
12987
12988         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
12989         ancestor of the derived type, the operations are inherited from the
12990         primary dispatch table of the parent.
12991         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
12992         when the context is an explicit type conversion.
12993
12994 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
12995
12996         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
12997         rule for qualified expressions properly, to detect improper conversions
12998         and resolve some cases of overloading.
12999
13000 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
13001
13002         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
13003         proper kind of reference to the primitive operation, for better source
13004         navigation.
13005         (Valid_Conversion): A tagged conversion is legal if both operands are
13006         tagged.
13007
13008 2007-09-26  Robert Dewar  <dewar@adacore.com>
13009
13010         * sem_warn.adb (Check_References): Catch more cases of unreferenced
13011         packages.
13012
13013 2007-09-26  Vincent Celier  <celier@adacore.com>
13014
13015         * snames.adb, snames.ads: Change Include_Option to Include_Switches
13016
13017 2007-09-26  Robert Dewar  <dewar@adacore.com>
13018
13019         * s-wchstw.adb: provide messages for run time unit exceptions
13020
13021         * a-witeio.adb: Minor reformatting
13022
13023         * exp_ch13.adb: Minor reformatting
13024
13025 2007-09-26  Sergey Rybin  <rybin@adacore.com>
13026
13027         * vms_data.ads: Revise gnatmetric qualifiers.
13028         Add qualified for the new gnatbind option '-y'
13029
13030         * gnat_ugn.texi: Revise the gnatmetric section.
13031         Add entry for new gnatbind option '-y'.
13032
13033         * gnat_rm.texi: Minor spelling correction.
13034         Document restriction on overlaying controlled types
13035
13036 2007-09-26  Vincent Celier  <celier@adacore.com>
13037
13038         * makegpr.adb (Link_Executables): Do not fail when the root project has
13039         no sources, but is an extending project.
13040
13041 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
13042
13043         * trans.c: Fix misplaced #define.
13044
13045 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13046
13047         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
13048         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
13049
13050 2007-09-21  Olivier Hainque  <hainque@adacore.com>
13051
13052         * utils.c (type_for_nonaliased_component_p): Return false for
13053         all AGGREGATE_TYPEs.
13054
13055 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13056
13057         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
13058         object covered by 13.3(19) volatile.
13059
13060 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
13061
13062         PR ada/26797
13063         PR ada/32407
13064         * utils.c (unchecked_convert): Use a subtype as the intermediate type
13065         in the special VIEW_CONVERT_EXPR case.
13066
13067 2007-09-12  Robert Dewar  <dewar@adacore.com>
13068
13069         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
13070
13071         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
13072         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
13073         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
13074         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
13075         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
13076         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
13077         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
13078         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
13079         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
13080         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
13081         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
13082         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
13083         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
13084         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
13085         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
13086         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
13087         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
13088         pragma Compiler_Unit and adds it to relevant library units.
13089
13090 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
13091
13092         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
13093         a box need not correspond to any component.
13094
13095 2007-09-12  Robert Dewar  <dewar@adacore.com>
13096
13097         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
13098         the tasking version of the Ada run time when foreign threads are
13099         present and there are no explicit Ada tasks or tasking constructs.
13100
13101         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
13102
13103 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
13104
13105         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
13106         the usage of switch -y.
13107
13108         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
13109         when switch -y is present.
13110
13111         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
13112         leap seconds in Ada.Calendar and its children.
13113
13114 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
13115
13116         * a-extiti.ads (Timer): The discriminant is a "not null access
13117         constant" in the Reference Manual.
13118         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
13119
13120 2007-09-12  Robert Dewar  <dewar@adacore.com>
13121
13122         * a-swuwha.adb: Remove junk RM header
13123
13124 2007-09-12  Vincent Celier  <celier@adacore.com>
13125
13126         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
13127         indicator
13128
13129         * g-bytswa.ads: Minor reformatting
13130
13131 2007-09-12  Thomas Quinot  <quinot@adacore.com>
13132
13133         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
13134         Add new constant Thread_Blocking_IO, always True by default, set False
13135         on a per-runtime basis.
13136         (Need_Netdb_Buffer): New constant.
13137
13138 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
13139
13140         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
13141         Added renames for corresponding functions in System.Partition_Interface.
13142
13143 2007-09-12  Doug Rupp  <rupp@adacore.com>
13144
13145         * Makefile.in: Remove VMS specific System.CRTL packages which are no
13146         longer needed.
13147
13148         * s-crtl-vms64.ads: Removed.
13149
13150 2007-09-12  Olivier Hainque  <hainque@adacore.com>
13151
13152         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
13153         with discriminant constraints, generalize the code for BIT_FIELDs
13154         to PACKED fields of constant size and propagate DECL_PACKED.
13155
13156 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
13157
13158         * decl.c (array_type_has_nonaliased_component): New predicate.
13159         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
13160         set the TYPE_NONALIASED_COMPONENT flag on the type.
13161         <E_Array_Subtype>: Likewise.
13162         * gigi.h (type_for_nonaliased_component_p): Declare.
13163         * utils.c (type_for_nonaliased_component_p): New predicate.
13164         (create_field_decl): Invoke the above predicate to set the
13165         DECL_NONADDRESSABLE_P flag on the field.
13166
13167 2007-09-11  Javier Miranda  <miranda@adacore.com>
13168
13169         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
13170         in library level record type entities if we are generating statically
13171         allocated dispatch tables.
13172
13173         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
13174         importing/exporting the _tag declaration by new code
13175         importing/exporting the dispatch table wrapper. This change allows us
13176         to statically allocate of the TSD.
13177         (Make_DT.Export_DT): New procedure.
13178         (Build_Static_DT): New function.
13179         (Has_DT): New function.
13180
13181         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
13182         True_Constant and Current_Value. Required to statically
13183         allocate the dispatch tables.
13184         (Check_Allocator): Make function iterative instead of recursive.
13185         Also return inner allocator node, when present, so that we do not have
13186         to look for that node again in the caller.
13187
13188 2007-09-11  Jan Hubicka  <jh@suse.cz>
13189
13190         * misc.c (gnat_expand_body): Kill.
13191         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
13192
13193 2007-09-10  Robert Dewar  <dewar@adacore.com>
13194
13195         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
13196         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13197         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13198         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
13199         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
13200         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
13201         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
13202         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
13203         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
13204         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
13205         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
13206         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
13207         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
13208         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
13209         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
13210         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
13211         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
13212         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
13213         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
13214         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
13215         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
13216         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
13217         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
13218         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
13219         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
13220         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
13221         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
13222         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
13223         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
13224         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
13225         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
13226         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
13227         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
13228         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
13229         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
13230         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
13231         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
13232         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
13233         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
13234         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
13235         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
13236         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
13237         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
13238         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
13239         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
13240         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
13241         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
13242         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
13243         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
13244         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
13245         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
13246         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
13247         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
13248         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
13249         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
13250         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
13251         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
13252         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13253         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
13254         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
13255         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
13256         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13257         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
13258         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
13259         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
13260         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
13261         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
13262         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
13263         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
13264         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
13265         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
13266         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
13267         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
13268         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
13269         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
13270         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
13271         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
13272         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
13273         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
13274         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
13275         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
13276         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
13277         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
13278
13279 2007-09-10  Emmanuel Briot  <briot@adacore.com>
13280
13281         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
13282         classes ("[]").
13283
13284 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
13285
13286         * adaint.c (__gnat_translate_vms): new function.
13287
13288 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
13289             Thomas Quinot  <quinot@adacore.com>
13290
13291         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
13292         create an abstract subprogram in the case of 'Input. For 'Output we now
13293         create a real spec/body when the type is abstract, since it can
13294         potentially be called.
13295         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
13296         body for 'Output when the type is abstract (only the creation of the
13297         body for 'Input is excluded when the type is abstract).
13298         (Stream_Operation_OK): Add an additional condition in the return
13299         statement, so that False will be returned for TTS_Stream_Input if the
13300         associated tagged type is an abstract extension. Add comments for
13301         return statement.
13302         (Expand_N_Object_Declaration): For the case of a shared passive
13303         variable, insert init proc call only after the shared variable
13304         procedures have been processed, because the IP call needs to undergo
13305         shared passive variable reference expansion, which requires these
13306         procedures to be available (and elaborated).
13307
13308 2007-09-10  Vincent Celier  <celier@adacore.com>
13309
13310         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
13311         parameter Runtime_Project.
13312
13313 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
13314
13315         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
13316         given a box association, the type of the component is discriminated,
13317         and the value of the discriminant is the discriminant of the enclosing
13318         type, retrieve its value from the aggregate itself, where it must have
13319         been supplied.
13320
13321         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
13322         to remove other spurious ambiguities on arithmetic operations involving
13323         literals and addresses, on systems where Address is a visible integer
13324         type, when the operator is called in functional notation.
13325         (Try_Primitive_Operation): Within an instance, a call in prefixed form
13326         is legal when the types match, even if the operation is currently
13327         hidden.
13328
13329 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
13330
13331         * sem_ch12.adb (Build_Local_Package): A formal package with no
13332         associations is legal if all formals have defaults. It is not
13333         equivalent to a formal declared with a box.
13334
13335 2007-09-10  Sergey Rybin  <rybin@adacore.com>
13336
13337         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
13338
13339 2007-09-10  Sergey Rybin  <rybin@adacore.com>
13340
13341         * gnat_ugn.texi: Add description of the new '-lratio' option
13342         Update 7.3.1 section about availability of the feature.
13343
13344 2007-09-10  Thomas Quinot  <quinot@adacore.com>
13345
13346         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
13347         inserted node.
13348
13349 2007-09-10  Olivier Hainque  <hainque@adacore.com>
13350
13351         * Makefile.in: (mips-irix section): Activate build of libgmem.
13352
13353 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
13354
13355         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
13356         x87 registers.
13357
13358 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
13359
13360         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
13361         a debug renaming declaration specially.
13362
13363 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
13364
13365         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
13366         which a constant renaming is treated as a normal object declaration.
13367         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
13368         the N_Indexed_Component case.
13369         <N_Indexed_Component>: Fall through to above case.
13370         <N_Object_Renaming_Declaration>: Return true for all composite types.
13371
13372 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
13373
13374         * decl.c (make_packable_type): If the new type has been given BLKmode,
13375         try again to get an integral mode for it.
13376
13377 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
13378
13379         Re-apply accidentally reverted change:
13380
13381         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13382
13383         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13384         get_action_description_for): Replace _Unwind_Word with _uleb128_t
13385         and _Unwind_SWord with _sleb128_t.
13386
13387 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13388
13389         * trans.c (convert_with_check): Update call to real_2expN.
13390
13391 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
13392
13393         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
13394         * utils.c (end_subprog_body): Likewise.
13395
13396 2007-09-03  Nick Clifton  <nickc@redhat.com>
13397
13398         * Make-lang.in: Change copyright header to refer to version 3 of
13399         the GNU General Public License and to point readers at the
13400         COPYING3 file and the FSF's license web page.
13401         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
13402         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
13403         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
13404         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
13405         Likewise.
13406
13407 2007-08-31  Vincent Celier  <celier@adacore.com>
13408
13409         PR ada/4720
13410
13411         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
13412         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
13413         (Check_Version_And_Help): New procedure in package Switch to process
13414         switches --version and --help.
13415         Use Check_Version_And_Help in GNAT tools
13416
13417         * make.adb:  Ditto.
13418         (Compile_Sources): Make sure that sources that are "excluded" are not
13419         compiled.
13420         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
13421         project file is used.
13422         (Version_Switch): Remove, moved to Switch
13423         (Help_Switch): Remove, moved to Switch
13424         (Display_Version): Remove, moved to Switch
13425
13426         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
13427         package Switch to process switches --version and --help.
13428         (Display_Version): New procedure
13429
13430         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
13431
13432 2007-08-31  Javier Miranda  <miranda@adacore.com>
13433
13434         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
13435         internal tags.
13436
13437 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
13438
13439         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
13440         (Mark_Non_Null): If the node for which we just generated an access check
13441         is a reference to an *in* parameter and the reference appears in the
13442         declarative part of a subprogram body, mark the node as known non null.
13443
13444 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
13445
13446         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
13447         structure of E_Exception to reflect the new flag.
13448         (Is_Raised, Set_Is_Raised): New inlined routines.
13449         Update the usage of available flag to reflect the addition of Is_Raised.
13450         (Is_Raised, Set_Is_Raised): Bodies of new routines.
13451         (Write_Entity_Flags): Write the status of flag Is_Raised.
13452         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
13453         spurious ambiguities when integer literals appear in the context of an
13454         address type that is a visible integer type.
13455
13456         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
13457         exceptions never being raised.
13458         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
13459         explicitly raised.
13460
13461 2007-08-31  Javier Miranda  <miranda@adacore.com>
13462
13463         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
13464         statement when compiling under restriction No_Exceptions_Proparation.
13465
13466 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
13467
13468         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
13469         initialization aggregate for the type, generate itype references for
13470         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
13471
13472 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
13473
13474         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
13475         library-level package renaming, pass the declaration associated with
13476         the renaming's special debug variable to Qualify_Entity_Names to ensure
13477         that its encoded name is properly qualified.
13478
13479         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
13480         occurring in the list of entities to qualify, and do not attempt to
13481         traverse an entity list in that case. Variables associated with
13482 `       library-level package renamings can now occur in the table.
13483
13484         * exp_dbug.ads: Revise documentation of the encoding for renaming
13485         declarations.
13486
13487 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13488
13489         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
13490         access type points to an unconstrained array.
13491
13492 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
13493
13494         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
13495         conversion.
13496
13497         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
13498         simple redundant qualifications. The check is performed whenever the
13499         expression is a non-overloaded identifier.
13500         (Resolve_Type_Conversion): Enchance the redundant type conversion check
13501         to include loop parameters.
13502         (Valid_Conversion): Avoid generation of spurious error message.
13503
13504 2007-08-31  Bob Duff  <duff@adacore.com>
13505
13506         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
13507         concatenations of string literals into a single literal, in order to
13508         avoid very deep recursion in the front end, which was causing stack
13509         overflow.
13510
13511         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
13512         string, and the right operand is a string literal (the case of "" &
13513         "..."), optimize by avoiding copying the right operand -- just use the
13514         value of the right operand directly.
13515
13516         * stringt.adb (Store_String_Chars): Optimize by growing the
13517         String_Chars table all at once, rather than appending characters one by
13518         one.
13519         (Write_String_Table_Entry): If the string to be printed is very long,
13520         just print the first few characters, followed by the length. Otherwise,
13521         doing "pn(n)" in the debugger can take an extremely long time.
13522
13523         * sem_prag.adb (Process_Interface_Name): Replace loop doing
13524         Store_String_Char with Store_String_Chars.
13525
13526 2007-08-31  Vincent Celier  <celier@adacore.com>
13527
13528         * prj-attr.adb: Add new attribute Excluded_Source_Files
13529
13530         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
13531         Locally_Removed_Files.
13532
13533         * snames.ads, snames.adb: New standard name Excluded_Source_Files
13534
13535 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
13536
13537         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
13538         clauses of subunits, ignore limited_with_clauses that are illegal and
13539         have not been fully analyzed.
13540
13541 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
13542
13543         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
13544         flag, for effiency. It is called when analyzing arithmetic operators
13545         and also for actuals in calls that are universal_integers. The flag is
13546         set for the predefined type address, and for any type or subtype
13547         derived from it.
13548
13549         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
13550         Universal_Integer, when the formal is a descendent of address and the
13551         call appears in user code.
13552         (Analyze_Selected_Component): if the prefix is a private extension, the
13553         tag component is visible.
13554
13555         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
13556         entity flag.
13557
13558 2007-08-31  Robert Dewar  <dewar@adacore.com>
13559
13560         * s-fileio.adb (Open): Normalize file name to lower case in non-case
13561         sensitive file name systems to avoid unexpected mismatch in Vista.
13562
13563 2007-08-31  Vincent Celier  <celier@adacore.com>
13564
13565         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
13566
13567 2007-08-31  Vincent Celier  <celier@adacore.com>
13568
13569         * symbols-vms.adb (Initialize): Read symbol files with continuation
13570         lines
13571         (Finalize): If symbol is long, split the line
13572
13573 2007-08-31  Vincent Celier  <celier@adacore.com>
13574
13575         * fmap.ads: Minor comment updates
13576
13577 2007-08-31  GNAT Script  <nobody@adacore.com>
13578
13579         * Make-lang.in: Makefile automatically updated
13580
13581 2007-08-31  Bob Duff  <duff@adacore.com>
13582
13583         * sinfo.ads: Minor comment fix.
13584
13585 2007-08-31  Thomas Quinot  <quinot@adacore.com>
13586
13587         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
13588         with implementation.
13589         Documentation cleanup only.
13590
13591 2007-08-31  Sergey Rybin  <rybin@adacore.com>
13592
13593         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
13594         gnatpp '--separate-stmt-name' option.
13595         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
13596         option.
13597
13598         * gnat_ugn.texi: Add description for the new gnatpp
13599         '--separate-stmt-name' and '--use-on-new-line' options.
13600
13601 2007-08-31  Ben Elliston  <bje@au.ibm.com>
13602
13603         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
13604         when compiling for powerpc64-*-linux.
13605         * system-linux-ppc64.ads: New file.
13606
13607 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
13608
13609         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
13610         NetBSD.
13611
13612 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13613
13614         * misc.c (gnat_type_max_size): Constify.
13615
13616 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
13617
13618         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
13619         associated with Standard_Debug_Renaming_Type, to be used as the type of
13620         the special variables whose names provide debugger encodings for
13621         renaming declarations.
13622
13623         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
13624         (Set_Debug_Renaming_Link): Change to set Node25.
13625         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
13626         (Write_Field25_Name): Add case for E_Variable to output
13627         "Debug_Renaming_Link".
13628         (Write_Field23_Name): Correct the output string for "Limited_View".
13629
13630         * exp_dbug.adb: Add with and use of Tbuild.
13631         (Debug_Renaming_Declaration): Replace creation of an enumeration type
13632         and literal with creation of a variable of type
13633         Standard_Debug_Renaming_Type whose name encodes both the renamed object
13634         and the entity of the renaming declaration.
13635         (Qualify_Entity_Name): Add the delayed qualification of the entity name
13636         part of the name of a variable that has a Debug_Renaming_Link.
13637
13638         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
13639         special type to be associated with variables that provide debugger
13640         encodings for renaming declarations.
13641
13642 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
13643             Ed Schonberg  <schonberg@adacore.com>
13644             Javier Miranda  <miranda@adacore.com>
13645
13646         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
13647         ancestor part given by an aggregate to test for an unchecked conversion,
13648         since this can occur in some cases when the ancestor part is a function
13649         call, and we don't want to fall into the recursive call to this
13650         procedure in that case.
13651
13652         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
13653         stream attributes on limited types to account for user-specified
13654         attributes as well as whether Input (resp. Output) becomes available
13655         due to Read (resp. Write) being available for the type. Change Boolean
13656         variable to the more accurate name
13657         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
13658         double-"not" predicate at beginning of return statement to more
13659         understandable form.
13660
13661         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
13662         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
13663         in a block statement and use that as the first statement of the
13664         expanded return rather than incorrectly using the handled sequence as
13665         the first statement.
13666
13667         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
13668         operation, generate an explicit freeze node for it rather than
13669         generating extra formals, to ensure that gigi has the proper order of
13670         elaboration for anonymous subtypes in the signature of the subprograms.
13671         (Build_In_Place_Formal): Move assertion to beginning of loop.
13672         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
13673         applied to a function call (occurs for some cases of 'Input).
13674         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
13675         applied to a function call (occurs for some cases of 'Input).
13676
13677         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
13678         2005, generate an extended return statement enclosing the result object
13679         and 'Read call.
13680
13681         * freeze.adb (Freeze_Record_Type): Extend the current management of
13682         components that are access type with an allocator as default value: add
13683         missing support to the use of qualified expressions of the
13684         allocator (which also cause freezing of the designated type!)
13685         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
13686         dispatching operation, since extra formals may be needed by calls to
13687         build-in-place functions (such as stream 'Input).
13688
13689         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
13690         formals for 'Constrained and accessibility level in the case of a
13691         predefined dispatching operation.
13692
13693         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
13694         point, no need to find the parent node.
13695
13696 2007-08-16  Javier Miranda  <miranda@adacore.com>
13697
13698         * exp_attr.adb (Attribute_Priority): Add missing support for entries
13699         and entry barriers.
13700
13701 2007-08-16  Javier Miranda  <miranda@adacore.com>
13702
13703         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
13704         is not really required and can introduce regression with the debugger.
13705         The original problem is fixed with the patch written for checks.adb.
13706
13707 2007-08-16  Thomas Quinot  <quinot@adacore.com>
13708
13709         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
13710         Range_Check on Allocated_Table.
13711
13712 2007-08-16  Vincent Celier  <celier@adacore.com>
13713
13714         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
13715         Including_Non_Switch set to False.
13716         (Gnatmake): For the compiler, call Test_If_Relative_Path with
13717         Including_Non_Switch set to False.
13718
13719         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
13720         parameter Including_Non_Switch, defaulted to True. When
13721         Including_Non_Switch is False, options that are not switches and
13722         appear as relative path are not converted to absolute paths.
13723
13724 2007-08-16  Nicolas Roche  <roche@adacore.com>
13725
13726         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
13727         makefiles
13728
13729         * Make-lang.in: Update dependencies
13730
13731 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
13732
13733         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
13734         currently inspected is a selected component, retrieve the entity of
13735         its selector.
13736         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
13737         from the immediate ancestor of Main_Unit_Entity.
13738         (Install_Limited_Withed_Unit): Do not install the limited view of
13739         package P if P is reachable through an ancestor chain from package C
13740         and C also has a with clause for P in its body.
13741         (Has_Limited_With_Clause): New routine.
13742         (Has_With_Clause): New routine.
13743
13744 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
13745
13746         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
13747         generic for an enclosing instance is a global reference, even though
13748         its scope is the enclosing instance.
13749
13750 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
13751             Javier Miranda  <miranda@adacore.com>
13752
13753         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
13754         initialize a limited object.
13755         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
13756         13/2 and 14/2.
13757         Make sure Has_Complex_Representation is inherited by derived type.
13758
13759 2007-08-16  Robert Dewar  <dewar@adacore.com>
13760
13761         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
13762         exception case
13763
13764 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
13765
13766         * sem_disp.adb (Check_Dispatching_Operation): If the operation
13767         implements an operation inherited from a progenitor interface, verify
13768         that they are subtype-conformant.
13769
13770 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
13771             Bob Duff  <duff@adacore.com>
13772             Nicolas Setton  <setton@adacore.com>
13773
13774         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
13775         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
13776         the statement which is being resolved comes from a predefined library
13777         unit, all non-predefined library interpretations are skipped.
13778         (Resolve_Op_Concat): If string concatenation was folded in the parser,
13779         but the "&" is user defined, give an error, because the folding would
13780         be wrong.
13781
13782         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
13783         the parser has folded a long sequence of concatenations of string
13784         literals.
13785
13786         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
13787         and "JMP_BUF" variables as artificial.
13788         (N_String_Literal): Do not use alloca for very long string literals. Use
13789         xmalloc/free instead. Otherwise the stack might overflow.
13790
13791         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
13792         compiler.
13793
13794 2007-08-16  Vincent Celier  <celier@adacore.com>
13795
13796         * vms_conv.adb (Process_Argument): Ensure that project related options
13797         are not put in the -cargs section when using GNAT COMPILE.
13798
13799 2007-08-16  Robert Dewar  <dewar@adacore.com>
13800
13801         * gnat_ugn.texi: Add note on preprocessing (output file not written)
13802
13803 2007-08-16  Thomas Quinot  <quinot@adacore.com>
13804
13805         * a-tags.adb: Minor reformatting.
13806
13807 2007-08-16  Bob Duff  <duff@adacore.com>
13808
13809         * sem_type.ads, sem_ch4.adb: Minor reformatting.
13810
13811 2007-08-14  Thomas Quinot  <quinot@adacore.com>
13812
13813         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
13814         s-osinte-interix.ads, system-interix.ads: Removed.
13815
13816 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
13817
13818         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
13819         calls to Check_Within_Time_Bounds.
13820         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
13821         (Difference): Account for possible rounding of the resulting difference
13822
13823 2007-08-14  Robert Dewar  <dewar@adacore.com>
13824
13825         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
13826         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
13827         s-osinte-solaris.adb, s-osinte-solaris.ads,
13828         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
13829
13830         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
13831         switch -gnatyS. Enable -gnatyS in GNAT style check mode
13832
13833 2007-08-14  Robert Dewar  <dewar@adacore.com>
13834             Ed Schonberg  <schonberg@adacore.com>
13835
13836         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
13837         Suppress unmodified in-out parameter warning in some cases
13838         This patch is a also fairly significant change to the way suppressible
13839         checks are handled.
13840
13841         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
13842         needed for access to concurrent record types generated by the expander.
13843         (Generate_Range_Check): When generating a temporary to capture the
13844         value of a conversion that requires a range check, set the type of the
13845         temporary before rewriting the node, so that the type is always
13846         properly placed for back-end use.
13847         (Apply_Float_Conversion_Check): Handle case where the conversion is
13848         truncating.
13849         (Get_Discriminal): Code reformatting. Climb the scope stack looking
13850         for a protected type in order to examine its discriminants.
13851
13852 2007-08-14  Robert Dewar  <dewar@adacore.com>
13853             Gary Dismukes  <dismukes@adacore.com>
13854             Ed Schonberg  <schonberg@adacore.com>
13855             Thomas Quinot  <quinot@adacore.com>
13856
13857         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
13858         a-stwisu.adb, a-strsup.adb: Fix warnings for range
13859         tests optimized out.
13860
13861         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
13862         (Get_Allocator_Final_List): For the case of an anonymous access type
13863         that has a specified Associated_Final_Chain, do not go up to the
13864         enclosing scope.
13865         (Expand_N_Type_Conversion): Test for the case of renamings of access
13866         parameters when deciding whether to apply a run-time accessibility
13867         check.
13868         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
13869         aggregate code before allocator, and ahead of declaration for
13870         temporary, to prevent access before elaboration when the allocator is
13871         an actual for an access parameter.
13872         (Expand_N_Type_Conversion): On an access type conversion involving an
13873         access parameter, do not apply an accessibility check when the
13874         operand's original node was an attribute other than 'Access. We now
13875         create access conversions for the expansion of 'Unchecked_Access and
13876         'Unrestricted_Access in certain cases and clearly accessibility should
13877         not be checked for those.
13878
13879         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
13880         includes a type conversion of a packed component that has been expanded,
13881         recover the original expression for the object, and use this expression
13882         in the post-call assignment statement, so that the assignment is made
13883         to the object and not to a back-end temporary.
13884         (Freeze_Subprogram): In case of primitives of tagged types not defined
13885         at the library level force generation of code to register the primitive
13886         in the dispatch table. In addition some code reorganization has been
13887         done to leave the implementation clear.
13888         (Expand_Call): When expanding an inherited implicit conversion,
13889         preserve the type of the inherited function after the intrinsic
13890         operation has been expanded.
13891
13892         * exp_ch2.ads, exp_ch2.adb
13893         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
13894         of an entry formal appearing in an assignment statement does not assign
13895         to the formal.
13896         (Expand_Current_Value): Instead of calling a routine to determine
13897         whether the prefix of an attribute reference should be optimized or
13898         not, prevent the optimization of such prefixes all together.
13899
13900         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
13901         component whose prefix is known to be of an access type is an implicit
13902         dereference and does not assign to the prefix.
13903
13904 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
13905             Robert Dewar  <dewar@adacore.com>
13906
13907         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
13908         itype is visited, make an entry into table to link associated node and
13909         new itype.
13910         Add comments and correct harmless error in Build_NCT_Hash_Tables
13911         (Array_Aggr_Subtype): Associate each itype created for an index type to
13912         the corresponding range construct, and not to the aggregate itself. to
13913         maintain a one-to-one correspondence between itype and its associated
13914         node, to prevent errors when complex expression is copied.
13915         Fix mishandling of multiple levels of parens
13916
13917         * sem_aggr.adb: Create a limited view of an incomplete type, to make
13918         treatment of limited views uniform for all visible declarations in a
13919         limited_withed package.
13920         (New_Copy_Tree): If hash table is being used and itype is visited,
13921         make an entry into table to link associated node and new itype.
13922         (Resolve_Record_Aggregate): Do not add an others box association for a
13923         discriminated record component that has only discriminants, when there
13924         is a box association for the component itself.
13925
13926         * par-ch4.adb: Fix mishandling of multiple levels of parens
13927
13928 2007-08-14  Robert Dewar  <dewar@adacore.com>
13929
13930         * comperr.adb: Fix problem with suppressing warning messages from gigi
13931
13932         * erroutc.ads, erroutc.adb, errout.ads,
13933         errout.adb (Write_Eol): Remove trailing spaces before writing the line
13934         (Write_Eol_Keep_Blanks): New procedure to write a line, including
13935         possible trailing spaces.
13936         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
13937         Fix problem with suppressing warning messages from back end
13938         Improve handling of deleted warnings
13939
13940         * gnat1drv.adb:
13941         Fix problem with suppressing warning messages from back end
13942         Handle setting of Static_Dispatch_Tables flag.
13943
13944         * prepcomp.adb:
13945         Fix problem with suppressing warning messages from back end
13946
13947         * exp_intr.adb: Improve handling of deleted warnings
13948
13949 2007-08-14  Robert Dewar  <dewar@adacore.com>
13950
13951         * debug.adb: Improve -gnatdI to cover all cases of serialization
13952         Add documentation of dZ, d.t
13953
13954         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
13955         serialization.
13956         (Sprint_Node_Actual): Generate new output associated with implicit
13957         importation and implicit exportation of object declarations.
13958
13959 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
13960             Robert Dewar  <dewar@adacore.com>
13961             Javier Miranda  <miranda@adacore.com>
13962             Gary Dismukes  <dismukes@adacore.com>
13963
13964         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
13965         to make treatment of limited views uniform for all visible declarations
13966         in a limited_withed package.
13967         Improve warnings for in out parameters
13968         (Set_Related_Interaface/Related_Interface): Allow the use of this
13969         attribute with constants.
13970         (Write_Field26_Name): Handle attribute Related_Interface in constants.
13971         Warn on duplicate pragma Preelaborable_Initialialization
13972
13973         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
13974         generation of a freezing node to ensure proper management of null
13975         excluding access types in the backend.
13976         (Create_Extra_Formals): Test base type of the formal when checking for
13977         the need to add an extra accessibility-level formal. Pass the entity E
13978         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
13979         originally being done in a couple of cases), to ensure that the
13980         Extra_Formals list gets set on the entity E when the first entity is
13981         added.
13982         (Conforming_Types): Add missing calls to Base_Type to the code that
13983         handles anonymous access types. This is required to handle the
13984         general case because Process_Formals builds internal subtype entities
13985         to handle null-excluding access types.
13986         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13987         functions that need it, even when not marked Requires_Overriding.
13988         Improve warnings for in out parameters
13989         (Analyze_Function_Return): Warn for disallowed null return
13990         Warn on return from procedure with unset out parameter
13991         Ensure consistent use of # in error messages
13992         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
13993         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
13994         the implicit conversion of the expression done for anonymous access
13995         types. This is required to generate the code of the null excluding
13996         check (if required).
13997
13998         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
13999         A formal parameter is never publicly referenceable outside of its body.
14000         (Check_References): For an unreferenced formal parameter in an accept
14001         statement, use the same warning circuitry as for subprogram formal
14002         parameters.
14003         (Warn_On_Unreferenced_Entity): New subprogram, taken from
14004         Output_Unreferenced_Messages, containing the part of that routine that
14005         is now reused for entry formals as described above.
14006         (Goto_Spec_Entity): New function
14007         (Check_References): Do not give IN OUT warning for dispatching operation
14008         Improve warnings for in out parameters
14009         (Test_Ref): Check that the entity is not undefinite before calling
14010         Scope_Within, in order to avoid infinite loops.
14011         Warn on return from procedure with unset out parameter
14012         Improved warnings for unused variables
14013
14014 2007-08-14  Robert Dewar  <dewar@adacore.com>
14015             Javier Miranda  <miranda@adacore.com>
14016             Gary Dismukes  <dismukes@adacore.com>
14017
14018         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
14019         (Expand_N_Attribute_Reference): Further unify the handling of the
14020         three forms of access attributes, using common code now for all three
14021         cases. Add a test for the case of applying an access attribute to
14022         an explicit dereference when the context is an access-to-interface
14023         type. In that case we need to apply the conversion to the prefix
14024         of the explicit dereference rather than the prefix of the attribute.
14025         (Attribute_Version, UET_Address): Set entity as internal to ensure
14026         proper dg output of implicit importation.
14027         (Expand_Access_To_Type): Removed.
14028         (Expand_N_Attribute_Reference): Merge the code from the three cases
14029         of access attributes, since the processing is largely identical for
14030         these cases. The substantive fix here is to process the case of a
14031         type name prefix (current instance case) before handling the case
14032         of interface prefixes.
14033
14034 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14035             Ed Schonberg  <schonberg@adacore.com>
14036             Javier Miranda  <miranda@adacore.com>
14037             Robert Dewar  <dewar@adacore.com>
14038
14039         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
14040         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
14041         type that is an anonymous access to controlled object, establish
14042         an associated finalization chain to avoid corrupting the global
14043         finalization list when a dynamically allocated object designated
14044         by such a component is deallocated.
14045         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14046         functions that need it, even when not marked Requires_Overriding.
14047         (Initialize_Tag): Replace call to has_discriminants by call to
14048         Is_Variable_Size_Record in the circuitry that handles the
14049         initialization of secondary tags.
14050         (Is_Variable_Size_Record): New implementation.
14051         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
14052         Suppress_Initialization pragma for a derived type.
14053         (Is_Variable_Size_Record): New subprogram.
14054         (Build_Offset_To_Top_Functions): New implementation that simplifies the
14055         initial version of this routine and also fixes problems causing
14056         incomplete initialization of the table of interfaces.
14057         (Build_Init_Procedure): Improve the generation of code to initialize the
14058         the tag components of secondary dispatch tables.
14059         (Init_Secondary_Tags): New implementation that simplifies the previous
14060         version of this routine.
14061         (Make_DT): Add parameter to indicate when type has been frozen by an
14062         object declaration, for diagnostic purposes.
14063         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
14064         diagnose attemps to freeze a subprogram when some untagged type of its
14065         profile is a private type whose full view has not been analyzed yet.
14066         (Freeze_Array_Type): Generate init proc for packed array if either
14067         Initialize or Normalize_Scalars is set.
14068         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
14069         constructing the new profile, copy the null_exclusion indicator for each
14070         parameter, to ensure full conformance of the new body with the spec.
14071
14072         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
14073         Create wrappers for constructor functions that need it, even when not
14074         marked Requires_Overriding.
14075         (Covers): Handle properly designated types of anonymous access types,
14076         whose non-limited views are themselves incomplete types.
14077         (Add_Entry): Use an entity to store the abstract operation which hides
14078         an interpretation.
14079         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
14080         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
14081         initialization aggregate.
14082         (Function_Interp_May_Be_Hidden): Rename to
14083         Function_Interp_Has_Abstract_Op.
14084         (Has_Compatible_Type): Remove machinery that skips interpretations if
14085         they are labeled as potentially hidden by an abstract operator.
14086         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
14087         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
14088         (Write_Overloads): Output the abstract operator if present.
14089         (Add_Entry): Before inserting a new entry into the interpretation table
14090         for a node, determine whether the entry will be disabled by an abstract
14091         operator.
14092         (Binary_Op_Interp_May_Be_Hidden): New routine.
14093         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
14094         aggregate.
14095         (Function_Interp_May_Be_Hidden): New routine.
14096         (Has_Compatible_Type): Do not consider interpretations hidden by
14097         abstract operators when trying to determine whether two types are
14098         compatible.
14099         (Has_Hidden_Interp): New routine.
14100         (Set_May_Be_Hidden_Interp): New routine.
14101         (Write_Overloads): Write the status of flag May_Be_Hidden.
14102
14103 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14104             Javier Miranda  <miranda@adacore.com>
14105
14106         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
14107         types declared in the declarative part of a nested package body or in
14108         the proper body of a stub.
14109         (Set_All_DT_Position): Add missing check to avoid wrong assignation
14110         of the same dispatch table slot to renamed primitives.
14111         (Make_Select_Specific_Data_Table): Handle private types.
14112         (Tagged_Kind): Handle private types.
14113         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
14114         output of implicit importation and exportation.
14115         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
14116         first formal of the thunk is always associated with the controlling
14117         type. In addition perform the following code cleanup: remove formal
14118         Thunk_Alias which is no longer required, cleanup evaluation of the
14119         the controlling type, and update the documentation.
14120         Replace occurrence of Default_Prim_Op_Count by
14121         Max_Predef_Prims. Addition of compile-time check to verify
14122         that the value of Max_Predef_Prims is correct.
14123         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
14124         (Make_DT): Add parameter to indicate when type has been frozen by an
14125         object declaration, for diagnostic purposes.
14126         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
14127         construction of statically allocated dispatch tables.
14128         (Make_DT): In case of library-level tagged types export the declaration
14129         of the primary tag. Remove generation of tags (now done by Make_Tags).
14130         Additional modifications to handle non-static generation of dispatch
14131         tables. Take care of building tables for asynchronous interface types
14132         (Make_Tags): New subprogram that generates the entities associated with
14133         the primary and secondary tags of Typ and fills the contents of Access_
14134         Disp_Table. In case of library-level tagged types imports the forward
14135         declaration of the primary tag that will be declared later by Make_DT.
14136         (Expand_Interface_Conversion): In case of access types to interfaces
14137         replace an itype declaration by an explicit type declaration to avoid
14138         problems associated with the scope of such itype in transient blocks.
14139
14140 2007-08-14  Robert Dewar  <dewar@adacore.com>
14141             Ed Schonberg  <schonberg@adacore.com>
14142             Javier Miranda  <miranda@adacore.com>
14143
14144         * exp_util.ads, exp_util.adb:
14145         This patch replaces a number of occurrences of explicit tests for N_Null
14146         with calls to Known_Null. This improves tracking of null values, since
14147         Known_Null also catches null constants, and variables currently known to
14148         be null, so we get better tracking.
14149         (Ensure_Defined): create an itype reference only in the scope of the
14150         itype.
14151         (Side_Effect_Free): A selected component of an access type that
14152         denotes a component with a rep clause must be treated as not
14153         side-effect free, because if it is part of a linked structure its
14154         value may be affected by a renaming.
14155         (Expand_Subtype_From_Expr): For limited objects initialized with build
14156         in place function calls, do nothing; otherwise we prematurely introduce
14157         an N_Reference node in the expression initializing the object, which
14158         breaks the circuitry that detects and adds the additional arguments to
14159         the called function. Bug found working in the new patch for statically
14160         allocated dispatch tables.
14161         (Is_Library_Level_Tagged_Type): New subprogram.
14162         (Remove_Side_Effects): If the expression of an elementary type is an
14163         operator treat as a function call.
14164         (Make_Literal_Range): If the index type of the array is not integer, use
14165         attributes properly to compute the constraint on the resulting aggregate
14166         which is a string.
14167
14168         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
14169         class-wide type whose base type is an incomplete private type, leave
14170         class-wide type unfrozen so that freeze nodes can be generated
14171         properly at a later point.
14172         (Freeze_Entity, array case): Handle case of pragma Pack and component
14173         size attributre clause for same array.
14174
14175 2007-08-14  Vincent Celier  <celier@adacore.com>
14176
14177         * prj.ads, prj.adb: Update Project Manager to new attribute names for
14178         gprbuild.
14179         Allow all valid declarations in configuration project files
14180         (Reset): Initialize all tables and hash tables in the project tree data
14181         Major update of the Project Manager and of the project aware tools,
14182         including gprmake, so that the same sources in the GNAT repository
14183         can be used by gprbuild.
14184         (Slash_Id): Change type to be Path_Name_Type
14185         (Slash): Return a Path_Name_Type instead of a File_Name_Type
14186
14187         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
14188         gprbuild.
14189         Update Project Manager to new attribute names for ghprbuild
14190         Allow all valid declarations in configuration project files
14191         Major update of the Project Manager and of the project aware tools,
14192         including gprmake, so that the same sources in the GNAT repository
14193         can be used by gprbuild.
14194
14195         * prj-com.ads:
14196         Major update of the Project Manager and of the project aware tools,
14197         including gprmake, so that the same sources in the GNAT repository
14198         can be used by gprbuild.
14199
14200         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14201         insensitive flag for attributes with optional index.
14202         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14203         array attribute, put the index in lower case.
14204         Update Project Manager to new attribute names for ghprbuild
14205         Allow all valid declarations in configuration project files
14206         Major update of the Project Manager and of the project aware tools,
14207         including gprmake, so that the same sources in the GNAT repository
14208         can be used by gprbuild.
14209
14210         * prj-env.ads, prj-env.adb:
14211         Major update of the Project Manager and of the project aware tools,
14212         including gprmake, so that the same sources in the GNAT repository
14213         can be used by gprbuild.
14214         (Get_Reference): Change type of parameter Path to Path_Name_Type
14215
14216         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
14217         removing '-' from the path to start with the first character of the
14218         next directory.
14219         Major update of the Project Manager and of the project aware tools,
14220         including gprmake, so that the same sources in the GNAT repository
14221         can be used by gprbuild.
14222         Major update of the Project Manager and of the project aware tools,
14223         including gprmake, so that the same sources in the GNAT repository
14224         can be used by gprbuild.
14225
14226         * prj-nmsc.ads, prj-nmsc.adb:
14227         Update Project Manager to new attribute names for ghprbuild
14228         Allow all valid declarations in configuration project files
14229         (Search_Directories): Detect subunits that are specified with an
14230         attribute Body in package Naming. Do not replace a source/unit in the
14231         same project when the order of the source dirs are known. Detect
14232         duplicate sources/units in the same project when the order of the
14233         source dirs are not known.
14234         (Check_Ada_Name): Allow all identifiers that are not reserved words
14235         in Ada 95.
14236         Major update of the Project Manager and of the project aware tools,
14237         including gprmake, so that the same sources in the GNAT repository
14238         can be used by gprbuild.
14239         (Look_For_Sources): If the list of sources is empty, set the object
14240         directory of non extending project to nil.
14241         Change type of path name variables to be Path_Name_Type
14242         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
14243         otherwise creating missing directories will fail.
14244
14245         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
14246         prj-part.ads, prj-part.adb:
14247         Major update of the Project Manager and of the project aware tools,
14248         including gprmake, so that the same sources in the GNAT repository
14249         can be used by gprbuild.
14250
14251         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14252         insensitive flag for attributes with optional index.
14253         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14254         array attribute, put the index in lower case.
14255         (Parse_Variable_Reference): Allow the current project name to be used in
14256         the prefix of an attribute reference.
14257
14258         * prj-util.ads, prj-util.adb
14259         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
14260         defaulted to False. When True, always check against indexes in lower
14261         case.
14262
14263         * snames.ads, snames.h, snames.adb:
14264         Update Project Manager to new attribute names for gprbuild
14265         Allow all valid declarations in configuration project files
14266
14267 2007-08-14  Robert Dewar  <dewar@adacore.com>
14268             Ed Schonberg  <schonberg@adacore.com>
14269
14270         * opt.ads: Warning for non-local exception propagation now off by
14271         default
14272         New switch -gnatI to disable representation clauses
14273         Implement new pragma Implicit_Packing
14274
14275         * usage.adb:
14276         Warning for non-local exception propagation now off by default
14277         Add warning for unchecked conversion of pointers wi different
14278         conventions.
14279         New switch -gnatI to disable representation clauses
14280
14281         * usage.adb: new switch -gnatyS
14282
14283         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
14284         note that aggregates of anonymous array types are not flagged.
14285         -gnatwc now includes membership tests optimized away
14286         -gnatw.x warnings are now off by default
14287         Added conditional compilation Appendix
14288         Add documentation of -gnatI
14289         Add documentation for new -gnatyS style check
14290         Update documentation about SAL and auto-init on Windows.
14291
14292         * gnat_rm.texi:
14293         Add documentation for pragma Check_Name and 'Enabled attribute
14294         Document that Eliminate on dispatching operation is ignored
14295         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
14296         Document pragma Main
14297         Document pragma Implicit_Packing
14298
14299         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
14300         different conventions
14301         New switch -gnatI to disable representation clauses
14302
14303         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
14304         recognized, report the invalid characters including "-gnat" instead of
14305         just the first character in the switch.
14306         New switch -gnatI to disable representation clauses
14307         Set Warn_On_Object_Renames_Function true for -gnatg
14308
14309         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
14310         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
14311         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
14312         to switch -aP (add directory to project search dir).
14313
14314         * par-prag.adb: Implement new pragma Implicit_Packing
14315
14316         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
14317         type as having a non-standard representation, to force expansion on
14318         conversion to related types.
14319         (Analyze_Pragma): Warn on misspelled pragma
14320         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
14321         Ensure consistent use of # in error messages
14322         Implement pragma Implicit_Packing
14323
14324 2007-08-14  Olivier Hainque  <hainque@adacore.com>
14325             Eric Botcazou  <ebotcazou@adacore.com>
14326
14327         * targtyps.c (get_target_maximum_default_alignment): New function.
14328         Maximum alignment
14329         that the compiler might choose by default for a type or object.
14330         (get_target_default_allocator_alignment): New function. Alignment known
14331         to be honored by the target default allocator.
14332         (get_target_maximum_allowed_alignment): New function. Maximum alignment
14333         we might accept for any type or object on the target.
14334         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
14335
14336         * gigi.h (get_target_maximum_default_alignment): Declare new function.
14337         (get_target_default_allocator_alignment): Likewise.
14338         (get_target_maximum_allowed_alignment): Likewise.
14339
14340         PR ada/19037
14341         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
14342         result of a function call, first try to use a stabilized reference for
14343         a constant renaming too.
14344         (validate_alignment): Use target_maximum_allowed_alignment instead of
14345         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
14346         (gnat_to_gnu_entity): Use common nodes directly.
14347         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
14348         alignment and size for the object.
14349         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
14350         and N_Procedure_Call_Statement.
14351         (takes_address): Rename to lvalue_required_p, add third parameter
14352         'aliased' and adjust recursive calls.
14353         <N_Indexed_Component>: Update 'aliased' from the array type.
14354         <N_Selected_Component>: New case.
14355         <N_Object_Renaming_Declaration>: New Likewise.
14356         (Identifier_to_gnu): Adjust for above changes.
14357         (maybe_stabilize_reference) <CONST_DECL>: New case.
14358
14359         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
14360         between type variants.
14361         (build_simple_component_ref): Likewise.
14362         (build_call_alloc_dealloc): Use target_default_allocator_alignment
14363         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
14364         aligning type circuitry for allocations from the default storage pool.
14365         (build_allocator): Likewise.
14366         (build_simple_component_ref): Manually fold the reference for a
14367         constructor if the record type contains a template.
14368
14369         * utils.c (value_zerop): Delete.
14370         (gnat_init_decl_processing): Emit debug info for common types.
14371         (rest_of_record_type_compilation): If a union contains a field
14372         with a non-constant qualifier, treat it as variable-sized.
14373         (finish_record_type): Give the stub TYPE_DECL a name.
14374         (rest_of_record_type_compilation): Likewise.
14375         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
14376         types are equivalent array types.
14377         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
14378         even if the type is not passed by reference.
14379         (static_ctors, static_dtors): Delete.
14380         (end_subprog_body): Do not record constructors and destructors.
14381         (build_global_cdtor): Delete.
14382         (gnat_write_global_declarations): Do not call build_global_cdtor.
14383
14384         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
14385         -fRTS=rtp is specified.
14386         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
14387         specified.
14388
14389         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
14390         of the personality function with SJLJ exceptions.
14391
14392         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
14393         the name of the personality function with SJLJ exceptions.
14394
14395 2007-08-14  Robert Dewar  <dewar@adacore.com>
14396             Ed Schonberg  <schonberg@adacore.com>
14397
14398         * par.ads, par.adb: Improve handling of extra right parens.
14399         (Par): Remove flag From_Limited_With_Clause.
14400
14401         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
14402         Improve handling of extra right parens.
14403
14404 2007-08-14  Robert Dewar  <dewar@adacore.com>
14405
14406         * par-tchk.adb (TF_Semicolon): Improve error recovery
14407
14408 2007-08-14  Robert Dewar  <dewar@adacore.com>
14409             Ed Schonberg  <schonberg@adacore.com>
14410
14411         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
14412         enumeration type, mark all literals as referenced.
14413         (Eval_Attribute, case 'Image): If the argument is an enumeration
14414         literal and names are available, constant-fold but mark nevertheless as
14415         non-static.
14416         Clean up function names.
14417         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
14418         comment.
14419         (Requires_Simple_Name_Prefix): Removed.
14420
14421 2007-08-14  Robert Dewar  <dewar@adacore.com>
14422             Ed Schonberg  <schonberg@adacore.com>
14423
14424         * sem_ch11.adb: Improved warnings for unused variables
14425
14426         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
14427         is a synchronized interface, the derived type is limited.
14428         (Analyze_Object_Declaration): Mark the potential coextensions in the
14429         definition and expression of an object declaration node.
14430         (Build_Derived_Type): For the completion of a private type declaration
14431         with a derived type declaration, chain the parent type's representation
14432         items to the last representation item of the derived type (not the
14433         first one) if they are not present already.
14434         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
14435         object declaration of forward references to tags.
14436         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
14437         subprogram types can appear as access discriminants of synchronized
14438         types.
14439         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
14440         given in prefixed form as a selected component.
14441         (Process_Discriminants): If not all discriminants have defaults, place
14442         error message on a default that is present.
14443         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
14444         extend a synchronized tagged type.
14445         Improved warnings for unused variables
14446         (Is_Visible_Component): Fix a visibility hole on a component inherited
14447         by a private extension when parent is itself declared as a private
14448         extension, and the derivation is in a child unit.
14449         (Find_Hidden_Interface): Move spec from the package body.
14450
14451 2007-08-14  Robert Dewar  <dewar@adacore.com>
14452             Ed Schonberg  <schonberg@adacore.com>
14453
14454         * sem_ch5.adb: Improve warnings on redundant assignments
14455
14456         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
14457         parameter
14458         (Is_Synchronized_Tagged_Type): New subprogram that returns true
14459         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
14460         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
14461         is set to False. Improves handling of Known_[Not_]Null.
14462         (Wrong_Type): Special case address arithmetic attempt
14463         (Collect_Abstract_Interfaces): Add new formal to allow collecting
14464         abstract interfaces just using the partial view of private types.
14465         (Has_Abstract_Interfaces): Add new formal to allow checking types
14466         covering interfaces using the partial view of private types.
14467         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
14468         component still needs to be defined in this case, but is never
14469         initialized as VMs are using other dispatching mechanisms.
14470         (Abstract_Interface_List): For a protected type, use base type to get
14471         proper declaration.
14472         Improve warnings on redundant assignments
14473         (Is_Variable): Handle properly an implicit dereference of a prefixed
14474         function call.
14475         (Build_Actual_Subtype): If this is an actual subtype for an
14476         unconstrained formal parameter, use the sloc of the body for the new
14477         declaration, to prevent anomalises in the debugger.
14478
14479 2007-08-14  Robert Dewar  <dewar@adacore.com>
14480
14481         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
14482         dispatching operation
14483
14484 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14485             Gary Dismukes  <dismukes@adacore.com>
14486
14487         * exp_aggr.ads,
14488         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
14489         expanded aggregate code before allocator, and ahead of declaration for
14490         temporary, to prevent access before elaboration when the allocator is
14491         an actual for an access parameter.
14492         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
14493         the TSD and the table of interfaces.
14494         (Convert_To_Assignments): Augment the test for delaying aggregate
14495         expansion for limited return statements to include the case of extended
14496         returns, to prevent creation of an unwanted transient scope.
14497         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
14498         (Expand_Array_Aggregate): Handle aggregates associated with
14499         statically allocated dispatch tables.
14500         (Expand_Record_Aggregate): Handle aggregates associated with
14501         statically allocated dispatch tables.
14502         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
14503         of anonymous access type.
14504
14505 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14506
14507         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
14508         is a variable that renames a slice, use the variable itself in the
14509         expannsion when the renamed expression itself may be modified between
14510         the declaration of the renaming and the array assignment.
14511
14512 2007-08-14  Jerome Guitton  <guitton@adacore.com>
14513
14514         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
14515         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
14516         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
14517         New functions; dummy implementations.
14518
14519         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
14520         functions, used to implement the multi-tasks mode routines on VxWorks.
14521
14522         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
14523         New functions, thin
14524         binding to the VxWorks routines which have changed between VxWorks 5
14525         and 6.
14526         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
14527         which are not callable from a RTP.
14528
14529         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
14530         implemented for the multi-tasks mode on VxWorks 5 and 6.
14531
14532         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
14533
14534         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
14535         functions.
14536
14537 2007-08-14  Vincent Celier  <celier@adacore.com>
14538
14539         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
14540         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
14541         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
14542         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14543         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
14544         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
14545         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
14546         procedure.
14547         (Major_Id_Name): New function.
14548         mlib-tgt.ads/mlib.tgt.adb:
14549         (Library_Major_Minor_Id_Supported): New function, default returns True
14550         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
14551         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
14552         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
14553         Implementation of Library_Major_Minor_Id_Supported returns False
14554         clean.adb:
14555         (Clean_Library_Directory): If major/minor ids are supported, clean all
14556         library files.
14557         Major update of the Project Manager and of the project aware tools,
14558         including gprmake, so that the same sources in the GNAT repository
14559         can be used by gprbuild.
14560
14561 2007-08-14  Olivier Hainque  <hainque@adacore.com>
14562
14563         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
14564         (GCC_ZCX_Support): Switch to True.
14565
14566         * s-intman-solaris.adb (Notify_Exception): Call
14567         Adjust_Context_For_Raise before raising, as expected for signal
14568         handlers in general.
14569
14570         * s-intman-posix.adb (Notify_Exception): Remove declaration of
14571         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
14572         to other implementation bodies.
14573
14574         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
14575         be visible by multiple implementation bodies.
14576
14577         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
14578         only for conditions coming from hardware.
14579         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
14580         adjustments to signal context prior to exception raise from signal
14581         handler.
14582         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
14583         mode.
14584         Solaris section: (__gnat_adjust_context_for_raise): New function.
14585         Implementation of the machine context adjustments to perform prior to
14586         raise from a signal handler. Version for both sparc and x86.
14587         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
14588         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
14589         prior to raising as expected for any handler, before possible nested
14590         faults to make sure all the contexts in a chain have been adjusted by
14591         the time we propagate.
14592
14593 2007-08-14  Pascal Obry  <obry@adacore.com>
14594
14595         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
14596         (SYSTEM_INFO): New record.
14597         (SetThreadIdealProcessor): New imported routine needed for supporting
14598         task_info pragma on Windows.
14599
14600         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
14601         info can be applied to the current host.
14602         (Create_Task): Set the ideal processor if information is present.
14603
14604         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
14605         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
14606
14607 2007-08-14  Olivier Hainque  <hainque@adacore.com>
14608
14609         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
14610         stack size and initial stack pointer value for a given task.
14611         (Enter_Task): Get the stack attributes of the task we are entering and
14612         let the stack checking engine know about them.
14613
14614         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
14615         Let the stack-checking engine know about the initial sp value and stack
14616         size associated with the current task.
14617         (Set_Stack_Info): If a stack base has been notified for the current
14618         task, honor it. Fallback to the previous less accurate method otherwise.
14619
14620         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
14621
14622 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14623
14624         * sem_ch10.adb: Create a limited view of an incomplete type, to make
14625         treatment of limited views uniform for all visible declarations in a
14626         limited_withed package.
14627         Set flag indicating that a subprogram body for a child unit has a
14628         generated spec.
14629         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
14630         separate declaration, remove the unit name from visibility after
14631         compilation, so that environment is clean for subsequent compilations.
14632         (Install_Limited_Context_Clauses): Do not install a
14633         limited_private_with_clause unless the current unit is a body or a
14634         private child unit.
14635         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
14636         in the same fashion.
14637         (Install_Limited_Withed_Unit): Do not install a limited with clause if
14638         it applies to the declaration of the current package body.
14639         (Remove_Private_With_Clauses): If there is a regular with_clause for
14640         the unit, delete Private_With_Clause from context, to prevent improper
14641         hiding when processing subsequent nested packages and instantiations.
14642
14643 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
14644
14645         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
14646         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
14647         representing absolute path names.
14648         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
14649
14650         * cstreams.c (__gnat_full_name for VxWorks): Use
14651         __gnat_is_absolute_path to detect whether we need to add the current
14652         directory to normalize the path.
14653
14654 2007-08-14  Javier Miranda  <miranda@adacore.com>
14655
14656         * a-tags.ads,
14657         a-tags.adb (Displace): Associate a message with the raised CE
14658         exception.
14659         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
14660         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
14661         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
14662         spec.
14663         (Default_Prim_Op_Count): Removed.
14664         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
14665         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
14666         Remove pragma Inline_Always.
14667
14668         * rtsfind.ads (Default_Prim_Op_Count): Removed
14669         (Max_Predef_Prims): New entity
14670         (RE_Expanded_Name): Removed
14671         (RE_HT_Link): Removed
14672         (RE_Iface_Tag): Remmoved
14673         (RE_Ifaces_Table): Removed
14674         (RE_Interfaces_Array): Removed
14675         (RE_Interface_Data_Element): Removed
14676         (RE_Nb_Ifaces): Removed
14677         (RE_RC_Offset): Removed
14678         (RE_Static_Offset_To_Top): Removed
14679
14680         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
14681         formal.
14682         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
14683         Prim_Op_Count by Max_Predef_Prims.
14684
14685 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14686             Vincent Celier  <celier@adacore.com>
14687
14688         * binde.adb (Elab_All_Links): Remove unnecessary call to
14689         Generic_Separately_Compiled (if a unit satisfies this predicate, there
14690         won't be an associated Afile).
14691         (Elab_All_Links): Fail if a referenced unit cannot be found
14692
14693         * bindgen.adb:
14694         Fix comments in bindgen regarding consistency checks done in Bcheck:
14695         the checks are made across units within a partition, not across several
14696         partitions.
14697         Fix generation of C binder file for VxWorks.
14698
14699         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
14700         Generic_May_Lack_ALI, more descriptive of the current use of the
14701         predicate, and update documentation.
14702
14703         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
14704         reorganization and documentation update for the case of predefined
14705         library generics (for which we do not reference an Afile).
14706
14707 2007-08-14  Robert Dewar  <dewar@adacore.com>
14708
14709         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
14710         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
14711         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
14712         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
14713         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
14714         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
14715         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
14716         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
14717         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
14718         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
14719         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
14720         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
14721         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
14722         g-altcon.adb: Minor reformatting
14723
14724         ada-tree.h: Delete empty line.
14725
14726         ali.ads: Minor reformatting
14727         Clarification of comments.
14728         Minor spelling correction
14729
14730         * exp_dbug.adb: Add Warnings Off to suppress new warning
14731
14732         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14733         formal
14734
14735         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
14736         value
14737
14738         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
14739
14740         * a-textio.ads: Reorder the standard input/output/error declarations
14741         for consistency.
14742
14743         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
14744
14745         * par-ch2.adb: Recognize RM specially in errout
14746         Change 'R'M to RM in all error messages
14747
14748         * scng.adb: Recognize RM specially in errout
14749
14750         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
14751         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
14752
14753         * s-direio.adb: Add missing routine header box.
14754
14755         * sem_attr.ads: Add ??? comments
14756
14757         * sem_eval.adb: Recognize RM specially in errout
14758         Change 'R'M to RM in all error messages
14759
14760         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
14761
14762         * s-tasinf.ads: Fix minor comment typo.
14763
14764         * a-cihama.adb: Minor comment addition
14765
14766         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14767         formal
14768
14769         * s-tasinf-tru64.ads: Fix minor comment typo.
14770
14771         * itypes.ads: Comment update.
14772
14773         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
14774         anymore.
14775
14776         * argv.c: Added protection against null gnat_argv and gnat_envp.
14777
14778         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
14779         warning message when Tolerate_Consistency_Errors is True.
14780
14781         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
14782         Any_Id, as this subprogram is only applicable to *type* entities (it
14783         sets RM_Size). Instead initialize just Esize and Alignment.
14784
14785 2007-08-14  Bob Duff  <duff@adacore.com>
14786
14787         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
14788         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
14789         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
14790         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
14791         a-coorse.ads (Next): Applied pragma Inline.
14792         Make all Containers packages Remote_Types (unless they are already
14793         Pure).
14794         (Previous): applied pragma Inline
14795         (Elements_Type): is now a record instead of an array
14796
14797 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14798
14799         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
14800         of Set_Item.
14801         (Set_Item): When the new item is an element of the currently allocated
14802         table passed by reference, save a copy on the stack if we're going
14803         to reallocate. Also, in Table.Set_Item, make sure we test the proper
14804         variable to determine whether to call Set_Last.
14805
14806         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
14807         symbols-vms.adb, symbols-processing-vms-alpha.adb,
14808         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
14809         some occurrences of the pattern
14810            T.Increment_Last;
14811            T.Table (T.Last) := Value;
14812         with a cleaner call to
14813            T.Append (Value);
14814
14815 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14816             Gary Dismukes  <dismukes@adacore.com>
14817             Thomas Quinot  <quinot@adacore.com>
14818
14819         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
14820         derived type with interface progenitors use the analyzed formal as the
14821         parent of the actual, to create renamings for all the inherited
14822         operations in Derive_Subprograms.
14823         (Collect_Previous_Instances): new procedure within of
14824         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
14825         unit being loaded, to ensure that the generation of global symbols is
14826         consistent in different compilation modes.
14827         (Is_Tagged_Ancestor): New function testing the ancestor relation that
14828         takes progenitor types into account.
14829         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
14830         traversing over the primitives of the formal and actual types to locate
14831         any abstract subprograms of the actual type that correspond to a
14832         nonabstract subprogram of the formal type's ancestor type(s), and issue
14833         an error if such is found.
14834         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
14835         Instantiate_Package_Body, Instantiate_Subprogram_Body):
14836         Remove bogus guard around calls to Inherit_Context.
14837         (Reset_Entity): If the entity is the selector of a selected component
14838         that denotes a named number, propagate constant-folding to the generic
14839         template only if the named number is global to the generic unit.
14840         (Set_Instance_Env): Only reset the compilation switches when compiling
14841         a predefined or internal unit.
14842
14843 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14844
14845         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
14846         parameter to determine whether operation applies to the prefix.
14847         (Complete_Object_Operation): If actual has an access type and
14848         controlling formal is not an in_parameter, reject the actual if it is
14849         an access_to_constant type.
14850         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
14851         type, the candidate operations are found in the scope of declaration of
14852         the type, because the type has no primitive subprograms.
14853         (Analyze_Selected_Component): If prefix is class-wide, and root type is
14854         a private extension, only examine visible components before trying to
14855         analyze as a prefixed call.
14856         Change Entity_List to Type_To_Use, for better readability.
14857         (Has_Fixed_Op): Use base type when checking whether the type of an
14858         operator has a user-defined multiplication/division
14859         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
14860         user-defined operators are available for fixed-point types.
14861
14862 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14863             Ed Schonberg  <schonberg@adacore.com>
14864
14865         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
14866         formal At_Any_Place indicating, when True, that we want to test for
14867         availability of the stream attribute at any place (as opposed to the
14868         current visibility context only).
14869         (Missing_Read_Write_Attributes): A stream attribute is missing for the
14870         purpose of enforcing E.2.2(8) only if it is not available at any place.
14871         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
14872         when checking the legality of an extension aggregate in a preelaborable
14873         package. Treat the literal null as a valid default expression in a
14874         component declaration for a type with preelaborable initialization.
14875         A limited interface is a legal progenitor for the designated type of a
14876         remote access to class-wide type.
14877
14878 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14879             Ed Schonberg  <schonberg@adacore.com>
14880
14881         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
14882         reference): Use correct entity as denoted entity for the selector of
14883         the rewritten node.
14884         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
14885         setting the Referenced_As_LHS flag for entities that are implicitly
14886         dereferenced.
14887         (Find_Type): If the type is an internally generated incomplete type,
14888         mark the full view as referenced, to prevent spurious warnings.
14889         (Find_Selected_Component, Has_Components): Handle properly non-limited
14890         views that are themselves incomplete types.
14891         Handle interfaces visible through limited-with clauses.
14892         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
14893         subprogram generic actual for which we have generated a renaming.
14894         Warn when the renaming introduces a homonym of
14895         the renamed entity, and the renamed entity is directly visible.
14896
14897 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14898             Hristian Kirtchev  <kirtchev@adacore.com>
14899
14900         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
14901         appear in the subtree to the current allocator if it is not a static
14902         coextension.
14903         (Resolve_Allocator): Perform cleanup if resolution has determined that
14904         the allocator is not a coextension.
14905         (Resolve): Skip an interpretation hidden by an abstract operator only
14906         when the type of the interpretation matches that of the context.
14907         (Resolve): When looping through all possible interpretations of a node,
14908         do not consider those that are hidden by abstract operators.
14909         (Resolve_Actuals): When verifying that an access to class-wide object
14910         is an actual  for a controlling formal, ignore anonymous access to
14911         subprograms whose return type is an access to class_wide type.
14912         (Resolve_Slice): If the prefix of the slice is a selected component
14913         whose type depends on discriminants, build its actual subtype before
14914         applying range checks on the bounds of the slice.
14915         (Valid_Conversion): In an instance or inlined body, compare root types,
14916         to prevent anomalies between private and public views.
14917         (Resolve): Improve error message for ambiguous fixed multiplication
14918         expressions that involve universal_fixed multiplying operations.
14919
14920 2007-08-14  Javier Miranda  <miranda@adacore.com>
14921             Hristian Kirtchev  <kirtchev@adacore.com>
14922
14923         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
14924         location to allow the correct generation of errors in case of
14925         restrictions applied to the expanded code.
14926         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
14927         function if the condition does not reference them.
14928         (Expand_Entry_Body_Declarations): Mark the index constant as having a
14929         valid value.
14930
14931 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14932             Pablo Oliveira  <oliveira@adacore.com>
14933
14934         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
14935         typecode parameters for a union (in a variant record), remove
14936         extraneous layer of Any wrapping for member label.
14937         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
14938         elabration statements, register the package with the name server
14939         at the beginning, not at the end, of the elaboration statements so
14940         that they can create remote access to subprogram values that designate
14941         remote subprograms from the package.
14942
14943 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
14944
14945         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
14946         values to compute the number of seconds since the Unix Epoc in order to
14947         account for Daylight Savings Time. Perform special processing for dates
14948         that are earlier than the Unix Epoc to obtain a negative number.
14949
14950 2007-08-14  Emmanuel Briot  <briot@adacore.com>
14951
14952         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
14953         switches.
14954
14955 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
14956
14957         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
14958         binder-generated file is not in Ada.
14959         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
14960         recorded in the ALI file.
14961         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
14962
14963 2007-08-14  Vincent Celier  <celier@adacore.com>
14964
14965         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
14966         (Output_Source): Do nothing if parameter is No_Sdep_Id
14967
14968         * make.adb (Gnatmake): Do not rebuild an archive simply because a
14969         shared library it imports has a later time stamp.
14970         (Check): Resolve the symbolic links in the path name of the object
14971         directory.
14972         Check that the ALI file is in the correct object directory
14973         Check if a file name does not correspond to the mapping of units
14974         to file names.
14975         (Display_Version): New procedure
14976         (Initialize): Process switches --version and --help
14977         Use type Path_Name_Type for path name
14978
14979 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
14980
14981         * impunit.adb: Re-organize System.Random_Numbers and
14982         GNAT.Random_Numbers and add to builds.
14983
14984         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
14985
14986         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
14987
14988         * a-assert.ads, a-assert.adb: New files.
14989
14990 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
14991
14992         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
14993         if AAMP_On_Target is True, then the size of the type encompasses two
14994         addresses (a static link and a subprogram address), except in the case
14995         of library-level access types.
14996
14997 2007-08-14  Vincent Celier  <celier@adacore.com>
14998
14999         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
15000         writing the line.
15001         (Write_Eol_Keep_Blanks): New procedure to write a line, including
15002         possible trailing spaces.
15003         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
15004
15005 2007-08-14  Javier Miranda  <miranda@adacore.com>
15006
15007         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
15008         null-excluding access types.
15009
15010 2007-08-14  Javier Miranda  <miranda@adacore.com>
15011
15012         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
15013         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
15014         of private types add missing check on matching interfaces in the
15015         partial and full declarations.
15016         (Analyze_Protected_Type): Code cleanup.
15017         (Analyze_Task_Type): Code cleanup.
15018
15019 2007-08-14  Javier Miranda  <miranda@adacore.com>
15020
15021         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
15022         generated interface thunk.
15023
15024 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
15025
15026         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
15027         obsolescent warning on application of 'Class to an incomplete type.
15028
15029         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
15030         prevent obsolescent warning on application of 'Class to an incomplete
15031         type.
15032
15033 2007-08-14  Pascal Obry  <obry@adacore.com>
15034
15035         * s-fileio.adb (Is_Open): Add check for usability of the underlying
15036         file stream.
15037
15038 2007-08-14  Cyrille Comar  <comar@adacore.com>
15039
15040         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
15041         since it is potentially used in cases implying double finalization of
15042         the same object.
15043
15044 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
15045
15046         * s-tasini.adb (Get_Stack_Info): Move this function to
15047         System.Soft_Links.Tasking because it is common to the full and the
15048         restricted run times.
15049         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
15050         in SSL.Tasking.Init_Tasking_Soft_Links.
15051
15052         * s-solita.adb (Get_Stack_Info): Function moved from
15053         System.Tasking.Initialization because it is common to the full and the
15054         restricted run times.
15055         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
15056
15057 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
15058
15059         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
15060         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
15061         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
15062         parameter.
15063
15064         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
15065         guard to 12K.
15066
15067 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
15068
15069         * s-veboop.adb (SU): New named number initialized to
15070         System.Storage_Unit.
15071         (True_Val): The initialization expression is revised to use SU (=
15072         Storage_Unit) rather than assuming 8 for the component size of an
15073         unpacked Boolean array.
15074
15075 2007-08-14  Tristan Gingold  <gingold@adacore.com>
15076
15077         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
15078
15079         * tb-ivms.c: New file.
15080
15081         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
15082
15083 2007-08-14  Geert Bosch  <bosch@adacore.com>
15084
15085         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
15086         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
15087         Add required linker pragmas for automatically linking with the gnalasup
15088         linear algebra support library, and the systems math library.
15089         Rename cdot to cdotu and zdot to zdotu.
15090         Update header comment to describe purpose of package.
15091
15092 2007-08-14  Thomas Quinot  <quinot@adacore.com>
15093
15094         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
15095         an explicitly specified Associated_Final_Chain, use that list.
15096         (Expand_N_Package_Body): Build dispatch tables of library level tagged
15097         types.
15098         (Expand_N_Package_Declaration): Build dispatch tables of library level
15099         tagged types. Minor code cleanup.
15100
15101 2007-08-14  Vincent Celier  <celier@adacore.com>
15102
15103         * gnatchop.adb (Terminate_Program): Remove exception and use
15104         Types.Terminate_Program instead.
15105
15106         * osint.ads, osint.adb (Current_Exit_Status): New global variable
15107         (Find_Program_Name): Added protection against empty name.
15108         (OS_Exit_Through_Exception): New procedure
15109
15110         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
15111         (OS_Exit_Default): New procedure that contains the previous
15112         implementation of procedure OS_Exit.
15113         (Final_Value): Remove obsolete Interix stuff.
15114
15115 2007-08-14  Thomas Quinot  <quinot@adacore.com>
15116
15117         * g-socket.ads: Reorganize example code so that it also works on
15118         Windows XP.
15119
15120 2007-08-14  Tristan Gingold  <gingold@adacore.com>
15121
15122         * g-trasym.ads: AIX now supports symbolic backtraces.
15123
15124 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
15125
15126         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
15127         units being loaded to detect circularities. A circularity may be
15128         present even if the current chain of pending units to load starts from
15129         a limited_with_clause.
15130
15131         * lib-load.ads: Change profile of Load_Unit to use a with_clause
15132         rather than a boolean flag, in order to detect circularities in
15133         with_clauses.
15134
15135         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
15136         than propagating the From_Limited_With flag, in order to handle
15137         properly circularities involving with_clauses.
15138
15139 2007-08-14  Nicolas Setton  <setton@adacore.com>
15140
15141         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
15142         warnings.
15143
15144 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
15145
15146         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
15147         to build for libgnala.
15148         libgnat: Add rules to build libgnala.a
15149         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
15150         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
15151         Add s-osinte-vxworks-kernel.adb to the target pairs of the
15152         kernel run-time lib for VxWorks 6, which would provide a different
15153         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
15154         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
15155         running ZCX by default.
15156         Add g-sttsne-locking to LynxOS version.
15157         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
15158         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
15159
15160         * system-darwin-x86.ads: New file.
15161
15162         * Make-lang.in: Delete files before copying onto them, so if they are
15163         read-only, the copy won't fail.
15164         Update dependencies
15165
15166 2007-08-14  Pascal Obry  <obry@adacore.com>
15167
15168         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
15169         naming scheme.
15170
15171 2007-08-14  Vincent Celier  <celier@adacore.com>
15172
15173         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
15174         (Gcc): Initialize Gcc_Name at the first call
15175
15176 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
15177
15178         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
15179         with_clauses of the enclosing unit when analyzing the package
15180         specification of a nested instance.
15181
15182 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
15183
15184         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
15185         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
15186         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
15187         layout of N_Allocator.
15188
15189 2007-08-14  Thomas Quinot  <quinot@adacore.com>
15190
15191         * rtsfind.adb (Check_RPC): Add PCS version check.
15192
15193         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
15194         (Gnat_Free_Software): New function.
15195
15196         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
15197         the PCS_Version value from s-parint, used to check that it is consistent
15198         with what exp_dist expects.
15199
15200         * s-parint.ads (PCS_Version): New entity for checking consistency
15201         between exp_dist and PCS.
15202
15203         * gen-soccon.c: (SO_REUSEPORT): New constant.
15204
15205 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
15206
15207         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
15208         variable Sub_Second to Duration in order to accomodate a larger range
15209         of arithmetic operations.
15210
15211 2007-08-14  Bob Duff  <duff@adacore.com>
15212
15213         * g-sttsne-locking.ads: Move comments from spec to body.
15214         * g-sttsne-locking.adb: Move comments from spec to body.
15215         * g-sttsne-vxworks.ads: Removed.
15216         * g-sttsne-vxworks.adb: Removed.
15217
15218 2007-08-11  Ian Lance Taylor  <iant@google.com>
15219
15220         * misc.c (gnat_get_alias_set): Change return type to
15221         alias_set_type.
15222
15223 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15224
15225         * decl.c, utils2.c: Fix whitespace in last change.
15226
15227 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15228
15229         * decl.c (compare_field_bitpos): Constify.
15230         * utils2.c (compare_elmt_bitpos): Likewise.
15231
15232 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
15233
15234         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
15235         anonymous access type.
15236         (pthread_sigmask): Now take an access sigset_t.
15237
15238 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
15239
15240         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
15241
15242 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
15243
15244         PR tree-optimization/25737
15245         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
15246
15247 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15248
15249         * trans.c (Attribute_to_gnu): When subtracting an
15250         offset from a pointer, use POINTER_PLUS_EXPR with
15251         NEGATE_EXPR instead of MINUS_EXPR.
15252         (gnat_to_gnu): Likewise.
15253         * utils.c (convert): When converting between
15254         thin pointers, use POINTER_PLUS_EXPR and sizetype
15255         for the offset.
15256         * utils2.c (known_alignment): POINTER_PLUS_EXPR
15257         have the same semantics as PLUS_EXPR for alignment.
15258         (build_binary_op): Add support for the semantics of
15259         POINTER_PLUS_EXPR's operands.
15260         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
15261
15262 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
15263
15264         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
15265         of get_signed_or_unsigned_type.
15266         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
15267
15268 2007-06-11  Bob Duff  <duff@adacore.com>
15269             Thomas Quinot  <quinot@adacore.com>
15270
15271         * g-stsifd-sockets.adb (Create): Work around strange behavior of
15272         'bind' on windows that causes 'connect' to fail intermittently, by
15273         retrying the 'bind'.
15274         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15275
15276 2007-06-10  Duncan Sands  <baldrick@free.fr>
15277
15278         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
15279         than to void, for the fields when making a new fat pointer type.
15280         (gnat_substitute_in_type): Now substitute_in_type.
15281         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
15282         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
15283         * utils.c (update_pointer_to): Update fat pointers by updating the
15284         dummy node pointers used for the fields.
15285
15286 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15287             Bob Duff  <duff@adacore.com>
15288
15289         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
15290         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
15291         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
15292         constant Thread_Blocking_IO, always True by default, set False
15293         on a per-runtime basis.
15294         (Need_Netdb_Buffer): New constant.
15295
15296         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
15297         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
15298         files.
15299
15300         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
15301         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
15302         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
15303         child package Task_Safe_NetDB
15304         (Host_Error_Messages): Add stub body.
15305         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15306
15307         * g-soccon-mingw.ads: Add Windows-specific constants.
15308         (Need_Netdb_Buffer): New constant.
15309         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
15310         wrapper and import inet_addr(3) from the standard sockets library
15311         directly instead.
15312         (In_Addr): Add alignment clause.
15313         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15314
15315 2007-06-06  Robert Dewar  <dewar@adacore.com>
15316
15317         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15318         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
15319         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
15320         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
15321         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
15322         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
15323         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
15324         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
15325         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
15326         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
15327         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
15328         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
15329         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
15330         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15331         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
15332         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
15333         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
15334         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
15335         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
15336         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
15337         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
15338         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
15339         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
15340         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
15341         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
15342         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
15343         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
15344         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
15345         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
15346         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
15347         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
15348         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
15349         Unchecked_* by Ada.Unchecked_*
15350
15351 2007-06-06  Robert Dewar  <dewar@adacore.com>
15352
15353         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
15354         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
15355         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
15356         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
15357         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15358         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
15359
15360         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
15361         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
15362         s-tasloc.adb, s-tasloc.ads: New files.
15363
15364 2007-06-06  Bob Duff  <duff@adacore.com>
15365
15366         * g-expect-vms.adb:
15367         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
15368         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
15369         (Send_Signal, Close): Raise Invalid_Process if the process id is
15370         invalid.
15371         (Pattern_Matcher_Access): Is now a general access type to be able to
15372         use aliased string.
15373
15374 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15375             Arnaud Charlet  <charlet@adacore.com>
15376
15377         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
15378         (SIGEMT is now used instead of SIGTERM on AIX).
15379
15380         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
15381         (Time_Slice_Supported): Set to True.
15382         Use SIGEMT instead of SIGTERM as SIGADAABORT.
15383
15384 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
15385
15386         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
15387         (Time, Time)): Use To_Relative_Time rather than manual calculation to
15388         express the bounds of Duration as Time. Raise Time_Error when the
15389         result is greater or equal to the higher bound of Duration (on the
15390         margin case).
15391         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
15392         Ada_High_And_Leaps.
15393         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
15394         Ada_High_And_Leaps.
15395         ("-" (Time, Time)): Reorder code.
15396         (All_Leap_Seconds): Removed.
15397         (Arithmetic_Operations.Add): Remove sign related kludge.
15398         (Arithmetic_Operations.Difference): Control the leaps seconds processing
15399         with flag Leap_Support.
15400         (Arithmetic_Operations.Subtract): Remove sign related kludge.
15401         (Check_Within_Time_Bounds): New procedure.
15402         (Clock): Control the leap seconds processing with flag Leap_Support.
15403         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
15404         (Formatting_Operations.Split): Control the leap seconds processing with
15405         flag Leap_Support.
15406         (Formatting_Operations.Time_Of): Control the leaps seconds processing
15407         with flag Leap_Support. Adjust the year, month and day (if applicable)
15408         when the value of day seconds designates a new day.
15409         (Split): Use parameter associations for better readability. Integrate
15410         flag Is_Ada_05.
15411         (Time_Of): Use parameter associations for better readability. Integrate
15412         flag Is_Ada_05.
15413
15414         * a-calfor.adb (Split): Use parameter associations for better
15415         readability. Integrate flag Is_Ada_05.
15416         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
15417         better readability. Integrate flag Is_Ada_05.
15418
15419 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15420
15421         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
15422         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
15423         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
15424         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
15425         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
15426         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
15427         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
15428         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
15429         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
15430         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
15431         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
15432         time when entering this routine to detect a backward clock setting
15433         (manual setting or DST adjustment), to avoid waiting for a longer delay
15434         than needed.
15435         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
15436         Remove handling of deferred priority change, and replace by setting the
15437         task priority directly, as required by AI-188.
15438         Update comments.
15439         (Max_Task_Image_Length): New constant.
15440         Replace Warnings (Off) by Unreferenced pragma, cleaner.
15441         (Dynamic_Priority_Support): Removed, no longer needed.
15442         (Poll_Base_Priority_Change): Ditto.
15443         (Set_Ceiling): Add this procedure to change the ceiling priority
15444         associated to a lock. This is a dummy implementation because dynamic
15445         priority ceilings are not supported by the underlying system.
15446
15447         * a-dynpri.adb (Set_Priority): Take into account case where Target is
15448         accepting a RV with its priority boosted.
15449         Remove handling of deferred priority change, and replace by setting the
15450         task priority directly, as required by AI-188.
15451
15452         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
15453         Succeeded = True.
15454         Remove handling of deferred priority change, and replace by setting the
15455         task priority directly, as required by AI-188.
15456         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
15457         of Self_Id earlier.
15458
15459         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
15460         (Poll_Base_Priority_Change): Removed.
15461         Code clean up: use SSL.Current_Target_Exception.
15462
15463         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
15464         to run as this is a potentially dispatching point.
15465         (Call_Synchronous): Use Local_Defer_Abort.
15466         (Callable): Relax assertion.
15467         (Selective_Wait): Relax assertion in case abort is not allowed.
15468         Remove handling of deferred priority change, and replace by setting the
15469         task priority directly, as required by AI-188.
15470
15471         * s-tasuti.adb (Make_Passive): Adjust assertions.
15472         Remove handling of deferred priority change, and replace by setting the
15473         task priority directly, as required by AI-188.
15474
15475 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15476
15477         * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15478         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15479         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
15480         system-vxworks-mips.ads, system-vxworks-alpha.ads,
15481         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
15482         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
15483         system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
15484         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
15485         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
15486         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
15487         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
15488         This patch changes the largest non-binary modulus from 2**31-1 to
15489         2**32-1.
15490         (Compiler_System_Version): Removed, no longer used.
15491         Clean up system files by removing flags only used on a single target.
15492         Also remove obsolete flags, only used during bootstrap from system.ads
15493         (Address): Add a pragma Preelaborable_Initialization.
15494
15495         * system-aix.ads:  Ditto.
15496         (GCC_ZCX_Support): Set to true.
15497         Update priority range on AIX and map Ada priorities to target
15498         priorities appropriately for different scheduling policies.
15499
15500         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
15501
15502 2007-06-06  Vincent Celier  <celier@adacore.com>
15503
15504         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
15505         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
15506
15507         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
15508         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
15509         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
15510         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15511         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
15512         MLib.Tgt, containing the default versions of the exported subprograms.
15513         For each platform, create a specific version of the body of new child
15514         package MLib.Tgt.Specific that contains only the body of subprograms
15515         that are different from the default.
15516         (Archive_Builder_Append_Options): New function.
15517
15518 2007-06-06  Matthew Gingell  <gingell@adacore.com>
15519
15520         * s-osinte-aix.adb: Map Ada priorities to target priorities
15521         appropriately for different scheduling policies.
15522
15523 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15524
15525         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
15526         its C counterpart.
15527         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
15528         Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
15529
15530 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
15531
15532         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
15533         Noop on VMS, added for interface commonality.
15534
15535 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15536             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15537             Olivier Hainque  <hainque@adacore.com>
15538
15539         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
15540         renamed expression of a full renaming at toplevel.
15541         (gnat_to_gnu_entity, case object): If not defining, do not look inside
15542         the values the constant is initialized to if it is an N_Allocator.
15543         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
15544         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
15545         (make_aligning_type): Accept an extra ROOM argument for storage to be
15546         made available before the aligned field, and an extra BASE_ALIGN
15547         argument for callers to pass the alignment guaranteed to be honored for
15548         the whole aligning object. Avoid call to finish_record_type, which only
15549         interferes with the sizes we want to set.
15550         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
15551         make_aligning_type for super-aligned objects on stack.
15552         (components_to_record): Pass the adjusted size of the type when creating
15553         fields in the qualified union for the variant part.
15554         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
15555         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
15556         packed array type.
15557         (maybe_pad_type): Set TYPE_USER_ALIGN.
15558         (make_aligning_type): Likewise.
15559         ALIGN argument is unsigned int.
15560         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
15561         (gnat_to_gnu_param): Likewise, for parameters.
15562         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
15563         if it is constant and stems from a function call.
15564         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
15565         of the record is specified.  Adjust accordingly.
15566         (adjust_packed): New static function.
15567         (gnat_to_gnu_field): Use it to adjust the packedness setting.
15568         (components_to_record): Likewise.
15569         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
15570         side-effects if the object is deemed constant.
15571         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
15572         type instead of merely finalizing it.  Tidy.
15573         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
15574         <E_Access_Type>: Likewise.
15575         (defer_debug_incomplete_list): Rename to defer_finalize_list.
15576         (defer_debug_level): Delete.
15577         (gnat_to_gnu_entity) <debug_deferred>: Likewise
15578         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
15579         type.
15580         <E_Record_Type>: Do not explicitly defer finalizing the type.
15581         Adjust for write_record_type_debug_info renaming.
15582         <E_Subprogram_Type>: Likewise.
15583         Finalize deferred types right after deferred incomplete types are
15584         expanded.
15585         (rest_of_type_decl_compilation): New global function.
15586         (components_to_record): Rename defer_debug parameter to do_not_finalize.
15587         (components_to_record): Propagate the packedness to the fields of the
15588         qualified union type if there is a variant part.
15589         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
15590         instead of inline code to adjust the XUT field offsets.
15591         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
15592         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
15593         and write the debug info if the type derives from a discriminated one.
15594         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
15595         <E_Array_Subtype>: Likewise.
15596         <E_String_Literal_Subtype>: Likewise.
15597         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
15598         an alignment clause.
15599         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
15600         before giving warning.
15601         (prepend_one_attribute_to): New function, helper to prepend an attribute
15602         to an attribute list.
15603         (gnat_to_gnu_entity) <E_Procedure>: Use it.
15604         (prepend_attributes): Likewise.
15605         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
15606         <E_Array_Type>: Declare the padding type for the element type, if any.
15607         <E_Array_Subtype>: Likewise.
15608         (defer_limited_with): New variable.
15609         (Gigi_Equivalent_Type): New function.
15610         (gnat_to_gnu_entity): Use it at start and use result throughout.
15611         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
15612         Gigi_Equivalent_Type, support Limited_With, allow two levels of
15613         indirection, precompute if unconstrained array to simplify logic, and
15614         use defer_limited_with to defer elaboration of some types from limited
15615         with.
15616         (finalize_from_with_types): New function.
15617
15618 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
15619             Eric Botcazou  <ebotcazou@adacore.com>
15620             Tristan Gingold  <gingold@adacore.com>
15621             Olivier Hainque  <hainque@adacore.com>
15622
15623         * trans.c (Identifier_to_gnu): Change test for deferred constant by
15624         adding guard that the entity is an E_Constant before testing presence
15625         of Full_view (and remove unnecessary test that entity is not a type).
15626         For a CONST_DECL used by reference, manually retrieve
15627         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
15628         (struct language_function): Move from utils.c to here.
15629         (struct parm_attr): New structure.
15630         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
15631         (f_parm_attr_cache): New macro.
15632         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
15633         expressions for the 'First, 'Last and 'Length attributes of the
15634         unconstrained array IN parameters.
15635         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
15636         Allocate the information structure for the function earlier, as well
15637         as the language-specific part.
15638         If the parameter attributes cache has been populated, evaluate the
15639         cached expressions on entry.
15640         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
15641         N_Procedure_Call_Statement and N_Indexed_Component.
15642         (Pragma_to_gnu): Translate inspection_point to an asm statement
15643         containaing a comment and a reference to the object (either its address
15644         for BLKmode or its value).
15645         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
15646         to go to DECL_INITIAL. Together with the size constraint relaxation
15647         in create_var_decl, enlarges the set of situations in which an
15648         identifier may be used as an initializer without implying elaboration
15649         code.
15650         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
15651         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
15652         node.
15653         (maybe_stabilize_reference): Remove lvalues_only parameter.
15654         (gnat_stabilize_reference): Adjust for above change.
15655         (gnat_to_gnu): Do not set location information on the result
15656         if it is a reference.
15657         (add_cleanup): Add gnat_node parameter and set the location of the
15658         cleanup to it.
15659         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
15660         (Exception_Handler_to_gnu_zcx): Likewise.
15661         (gigi): Remove the cgraph node if the elaboration procedure is empty.
15662         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
15663         the former right after the latter.
15664         (start_stmt_group): Make global.
15665         (end_stmt_group): Likewise.
15666         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
15667         vars.
15668         (gnu_program_error_label_stack): Likewise.
15669         (gigi): Initialize them.
15670         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
15671         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
15672         New cases.
15673         (push_exception_label_stack): New function.
15674         (takes_address): New function.
15675
15676         * utils.c (struct language_function): Move to trans.c from here.
15677         (unchecked_convert): Do not wrap up integer constants in
15678         VIEW_CONVERT_EXPRs.
15679         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
15680         the latter for aggregate types, unexpected by later passes, and relax an
15681         arbitrary size constraint on the former.
15682         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
15683         to compare the sizes.
15684         (convert_vms_descriptor): When converting to a fat pointer type, be
15685         prepared for a S descriptor at runtime in spite of a SB specification.
15686         (shift_unc_components_for_thin_pointers): New function.
15687         (write_record_type_debug_info): For variable-sized fields, cap the
15688         alignment of the pointer to the computed alignment.
15689         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
15690         If REP_LEVEL is 2, do not compute the sizes.
15691         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
15692         (build_unc_object_type): Likewise.
15693         (declare_debug_type): New function.
15694
15695         * ada-tree.def: USE_STMT: removed (not emitted anymore).
15696
15697         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
15698         no statement is expandable anymore.
15699         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
15700         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
15701         when the user requested it explicitely.
15702         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
15703         to 0 for Ada.
15704         (get_alias_set): Return alias set 0 for a type if
15705         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
15706
15707         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
15708         (DECL_FUNCTION_STUB): New accessor macro.
15709         (SET_DECL_FUNCTION_STUB): New setter macro.
15710
15711         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
15712
15713         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
15714         declarations.
15715
15716 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
15717
15718         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
15719         Rename to Abort_Task_Interrupt to be able to keep the same interface
15720         as the rest of the targets.
15721
15722         * s-osinte-vxworks.ads s-osinte-vxworks.adb
15723         (To_VxWorks_Priority): Remove explicit "in" mode indicator
15724
15725         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
15726         New files.
15727
15728 2007-06-06  Robert Dewar  <dewar@adacore.com>
15729
15730         * a-chahan.ads: Remove obsolescent pragmas
15731
15732         * a-chlat1.ads: Minor reformatting
15733
15734 2007-06-06  Robert Dewar  <dewar@adacore.com>
15735
15736         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
15737         for Errout
15738
15739         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
15740         implementation
15741
15742         * errout.ads (Finalize): Changed interface
15743         (Output_Messages): New procedure
15744         (Compilation_Errors): New Interface
15745
15746         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
15747         Finalize/Output_Messages interface for Errout
15748         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
15749         Errout.
15750
15751 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15752             Olivier Hainque  <hainque@adacore.com>
15753             Robert Dewar  <dewar@adacore.com>
15754
15755         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
15756         check.
15757         (Raise_Current_Excep): Call Debug_Raise_Exception just before
15758         propagation starts, to let debuggers know about the event in a reliable
15759         fashion.
15760         (Local_Raise): Moved to System.Exceptions
15761         More convenient to have this as a separate unit
15762
15763         * s-except.adb, s-except.ads: New files.
15764
15765         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
15766         Debug_Unhandled_Exception in System.Exceptions where it belongs
15767         together with a couple of other debug helpers.
15768         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
15769         the former Unhandled_Exception.
15770
15771         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
15772         (Warn_No_Exception_Propagation): New procedure
15773         (Warn_If_No_Propagation): Rewritten for new warning generation
15774         (Expand_Exception_Handlers): New warning generation
15775         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
15776         (Add_Exception_Label): Use Special_Exception_Package_Used for test
15777         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
15778         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
15779         even if restriction is set (makes life easier in Check_Returns)
15780         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
15781         checking exception identities.
15782         (Expand_Local_Exception_Handlers): Do not optimize when all others case
15783         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
15784         block for handler (used by Check_Returns)
15785         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
15786         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
15787         remove all exception handlers when optimizing local raise statements.
15788         (Find_Local_Handler): Use Get_Renamed_Entity
15789         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
15790         marked analyzed after expanding exception handlers, do not generate
15791         redundant cleanup actions, because they have been constructed already.
15792
15793 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15794
15795         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
15796         presence of this categorization pragma is mandated by the language.
15797         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
15798         for this type.
15799
15800 2007-06-06  Vincent Celier  <celier@adacore.com>
15801             Robert Dewar  <dewar@adacore.com>
15802
15803         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
15804         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15805         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
15806         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
15807         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
15808         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
15809         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
15810         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
15811         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
15812         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
15813         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
15814         ali.ads, ali.adb:
15815         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
15816         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
15817         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
15818         Use variables of types File_Name_Type and Unit_Name_Type in error
15819         messages.
15820         (Get_Name): Add parameter Ignore_Special, and set it reading file name
15821         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
15822         here.
15823         Define flags Flag217-Flag230 with associated subprograms
15824         (Flag_Word5): New record type.
15825         (Flag_Word5_Ptr): New access type.
15826         (To_Flag_Word5): New unchecked conversion.
15827         (To_Flag_Word5_Ptr): Likewise.
15828         (Flag216): New function.
15829         (Set_Flag216): New procedure.
15830
15831 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15832
15833         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
15834         instead of 'Size.
15835
15836         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
15837
15838 2007-06-06  Javier Miranda  <miranda@adacore.com>
15839
15840         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
15841         the package.
15842         (Object_Specific_Data_Array): This is now internal to the package.
15843         (Object_Specific_Data): This is now internal to the package.
15844         (Select_Specific_Data_Element): This is now internal to the package.
15845         (Select_Specific_Data_Array): This is now internal to the package.
15846         (Select_Specific_Data): This is now internal to the package.
15847         (Offset_To_Top_Function_Ptr): This is now public.
15848         (To_Offset_To_Top_Function_Ptr): Removed.
15849         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
15850          local to subprogram Offset_To_Top.
15851         (Predefined_DT): Removed.
15852         (Typeinfo_Ptr): Removed.
15853         (OSD): This function is now internal to this package.
15854         (SSD): This function is now internal to this package.
15855         (DT): New function that displaces the pointer to the table of primitives
15856          to get access to the enclosing wrapper record.
15857         (IW_Membership): Code cleanup.
15858         (Offset_To_Top): Code cleanup.
15859         (Predefined_DT): Removed.
15860         (Register_Interface_Tag): Removed.
15861         (Set_Interface_Table): Removed.
15862         (Set_Offset_Index): Removed.
15863         (Set_Offset_To_Top): Code cleanup.
15864         (Set_OSD): Removed.
15865         (Set_Signature): Removed.
15866         (Set_SSD): Removed.
15867         (Set_Tagged_Kind): Removed.
15868         (Typeinfo_Ptr): Removed.
15869         (TSD): Removed.
15870         (Displace): Add missing check on null actual.
15871
15872         * exp_disp.ads, exp_disp.adb
15873         (Select_Expansion_Utilities): Removed.
15874         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
15875         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
15876         the interface requires a new parameter.
15877         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
15878         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
15879         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
15880         Done to remove package Select_Expansion_Utilities.
15881         (Make_DT): New implementation for statically allocated dispatch tables.
15882         (Make_Secondary_DT): Moved to the scope of Make_DT.
15883         (Register_Primitive): Code cleanup plus incoporate the use of the new
15884         function DT_Address_Attribute.
15885         (Expand_Interface_Thunk): The profile of this subprogram has been
15886         changed to return the Thunk_Id and the corresponding code.
15887         (Fill_DT_Entry): Removed. Its functionality is now provided by
15888         subprogram Register_Primitive.
15889         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
15890         subprogram Register_Primitive.
15891         (Register_Primitive): New subprogram that incorporates the previous
15892         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
15893         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
15894         was only required to call Make_DT_Access_Action, which is now removed.
15895         (Ada_Actions): Removed
15896         (Action_Is_Proc): Removed
15897         (Action_Nb_Arg): Removed
15898         Replace all the calls to Make_DT_Access_Action by direct calls to
15899         Make_Procedure_Call_Statement or Make_Function_Call.
15900         (Set_DTC_Entity_Value): New subprogram.
15901         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
15902         (Expand_Interface_Thunk): Add missing support for primitives that are
15903         functions with a controlling result (case in which there is no need
15904         to generate the thunk).
15905
15906         * exp_atag.ads, exp_atag.adb
15907         (Build_DT): New subprogram that displaces the pointer to reference the
15908         base of the wrapper record.
15909         (Build_Typeinfo_Offset): Removed.
15910         (RTE_Tag_Node): Removed.
15911         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
15912         (Build_Get_RC_Offset): Removed.
15913         (Build_Inherit_Predefined_Prims): Removed.
15914         (Build_Inherit_TSD: Removed.
15915         (Build_New_TSD): Removed.
15916         (Build_Set_External_Tag): Removed.
15917         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
15918         (Build_Set_Prim_Op_Address): Add documentation.
15919         (Build_Set_TSD): Removed.
15920
15921         * rtsfind.ads, rtsfind.adb
15922         (Load_Fail): If load fails and we are not in configurable run-time
15923         mode, then raise Unrecoverable_Error.
15924         (Text_IO_Kludge): Generate an error message if a run-time library is
15925         not available in a given run-time (ie. zfp run-time).
15926         (RTE_Record_Component): Add code to check that the component we search
15927         for is not found in two records in the given run-time package.
15928         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
15929         (RE_DT_Predef_Prims_Offset): New entity
15930         (RE_Static_Offset_To_Top): New entity
15931         (RE_HT_Link): New entity.
15932         (System_Address_Image): Addition of this run-time package.
15933         (RE_Address_Image): New entity.
15934         (RE_Abstract_Interface): Removed.
15935         (RE_Default_Prim_Op_Count): Removed.
15936         (RE_DT_Entry_Size): Removed.
15937         (RE_DT_Min_Prologue_Size): Removed.
15938         (RE_DT_Prologue_Size): Removed.
15939         (RE_Ifaces_Table_Ptr): Removed.
15940         (RE_Interface_Data_Ptr): Removed.
15941         (RE_Type_Specific_Data): Removed.
15942         (RE_Primary_DT): Removed.
15943         (RE_Register_Interface_Tag): Removed.
15944         (RE_Set_Offset_Index): Removed.
15945         (RE_Set_OSD): Removed.
15946         (RE_Set_SSD): Removed.
15947         (RE_Set_Signature): Removed.
15948         (RE_Set_Tagged_Kind): Removed.
15949         (RE_Address_Array): New entity.
15950         (RE_DT): New entity.
15951         (RE_Iface_Tag): New entity.
15952         (RE_Interfaces_Table): New entity.
15953         (RE_No_Dispatch_Table): New entity.
15954         (RE_NDT_Prims_Ptr): New entity.
15955         (RE_NDT_TSD): New entity.
15956         (RE_Num_Prims): New entity.
15957         (RE_Offset_To_Top_Function_Ptr): New entity.
15958         (RE_OSD_Table): New entity.
15959         (RE_OSD_Num_Prims): New entity.
15960         (RE_Predef_Prims): New entity
15961         (RE_Predef_Prims_Table_Ptr): New entity.
15962         (RE_Primary_DT): New entity.
15963         (RE_Signature): New entity.
15964         (RE_SSD): New entity.
15965         (RE_TSD): New entity.
15966         (RE_Type_Specific_Data): New entity.
15967         (RE_Tag_Kind): New entity.
15968
15969 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15970
15971         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
15972         C imported variable.
15973         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
15974         on entry.
15975
15976 2007-06-06  Robert Dewar  <dewar@adacore.com>
15977
15978         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
15979         character
15980
15981 2007-06-06  Vincent Celier  <celier@adacore.com>
15982
15983         * a-tifiio.adb (Put, internal): For negative numbers, check that there
15984         is room for at least one digit and the minus sign.
15985         (Put.Put_Character): Never put a character outside of the range of
15986         string To.
15987
15988 2007-06-06  Olivier Hainque  <hainque@adacore.com>
15989             Eric Botcazou  <ebotcazou@adacore.com>
15990
15991         * utils2.c (build_allocator): Provide the extra arguments to
15992         make_aligning_type for super-aligned objects allocated from the default
15993         pool. Leave enough room for a pointer before the aligning field, and
15994         store the system's allocator return value there.
15995         (build_call_alloc_dealloc): When releasing a super-aligned object,
15996         retrieve the system's allocator return value from where build_allocator
15997         has stored it, just ahead of the adjusted address we are passed.
15998         (build_call_raise): Handle properly the generation of line numbers when
15999         the node is marked No_Location.
16000         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
16001         by using DECL_UID on ties.
16002         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
16003         main variant.
16004         (build_call_raise): Handle converting exception into goto; support new
16005         argument KIND.
16006         (build_component_ref): Add new arg to build_call_raise.
16007
16008 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
16009
16010         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
16011         "." in the case of nnn.xxx when nnn terminates with an underscore.
16012         Parse the remaining "#" or ":" in the case of nnn#.xxx#
16013
16014 2007-06-06  Robert Dewar  <dewar@adacore.com>
16015
16016         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
16017
16018 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
16019             Vincent Celier  <celier@adacore.com>
16020             Robert Dewar  <dewar@adacore.com>
16021
16022         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
16023         needed.
16024         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
16025         ((destructor)) for adafinal, even when switch -a is used.
16026         Do not issue pragma Linker_Destructor for adafinal when switch -a is
16027         used.
16028         (Gen_Object_Files_Options): Add formatting of Linker Options, when
16029         Output_Linker_Option_List is set. Suppress this formatting when
16030         Zero_Formatting is set.
16031         Add case for CLI_Target.
16032         (System_Restrictions_Used): New flag, used to avoid generating with of
16033         System_Restrictions and initialization of the data unless there is
16034         some use of System.Restrictions in the partition.
16035         (Check_System_Restrictions_Used): New procedure
16036
16037         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
16038         since we only with this unit in the binder file if it is used elsewhere
16039         in the partition.
16040
16041 2007-06-06  Vincent Celier  <celier@adacore.com>
16042
16043         * bindusg.adb: Add line for @<response file>
16044         Add lines for new switches -R and -Z
16045
16046         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
16047         hierarchy in the list of files of the closure when -R is used
16048         (Gnatbind): Accept arguments starting with '@' to indicate response
16049         files and take the arguments from the response files.
16050         If List_Closure is set, display the referenced files
16051
16052 2007-06-06  Javier Miranda  <miranda@adacore.com>
16053             Robert Dewar  <dewar@adacore.com>
16054             Ed Schonberg  <schonberg@adacore.com>
16055
16056         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
16057         which the address-clause is applied to in-mode actuals (allowed by
16058         13.1(22)).
16059         (Apply_Discriminant_Check): Do not generate a check if the type is
16060         constrained by a current instance.
16061         (Activate_Division_Check): New procedure
16062         (Activate_Overflow_Check): New procedure
16063         (Activate_Range_Check): New procedure
16064         Call these new Activate procedures instead of setting flags directly
16065         (Apply_Array_Size_Check): Removed, no longer needed.
16066         Code clean up: remove obsolete code related to GCC 2.
16067         (Get_E_Length): Protect against bomb in case scope is standard
16068         (Selected_Range_Checks): If the node to be checked is a conversion to
16069         an unconstrained array type, and the expression is a slice, use the
16070         bounds of the slice to construct the required constraint checks.
16071         Improve NOT NULL error messages
16072         (Apply_Constraint_Check): If the context is a null-excluding access
16073         type, diagnose properly the literal null.
16074
16075 2007-06-06  Pascal Obry  <obry@adacore.com>
16076
16077         * clean.adb (Clean_Archive): Use untouched casing for the archive name
16078         and the corresponding .deps file.
16079         (Clean_Interface_Copy_Directory): Use untouched casing for the library
16080         src directory. Minor code-clean-up. Use untouched casing for files
16081         read into the library src dir.
16082         (Clean_Library_Directory): Idem.
16083         (Parse_Cmd_Line): Accept new switch -aP
16084
16085 2007-06-06  Javier Miranda  <miranda@adacore.com>
16086             Ed Schonberg  <schonberg@adacore.com>
16087             Robert Dewar  <dewar@adacore.com>
16088             Eric Botcazou  <ebotcazou@adacore.com>
16089             Arnaud Charlet  <charlet@adacore.com>
16090
16091         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
16092         applicable to types that have the With_Type flag set. Returns the
16093         non-limited view of the type, if available, otherwise the type itself.
16094         For class-wide types, there is no direct link in the tree, so we have
16095         to retrieve the class-wide type of the non-limited view of the Etype.
16096         New attributes Static_Initialization and Static_Elaboration_Desired.
16097         Remove the pragma Thread_Body, and the associated flag
16098         Is_Thread_Body in entities, and all related code.
16099         (Suppress_Value_Tracking_On_Call): New flag
16100         E_Exception has Esize and Alignment fields
16101         (Universal_Aliasing): New function.
16102         (Set_Universal_Aliasing): New procedure.
16103         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
16104         (Check_Nested_Access): New procedure.
16105         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
16106         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16107         (Related_Interface): New attribute. Present in dispatch table pointer
16108         components of records. Set to point to the entity of the corresponding
16109         interface type.
16110         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
16111         (Original_Access_Type): Remove, not needed.
16112         (Root_Type): Handle properly subtypes of class-wide-types.
16113         Update comments.
16114
16115         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
16116         class-wide types visible through limited-with clauses.
16117         (Try_Primitive_Operation): When examining all primitive operations of a
16118         tagged type, do not consider subprograms labeled as hidden unless they
16119         belong to a private generic type with a tagged parent.
16120         (Try_Object_Operation): Extensive rewriting, to handle properly various
16121         overloading cases, when several ancestors may have class-wide operations
16122         that are possible candidates, and when the overloaded functions return
16123         array types and have defaulted parameters so that the call may be
16124         interpreted as an indexing.
16125         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
16126         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
16127         successive actuals before analyzing the call itself.
16128         (Try_Primitive_Operation): A primitive operation is compatible with the
16129         prefix if the prefix has a synchronized type and the type of the formal
16130         is its corresponding record, as can be the case when the primitive
16131         operation is declared outside of the body of the type.
16132         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
16133         perform homonym traversal, looking for class-wide operation matches
16134         (formerly done in statements of Try_Class_Wide_Operation). Matches on
16135         access parameters are now restricted to anonymous access types.
16136         (Mark_Allocator): An allocator with a discriminant association parent is
16137         a coextension.
16138         (Try_One_Prefix_Interpretation): If the type of the object is
16139         incomplete, as can be happen when it is a limited view obtained through
16140         a limited_with_clause, the selected component is not part of a prefixed
16141         call.
16142         (Complete_Object_Operation): Diagnose properly an object that is not
16143         aliased when the corresponding controlling formal is an access
16144         parameter.
16145         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
16146         ambiguous calls in prefixed notation, where two primitives differ only
16147         in that the controlling argument of one is an access parameter.
16148
16149         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
16150         whether a function that returns an unconstrained type can be inlined.
16151         (Process_Formals): Diagnose properly the illegal use of an incomplete
16152         type in the profile of an access_to_subprogram declaration.
16153         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
16154         operations are attached to the corresponding record.
16155         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
16156         When processing a primitive of a concurrent type which implements an
16157         interface change the type of all controlling formals to that of the
16158         corresponding record type.
16159         (Check_Synchronized_Overriding): Relax the conditional logic when trying
16160         to determine the tagged type to which a primitive belongs.
16161         (Check_Conventions): Capture condition to ignore a primitive operation
16162         (which is shared between the loop in Check_Conventions and the one in
16163         Check_Convention) in a new local function Skip_Check.
16164         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
16165         confusion with Check_Conventions' own Prim_Op local variable.
16166         (Create_Extra_Formals): Test for a tagged result type rather than a
16167         controlling result when determining whether to add a BIP_Alloc_Form
16168         formal and a BIP_Final_List formal to the function.
16169         (Check_Conformance); For parameters that are anonymous access types,
16170         subtype conformance requires that the not null and the constant
16171         indicators must match
16172         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
16173         to retrieve the appropriate type when processing a concurrent type
16174         declared within a generic. Minor comment reformatting. Change invocation
16175         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
16176         mitive.
16177         (Analyze_Subprogram_Body): If the return type of a function is an
16178         anonymous access to the limited view of a class-wide type, and the
16179         non-limited view of the type is available, update the type of the
16180         function so that code can be generated.
16181         (Process_Formals): In case of access-subtype itype whose designated
16182         type is also an itype (situation that happens now with access to
16183         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
16184         attribute to avoid backend problems.
16185         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
16186         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
16187         anonymous types' designated types are same before testing
16188         Subtypes_Statically_Match.
16189         (Create_Extra_Formals): Test for a named access parameter that is a
16190         controlling formal as an additional condition for adding an
16191         accessibility level formal. This can occur in the subp type created for
16192         dispatching calls in Expand_Dispatching_Call, and allows calling
16193         Create_Extra_Formals from that procedure rather than special-casing the
16194         extra formals there.
16195         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
16196         when the function has a controlling result.
16197         (Check_Returns): Add much more knowledge of the optimization of local
16198         raise statements to gotos, to retain proper warnings in this case.
16199         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
16200         nodes when looking for last statement.
16201
16202         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
16203         class-wide types visible through limited with clauses.
16204         (Add_One_Interp): If the operands are anonymous access types, the
16205         predefined operator on universal_access is immediately visibles
16206         (Find_Unique_Type): Handle anonymous access to subprogram types just as
16207         other anonymous access types.
16208         (Disambiguate): Take into account CIL convention.
16209         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
16210
16211 2007-06-06  Robert Dewar  <dewar@adacore.com>
16212
16213         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
16214         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
16215         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
16216         Fix lower bound of tables.
16217         Add rep clauses.
16218
16219         * nlists.adb: Ditto.
16220         (Prev_Node, Next_Node): Change index type to Int so that it properly
16221         covers the range First_Node_Id - 1 up.
16222
16223 2007-06-06  Javier Miranda  <miranda@adacore.com>
16224             Ed Schonberg  <schonberg@adacore.com>
16225             Bob Duff  <duff@adacore.com>
16226             Hristian Kirtchev  <kirtchev@adacore.com>
16227
16228         * exp_aggr.ads, exp_aggr.adb:
16229         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
16230         in extension aggregates.
16231         (Flatten): Other conditions being met, an aggregate is static if the
16232         low bound given by component associations is different from the low
16233         bound of the base index type.
16234         (Packed_Array_Aggregate_Handled): If the component type is itself a
16235         packed array or record, the front-end must expand into assignments.
16236         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
16237         Init_Pr, instead of Ancestor_Is_Expression.
16238         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
16239         coextension chain root, either generate a list controller or use the
16240         already existing one.
16241         (Static_Array_Aggregate): New procedure to construct a positional
16242         aggregate that can be handled by the backend, when all bounds and
16243         components are compile-time known constants.
16244         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
16245         types covering interface types into assignments.
16246         (Replace_Type): move to Build_Record_Aggr_Code.
16247         (Expand_Record_Aggr_Code): if the target of the aggregate is an
16248         interface type, convert to the definite type of the aggregate itself,
16249         so that needed components are visible.
16250         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
16251         components and the context is an extended return statement do not
16252         create a transient block for it, to prevent premature finalization
16253         before the return is executed.
16254         (Gen_Assign): Do not generate a call to deep adjust routine if the
16255         component type is itself an array of controlled (sub)-components
16256         initialized with an inner aggregate.
16257         (Component_Check): New name for Static_Check. This name is now more
16258         appropriate, and documentation is added which was missing.
16259         (Component_Check): Add test for bit aligned component value
16260         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
16261         Tagged_Comps, name is more appropriate given added function below.
16262         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
16263
16264 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
16265             Javier Miranda  <miranda@adacore.com>
16266             Robert Dewar  <dewar@adacore.com>
16267
16268         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
16269         Terminated: Add unchecked type conversion from System.Address to
16270         System.Tasking.Task_Id when calling the predefined primitive
16271         _disp_get_task_id.
16272         Disable new Ada 05 accessibility check for JVM.NET targets, which
16273         cannot be implemented in a practical way.
16274         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
16275         the sources always references the tag of the actual object. Therefore,
16276         if 'Tag is applied in the sources to class-wide interface objects we
16277         generate code that displaces "this" to reference the base of the object.
16278         (Expand_N_Attribute_Reference, case Size): Return specified size if
16279         known to front end.
16280         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
16281         has code that displaces the pointer of the object to manage interface
16282         types. However this code must not be executed when the prefix is a
16283         subprogram. This bug caused the wrong expansion of the internally
16284         generated assignment that fills the dispatch table when the primitive
16285         is a function returning a class-wide interface type.
16286         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
16287         Set_Attribute_Name for Name_Unaligned_Valid.
16288
16289 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16290             Gary Dismukes  <dismukes@adacore.com>
16291
16292         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
16293         If the initialization is the equivalent aggregate of the initialization
16294         procedure of the type, do not remove it.
16295         (Expand_N_Attribute_Definition_Clause): Exclude access variables
16296         initialized to null from having their expression reset to empty and
16297         note this exception in the comment.
16298
16299 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
16300             Robert Dewar  <dewar@adacore.com>
16301             Ed Schonberg  <schonberg@adacore.com>
16302             Gary Dismukes  <dismukes@adacore.com>
16303
16304         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
16305         Add "with" and "use" clauses for Sem_Attr.
16306         (Expand_Current_Value): Do not replace occurences of attribute
16307         references where the prefix must be a simple name.
16308
16309         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
16310         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
16311         Attribute_Requires_Simple_Name_Prefix.
16312         (Name_Modifies_Prefix): Body of new function.
16313         (Requires_Simple_Name_Prefix): Body of new function.
16314         (Resolve_Attribute, case Access): Improve error message for case of
16315         mismatched conventions.
16316         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
16317         incomplete type.
16318         (Analyze_Attribute, case 'Access): If the type of the prefix is a
16319         constrained subtype for a nominal unconstrained type, use its base type
16320         to check for conformance with the context.
16321         (Resolve_Attribute): Remove test of the access type being associated
16322         with a return statement from condition for performing accessibility
16323         checks on access attributes, since this case is now captured by
16324         Is_Local_Anonymous_Access.
16325         (Analyze_Access_Attribute): Set Address_Taken on entity
16326         (Analyze_Attribute, case Address): Set Address_Taken on entity
16327         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
16328         validating an access attribute whose prefix is a current instance.
16329         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
16330         applied to dispatching operations, if freezing is required then we set
16331         the attribute Has_Delayed_Freeze in the prefix's entity.
16332         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
16333         current scope if access of local subprogram taken
16334         (Analyze_Access_Attribute): Check legality of self-reference even if the
16335         expression comes from source, as when a single component association in
16336         an aggregate has a box association.
16337         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
16338         the prefix if it is a protected operation and the attribute is
16339         Unrestricted_Access.
16340         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
16341         reference to the base type of the context, to force a constraint check
16342         when the context is an access subtype with an explicit constraint.
16343         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
16344         node is rewritten as an interface conversion. leave unanalyzed after
16345         resolution, to ensure that type checking against the context will take
16346         place.
16347
16348 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16349             Javier Miranda  <miranda@adacore.com>
16350             Robert Dewar  <dewar@adacore.com>
16351
16352         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
16353         wrapper when the full view of the controlling type of an inherited
16354         function that dispatches on result implements interfaces.
16355         (Expand_N_Object_Declaration): In cases where the type of the
16356         declaration is anonymous access, create finalization list for it.
16357         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
16358         if the object has no explicit initialization, to match description of
16359         functionality of pragam Persistent_BSS.
16360         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
16361         new function to build static aggregates, to replace initialization call
16362         when static initialization is desired.
16363         (Freeze_Type): Generate a list controller for an access type whenever
16364         its designated type has controlled anonymous access discriminants.
16365         (Build_Equivalent_Aggregate): New procedure to compute a static
16366         aggregate to be used as default initialization for composite types,
16367         instead of a generating a call to the initialization procedure for the
16368         type.
16369         (Build_Initialization_Call): When available, replace a call to the
16370         initialization procedure with a copy of the equivalent static aggregate
16371         for the type.
16372         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
16373         declarations for objects of a class-wide interface type, rather than
16374         just identifiers, to prevent visibility problems.
16375         (Expand_N_Object_Declaration): When expanding the declaration for an
16376         object of a class-wide interface type, preserve the homonym chain of
16377         the original entity before exchanging it with that of the generated
16378         renaming declaration.
16379         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
16380         active, because there is no way to handle the exception.
16381         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
16382         to do a minimum decoration of the Access_Disp_Table list.
16383         (Expand_Record_Controller): Avoid the addition of the controller between
16384         the component containing the tag of a secondary dispatch table and its
16385         adjacent component that stores the offset to the base of the object.
16386         This latter component is only generated when the parent type has
16387         discriminants ---documented in Add_Interface_Tag_Components).
16388         (Apply_Array_Size_Check): Removed, no longer needed.
16389         (Expand_N_Full_Type_Declaration): If the type has anonymous access
16390         components, create a Master_Entity for it only if it contains tasks.
16391         (Build_Init_Procedure): Suppress the tag assignment compiling under
16392         no run-time mode.
16393         (Freeze_Record_Type): Remove code associated with creation of dispatch
16394         table.
16395         (Init_Secondary_Tags): Update type of actuals when generating calls to
16396         Ada.Tags.Set_Offset_To_Top
16397         (Stream_Operation_OK): Disable use of streams compiling under no
16398         run-time mode
16399         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
16400         if Has_Init_Expression set.
16401         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
16402         Register_Primitive, which provides the same functionality.
16403         (Requires_Init_Proc): Return false in case of interface types.
16404         (Add_Secondary_Tables): Use the new attribute Related_Interface to
16405         cleanup the code.
16406         (Predefined_Primitive_Freeze): Do not assume that an internal entity
16407         is always associated with a predefined primitive because the internal
16408         entities associated with interface types are not predefined primitives.
16409         Therefore, the call to Is_Internal is replaced by a call to the
16410         function Is_Predefined_Dispatching_Operation.
16411         (Make_Eq_If): When generating the list of comparisons for the
16412         components of a given variant, omit the controller component that is
16413         present if the variant has controlled components.
16414
16415 2007-06-06  Javier Miranda  <miranda@adacore.com>
16416             Hristian Kirtchev  <kirtchev@adacore.com>
16417             Bob Duff  <duff@adacore.com>
16418
16419         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
16420         handle the creation of finalization lists and calls for nested
16421         coextensions when the root of the chains is part of a return statement.
16422         (Inside_A_Return_Statement): New function inside Complete_Coextension_
16423         Finalization.
16424         (Expand_Record_Equality): Skip components that are interface types.
16425         (Displace_Allocator_Pointer): Add missing support for interface subtypes
16426         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
16427         with Rewrite_Coextension. Change the condition for detecting coextension
16428         root nodes.
16429         (Is_Local_Access_Discriminant): Removed.
16430         (Rewrite_Coextension): New routine which rewrites a static coextension
16431         as a temporary and uses its unrestricted access in the construction of
16432         the outer object.
16433         (Complete_Coextension_Finalization): New routine. Generate finalization
16434         attachment calls to all delayed coextensions.
16435         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
16436         the allocator is not a coextension itself and has delayed coextensions.
16437         If the current allocator is controlled, but also a coextension, delay
16438         the generation of the finalization attachment call.
16439         Rename local variable "Node" to "Nod" in order to avoid confusion with
16440         "Elists.Node".
16441         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
16442         limited types that are not inherently limited. Such an allocator is
16443         illegal, but is generated by the expander for a return statement, to
16444         copy the result onto the secondary stack. This is the only case where a
16445         limited object can be copied. Generate code to displace the pointer
16446         to the object if the qualified expression is a class-wide interface
16447         object. Such displacement was missing and hence the copy of the object
16448         was wrong.
16449         (Apply_Accessibility_Check): Handle allocated objects initialized in
16450         place.
16451         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
16452         and Expand_Allocator_Expression. Allocating class-wide interface objects
16453         this routine displaces the pointer to the allocated object to reference
16454         the component referencing the corresponding secondary dispatch table.
16455         Expand_Allocator_Expression): Add missing support to allocate class-wide
16456         interface objects initialized with a qualified expression.
16457         (Get_Allocator_Final_List): Test for an anonymous access type that is a
16458         function result type, and use the finalization list associated with the
16459         function scope in that case (such an anonymous type should not be
16460         treated like an access parameter's type).
16461
16462 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16463             Gary Dismukes  <dismukes@adacore.com>
16464             Javier Miranda  <miranda@adacore.com>
16465
16466         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
16467         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
16468         required exception handler.
16469         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
16470         properly the case of a function whose return type is a limited
16471         class-wide interface type. Modify the code of the accessibility
16472         check to handle class-wide interface objects. In this case we need to
16473         displace "this" to reference the primary dispatch table to get access
16474         to the TSD of the object (to evaluate its accessibility level).
16475         (Expand_N_Extended_Return_Statement): Test for a tagged result type
16476         rather than a controlling result as one of the conditions for
16477         generating tests of the implicit BIP_Alloc_Form formal. The
16478         initialization assignment is also handled according to whether the
16479         result is tagged instead of controlling.
16480         In the case where the init assignment is inserted in the "then" part of
16481         the allocation conditional, rewrite the target to be a dereference of
16482         the implicit BIP_Object_Access formal.
16483         If the returned value is unconstrained and created on the secondary
16484         stack, mark the enclosing block and function so that the secondary
16485         stack is not reclaimed on return.
16486         Treat returns from functions with controlling results similarly to
16487         returns from functions with unconstrained result subtypes.
16488         If the object returned is unconstrained, and an allocator must be
16489         created for it, analyze the allocator once the block for the extended
16490         return is installed, to ensure that finalizable components
16491         of the expression use the proper finalization list. Guard the call to
16492         Move_Final_List with a check that there is something to finalize.
16493         (Make_Tag_Ctrl_Assignment): Use "old" handling
16494         of controlled type assignment for virtual machines, since new code uses
16495         unsupported features (such as direct access to bytes in memory).
16496
16497 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
16498             Ed Schonberg  <schonberg@adacore.com>
16499
16500         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
16501         accessibility actual, check for the case of an aliased object that has
16502         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
16503         we fall into processing for the attribute rather than the name of the
16504         object.
16505         (Expand_Inline_Call): If an actual is a literal, and the corresponding
16506         formal has its address taken in the body, create a temporary to capture
16507         value.  If the return type is a limited interface, do not treat the
16508         return value as Controlled.
16509         (Is_In_Place_Function):  If the return type is a limited interface,
16510         treat as returning in place. The actual returned object may not always
16511         be limited, but the caller has to assume that it is returned in place.
16512         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
16513         context of an allocator, use the correct finalization chain (that is,
16514         the chain belonging to the access type, rather than the chain belonging
16515         to the current scope).
16516         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
16517         result type rather than a controlling result as a precondition for
16518         adding an allocation form actual to a build-in-place call.
16519         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
16520         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
16521         primitive in the dispatch tables. This work is now done by Make_DT when
16522         the type is frozen.
16523         (Register_Predefined_DT_Entry): Removed.
16524         (Add_Return): If end label is not present, use sloc of last statement
16525         for generated return statement in procedure, for better gdb behavior
16526         on expanded code.
16527         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
16528         object address nodes to ensure proper processing by routines like
16529         Insert_After*.
16530         (Expand_Call): Fix generation of validity check for parameter
16531         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
16532         the allocation form parameter if the result subtype is constrained,
16533         except when the function has a controlling result.
16534         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
16535         rather than Is_Controlled and Has_Controlled_Component, since we want to
16536         include class-wide result types in this treatment. Also test for a
16537         controlling result, since that also requires passing a finalization
16538         list.
16539         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
16540         even when the result subtype is constrained, to handle calls involving
16541         controlling results.
16542         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
16543         is now called even when the result subtype is constrained, to handle
16544         calls involving controlling results.
16545         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
16546         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
16547         now performs the test).
16548         (Make_Build_In_Place_Call_In_Object_Declaration):
16549         Add_Alloc_Form_Actual_* is now called even when the result subtype is
16550         constrained, to handle calls involving controlling results.
16551         (Add_Return): Accomodate rewritten pattern from local raise to goto
16552         transformation, so that we still recognize an transfer statement
16553         and do the right thing here in that case.
16554         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
16555         and end of subprogram code.
16556         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
16557         support for primitives that are functions (without formals) with a
16558         controlling result.
16559         (Inherited_From_Formal): If the actual subtype has not generic parent
16560         type, it is not an actual for a formal derived type, and there is no
16561         operation to inherit from the formal.
16562
16563 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16564             Thomas Quinot  <quinot@adacore.com>
16565
16566         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
16567         inserted cleanup code appropriately for GDB use.
16568         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
16569         exception handler for Deep_Adjust or Deep_Finalize.
16570         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
16571         Raise_From_Controlled_Operation is available, use a call to that
16572         subprogram instead of a plain "raise Program_Error" node to raise
16573         Program_Error if an exception is propagated from an Adjust or Finalize
16574         operation.
16575         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
16576         appears in the optional statement list of a triggering alternative, the
16577         scope actions can be inserted directly there, and not in the list that
16578         includes the asynchronous select itself.
16579
16580 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16581             Robert Dewar  <dewar@adacore.com>
16582             Hristian Kirtchev  <kirtchev@adacore.com>
16583
16584         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
16585         generated exception handler appropriately when debugging generated code.
16586         Deal properly with No_Exception_Propagation restriction mode.
16587         (Expand_N_Abort_Statement): Add an unchecked type conversion from
16588         System.Address to System.Tasking.Task_Id when processing the result of
16589         the predefined primitive _disp_get_task_id.
16590         (Expand_N_Asynchronous_Select): Clarify comment.
16591         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
16592         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
16593         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
16594         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
16595         privals and for generated call to Complete_Entry_Body, for better gdb
16596         behavior.
16597         (Copy_Result_Type): Utility to construct a parameter and result profile
16598         for protected functions whose return type is an anonymous access to
16599         subprogram.
16600         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
16601         call the above.
16602         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
16603         point when the local-raise-to-goto transformation has taken place.
16604
16605 2007-06-06  Javier Miranda  <miranda@adacore.com>
16606             Nicolas Setton  <setton@adacore.com>
16607
16608         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
16609         functionality when the backend is generating code.
16610         Otherwise any serious error
16611         reported by the backend calling the frontend routine Error_Msg
16612         changes the Compilation_Mode to Check_Semantics, disables the
16613         functionality of this routine and causes the generation of
16614         spureous additional errors.
16615
16616         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
16617         debugging information now generated by the compiler for fat-pointer
16618         types.
16619         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
16620         DWARF2/3.
16621         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
16622
16623 2007-06-06  Thomas Quinot  <quinot@adacore.com>
16624
16625         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
16626         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16627         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16628         For a remote call to a function with a classwide return type, apply an
16629         E.4(18) check to the returned value.
16630         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
16631         stream attributes of the designated type of an RACW, as they are not
16632         dispatching primitive operations.
16633
16634 2007-06-06  Geert Bosch  <bosch@adacore.com>
16635
16636         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
16637         negative literal
16638         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
16639         positive
16640         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
16641         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
16642         positive
16643         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
16644
16645 2007-06-06  Javier Miranda  <miranda@adacore.com>
16646
16647         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
16648         attribute compiling package Ada.Tags under No_Run_Time_Mode.
16649
16650 2007-06-06  Javier Miranda  <miranda@adacore.com>
16651
16652         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
16653         deallocation of class-wide interface objects.
16654         (Expand_Dispatching_Constructor_Call): Take into account that if the
16655         result of the dispatching constructor is an interface type, the
16656         function returns a class-wide interface type; otherwise the returned
16657         object would be actual. The frontend previously accepted returning
16658         interface types because Expand_Interface_Actuals silently performed
16659         the management of the returned type "as if" it were a class-wide
16660         interface type.
16661         (Expand_Dispatching_Constructor_Call): Replace call to
16662         Make_DT_Access_Action by direct call to Make_Function_Call.
16663
16664 2007-06-06  Robert Dewar  <dewar@adacore.com>
16665             Ed Schonberg  <schonberg@adacore.com>
16666
16667         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
16668         compute masking constant, since we now set Esize properly to the
16669         underlying size.
16670         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
16671         to match the alignment.
16672         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
16673         packed arrays of 8 bits or less.
16674
16675         * freeze.adb (Freeze_Entity): When freezing the formals of a
16676         subprogram, freeze the designated type of a parameter of an access type
16677         only if it is an access parameter.
16678         Increase size of C convention enumeration object
16679         (Freeze_Entity, array type case): Make sure Esize value is properly
16680         adjusted for the alignment if it is known.
16681         (Freeze_Entity, array type case): When checking bit packed arrays for
16682         the size being incorrect, check RM_Size, not Esize.
16683         (Freeze_Record_Type): Check for bad discriminated record convention
16684         (In_Exp_Body): Return true if the body is generated for a subprogram
16685         renaming, either an attribute renaming or a renaming as body.
16686         (Check_Itype): If the designated type of an anonymous access component
16687         is a non-protected subprogram type, indicate that it is frozen, to
16688         prevent out-of-scope freeze node at some subsequent call.
16689         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
16690         only if the subprogram is neither imported nor exported, as well as the
16691         NCA descriptor class if the subprogram is exported.
16692
16693 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16694             Arnaud Charlet  <charlet@adacore.com>
16695             Robert Dewar  <dewar@adacore.com>
16696             Gary Dismukes  <dismukes@adacore.com>
16697
16698         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
16699         default initialization on an imported object, when there is no
16700         initialization call generated for it.
16701         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
16702         restriction
16703
16704         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
16705         Static_Elaboration_Desired.
16706         Remove pragma Thread_Body.
16707         Implement a new pragma No_Body
16708         Removes the Explicit_Overriding pragma
16709         Remove Optional_Overriding pragma
16710         (Prag): Deal with Universal_Aliasing.
16711         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16712         Pragma_CIL_Constructor): New names.
16713
16714         * sem_cat.adb (Validate_Object_Declaration): An initialization that
16715         uses the equivalent aggregate of a type must be treated as an implicit
16716         initialization.
16717         (Get_Categorization): Check a unit for pragma Preelaborate only if it
16718         has none of the other categories.
16719         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
16720         to apply Import to an object renaming declaration.
16721
16722         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
16723         from a C++ class should be declared as limited and that it will be
16724         considererd limited.
16725         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
16726         should be declared as limited and that it will be considererd limited.
16727         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
16728         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
16729         (Analyze_Pragma): Deal with Universal_Aliasing.
16730         (Sig_Flags): Likewise.
16731         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
16732         (Overflow_Checks_Unsuppressed): New flag.
16733         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16734         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
16735         case of JVM or .NET targets, and compiling user code.
16736         Add debugging convenience routine rv
16737
16738 2007-06-06  Robert Dewar  <dewar@adacore.com>
16739
16740         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
16741         are interface type.
16742         (Build_Elementary_Input_Call): For floating-point use right type in the
16743         absence of strange size or stream size clauses.
16744         (Build_Elementary_Write_Call): Same fix
16745         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
16746         set to value that does not match base type size.
16747
16748 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16749
16750         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
16751         object of a limited type can be initialized with a call to a function
16752         that returns in place. If the limited type has unknown discriminants,
16753         and the underlying type is a constrained composite type, build an actual
16754         subtype from the function call, as is done for private types.
16755         (Side_Effect_Free): An expression that is the renaming of an object or
16756         whose prefix is the renaming of a object, is not side-effect free
16757         because it may be assigned through the renaming and its value must be
16758         captured in a temporary.
16759         (Has_Controlled_Coextensions): New routine.
16760         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
16761         as is done for other limited types.
16762         (Non_Limited_Designated_Type): new predicate.
16763         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
16764         objects.
16765         Remove all handling of with_type clauses.
16766
16767         * par-ch10.adb: Remove all handling of with_type clauses.
16768
16769         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
16770         checksum if the main source could not be parsed.
16771         (Loat_Unit): When processing a child unit, determine properly whether
16772         the parent unit is a renaming when the parent is itself a child unit.
16773         Remove handling of with_type clauses.
16774
16775         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
16776         (Set_Is_Static_Coextension): New procedure.
16777         (Has_Local_Raise): New function
16778         (Set_Has_Local_Raise): New procedure
16779         (Renaming_Exception): New field
16780         (Has_Init_Expression): New flag
16781         (Delay_Finalize_Attach): Remove because flag is obsolete.
16782         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
16783         Remove all handling of with_type clauses.
16784         (Exception_Junk): Can now be set in N_Block_Statement
16785
16786 2007-06-06  Vincent Celier  <celier@adacore.com>
16787             Robert Dewar  <dewar@adacore.com>
16788
16789         * frontend.adb (Frontend): Return immediately if the main source could
16790         not be parsed, because of preprocessing errors.
16791
16792         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
16793         (Gnat1drv): Exit with errors if the main source could not be parsed,
16794         because of preprocessing errors.
16795         (Check_Rep_Info): New procedure
16796
16797 2007-06-06  Robert Dewar  <dewar@adacore.com>
16798
16799         * g-hesorg.ads, g-heasor.ads,
16800         g-busorg.ads, g-bubsor.ads: Update documentation
16801         GNAT.Heap/Bubble_Sort_G is now pure
16802
16803 2007-06-06  Robert Dewar  <dewar@adacore.com>
16804
16805         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
16806
16807 2007-06-06  Robert Dewar  <dewar@adacore.com>
16808             Ed Schonberg  <schonberg@adacore.com>
16809
16810         * g-comlin.ads, g-comlin.adb:
16811         Add new warning for renaming of function return objects
16812
16813         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
16814         (Tree_Read): Use size of object instead of type'object_size, since the
16815         latter is incorrect for packed array types.
16816         (Tree_Write): Same fix
16817
16818         * opt.ads: Add new warning for renaming of function return objects
16819         (Generating_Code): New boolean variable used to indicate that the
16820         frontend as finished its work and has called the backend to process
16821         the tree and generate the object file.
16822         (GCC_Version): Is now private
16823         (Static_Dispatch_Tables): New constant declaration.
16824         (Overflow_Checks_Unsuppressed): New flag.
16825         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16826         (List_Closure): New flag for gnatbind (-R)
16827         Zero_Formatting: New flag for gnatbind (-Z)
16828         (Special_Exception_Package_Used): New flag.
16829         (Warn_On_Unrepped_Components): New flag.
16830
16831         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
16832         unit is a compilation unit, rather than relying on its scope, so that
16833         Standard can be renamed.
16834         (Analyze_Object_Renaming): Add new warning for renaming of function
16835         return objects.
16836         Also reject attempt to rename function return object in Ada 83 mode.
16837         (Attribute_Renaming): In case of tagged types, add the body of the
16838         generated function to the freezing actions of the type.
16839         (Find_Type): A protected type is visible right after the reserved word
16840         "is" is encountered in its type declaration. Set the entity and type
16841         rather than emitting an error message.
16842         (New_Scope): Properly propagate Discard_Names to inner scopes
16843         (Check_Nested_Access): New procedure.
16844         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
16845         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16846
16847         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
16848         Add new warning for renaming of function return objects
16849         (Check_References): Suppress warnings for objects whose type or
16850         base type has Warnings suppressed.
16851         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
16852         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
16853
16854 2007-06-06  Vincent Celier  <celier@adacore.com>
16855             Emmanuel Briot  <briot@adacore.com>
16856             Olivier Hainque  <hainque@adacore.com>
16857
16858         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
16859         absolute value of Header.Block_Size when displaying the freed physical
16860         memory in traces.
16861         (Allocate): Compute Storage_Address using Integer_Address, not
16862         Storage_Offset, because the range of Storage_Offset may not be large
16863         enough.
16864         (Configure): New parameter Low_Level_Traces
16865         (Allocate, Deallocation, Free_Physically): Added low-level traces
16866         (Configure): new parameter Errors_To_Stdout.
16867         (Output_File): new subprogram
16868         (Deallocate, Dereference): Send error messages to the proper stream
16869         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
16870         documented. Previous code would send it to the current output file
16871         defined in GNAT.IO, which might not be stdout
16872         (Is_Valid): Adjust comment to mention that a positive reply means that
16873         Header_Of may be used to retrieve the allocation header associated with
16874         the subprogram Storage address argument. Return False early if this
16875         address argument is misaligned.
16876
16877 2007-06-06  Vincent Celier  <celier@adacore.com>
16878
16879         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
16880         switch -P
16881         (ASIS_Main): New global variable
16882         (Get_Closure): New procedure
16883         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
16884         check, metric or pretty. Call Get_Closure in this case.
16885         (Check_Files): For GNAT LIST, check all sources of all projects when
16886         All_Projects is True.
16887         (GNATCmd): Accept -U for GNAT LIST
16888
16889 2007-06-06  Vincent Celier  <celier@adacore.com>
16890
16891         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
16892         has been specified
16893         Correct error message when invocation of the linker fails
16894         Add explicit size clause for the C imported variables
16895         Object_List_File_Supported and Using_GNU_Linker to emphasize that
16896         we expect char size.
16897         Read target parameters earlier, since this is needed to set
16898         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
16899         targets.
16900
16901 2007-06-06  Vincent Celier  <celier@adacore.com>
16902
16903         * gnatls.adb:
16904         Add 3 spaces before the default project directory when displaying
16905         the project search path.
16906         Add new command line switch '-l' to display license information.
16907
16908 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
16909
16910         * gmem.c: Add support for timestamps on memory operations.
16911
16912         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
16913         operations (not used currently, just foundation for future
16914         enhancements). Add possibility to perform full dump of gmem.out file.
16915         (Print_Back_Traces): Declare accesses to root arrays constants since
16916         they aren't modified.
16917         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
16918
16919 2007-06-06  Vincent Celier  <celier@adacore.com>
16920
16921         * gnatsym.adb: Update Copyright notice
16922         (Parse_Cmd_Line): Accept new switch -D
16923         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
16924          file.
16925
16926         * prj.ads (Policy): New policy Direct
16927         (Yes_No_Unknown): New enumeration type
16928         (Project_Data): New component Libgnarl_Needed
16929
16930         * prj-nmsc.adb (Check_For_Source): When recording a source file make
16931         use the untouched pathname casing.
16932         (Get_Directories): Ensure that the Display_Exec_Directory is using the
16933         proper casing on non case-sensitive platforms like Windows.
16934         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
16935         on all platforms, as it is not possible to know which one is allowed
16936         before processing the project files.
16937         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
16938         specified when symbol policy is Direct. Check that when there is a
16939         symbol file defined (either by default or with attribute
16940         Library_Symbol_File) it is not the same as the reference symbol file.
16941         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
16942         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
16943         extending projects.
16944         (Record_Ada_Source): Record a source that has been locally removed in an
16945         imported project.
16946
16947         * symbols.ads (Policy): New policy Direct
16948
16949         * symbols-vms.adb (Initialize): Take new policy Direct in case
16950         statement
16951
16952 2007-06-06  Vincent Celier  <celier@adacore.com>
16953
16954         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
16955         Correct obvious bug (return Dir; instead of return Directory;).
16956         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
16957
16958 2007-06-06  Thomas Quinot  <quinot@adacore.com>
16959
16960         * g-pehage.adb (Produce): Open output files in Binary mode, so that
16961         they have UNIX line endings (LF only) even on Windows, and thus pass
16962         all GNAT style checks.
16963
16964 2007-06-06  Emmanuel Briot  <briot@adacore.com>
16965
16966         * g-regpat.adb (Quote): Fix improper quoting of '.'
16967
16968 2007-06-06  Thomas Quinot  <quinot@adacore.com>
16969
16970         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
16971         default, set False on a per-runtime basis.
16972         (Need_Netdb_Buffer): New constant.
16973
16974         * g-socket.ads, g-socket.adb: Import new package
16975         GNAT.Sockets.Thin.Task_Safe_NetDB.
16976         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
16977         binding to obtain proper message.
16978         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
16979         Replace various occurrences of Arry (Arry'First)'Address with the
16980         equivalent Arry'Address (GNAT always follows implementation advice from
16981         13.3(14)).
16982         (Get_Host_By_Address, Get_Host_By_Name,
16983         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
16984         instead, rely on platform-specific task safe netdb operations provided
16985         by g-socthi.
16986
16987         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
16988         parameter Process_Blocking_IO.
16989         (Host_Error_Messages): Add stub body.
16990         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16991         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
16992         Safe_Getservbyport): Move functions into new child package
16993         Task_Safe_NetDB.
16994         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
16995         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
16996         (In_Addr): Add alignment clause.
16997
16998 2007-06-06  Robert Dewar  <dewar@adacore.com>
16999
17000         * g-trasym.ads, g-traceb.ads: Update list of supported targets
17001         Add note about symbolic traceback
17002
17003 2007-06-06  Pascal Obry  <obry@adacore.com>
17004
17005         * hostparm.ads (Normalized_CWD): Use the host directory separator
17006         instead of the hardcoded forward slash which is not the proper
17007         character on Windows for example.
17008         (Java_VM): Removed.
17009
17010 2007-06-06  Vincent Celier  <celier@adacore.com>
17011             Arnaud Charlet  <charlet@adacore.com>
17012
17013         * a-clrefi.adb, a-clrefi.ads: New files
17014
17015         * impunit.adb: Add s-os_lib in the list of user visible units.
17016         (Non_Imp_File_Names_95): Add a-clrefi to this list
17017         Remove obsolete run-time entries.
17018         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
17019          "a-exetim" -- Ada.Execution_Time
17020          "a-extiti" -- Ada.Execution_Time.Timers
17021
17022         * mlib-prj.ads, mlib-prj.adb
17023         (Build_Library): Use untouched object dir and library dir. At the
17024         same time makes sure that the checks are done using the canonical
17025         form. Removes hard-coded directory separator and use the proper host
17026         one instead.
17027         (Process_Project): Do not look in object directory to check if libgnarl
17028         is needed for a library, if there is no object directory.
17029         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
17030         linking.
17031         (Build_Library): When invoking gnatbind, use a response file if the
17032         total size of the arguments is too large.
17033
17034         * Makefile.rtl: (g-sttsne): New object file.
17035         Add entry for a-clrefi, s-utf_32, System.Exceptions
17036
17037         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
17038         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
17039         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
17040         Change g-string to s-string, g-os_lib to s-os_lib
17041         Change all g-utf_32 references to s-utf_32
17042
17043 2007-06-06  Tristan Gingold  <gingold@adacore.com>
17044             Olivier Hainque  <hainque@adacore.com>
17045
17046         * init.c: Do not adjust IP of an imported VMS exception of ia64.
17047         LIB$STOP is called to raise an exception and the IP of the exception
17048         is the instruction right after the call.
17049         (__gnat_adjust_context_for_raise, AIX): Implement.
17050         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
17051          adjust_context_for_raise before Raise_From_Signal_Hanler.
17052         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
17053         siginfo is passed to the handler, necessary to let the zcx propagation
17054         engine unwind past it.
17055
17056 2007-06-06  Olivier Hainque  <hainque@adacore.com>
17057
17058         * initialize.c (__gnat_initialize for vxworks):  Update documentation
17059         on the ZCX support, using different sets of crtstuff objects than with
17060         GCC 3.4.
17061
17062 2007-06-06  Robert Dewar  <dewar@adacore.com>
17063
17064         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
17065         spec from body
17066         (Layout_Type): Fix recomputation of size from alignment.
17067
17068 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
17069             Javier Miranda  <miranda@adacore.com>
17070
17071         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
17072         association in an instance.
17073         (Copy_Generic_Node): If the node is a string literal, no need to copy
17074         its descendants.
17075         (Is_Generic_Formal): For a formal subprogram, the declaration is the
17076         grandparent of the entity.
17077         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
17078         to simplify handling of formal interfaces that derive from other formal
17079         interfaces.
17080         (Instantiate_Subprogram_Body): The defining unit name of the body of
17081         the instance should be a defining identifier.
17082         (Install_Formal_Packages): make global to the package, for use in
17083         instantiations of child units.
17084         (Analyze_Package_Instantiation): Do not attempt to set information on an
17085         enclosing master of an entry when expansion is disabled.
17086         (Instantiate_Type): If the actual is a tagged synchronized type and the
17087         generic ancestor is an interface, create a generic actual for the
17088         corresponding record.
17089         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
17090         declaration, to ensure that the interface list is processed correctly.
17091         (Inline_Instance_Body): If enclosing scope is an instance body, remove
17092         its entities from visibiility as well.
17093         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
17094         given with a named association, analyze the expression only, not the
17095         discriminant association itself.
17096         (Reset_Entity): If the analysis of a selected component is transformed
17097         into an expanded name in the prefix of a call with parameters, do not
17098         transform the original node into an expanded name, to prevent visibility
17099         errors in the case of nested generics.
17100         (Check_Private_View): For an array type, check whether the index types
17101         may need exchanging.
17102
17103 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
17104             Vincent Celier  <celier@adacore.com>
17105
17106         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
17107         since both are separated.
17108         Add support for imported CIL packages.
17109         Add further special handling of "value_type" for CIL.
17110         Add special handling of pragma Import for CIL.
17111
17112         * make.ads, make.adb: When switch -eS is used, direct all outputs to
17113         standard output instead of standard error, except errors.
17114         (Absolute_Path): Use untouched casing for the parent directory.
17115         (Add_Library_Search_Dir): Use the untouched directory name.
17116         (Add_Source_Search_Dir): Idem.
17117         (Change_To_Object_Directory): Update output to use proper casing.
17118         (Create_Binder_Mapping_File): Use the untouched filename to set
17119         ALI_Name.
17120         (Gnatmake): Use untouched library and executable directory names.
17121         (Insert_Project_Sources): Use untouched filename for spec and body.
17122         (Is_In_Object_Directory): Use untouched object directory.
17123         (Mark_Directory): Idem.
17124         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
17125         contains the non-canonical filename in all cases.
17126         (Change_To_Object_Directory): In verbose mode, display the name of the
17127         object directory we're changing to.
17128         (Compile_Sources): Make sure, when a project file is used, to compile
17129         the body of the unit, when there is one, even when only the spec is
17130         recorded in an ALI file.
17131         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
17132         spec to the body.
17133         (Report_Compilation_Failed): New procedure
17134         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
17135         procedures moved from the spec to the body.
17136         (Extract_Failure): Removed, not used
17137         Replace explicit raises of exception Bind_Failed and Link_Failed with
17138         calls to Make_Failed with the proper message.
17139         Replace explicit raises of exception Compilation_Failed with calls to
17140         procedure Report_Compilation_Failed.
17141         (Initialize): Create mapping files unconditionally when using project
17142         files.
17143
17144         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
17145         Pragma_CIL_Constructor): New names.
17146
17147         * targparm.ads, targparm.adb
17148         (Compiler_System_Version): Removed, no longer used.
17149         (Get_Target_Parameters): Relax checks on system.ads validity. Add
17150         handling of two new system flags: JVM and CLI.
17151
17152 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
17153             Arnaud Charlet  <charlet@adacore.com>
17154
17155         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
17156         time, use the default s-interr body that provides interrupt support
17157         based on signals.
17158         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
17159         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
17160         g-soccon.ads, and s-taprop.adb for the marte run time.
17161         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
17162         timers are supported on marte.
17163         (EH_MECHANISM for marte): Do not use ZCX.
17164         (THREADSLIB for marte): Use -lmarte.
17165         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
17166         Add mlib-tgt-specific.o to gnatmake objects
17167         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
17168         longer of MLib.Tgt.
17169         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
17170         6, either kernel or rtp, use a specialized version of s-osinte.ads.
17171
17172 2007-06-06  Pascal Obry  <obry@adacore.com>
17173
17174         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
17175
17176 2007-06-06  Vincent Celier  <celier@adacore.com>
17177
17178         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
17179         separator, use instead the proper host directory separator.
17180         (Copy_ALI_Files): Make sure that an already existing ALI file in the
17181         ALI copy dir is writable, before doing the copy.
17182
17183         * mlib-utl.ads, mlib-utl.adb:
17184         (Gcc): If length of command line is too long, put the list of object
17185         files in a response file, if this is supported by the platform.
17186         (Ar): If invocation of the archive builder is allowed to be done in
17187         chunks and building it in one shot would go above an OS dependent
17188         limit on the number of characters on the command line, build the archive
17189         in chunks.
17190
17191 2007-06-06  Vincent Celier  <celier@adacore.com>
17192
17193         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
17194         of specified object file is not equal to base name of source.
17195
17196 2007-06-06  Javier Miranda  <miranda@adacore.com>
17197             Hristian Kirtchev  <kirtchev@adacore.com>
17198             Ed Schonberg  <schonberg@adacore.com>
17199
17200         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
17201         the full type declaration.
17202         (Analyze_Component_Declaration): Add local variable E to capture the
17203         initialization expression of the declaration. Replace the occurences of
17204         Expression (N) with E.
17205         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
17206         limited interface object with a function call.
17207         (Array_Type_Declaration): If the declaration lacks subtype marks for
17208         indices, create a simple index list to prevent cascaded errors.
17209         (Is_Null_Extension): Ignore internal components created for secondary
17210         tags when checking whether a record extension is a null extension.
17211         (Check_Abstract_Interfaces): Add missing support for interface subtypes
17212         and generic formals.
17213         (Derived_Type_Declaration): Add missing support for interface subtypes
17214         and generic formals.
17215         (Analyze_Object_Declaration): If an initialization expression is
17216         present, traverse its subtree and mark all allocators as static
17217         coextensions.
17218         (Add_Interface_Tag_Component): When looking for components that may be
17219         secondary tags, ignore pragmas that can appear within a record
17220         declaration.
17221         (Check_Abstract_Overriding): an inherited function that dispatches on
17222         result does not need to be overriden if the controlling type is a null
17223         extension.
17224         (Mentions_T): Handle properly a 'class attribute in an anonymous access
17225         component declaration, when the prefix is an expanded name.
17226         (Inherit_Component): If the derivation is for a private extension,
17227         inherited components remain visible and their ekind should not be set
17228         to Void.
17229         (Find_Type_Of_Object): In the case of an access definition, always set
17230         Is_Local_Anonymous_Access. We were previously not marking the anonymous
17231         access type of a return object as a local anonymous type.
17232         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
17233         range with character literal bounds.
17234         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
17235         (Access_Subprogram_Declaration): Indicate that the type declaration
17236         depends on an incomplete type only if the incomplete type is declared
17237         in an open scope.
17238         (Analyze_Subtype_Declaration): Handle properly subtypes of
17239         synchronized types that are tagged, and that may appear as generic
17240         actuals.
17241         (Access_Subprogram_Declaration): An anonymous access to subprogram can
17242         appear as an access discriminant in a private type declaration.
17243         (Add_Interface_Tag_Components): Complete decoration of the component
17244         containing the tag of a secondary dispatch table and the component
17245         containing the offset to the base of the object (this latter component
17246         is only generated when the parent type has discriminants --as documented
17247         in this routine).
17248         (Inherit_Components): Use the new decoration of the tag components to
17249         improve the condition that avoids inheriting the components associated
17250         with secondary tags of the parent.
17251         (Build_Discriminanted_Subtype): Indicate to the backend that the
17252         size of record types associated with dispatch tables is known at
17253         compile time.
17254         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
17255         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
17256         to include task, protected, and synchronized interfaces as limited
17257         interfaces.
17258         (Process_Discriminants): Remove the setting of
17259         Is_Local_Anonymous_Access on the type of (anonymous) access
17260         discriminants of nonlimited types.
17261         (Analyze_Interface_Type_Declaration): Complete the decoration of the
17262         class-wide entity it is is already present. This situation occurs if
17263         the limited-view has been previously built.
17264         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
17265         field.
17266         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
17267         Related_Interface.
17268
17269 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
17270
17271         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
17272         of the type that specify the position of interface tags when the type
17273         inherits discriminated array components from the parent type.
17274         If a component is initialized with a box, check for the presence of a
17275         default expression in its declaration before using its default
17276         initialization procedure.
17277         (Resolve_Record_Aggregate): If a component is box-initialized, and the
17278         component type has a discriminants, create a partial aggregate for it
17279         by copying the discriminants of the component subtype.
17280         Reject attempt to initialize a discriminant with a box.
17281         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
17282         associated with dispatch tables is known at compile time.
17283         (Get_Value): If an association in a record aggregate has a box
17284         association, and the corresponding record component has a default
17285         expression, always copy the default expression, even when the
17286         association has a single choice, in order to create a proper
17287         association for the expanded aggregate.
17288
17289 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
17290             Robert Dewar  <dewar@adacore.com>
17291
17292         * par-ch12.adb (P_Generic_Associations): The source position of an
17293         Others association is that of the others keyword, not that of the token
17294         that follows the box.
17295         (P_Formal_Type_Definition): Handle formal access types that carry a
17296         not null indicator.
17297
17298         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
17299         multiple identifier are present, save Scan_State before scanning the
17300         colon, to ensure that separate trees are constructed for each
17301         declaration.
17302         (P_Identifier_Declarations): For object declaration, set new flag
17303         Has_Init_Expression if initialization expression present.
17304         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
17305         Improve NOT NULL error messages
17306
17307 2007-06-06  Robert Dewar  <dewar@adacore.com>
17308
17309         * par-ch4.adb: (P_Name): Recover from literal used as name
17310
17311 2007-06-06  Vincent Celier  <celier@adacore.com>
17312
17313         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
17314         defaulted to False.
17315         In the "not" case, recursive call with Complemented set to True.
17316         Do not allow "or" or "and" operators when Complemented is True.
17317
17318 2007-06-06  Vincent Celier  <celier@adacore.com>
17319
17320         * prj.adb (Project_Empty): Gives default value for new component
17321         Libgnarl_Needed
17322
17323         * prj-attr.ads: Minor reformatting
17324
17325         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
17326         directory using the untouched casing.
17327         (For_All_Source_Dirs): Idem.
17328
17329         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
17330         directories specified with switches -aP.
17331         (Add_Search_Project_Directory): New procedure
17332         (Initialize_Project_Path): Put the directories in table
17333         Search_Directories in the project search path.
17334         (Initialize_Project_Path): For VMS, transform into canonical form the
17335         project path.
17336
17337 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
17338
17339         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
17340         true if configurable run-time or No_Run_Time is set.
17341         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
17342         processing an unit which is not the one being compiled.
17343
17344 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
17345
17346         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
17347         Replace UC by Ada.UC
17348
17349         * s-bitops.adb: Get rid of System.Pure_Exceptions.
17350         Replace UC by Ada.UC
17351
17352 2007-06-06  Robert Dewar  <dewar@adacore.com>
17353
17354         * scng.adb: (Check_End_Of_Line): Deal with very long lines
17355
17356 2007-06-06  Robert Dewar  <dewar@adacore.com>
17357
17358         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
17359         Remove no longer used nodes.
17360
17361 2007-06-06  Javier Miranda  <miranda@adacore.com>
17362             Ed Schonberg  <schonberg@adacore.com>
17363             Robert Dewar  <dewar@adacore.com>
17364
17365         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
17366         on obsolescent withed unit in case of limited-withed units.
17367         (Analyze_Compilation_Unit): Add guard to code that removed an
17368         instantiation from visibility, to prevent compiler aborts when
17369         instantiation is abandoned early on.
17370         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
17371         current unit being analyzed, and Distinguish local incomplete types
17372         from limited views of types declared elsewhere.
17373         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
17374         to state that the class-wide entity is shared by the limited-view
17375         and the full-view.
17376         (Analyze_With_Clause): Improve placement of flag for case of
17377         unimplemented unit.
17378         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
17379         manner similar to GNAT.Current_Exception. This is a violation of
17380         restriction (No_Exception_Propagation), and also inhibits the
17381         optimization of local raise to goto.
17382         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
17383         and if so set Most_Recent_Exception_Used flag in Opt, and also check
17384         for violation of restriction No_Exception_Propagation.
17385
17386 2007-06-06  Javier Miranda  <miranda@adacore.com>
17387             Hristian Kirtchev  <kirtchev@adacore.com>
17388             Gary Dismukes  <dismukes@adacore.com>
17389
17390         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
17391         use of entity Exception_Occurrence if it is not available in the
17392         target run-time.
17393
17394         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
17395         concurrent types are declared within an Ada 2005 generic, build their
17396         corresponding record types since they are needed for overriding-related
17397         semantic checks.
17398         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
17399         protected type does not implement a task interface or a nonlimited
17400         interface.
17401         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
17402         type does not implement a protected interface or a nonlimited interface.
17403         (Single_Task_Declaration, Single_Protected_Declaration): use original
17404         entity for variable declaration, to ensure that debugging information
17405         is correcty generated.
17406         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
17407         routines if the expander is not active.
17408         (Analyze_Task_Body): Mark all handlers to stop optimization of local
17409         raise, since special things happen for task exception handlers.
17410
17411         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
17412         concurrent types declared within a generic.
17413         (Check_Dispatching_Operation): Do not emit warning about late interface
17414         operations in the context of an instance.
17415         (Check_Dispatching_Call): Remove restriction against calling a
17416         dispatching operation with a limited controlling result.
17417         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
17418         Register_Interface_DT_Entry by calls to Register_Primitive.
17419         (Check_Dispatching_Formals): Handle properly a function with a
17420         controlling access result.
17421
17422 2007-06-06  Robert Dewar  <dewar@adacore.com>
17423             Arnaud Charlet  <charlet@adacore.com>
17424
17425         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
17426         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
17427         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
17428         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
17429         message when using a VM, since this attribute is not supported.
17430         (Analyze_Record_Representation_Clause): Give unrepped component warnings
17431
17432         * usage.adb: Add new warning for renaming of function return objects
17433         Indicate that -gnatwp and -gnatwP concern front-end inlining
17434         Add line for -gnatyg
17435         Add usage information for -gnatw.c/C
17436
17437 2007-06-06  Robert Dewar  <dewar@adacore.com>
17438             Ed Schonberg  <schonberg@adacore.com>
17439
17440         * sem_ch5.adb
17441         (Find_Var): Do not consider function call in test for infinite loop
17442         warning if warnings set off for function entity.
17443         (One_Bound): Do not create a temporary for a loop bound if it is a
17444         character literal.
17445         (Analyze_Assignment): Traverse the right hand side of an assignment and
17446         mark all allocators as static coextensions.
17447         (Analyze_Assignment): Exempt assignments involving a dispatching call
17448         to a function with a controlling access result from the check requiring
17449         the target to be class-wide.
17450
17451 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
17452             Ed Schonberg  <schonberg@adacore.com>
17453             Robert Dewar  <dewar@adacore.com>
17454             Javier Miranda  <miranda@adacore.com>
17455
17456         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
17457         chain of coextensions when an allocator serves as the root of such a
17458         chain.
17459         (Propagate_Coextensions): Remove the test for the root being an
17460         allocator.
17461         (Resolve_Allocator): Add condition to ensure that all future decoration
17462         occurs on an allocator node. Add processing and cleanup for static
17463         coextensions.
17464         (Valid_Conversion): If the operand type is the limited view of a
17465         class-wide type, use the non-limited view is available to determine
17466         legality of operation.
17467         (Ambiguous_Character): move to spec, for use elsewhere.
17468         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
17469         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
17470         character literals.
17471         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
17472         Do_Division_Check flag explicitly.
17473         (Resolve_Actuals): If the actual is of a synchronized type, and the
17474         formal is of the corresponding record type, this is a call to a
17475         primitive operation of the type, that is declared outside of the type;
17476         the actual must be unchecked-converted to the type of the actual
17477         (Resolve_Call): Kill all current values for any subprogram call if
17478         flag Suppress_Value_Tracking_On_Call is set.
17479         (Resolve_Type_Conversion): Generate error message the the operand
17480         or target of interface conversions come from a limited view.
17481         (Check_Infinite_Recursion): Ignore generated calls
17482         (Check_Allocator_Discrim_Accessibility): New procedure for checking
17483         that an expression that constrains an access discriminant in an
17484         allocator does not denote an object with a deeper level than the
17485         allocator's access type.
17486         (Resolve_Allocator): In the case of an allocator initialized by an
17487         aggregate of a discriminated type, check that associations for any
17488         access discriminants satisfy accessibility requirements by calling
17489         Check_Allocator_Discrim_Accessibility.
17490         (Resolve_Equality_Op): Handle comparisons of anonymous access to
17491         subprogram types in the same fashion as other anonymous access types.
17492         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
17493         message that is not a continuation message.
17494         (Resolve_Type_Conversion): Add missing support for conversion to
17495         interface type.
17496         (Resolve_Actuals): Introduce a transient scope around the call if an
17497         actual is a call to a function returning a limited type, because the
17498         resulting value must be finalized after the call.
17499         (Resolve_Actuals): If the call was given in prefix notations, check
17500         whether an implicit 'Access reference or implicit dereference must be
17501         added to make the actual conform to the controlling formal.
17502
17503 2007-06-06  Robert Dewar  <dewar@adacore.com>
17504             Javier Miranda  <miranda@adacore.com>
17505
17506         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
17507         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
17508         overriding of an inherited private subprogram now there is no need to
17509         inherit its dispatching slot and reduce the size of the dispatch table.
17510         Set_All_DT_Position now ensures that the same slot is now assigned to
17511         both entities. This is required to statically build the dispatch table.
17512         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
17513         of calling Set_All_DT_Position to re-evaluate the position of the
17514         entries in the dispatch table. Such reevaluation is not desired if
17515         the tagged type is already frozen.
17516
17517 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
17518             Gary Dismukes  <dismukes@adacore.com>
17519             Robert Dewar  <dewar@adacore.com>
17520             Javier Miranda  <miranda@adacore.com>
17521
17522         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
17523         reference acts as an lvalue when the attribute name modifies the prefix
17524         (Is_Coextension_Root): New routine.
17525         (Mark_Static_Coextensions): New routine.
17526         (Type_Access_Level): Revise code for checking the level of the
17527         anonymous access type of a return object.
17528         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
17529         (Matches_Prefixed_View_Profile): Remove the no longer necessary
17530         retrieval of the corresponding controlling record type.
17531         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
17532         concurrent types declared within a generic as well as class wide types.
17533         Emit a mode incompatibility error whenever a protected entry or routine
17534         override an interface routine whose first parameter is not of mode
17535         "out", "in out" or access to variable.
17536         (Overrides_Synchronized_Primitive): Rename to
17537         Find_Overridden_Synchronized_Primitive.
17538         (Collect_Interface_Components): New subprogram that collects all the
17539         components of a tagged record containing tags of secondary dispatch
17540         tables.
17541         (Add_Global_Declaration): New procedure
17542         (Abstract_Interface_List): Handle properly the case of a subtype of a
17543         private extension.
17544         (Type_Access_Level): In the case of a type whose parent scope is a
17545         return statement, call Type_Access_Level recursively on the enclosing
17546         function's result type to determine the level of the return object's
17547         type.
17548         (Build_Elaboration_Entity): Build name of elaboration entity from the
17549         scope chain of the entity, rather than the unit name of the file name.
17550         (Check_Nested_Access): New procedure.
17551         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
17552         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17553         (Get_Renamed_Entity): Utility routine for performing common operation
17554         of chasing the Renamed_Entity field of an entity.
17555
17556 2007-06-06  Robert Dewar  <dewar@adacore.com>
17557
17558         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
17559         elaboration model
17560         (Check_A_Call): Add check for entry call which was causing blowup
17561
17562 2007-06-06  Olivier Hainque  <hainque@adacore.com>
17563
17564         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
17565         special code on ia64-vms to handle major incompatibilities between the
17566         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
17567         this routine with a very different set of arguments and expectations on
17568         the return value.
17569
17570 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17571
17572         * socket.c (__gnat_close_signalling_fd): New function.
17573         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
17574         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
17575         New supporting functions for task safe Netdb operations.
17576
17577 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17578             Olivier Hainque  <hainque@adacore.com>
17579
17580         * a-except-2005.ads, a-except-2005.adb
17581         (Raise_From_Controlled_Operation): New procedure in
17582         (private part of) Ada.Exceptions (standard runtime version). Used to
17583         provide informational exception message when Program_Error is raised as
17584         a result of an Adjust or Finalize operation propagating an exception.
17585         (Rmsg_28): Fix description for E.4(18) check.
17586         (Raise_Current_Excep): Call Debug_Raise_Exception just before
17587         propagation starts, to let debuggers know about the event in a reliable
17588         fashion.
17589         Take the address of E and dereference to make sure it is homed on stack
17590         and prevent the stores from being deleted, necessary for proper
17591         debugger behavior on "break exception" hits.
17592         (Local_Raise): Moved to System.Exceptions
17593
17594         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
17595         exception message from the current occurrence and raise Program_Error
17596         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
17597
17598 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
17599             Arnaud Charlet  <charlet@adacore.com>
17600
17601         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
17602         lock, if needed.
17603
17604         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
17605         priority associated to a lock.
17606
17607         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
17608         assertion to take into account case of no abort restriction.
17609         (Initialize_Protection_Entries): Add initialization for the field
17610         New_Ceiling associated to the protected object.
17611         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
17612         needed.
17613
17614         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17615         since this function needs to be set consistently with Update_Exception.
17616
17617         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17618         since this function needs to be set consistently with Update_Exception.
17619
17620         * s-taskin.ads: Update comments on
17621         Interrupt_Server_Blocked_On_Event_Flag.
17622         (Unbind_Handler): Fix handling of server_task wakeup
17623         (Server_Task): Set self's state so that Unbind_Handler can take
17624         appropriate actions.
17625         (Common_ATCB): Now use a constant from System.Parameters to determine
17626         the max size of the Task_Image field.
17627
17628         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
17629         Initialize_Analyzer function.
17630         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
17631         take into account case of no abort restriction.
17632         ([Vulnerable_]Complete_Master): Modify assertion.
17633
17634         * s-tataat.adb (Finalize): Use the nestable versions of
17635         Defer/Undefer_Abort.
17636
17637         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
17638
17639         * s-tpobop.ads: Update comments.
17640
17641         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
17642         of locking the object manually, to avoid inconsistencies between
17643         Lock/Unlock_Entry assertions.
17644
17645         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
17646         terminating
17647         application and System.Parameters.No_Abort is True.
17648         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
17649         (Unbind_Handler): Fix handling of server_task wakeup
17650         (Server_Task): Set self's state so that Unbind_Handler can take
17651         appropriate actions.
17652
17653 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17654
17655         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
17656         declarations instead of an explicit null body, for conciseness.
17657
17658 2007-06-06  Robert Dewar  <dewar@adacore.com>
17659
17660         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
17661         illegal aggregate and the type is still Any_Composite.
17662         (Subtypes_Statically_Match): Fix problem of empty discriminant list
17663
17664 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
17665
17666         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
17667         to prevent subsequent expansion.
17668
17669 2007-06-06  Robert Dewar  <dewar@adacore.com>
17670
17671         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
17672
17673 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
17674             Robert Dewar  <dewar@adacore.com>
17675
17676         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
17677         exceptions.
17678         (Write_Itype): Handle case of string literal subtype, which
17679         comes up in this context.
17680         (Update_Itype): when debugging expanded code, update sloc of itypes
17681         associated with defining_identifiers and ranges, for gdb use.
17682         (Sprint_Node_Actual): Add static keyword to object or exception
17683         declaration output if Is_Statically_Allocated is True.
17684         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
17685         or task body, so that the tree carries the proper Sloc information for
17686         debugging use.
17687         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
17688
17689 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
17690
17691         * s-secsta.adb (Chunk): Ensure this object has a static size known at
17692         compile time, to avoid dynamic memory allocation
17693         (Elaboration code): Only use dynamic memory allocation when needed.
17694
17695 2007-06-06  Quentin Ochem  <ochem@adacore.com>
17696
17697         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
17698         "Overflow_Guard".
17699         (Stack_Analyzer): Added field "Overflow_Guard"
17700         (Task_Result): Added field "Overflow_Guard".
17701         (Index_Str): New constant.
17702         (Task_Name_Str): New constant.
17703         (Actual_Size_Str): New constant.
17704         (Pattern_Array_Element_Size): New constant.
17705         (Get_Usage_Range): New subprogram.
17706         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
17707         Now align the output.
17708         Added comments.
17709         (Initialize): Added value for Overflow_Guard.
17710         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
17711         Update the value of the overflow guard according to the actual
17712         beginning of the pattern array.
17713         (Initialize_Analyzer): Added parameter Overflow_Guard.
17714         Take this parameter into accound when computing the max size.
17715         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
17716         (Report_Result): Removed extra useless procedure.
17717         Updated call to Output_Result.
17718         Moved full computation of the Task_Result here.
17719
17720 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17721
17722         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
17723         Thread_Blocking_IO, always True by default, set False on a per-runtime
17724         basis.
17725         Add Windows-specific constants
17726         Add new constant Need_Netdb_Buffer.
17727         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17728         not, whether to use getXXXbyYYY_r.
17729
17730         * gsocket.h: Add new constant Need_Netdb_Buffer.
17731         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17732         not, whether to use getXXXbyYYY_r.
17733
17734 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17735
17736         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
17737         than their first call.
17738         Add type Dummy_Communication_Block used in the generation of the pre-
17739         defined dispatching primitive _disp_asynchronous_select.
17740         (Storage_Element): Put Pragma Universal_Aliasing on it.
17741
17742 2007-06-06  Vincent Celier  <celier@adacore.com>
17743
17744         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
17745         function.
17746
17747         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
17748         letter if it is not followed by a '/' or a '\'.
17749         (Windows): New Boolean function
17750
17751         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
17752         Ada 2005.
17753         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
17754         drive letter.
17755         (Containing_Directory): Raise Use_Error when the directory is a root
17756         directory.
17757         (Extension): When returning the result, use a conversion to Result_Type,
17758         not a qualification.
17759
17760 2007-06-06  Robert Dewar  <dewar@adacore.com>
17761
17762         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
17763         (Set_Style_Check_Options): Recognize new -gnatyg style switch
17764
17765         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
17766         Warn_On_Non_Local_Exception to False, to turn off warnings for
17767         No_Exception_Propagation in ZFP runtime.
17768         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
17769         back-ends.
17770         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
17771
17772 2007-06-06  Vincent Celier  <celier@adacore.com>
17773
17774         * switch-b.adb (Scan_Binder_Switches): Add processing for new
17775         switches -R and -Z
17776
17777         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
17778         (Scan_Make_Switches): Recognize new switch -aP
17779
17780 2007-06-06  Matthew Gingell  <gingell@adacore.com>
17781             Jose Ruiz  <ruiz@adacore.com>
17782
17783         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
17784         VxWorks task descriptor in the Ada run time, call a C subprogram
17785         (__gnat_get_stack_info) that extracts the required information.
17786
17787         * sysdep.c: Back out temporary lynxos workaround.
17788         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
17789         time the stack information associated to the currently executing task.
17790         Only VxWorks systems require this function.
17791
17792 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17793
17794         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
17795         add the stack bias if the offset is computed from a frame address.
17796         (__gnat_backtrace): Adjust for above change.
17797
17798 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17799
17800         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
17801         PE_Non_Transportable_Actual.
17802         (By_Descriptor_Last): New constant.
17803         (By_Copy_Return): Likewise.
17804
17805 2007-06-06  Vincent Celier  <celier@adacore.com>
17806
17807         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
17808         is.
17809
17810         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
17811         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
17812         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
17813         Add missing comment for /OPTIMIZE=SPACE
17814         Add entry for OPTIMIZE=SPACE
17815         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
17816         Add documentation for new qualifiers corresponding to -gnatw.c/.C
17817
17818 2007-06-06  Vincent Celier  <celier@adacore.com>
17819             Robert Dewar  <dewar@adacore.com>
17820
17821         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
17822         -gnatw.C)
17823
17824         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
17825         Document gnatbind switch -a
17826         (case Constructions): Document that variables declarations are allowed
17827         for previously declared variables.
17828         Fix external lib project example
17829         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
17830         Indicate that "#if not X or Y then" is not allowed in input files to
17831         gnatprep.
17832         Document gnatw.x and gnatw.X warning flags
17833         Mention -Winline switch to activate warnings when back-end inlining is
17834         ineffective.
17835         Add gnatcheck rule descriptions
17836         Describe how to use the GNAT driver to call a tool on a closure.
17837         Describe how to run project-wide checks or metrics.
17838         Document gnatbind's -R option
17839         Updated to account for Ada 2005 support
17840
17841         * gnat_rm.texi (Case Construction): Allow variable declarations for
17842         previously declared variables.
17843         (Representation Clauses and Pragmas): Lift restriction on alignment
17844         clauses for record types.
17845         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
17846         Document No_Exception_Propagation restriction
17847         Document No_Body pragma
17848         Updated to account for Ada 2005 support; corrected some typos
17849         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
17850
17851         * gnat-style.texi: Make it clear that we never use mode IN for
17852         procedures or functions
17853
17854         * ug_words: Add entries for -gnatw.x and -gnatw.X
17855         Add entries for -gnatw.c/.C
17856
17857 2007-06-06  Pascal Obry  <obry@adacore.com>
17858             Vincent Celier  <celier@adacore.com>
17859
17860         * makegpr.adb (Add_Archive_Path): Use untouched object and library
17861         dirs and library name.
17862         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
17863         comments.
17864         (Build_Library): Idem.
17865         (Compile_Individual_Sources): Idem.
17866         (Compile_Link_With_Gnatmake): Idem.
17867         (Compile_Sources): Idem.
17868         (Get_Imported_Directories): Idem.
17869         (Link_Executables): Idem. Same change for the executable dir.
17870         (Check_Compilation_Needed): C_Source_Path new variable containing
17871         the canonical form of Source_Path to check against the source names
17872         in the dependency file.
17873         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
17874         verbose mode, display the name of the object directory we're changing
17875         to.
17876         (Saved_Switches): New name of table X_Switches
17877         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
17878         (Usage): New line for switch -aP
17879         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
17880         testing if a directory should be added to the search path.
17881
17882 2007-06-06  Javier Miranda  <miranda@adacore.com>
17883
17884         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
17885         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
17886         declaration after freezing point of all its associated tagged types;
17887         otherwise such types are frozen too early.
17888
17889 2007-06-06  Robert Dewar  <dewar@adacore.com>
17890
17891         * a-reatim.adb: Documentation addition
17892
17893         * g-cgideb.adb: Minor code reorganization
17894
17895         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
17896         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
17897         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
17898
17899         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
17900         function.  Change name New_Scope to Push_Scope
17901         (Get_Debug_Flag_K): Remove unused obsolete function.
17902
17903         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
17904         Push_Scope.
17905
17906         * makeusg.adb: Update Copyright notice
17907         Add line for switch -aP
17908
17909         * makeusg.adb: Fix wording of some usage messages
17910
17911         * s-assert.adb (Raise_Assert_Failure): Add call to
17912         Debug_Raise_Assert_Failure.
17913
17914         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
17915         (2, Standard'Alignment) for compatibility with AAMP (where alignment
17916         is restricted to 1).
17917
17918         * s-wchjis.adb: Remove use of System.Pure_Exceptions
17919
17920         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
17921         node location to No_Location when we're not debugging the expanded
17922         code.
17923
17924 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
17925
17926         * misc.c (enumerate_modes): Consider log2_b to always be one.
17927
17928 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
17929
17930         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17931
17932 2007-05-02  Pascal Obry  <obry@adacore.com>
17933
17934         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
17935         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
17936         encoding support of Stream_IO.
17937         (Write_Unit): Idem.
17938
17939         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
17940         filename and corresponding encoding to match the OS requirement.
17941         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
17942         routine will fail on specific devices like CON: AUX: ...
17943
17944         PR ada/29856: Add missing braces
17945
17946 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17947
17948         PR ada/31660
17949         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
17950
17951 2007-04-21  Jan Hubicka  <jh@suse.cz>
17952
17953         * misc.c (gnat_expand_body): Don't call target for destructors,
17954         avoid redundant check on syntax errors.
17955
17956 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17957
17958         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
17959         instead of checking GIMPLE_STMT_P in chain_next.
17960
17961 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
17962
17963         PR ada/31576
17964         * system-linux-alpha.ads: Disable constant condition warning for the
17965         Default_Bit_Order variable.
17966         * system-linux-s390.ads: Likewise.
17967         * system-linux-s390x.ads: Likewise.
17968         * system-linux-sparc.ads: Likewise.
17969
17970 2007-04-06  Javier Miranda  <miranda@adacore.com>
17971             Matt Heaney  <heaney@adacore.com>
17972             Robert Dewar  <dewar@adacore.com>
17973
17974         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
17975         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
17976         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
17977         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
17978         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
17979         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
17980         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
17981         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
17982         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
17983         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
17984         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
17985         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
17986         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
17987         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
17988         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
17989         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
17990         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
17991         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
17992         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
17993         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
17994         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
17995         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
17996         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
17997         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
17998         s-taprop-tru64.adb, s-taprop-irix.adb,
17999         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
18000         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
18001         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
18002         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
18003         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
18004         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
18005         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
18006         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
18007         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
18008         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
18009         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
18010         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
18011         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
18012         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
18013         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
18014         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
18015         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
18016         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
18017         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
18018         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
18019         access types.
18020         Update documentation.
18021         Minor rewording.
18022
18023 2007-04-06  Robert Dewar  <dewar@adacore.com>
18024
18025         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
18026         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
18027         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
18028         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18029         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
18030         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
18031         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
18032         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
18033         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
18034         system-hpux-ia64.ads, targparm.adb,
18035         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
18036
18037         * system.ads: Move Functions_Return_By_DSP to obsolete section,
18038         kept for bootstrap purposes only.
18039
18040 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
18041
18042         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
18043         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
18044         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
18045         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
18046
18047 2007-04-06  Robert Dewar  <dewar@adacore.com>
18048
18049         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
18050         (Local_Raise): New dummy procedure called when a raise is converted
18051         to a local goto. Used for debugger to detect that the exception
18052         is raised.
18053
18054         * debug.adb: Document new d.g flag (expand local raise statements to
18055         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
18056
18057         * exp_sel.adb: Use Make_Implicit_Exception_Handler
18058
18059         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
18060         suppress warnings for unused handlers.
18061         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
18062         warnings for raise statements not handled locally.
18063         (Get_RT_Exception_Entity): New function
18064         (Get_Local_Call_Entity): New function
18065         (Find_Local_Handler): New function
18066         (Warn_If_No_Propagation): New procedure
18067         (Expand_At_End_Handler): Call Make_Implicit_Handler
18068         (Expand_Exception_Handlers): Major additions to deal with local handlers
18069         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
18070         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
18071         for local raise
18072
18073         * exp_ch11.ads (Get_RT_Exception_Entity): New function
18074         (Get_Local_Call_Entity): New function
18075
18076         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
18077         of restrictions that the binder will never suggest adding.
18078
18079         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
18080         to No_Elist.
18081
18082         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
18083         be with'ed in the presence of pragma Restriction
18084         (No_Exception_Propagation).
18085
18086         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
18087
18088         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
18089         parameter, then the handler is not a suitable target for a local raise,
18090         and this is a violation of restriction No_Exception_Propagation.
18091         (Analyze_Handled_Statements): Analyze choice parameters in exception
18092         handlers before analyzing statement sequence (needed for proper
18093         detection of local raise statements).
18094         (Analyze_Raise_Statement): Reraise statement is a violation of the
18095         No_Exception_Propagation restriction.
18096
18097         * s-rident.ads: Add new restriction No_Exception_Propagation
18098
18099         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
18100         function, like Make_Exception_Handler but sets Local_Raise_Statements
18101         to No_List.
18102         (Add_Unique_Serial_Number): Deal with case where this is called during
18103         processing of configuration pragmas.
18104
18105 2007-04-06  Thomas Quinot  <quinot@adacore.com>
18106             Pat Rogers  <rogers@adacore.com>
18107             Pascal Obry  <obry@adacore.com>
18108
18109         * g-stsifd-sockets.adb: New file.
18110
18111         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
18112         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
18113         g-socthi-vms.adb: Move signalling
18114         fd management to a nested package, so that they can conveniently be
18115         moved to a subunit that is shared across Windows, VMS, and VxWorks
18116         (Ada implementation) or completed with imported bodies from socket.c
18117         (UNIX case).
18118         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
18119         subprograms.
18120         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
18121         the signalling file descriptor.
18122         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
18123         signalling file descriptor.
18124         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
18125         instead of creating a pair of sockets for signalling here.
18126
18127         * g-socthi.adb: Ditto.
18128         Set the runtime process to ignore SIGPIPEs on platforms that support
18129         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18130
18131         * g-socthi-mingw.adb: Ditto.
18132         (WS_Version): Use Windows 2.2.
18133         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18134
18135         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
18136         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18137
18138         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
18139         added GNAT byte swapping facility
18140         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
18141
18142         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
18143
18144         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
18145         New subprograms.
18146         (__gnat_create_signalling_fds): New subprogram.
18147         Set the runtime process to ignore SIGPIPEs on platforms that support
18148         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18149
18150 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
18151             Vincent Celier  <celier@adacore.com>
18152
18153         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
18154         New version of Ada.Calendar which supports the new upper bound of Ada
18155         time (2399-12-31 86_399.999999999).
18156         The following modifications have been made to the package:
18157          - New representation of time as count of nanoseconds since the start of
18158            Ada time (1901-1-1 0.0).
18159          - Target independent Split and Time_Of routines which service both
18160            Ada 95 and Ada 2005 code.
18161          - Target independent interface to the Ada 2005 children of Calendar.
18162          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
18163          - Handling of non-leap centenial years.
18164          - Updated clock function.
18165          - Updated arithmetic and comparison operators.
18166
18167         * a-caldel.adb (To_Duration): Add call to target independent routine in
18168         Ada.Calendar to handle the conversion of time to duration.
18169
18170         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
18171         (UTC Offset).
18172         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
18173         set off to 0.
18174         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
18175         targets do not have a natural time zone, GMT is used as a default.
18176         (__gnat_get_task_options): New.
18177
18178         * a-direct.adb (Modification_Time): Add with and use clauses for
18179         Ada.Calendar and Ada.
18180         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
18181         since it is no longer needed.
18182         (Duration_To_Time): Removed.
18183         (OS_Time_To_Long_Integer): Removed.
18184         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
18185         Formatting Time_Of routines which automatically handle time zones,
18186         buffer periods and leap seconds.
18187
18188         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
18189         target independent routines in Ada.Calendar.
18190
18191         * a-calfor.ads, a-calfor.adb:
18192         Code cleanup and addition of validity checks in various routines.
18193         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
18194         Ada.Calendar.
18195
18196         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
18197         independent routine in Ada.Calendar.
18198
18199 2007-04-06  Olivier Hainque  <hainque@adacore.com>
18200
18201         * adaint.c:
18202         (convert_addresses): Adjust prototype and dummy definition to expect an
18203          extra file_name argument.
18204
18205         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
18206         filling the now expected file_name argument with the appropriate
18207         argv[0] expansion.
18208         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
18209         (tracebk): Array of void * instead of char *, corresponding to what
18210          convert_addresses expects.
18211         (exename): New static global, to hold the executable file name to be
18212         used in all convert_addresses invocations.
18213         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
18214         change.
18215         (__gnat_gmem_a2l_initialize): Resolve exename.
18216         (__gnat_convert_addresses): Use exename as the convert_addresses
18217         file_name argument.
18218
18219         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
18220         "convert_addresses", now expecting a filename argument. Import the
18221         necessary entities to compute the filename to use and pass it to
18222         convert_addresses.
18223
18224 2007-04-06  Matt Gingell  <gingell@adacore.com>
18225
18226         * system-aix.ads: Back out previous change.
18227         (Functions_Return_By_DSP): Removed
18228
18229 2007-04-06  Pascal Obry  <obry@adacore.com>
18230
18231         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
18232         or the monotonic used by Ada.Real_Time) to compute the sleep duration
18233         on Windows.
18234
18235 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
18236
18237         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
18238         function. Its value changes in different VxWorks versions, and it is
18239         now handled by the function __gnat_get_task_options.
18240
18241         * s-taprop-vxworks.adb (Create_Task): Call the function
18242         __gnat_get_task_options to get the required options for creating a task.
18243
18244 2007-04-06  Pascal Obry  <obry@adacore.com>
18245             Thomas Quinot  <quinot@adacore.com>
18246
18247         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
18248         dealing with filename.
18249         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
18250         filename from a standard string to a wide-string depending on the
18251         encoding value.
18252         (__gnat_freopen): Idem.
18253         (__gnat_current_time): New function (wrapper for time(3) standard C
18254         function).
18255
18256         * g-os_lib.ads (Current_Time): New function. Returns the current
18257         system time as an OS_Time value.
18258
18259         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
18260         (Monotonic_Clock): Same.
18261
18262 2007-04-06  Quentin Ochem  <ochem@adacore.com>
18263
18264         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
18265         not on a natural.
18266         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
18267
18268 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
18269
18270         * a-retide.adb: Add elaboration code to ensure that the tasking run
18271         time is initialized when using delay operations even when no task is
18272         created.
18273
18274 2007-04-06  Javier Miranda  <miranda@adacore.com>
18275
18276         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
18277         component Num_Prim_Ops.
18278         (Set_Num_Prim_Ops): Removed.
18279         Remove all the assertions because all the routines of this
18280         package are inline always.
18281         (Get_Offset_Index): Add support to primary dispatch tables.
18282         Move the documentation about the dispatch table to a-tags.ads
18283         (Set_External_Tag): Removed
18284         (Inherit_TSD): Removed.
18285         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
18286         moved to a-tags.ads
18287         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
18288         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
18289         of the TSD field "Table" because this field has been renamed to
18290         "Ifaces_Table".
18291         (Inherit_CPP_DT): Removed.
18292         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
18293         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
18294         declarations have been moved to a-tags.ads
18295         (Check_Size): Removed.
18296         (Expanded_Name): Updated to get access to the new field of TSD
18297         containing the address of the expanded name.
18298         (Get_Access_Level/Set_Access_Level): Removed.
18299         (Get_Predefined_Prim_Op_Address): Removed.
18300         (Set_Predefined_Prim_Op_Address): Removed.
18301         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
18302         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
18303         (Set_Expanded_Name): Removed.
18304         (Inherit_DT): Removed.
18305         (Inherit_CPP_DT): Removed.
18306         (Set_RC_Offset): Removed.
18307         (Set_TSD): Removed.
18308         (Base_Address): New function that displaces "this" to point to the base
18309         of the object (that is, to point to the primary tag of the object).
18310
18311 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18312             Javier Miranda  <miranda@adacore.com>
18313
18314         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
18315         anonymous access component, do not create a master_id if type already
18316         has one, as may happen if the type is a subcomponent of a packed array
18317         type.
18318         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
18319         Initialize_Tag): Remove code associated with the old CPP pragmas.
18320         CPP_Virtual and CPP_Vtable are no longer supported.
18321         (Build_Offset_To_Top_Internal): Add support for concurrent record types
18322         (Build_Offset_To_Top_Functions): Add support for concurrent record types
18323         (Freeze_Record_Type): Remove call to
18324         Init_Predefined_Interface_Primitives.
18325         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
18326         code required to initialize the tags of the secondary dispatch tables.
18327         This leaves the algoritm more clear.
18328         (Init_Secondary_Tags): Add support for concurrent record types
18329         (Make_Predefined_Primitive_Specs): Code cleanup.
18330         (Predefined_Primitive_Bodies): Code cleanup.
18331         (Build_Master_Renaming): New local subprogram.
18332         (Expand_N_Full_Type_Declaration): Build the master_id associated with
18333         anonymous access to task type components.
18334         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
18335         subtype indication are resolved during analysis, and must not be done
18336         here.
18337         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
18338
18339 2007-04-06  Geert Bosch  <bosch@adacore.com>
18340             Ed Schonberg  <schonberg@adacore.com>
18341             Javier Miranda  <miranda@adacore.com>
18342             Bob Duff  <duff@adacore.com>
18343
18344         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
18345         for conversion of a Float_Type'Truncation to integer.
18346
18347         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
18348         check if a node is an attribute that can be handled directly by the
18349         back end.
18350         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
18351         attributes that can be handled directly by the back end.
18352         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
18353         use new predicate Is_Access_Protected_Subprogram_Type.
18354         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
18355         and Unchecked_Union if it is generated as part of the default  Output
18356         procedure for a type with default discriminants.
18357         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
18358         if we are compiling under restriction No_Dispatching_Calls.
18359         (Constrained): Use Underlying_Type, in case the type is private without
18360         discriminants, but the full type has discriminants.
18361         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
18362         call to Build_Get_Access_Level.
18363         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
18364         interface objects requires a call to the run-time subprogram that
18365         returns the base address of the object.
18366         (Valid_Conversion): Improve error message on illegal attempt to store
18367         an anonymous access to subprogram value into a record component.
18368
18369         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
18370         null".
18371         (Simplify_Type_Conversion): New procedure that performs simplification
18372         of Int_Type (Float_Type'Truncation (X)).
18373         (Resolve_Type_Conversion): Call above procedure after resolving operand
18374         and before performing checks. This replaces the existing ineffective
18375         code in Exp_Ch4.
18376         (Set_String_Literal_Subtype): When creating the internal static lower
18377         bound subtype for a string literal, use a newly created copy of the
18378         subtree representing the lower bound.
18379         (Resolve_Call): Exclude build-in-place function calls from transient
18380         scope treatment. Update comments to describe this exception.
18381         (Resolve_Equality_Op): In case of dispatching call check violation of
18382         restriction No_Dispatching_Calls.
18383         (Resolve_Call): If the call returns an array, the context imposes the
18384         component type of the array, and the function has one non-defaulted
18385         parameter, rewrite the call as the indexing of a call with a single
18386         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
18387         in prefix form.
18388         (Resolve_Actuals): If an actual is an allocator for an access parameter,
18389         the master of the created object is the innermost enclosing statement.
18390         (Remove_Conversions): For a binary operator, check if type of second
18391         formal is numeric, to check if an abstract interpretation is present
18392         in the case of exponentiation as well.
18393
18394 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18395             Bob Duff  <duff@adacore.com>
18396
18397         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
18398         copying a parameter list in a call, set properly the First_Named_Formal
18399         and Next_Named_Formal fields in the new list and in the enclosing call.
18400         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
18401         names, to ease typing in the debugger. Improve comments.
18402         (Watch_Node): New variable, intended to be set in the debugger.
18403         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
18404         called when the watched node is created.
18405         (New_Node_Debugging_Output): Combined version of local procedures
18406         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
18407         with a parameter so that conditional breakpoints like "if Node = 12345"
18408         work.
18409         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
18410         Add Elist1 function
18411
18412 2007-04-06  Thomas Quinot  <quinot@adacore.com>
18413             Ed Schonberg  <schonberg@adacore.com>
18414             Gary Dismukes  <dismukes@adacore.com>
18415
18416         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
18417         required for a conversion between two access-to-unconstrained-array
18418         types.
18419         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
18420         to discriminant constraints on discriminant objects. This rule must
18421         apply as well to discriminants of protected types in private components.
18422         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
18423         object of a null-excluding access type then don't require the
18424         the object declaration to have an expression and don't emit a
18425         run-time check.
18426
18427 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
18428             Eric Botcazou  <botcazou@adacore.com>
18429
18430         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
18431         and made constant.
18432
18433         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
18434         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
18435         carry any.
18436
18437         * fe.h (Compiler_Abort): Add third parameter.
18438
18439         * misc.c (internal_error_function): Build third argument from current
18440         input location and pass it to Compiler_Abort.
18441
18442 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
18443
18444         * cstand.adb (Create_Standard): When the target's storage unit size is
18445         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
18446         Standard_String.
18447
18448 2007-04-06  Nicolas Roche  <roche@adacore.com>
18449
18450         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
18451         absolute path can have the following form: device:/a/b. In this case
18452         '/' should be inserted between the path and the filename.
18453
18454 2007-04-06  Olivier Hainque  <hainque@adacore.com>
18455             Eric Botcazou  <botcazou@adacore.com>
18456
18457         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
18458         VAR_DECL to a CONST_DECL we make for a public constant when we know the
18459         corresponding definition has created the so made visible variable.
18460         Handle anonymous access to protected subprogram.
18461         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
18462         object with an address clause volatile.  Re-enable original fix.
18463         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
18464         too.
18465         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
18466         associated with either the Equivalent or Root type, instead of the
18467         naked type node.
18468         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
18469         subtree for every field of a global record type.
18470         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
18471         discriminants, invoke again variable_size on its newly computed sizes.
18472
18473 2007-04-06  Robert Dewar  <dewar@adacore.com>
18474             Thomas Quinot  <quinot@adacore.com>
18475             Ed Schonberg  <schonberg@adacore.com>
18476             Bob Duff  <duff@adacore.com>
18477
18478         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
18479         (Next_Component_Or_Discriminant): New function and procedure
18480         (First_Index, First_Literal, Master_Id,
18481         Set_First_Index, Set_First_Literal, Set_Master_Id):
18482         Add missing Ekind assertions.
18483         (Is_Access_Protected_Subprogram_Type): New predicate.
18484         (Has_RACW): New entity flag, set on package entities to indicate that
18485         the package contains the declaration of a remote accecss-to-classwide
18486         type.
18487         (E_Return_Statement): This node type has the Finalization_Chain_Entity
18488         attribute, in case the result type has controlled parts.
18489         (Requires_Overriding): Add this new flag, because "requires
18490         overriding" is subtly different from "is abstract" (see AI-228).
18491         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
18492         Is_Abstract_Type. Make sure these are called only when appropriate.
18493         (Has_Pragma_Unreferenced_Objects): New flag
18494
18495         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
18496         class-wide, the tag of the right-hand side must be an exact match, not
18497         an ancestor of that of the object on left-hand side.
18498         (Move_Activation_Chain): New procedure to create the call to
18499         System.Tasking.Stages.Move_Activation_Chain.
18500         (Expand_N_Extended_Return_Statement): Generate code to call
18501         System.Finalization_Implementation.Move_Final_List at the end of a
18502         return statement if the function's result type has controlled parts.
18503         Move asserts to Build_In_Place_Formal.
18504         (Move_Final_List): New function to create the call statement.
18505         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
18506         tagged type, replace generation of call to the run-time subprogram
18507         CW_Membership by call to Build_CW_Membership.
18508         (Expand_N_Return_Statement): Replace generation of call to the run-time
18509         subprogram Get_Access_Level by call to Build_Get_Access_Level.
18510         (Expand_N_Simple_Function_Return): Replace generation of call to the
18511         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18512
18513         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
18514         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
18515         access to protected operations.
18516         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
18517         master and chain actual parameters to a build-in-place function call
18518         involving tasks.
18519         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
18520         statement.
18521         (Make_Build_In_Place_Call_In_Allocator,
18522         Make_Build_In_Place_Call_In_Anonymous_Context,
18523         Make_Build_In_Place_Call_In_Assignment,
18524         Make_Build_In_Place_Call_In_Object_Declaration): Call
18525         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
18526         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
18527         stubbed procedure with a null body, replace the call with a null
18528         statement without using the full inlining machinery, for efficiency
18529         and to avoid invalid values in source file table entries.
18530
18531         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
18532         renamings of calls to build-in-place functions.
18533
18534         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
18535         provides the functionality of RTE_Available to record components.
18536         (RTU_Entity): The function Entity has been renamed to RTU_Entity
18537         to avoid undesired overloading.
18538         (Entity): New subprogram that returns the entity for the referened
18539         unit. If this unit has not been loaded, it returns Empty.
18540         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
18541         Remove no longer used entities.
18542         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
18543         (RE_Type_Specific_Data): New entity.
18544         (RE_Move_Any_Value): New entity.
18545         (RE_TA_A, RE_Get_Any_Type): New entities.
18546         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
18547          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
18548          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
18549         (Entity): New subprogram that returns the entity for the referened
18550         unit. If this unit has not been loaded, it returns Empty.
18551         (RTE): Addition of a new formal that extends the search to the scopes
18552         of the record types found in the chain of the package.
18553
18554         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
18555         "abstract subprograms must be visible" message, whether or not the type
18556         is an interface; that is, remove the special case for interface types.
18557         (Analyze_Function_Return): Remove error message "return of task objects
18558         is not yet implemented" because this is now implemented.
18559         (Create_Extra_Formals): Add the extra master and activation chain
18560         formals in case the result type has tasks.
18561         Remove error message "return of limited controlled objects is not yet
18562         implemented".
18563         (Create_Extra_Formals): Add the extra caller's finalization list formal
18564         in case the result type has controlled parts.
18565         (Process_Formals): In case of access formal types there is no need
18566         to continue with the analysis of the formals if we already notified
18567         errors.
18568         (Check_Overriding_Indicator): Add code to check overriding of predefined
18569         operators.
18570         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
18571         flags for formals that do not require them,.
18572         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
18573         hidden entity is use visible or directly visible.
18574         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
18575         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
18576         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
18577         New_Overloaded_Entity): Split Is_Abstract flag into
18578         Is_Abstract_Subprogram and Is_Abstract_Type.
18579
18580         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
18581         a return statement's finalization list to the caller's list, used for
18582         build-in-place functions with result type with controlled parts.
18583         Remove no longer used entities.
18584
18585         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
18586         longer needed, because the full type is now limited, and therefore a
18587         pass-by-reference type.
18588         (Foreign_Task_Level): New constant.
18589
18590         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
18591         move tasks from the activation chain belonging to a return statement to
18592         the one passed in by the caller, and update the master to the one
18593         passed in by the caller.
18594         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
18595         of unactivated tasks, so we don't kill the ones that are being returned
18596         by a build-in-place function.
18597         (Create_Task): Ignore AI-280 for foreign threads.
18598
18599 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18600             Robert Dewar  <dewar@adacore.com>
18601             Bob Duff  <duff@adacore.com>
18602             Gary Dismukes  <dismukes@adacore.com>
18603
18604         * errout.adb (Unwind_Internal_Type): Use predicate
18605         Is_Access__Protected_Subprogram_Type.
18606
18607         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
18608         (Freeze_Entity, packed array case): Do not override explicitly set
18609         alignment and size clauses.
18610         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
18611         the enclosing subprogram is a child unit body that acts as a spec.
18612         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
18613         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
18614         Remove all code for DSP option
18615
18616         * layout.adb (Layout_Record_Type): Use First/
18617         Next_Component_Or_Discriminant
18618         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
18619         to handle properly the anonymous access case.
18620
18621         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
18622         for all access attributes, because overload resolution should work the
18623         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
18624         causes the error message for the ambiguous "X'Access = Y'Access" and
18625         "X'Unrestricted_Access = Y'Access" and so forth to match.
18626         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
18627         now that anonymous access to protected operations have their own kind.
18628         (Resolve_Attribute): In case of dispatching call check the violation of
18629         restriction No_Dispatching_Calls.
18630         (Check_Array_Type): Check new -gnatyA array index style option
18631
18632         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
18633         attempt to derive from a synchronized tagged type.
18634         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
18635         type, inherit the class-wide type already created, because it may
18636         already have been used in a self-referential anonymous access component.
18637         (Mentions_T): Recognize self-referential anonymous access components
18638         that use (a subtype of) the class-wide type of the enclosing type.
18639         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
18640         Derived_Type for Prev formal on call to
18641         Check_Anonymous_Access_Components rather than Empty.
18642         (Make_Incomplete_Type_Declaration): Add test for case where the type has
18643         a record extension in deciding whether to create a class-wide type,
18644         rather than just checking Tagged_Present.
18645         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
18646         to stand-alone object declarations as well as component declarations.
18647         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
18648         prevent accidental overwriting when enclosing package appears in
18649         a limited_with_clause.
18650         (Array_Type_Declaration): If the component type is an anonymous access,
18651         the associated_node for the itype is the type declaration itself.
18652         (Add_Interface_Tag_Components): Modified to support concurrent
18653         types with abstract interfaces.
18654         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
18655         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
18656         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
18657         to complete the decoration of synchronized interface types. Add also
18658         a call to Check_Abstract_Interfaces to verify the ARM rules.
18659         (Derive_Interface_Subprograms): Modified to support concurrent types
18660         with abstract interfaces.
18661         (Analyze_Subtype_Indication): Resolve the range with the given subtype
18662         mark, rather than delaying the full resolution depending on context.
18663         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
18664         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
18665         Array_Type_Declaration,Build_Derived_Record_Type,
18666         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
18667         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
18668         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
18669         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18670         called only when appropriate.
18671         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
18672         to private type.
18673         (Analyze_Subtype_Declaration): For an access subtype declaration, create
18674         an itype reference for the anonymous designated subtype, to prevent
18675         scope anonmalies in gigi.
18676         (Build_Itype_Reference): New utility, to simplify construction of such
18677         references.
18678
18679 2007-04-06  Vincent Celier  <celier@adacore.com>
18680
18681         * errutil.adb (Initialize): Initialize warnings table, if all warnings
18682         are suppressed, supply an initial dummy entry covering all possible
18683         source locations.
18684
18685         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
18686         and start with only one, such as "-RTS=none".
18687         (Collect_Arguments): Do not check for sources outside of projects.
18688         Do not collect arguments if project is externally built.
18689         (Compile_Sources): Do nothing, not even check if the source is up to
18690         date, if its project is externally built.
18691         (Compile): When compiling a predefined source, add -gnatpg
18692         as the second switch, after -c.
18693         (Compile_Sources): Allow compilation of Annex J renames without -a
18694         (Is_In_Object_Directory): Check if the ALI file is in the object
18695         even if there is no project extension.
18696         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
18697         gnatbind if the ALI file effectively exists.
18698         (Initialize): Add the directory where gnatmake is invoked in front of
18699         the path if it is invoked from a bin directory, even without directory
18700         information, so that the correct GNAT tools will be used when spawned
18701         without directory information.
18702
18703         * makeusg.adb: Change switch -S to -eS
18704         Add lines for new switches -we, -wn and -ws
18705         Add line for new switch -p
18706
18707         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
18708         Treat_As_Error and there are warnings.
18709
18710         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
18711         -gnatww Change gnatmake switch -S to -eS
18712         (Scan_Make_Switches): Code reorganisation. Process separately multi
18713         character switches and single character switches.
18714         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
18715         False when switch is not recognized by gnatmake.
18716         (Scan_Make_Switches): Set Setup_Projects True when -p or
18717         --create-missing-dirs is specified.
18718
18719         * fname.adb (Is_Predefined_File_Name): Return True for annex J
18720         renamings Calendar, Machine_Code, Unchecked_Conversion and
18721         Unchecked_Deallocation only when Renamings_Included is True.
18722
18723         * par.adb: Allow library units Calendar, Machine_Code,
18724         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
18725         when -gnatg is not specified.
18726         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18727         there is no need to generate always a record_definition_node in case
18728         of synchronized interface types.
18729         (SIS_Entry_Active): Initialize global variable to False
18730         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
18731         indicate cases where AI-447 says "not null" is legal.
18732
18733         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
18734
18735         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
18736         files with with several lines starting with the object fileb name.
18737         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
18738         is specified.
18739         (Initialize): Add the directory where gprmake is invoked in front of the
18740         path, if it is invoked from a bin directory or with directory
18741         information, so that the correct GNAT tools will be used when invoked
18742         directly.
18743         (Check_Compilation_Needed): Process correctly backslashes on Windows.
18744
18745         * vms_data.ads: Update switches/qualifiers
18746
18747 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18748             Thomas Quinot  <quinot@adacore.com>
18749
18750         * exp_aggr.adb:
18751         If the array component is a discriminated record, the array aggregate
18752         is non-static even if the component is given by an aggregate with
18753         static components.
18754         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
18755         (Convert_Aggr_In_Allocator): If the allocator is for an access
18756         discriminant and the type is controlled. do not place on a finalization
18757         list at this point. The proper list will be determined from the
18758         enclosing object.
18759         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
18760         initialize record controller if needed, before the components, to ensure
18761         that they are properly finalized.
18762         (Build_Record_Aggr_Code): For the case of an array component that has a
18763         corresponding array aggregate in the record aggregate, perform sliding
18764         if required.
18765
18766 2007-04-06  Javier Miranda  <miranda@adacore.com>
18767             Gary Dismukes  <dismukes@adacore.com>
18768             Ed Schonberg  <schonberg@adacore.com>
18769
18770         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
18771         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
18772
18773         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
18774         accessibility on class-wide allocators if the allocator occurs at the
18775         same scope level as the allocator's type. The check is guaranteed to
18776         succeed in that case, even when the expression originates from a
18777         parameter of the containing subprogram.
18778         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
18779         under No_Dispatching_Calls restriction. During the semantic analysis
18780         we already notified such violation.
18781         (Tagged_Membership): Constant folding. There is no need to check
18782         the tag at run-time if the type of the right operand is non
18783         class-wide abstract.
18784         Replace call to Is_Ancestor by call to Is_Parent
18785         to support concurrent types with interface types.
18786         (Expand_N_Allocator): Add an assertion associated with the generation
18787         of the master_id.
18788         (Expand_N_Slice): Do not enable range check to nodes associated
18789         with the frontend expansion of the dispatch table.
18790         (Is_Local_Access_Discriminant): Subsidiary function to
18791         Expand_N_Allocator.
18792         (Tagged_Membership): Replace generation of call to the run-time
18793         subprogram CW_Membership by call to Build_CW_Membership.
18794         (Expand_Allocator_Expression): Replace generation of call to the
18795         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18796
18797         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
18798         initialize most the TSD components by means of an aggregate.
18799         Modify the declaration of the object containing the TSD
18800         because we now expand code that has a higher level of abstraction.
18801         The TSD has a discriminant containing the Inheritance Depth Level,
18802         value that is used in the membership test but also to fix the size
18803         of the table of ancestors.
18804         (Expand_Interface_Conversion): Insert function body at the closest place
18805         to the conversion expression, to prevent access-before-elaboration
18806         errors in the backend.
18807         Code improved to reduce the size of the dispatch table if
18808         compiling under restriction No_Dispatching_Calls plus code cleanup.
18809         Code reorganization plus removal of calls to Set_Num_Prim_Ops
18810         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
18811         (Expand_Dispatching_Call): Minor code reorganization plus addition of
18812         code to return immediately if compiling under No_Dispatching_Calls
18813         restriction.
18814         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
18815         CPP_Virtual and CPP_Vtable are no longer supported.
18816         (Expand_Interface_Conversion): Add missing support for interface type
18817         derivations.
18818         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
18819         Is_Parent to support concurrent types with interfaces.
18820         (Init_Predefined_Interface_Primitives): Removed.
18821         (Make_Secondary_DT): Modified to support concurrent record types.
18822         (Set_All_DT_Position): Modified to support concurrent record types.
18823         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18824         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
18825         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
18826         with CW_Membership.
18827         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18828         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
18829         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
18830         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
18831         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
18832         (Expand_Dispatching_Call): Replace generation of call to the run-time
18833         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
18834         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
18835         Address.
18836         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
18837         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
18838         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
18839         Build_Set_Prim_Op_Address.
18840         (Get_Remotely_Callable): Subprogram removed.
18841         (Init_Predefined_Interface_Primitives): Replace generation of call to
18842         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
18843         Prims.
18844
18845         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
18846         First (Parameter_Associations ()) with the call to First_Actual that
18847         returns an actual parameter expression for both named and positional
18848         associations.
18849
18850         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
18851         check violation of restriction No_Dispatching_Calls.
18852         (Check_Controlling_Type): A formal of a tagged incomplete type is a
18853         controlling argument.
18854
18855         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
18856         First/Next_Component_Or_Discriminant
18857         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
18858         (Find_Implemented_Interface): Removed. All the calls to this subprogram
18859         specify Any_Limited_Interface, and this functionality is already
18860         provided by the function Has_Abstract_Interfaces.
18861         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
18862         support concurrent types implementing interfaces.
18863         (Find_Implemented_Interface): Removed. All the calls to this subprogram
18864         specify kind Any_Limited_Interface, and this functionality is already
18865         provided by the function Has_Abstract_Interfaces.
18866         (Remove_Side_Effects): replace Controlled_Type by
18867         CW_Or_Controlled_Type whenever the issue is related to
18868         using or not the secondary stack.
18869
18870         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
18871         P_Interface_Type_Definition to fulfill the new interface (the formal
18872         Is_Synchronized is no longer required).
18873
18874         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
18875         Update dependencies.
18876
18877         * exp_atag.ads, exp_atag.adb: New file
18878
18879 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18880             Bob Duff  <duff@adacore.com>
18881             Cyrille Comar  <comar@adacore.com>
18882
18883         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
18884         anonymous, use finalization list of enclosing dynamic scope.
18885         (Expand_N_Package_Declaration): For a library package declaration
18886         without a corresponding body, generate RACW subprogram bodies in the
18887         spec (just as we do for the task activation call).
18888         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
18889         Is_Abstract_Type. Make sure these are called only when appropriate.
18890         Remove all code for DSP option
18891         (CW_Or_Controlled_Type): new subprogram.
18892
18893 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
18894             Ed Schonberg  <schonberg@adacore.com>
18895             Gary Dismukes  <dismukes@adacore.com>
18896
18897         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
18898         parameter. If it is set to true, return a result capped according to
18899         the global upper bound for the index of an entry family.
18900         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
18901         (Build_Find_Body_Index): Adjust for above change.
18902         (Entry_Index_Expression): Likewise.
18903         (Is_Potentially_Large_Family): New function extracted from...
18904         (Collect_Entry_Families): ...here. Call it to detect whether the family
18905         is potentially large.
18906         (Build_Entry_Count_Expression): If the family is potentially large, call
18907         Family_Size with 'Cap' set to true.
18908         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
18909         a protected version of an operation declared in the private part of
18910         a protected object, because they may be invoked through a callback.
18911         (Set_Privals): If the type of a private component is an anonymous access
18912         type, do not create a new itype for each protected body.
18913         If the body of a protected operation creates
18914         controlled types (including allocators for class-widetypes), the
18915         body of the corresponding protected subprogram must include a
18916         finalization list.
18917         (Build_Activation_Chain_Entity): Build the chain entity for extended
18918         return statements.
18919         (Type_Conformant_Parameters): Use common predicate Conforming_Types
18920         to determine whether operation overrides an inherited primitive.
18921         (Build_Wrapper_Spec): Add code to examine the parents while looking
18922         for a possible overriding candidate.
18923         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
18924         hold an actual parameter value since its initialization is separated
18925         from the the declaration. Prevents errors on null-excluding access
18926         formals.
18927
18928 2007-04-06  Thomas Quinot  <quinot@adacore.com>
18929             Pablo Oliveira  <oliveira@adacore.com>
18930
18931         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
18932         Do an Unchecked_Conversion to handle the passage from the Underlying
18933         Type to the Base Type when calling Build_To_Any_Call and
18934         Build_From_Any_Call.
18935         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
18936         E_Constant, depending upon Variable formal.
18937         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18938         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
18939         parameter that requires an extra constrained parameter, declare
18940         temporary for actual as a variable, not a constant.
18941         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
18942         the unit being compiled is the one that contains the stub type.
18943         Change primitive operation name for the RACW associated with a RAS
18944         from Call to _Call so it cannot clash with any legal identifier.
18945         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
18946         Is_RAS.
18947         (Append_RACW_Bodies): New subprogram.
18948         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
18949         Add_Receiving_Stubs_To_Declarations functions.
18950         When expanding a package body, this list correspond to the
18951         statements in the HSS at the end of the pacakge.
18952         When expanding a package spec, this list correspond to the
18953         spec declarations.
18954         (Add_Receiving_Stubs_To_Declarations): Append the function
18955         registering the receiving stubs at the end of the 'Stmts' list.
18956         (RCI_Package_Locator): Pass the new Version generic formal when
18957         instantiating a RCI_Locator package.
18958         (Build_From_Any_Function): To compute the High bound for an
18959         unconstrained array actual, we add the Low bound with the length.
18960         Thus we must convert the low bound and the length to an appropriate
18961         type before doing the sum.
18962         (Build_Subprogram_Receiving_Stubs, PolyORB):
18963          * Retrieve the extra formals parameters at the
18964            end of the parameter stream.
18965          * Use Move_Any_Value to write back out parameters
18966            after executing the request as it is more efficient
18967            than Copy_Any_Value.
18968          * Build the any containing Extra Formals with the
18969            appropriate typecode.
18970         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
18971         empty Component_List.
18972         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
18973         the tree the declaration for an object that serves as actual parameter
18974         in server-side stubs.
18975         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18976         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
18977         Use Build_Actual_Object_Declaration to prepare the actuals.
18978         (Add_Parameter_To_NVList): Set the parameter mode to In for
18979         Extra Constrained Parameters.
18980         (Build_General_Calling_Stubs): Set the parameter type to boolean for
18981         Extra Constrained parameters.
18982         (Build_To_Any_Function, Build_From_Any_Function,
18983         Built_TypeCode_Function): When Typ is implicit, call the correct
18984         function with the first not implicit parent type.
18985         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
18986         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
18987         typecode from the Etype. Therefore we retrieve the correct typecode
18988         with a call to Get_Any_Type.
18989         (Copy_Specification): Do controlling formal type substitution based on
18990         Is_Controlling_Formal flag, instead of caller-provided object type.
18991         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
18992         a RACW primitive operation, we might get a subprogram declaration for an
18993         ancestor of the RACW designated type (not for the designated type
18994         itself), in the case where this operation is inherited. In this case we
18995         have no easy means of determining the original tagged type for which
18996         the primitive was declared, so instead we now rely on
18997         Copy_Specification to use the Is_Controlling_Formal flag to determine
18998         which formals require type substitution.
18999
19000 2007-04-06  Robert Dewar  <dewar@adacore.com>
19001             Ed Schonberg  <schonberg@adacore.com>
19002
19003         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
19004         GNAT.Current_Exception are not allowed if pragma Restrictions
19005         (No_Exception_Propagation) is set and in any case make the associated
19006         handler unsuitable as a target for a local raise statement.
19007         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
19008         run-time subprogram CW_Membership by call to Build_CW_Membership.
19009         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
19010         by a function call, a temporary must be created before expanding the
19011         Constructor_Call itself, to prevent out-of-order elaboration in the
19012         back-end when stack checking is enabled..
19013
19014 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19015
19016         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
19017         result are the bounds of the left operand, not the right.
19018
19019 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19020
19021         * exp_strm.adb
19022         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
19023          discriminant defaults.
19024         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
19025         (Make_Component_List_Attributes): Ditto.
19026
19027 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19028             Bob Duff  <duff@adacore.com>
19029
19030         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
19031         an association with a box as providing a value even though the
19032         initialization procedure for the type is not available.
19033         (Resolve_Record_Aggregate): Check that a choice of an association with a
19034         box corresponds to a component of the type.
19035         (Resolve_Record_Aggregate): Split Is_Abstract flag into
19036         Is_Abstract_Subprogram and Is_Abstract_Type.
19037
19038         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
19039         assert.
19040
19041         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
19042         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
19043         called only when appropriate.
19044
19045 2007-04-06  Olivier Hainque  <hainque@adacore.com>
19046
19047         * g-alleve.ads (Low Level Vector type definitions): Map each to the
19048         associated vector view instead of all to the unsigned char view.
19049
19050         * g-altcon.adb (Generic_Conversions): New internal generic package,
19051         offering facilities for all the Vector/View conversion routines
19052         implemented by this unit.
19053         (To_View/To_Vector - all versions): Reimplemented in a systematic
19054         manner, using the internal Generic_Conversions facilities.
19055
19056 2007-04-06  Pascal Obry  <obry@adacore.com>
19057
19058         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
19059         string.
19060         (Create): Free the source string before storing the new one.
19061
19062 2007-04-06  Vincent Celier  <celier@adacore.com>
19063
19064         * g-debpoo.adb (Validity): New package with a complete new
19065         implementation of subprograms Is_Valid and Set_Valid.
19066         (Is_Valid): Move to local package Validity
19067         (Set_Valid): Move to local package Validity
19068
19069 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
19070             Pablo Oliveira  <oliveira@adacore.com>
19071
19072         * g-expect.adb (Get_Command_Output): When expanding the output buffer
19073         we must ensure that there is enough place for the new data we are going
19074         to copy in.
19075
19076 2007-04-06  Thomas Quinot  <quinot@adacore.com>
19077
19078         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
19079         computation.
19080
19081 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
19082             Vincent Celier  <celier@adacore.com>
19083
19084         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
19085         (Stack_String): Add this String that contains the name of the Stack
19086         package in the project file.
19087         (Packages_To_Check_By_Stack): Add this list that contains the packages
19088         to be checked by gnatstack, which are the naming and the stack packages.
19089         (Check_Files): If no .ci files were specified for gnatstack we add all
19090         the .ci files belonging to the projects, including binder generated
19091         files.
19092         (Non_VMS_Usage): Document that gnatstack accept project file switches.
19093         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
19094         Add gnatstack to the list of commands that use project file related
19095         switches, and get the single attribute Switches from the stack package
19096         in a project file when calling gnatstack. Parse the -U flag for
19097         processing files belonging to all projects in the project tree.
19098         Remove all processing for command Setup
19099
19100         * prj-attr.adb: Add new package Stack with single attribute Switches
19101
19102         * vms_conv.ads (Command_Type): Add command Stack.
19103         Move to body declarations that are only used in the body: types Item_Id,
19104         Translation_Type, Item_Ptr, Item and its subtypes.
19105
19106         * vms_conv.adb: (Initialize): Add data for new command Stack.
19107         Add declarations moved from the spec: types Item_Id, Translation_Type,
19108         Item_Ptr, Item and its subtypes.
19109         (Cargs_Buffer): New table
19110         (Cargs): New Boolean global variable
19111         (Process_Buffer): New procedure to create arguments
19112         (Place): Put character in table Buffer or Cargs_Buffer depending on the
19113          value of Cargs.
19114         (Process_Argument): Set Cargs when processing qualifiers for GNAT
19115         COMPILE
19116         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
19117         empty, for table Cargs_Buffer.
19118         (Initialize): Remove component Setup in Command_List
19119
19120 2007-04-06  Vincent Celier  <celier@adacore.com>
19121
19122         * gprep.adb (Process_Files.Process_One_File): Use full file name when
19123         issuing pragma Source_Reference.
19124
19125 2007-04-06  Emmanuel Briot  <briot@adacore.com>
19126
19127         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
19128         [[:xdigit:]] character class.
19129         Also raise an exception when an invalid character class is used.
19130
19131 2007-04-06  Pascal Obry  <obry@adacore.com>
19132
19133         * i-cstrea.ads: (fopen): Add encoding parameter.
19134         (freopen): Idem.
19135         Change reference from a-sysdep.c to sysdep.c in comment.
19136         Update copyright notice.
19137         This set of patch add support for the encoding form parameter.
19138
19139         * mingw32.h (S2WSU): New macro to convert from a string to a
19140         wide-string using the UTF-8 encoding. The S2WS macro supports now only
19141         standard 8bits encoding.
19142         (WS2SU): As above but converting from wide-sring to string.
19143         This is needed as it is necessary to have access to both versions in the
19144         runtime for the form parameter encoding support.
19145         This set of patch add support for the encoding form parameter.
19146         (S2WS): Improve implementation to handle cases where the filename is not
19147         UTF-8 encoded. In this case we default to using the current code page
19148         for the conversion.
19149
19150         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
19151         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
19152         the constants defined in adaint.h.
19153         (fopen): Add encoding parameter.
19154         (freopen): Idem.
19155
19156         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
19157         encoding. This is needed for the Reset routine (freopen low level-call).
19158
19159         * s-fileio.adb (Open): Decode encoding form parameter and set the
19160         corresponding encoding value into AFCB structure.
19161         (Reset): Pass the encoding value to freopen.
19162         (Close): Move the call to Lock_Task to the beginning of the procedure.
19163
19164 2007-04-06  Geert Bosch  <bosch@adacore.com>
19165             Robert Dewar  <dewar@adacore.com>
19166
19167         * i-fortra.ads: Add Double_Complex type.
19168
19169         * impunit.adb: (Is_Known_Unit): New function
19170         Add Gnat.Byte_Swapping
19171         Add GNAT.SHA1
19172         Add new Ada 2005 units
19173         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
19174         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
19175         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
19176         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
19177
19178         * impunit.ads (Is_Known_Unit): New function
19179
19180         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
19181         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
19182         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
19183         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
19184         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
19185         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
19186         New files.
19187
19188         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
19189
19190         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
19191
19192 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
19193             Arnaud Charlet  <charlet@adacore.com>
19194
19195         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
19196         __gnat_adjust_context_for_raise.
19197         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
19198         implementation of floating point operations as native x86 targets.
19199         So the FPU should be initialized in the same way using finit. Fix
19200         floating point operations accuracy issues.
19201         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
19202         member in struct sigaction, so as to avoid warning for incompatible
19203         pointer types.
19204
19205 2007-04-06 Serguei Rybin  <rybin@adacore.com>
19206
19207         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
19208         switches from previously loaded tree
19209
19210 2007-04-06  Thomas Quinot  <quinot@adacore.com>
19211
19212         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
19213         cases where a given dependency has a body or not.
19214         (Write_With_File_Names): New subprogram, common code for the two cases
19215         above.
19216
19217 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19218             Javier Miranda  <miranda@adacore.com>
19219
19220         * lib-xref.ads, lib-xref.adb:
19221         Modify the loop that collects type references, to include interface
19222         types that the type implements. List each of these interfaces when
19223         building the entry for the type.
19224         (Generate_Definition): Initialize component Def and Typ of new entry
19225         in table Xrefs, to avoid to have these components unitialized.
19226         (Output_References): Split Is_Abstract flag into
19227         Is_Abstract_Subprogram and Is_Abstract_Type.
19228         (Generate_Reference): Add barrier to do not generate the warning
19229         associated with Ada 2005 entities with entities generated by the
19230         expander.
19231
19232 2007-04-06  Robert Dewar  <dewar@adacore.com>
19233             Arnaud Charlet  <charlet@adacore.com>
19234             Vincent Celier  <celier@adacore.com>
19235
19236         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
19237         Update 'Exception Handling Control' chapter which was outdated.
19238         Minor fix to documentation of -gnatwq
19239         Remove section "Adapting the Run Time to a New C++ Compiler" because
19240         it is now obsolete.
19241         Add passage on need of -nostart-files in some non-ada-main cases.
19242         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
19243         Update documentation about Interfacing with C++
19244         Add documentation for new gnatmake switch -p
19245         Add missing protocol part in URLs.
19246         Document -gnatyA
19247         Document pragma Compile_Time_Error
19248         Add documentation for Object_Size indicating that stand alone
19249         objects can have a larger size in some cases.
19250         Add node for GNAT.Byte_Swapping, GNAT.SHA1
19251         Update reference to the Ravenscar profile.
19252         Document pragma Unreferenced_Objects
19253
19254         * gnat-style.texi: Fix typo
19255
19256 2007-04-06  Vincent Celier  <celier@adacore.com>
19257
19258         * mlib.adb (Building_Library): Only output "building a library..." in
19259         verbose mode
19260
19261         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
19262         files in verbose mode.
19263
19264         * mlib-utl.adb (Ar): Only output the first object files when not in
19265         verbose mode.
19266         (Gcc): Do not display all the object files if not in verbose mode, only
19267         the first one.
19268
19269 2007-04-06  Robert Dewar  <dewar@adacore.com>
19270
19271         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
19272         it no longer destroys the contents of Name_Buffer or Name_Len and
19273         non-standard and invalid names are handled better.
19274         (Get_Decoded_Name_String): Improve performance by using
19275         Name_Has_No_Encodings flag in the name table.
19276         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
19277         Used for debugging printouts.
19278
19279 2007-04-06  Robert Dewar  <dewar@adacore.com>
19280             Javier Miranda  <miranda@adacore.com>
19281             Bob Duff  <duff@adacore.com>
19282
19283         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
19284         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
19285         there is no need to generate always a record_definition_node in case
19286         of synchronized interface types.
19287         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
19288         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
19289         illegal in Ada 95, in cases where it is legal. Change the warnings to
19290         errors in other cases. Don't give the error unless the "not null"
19291         parses properly. Correct the source position at which the error occurs.
19292         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
19293         P_Null_Exclusion, to suppress "not null" warnings.
19294         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
19295         associated goto statements.
19296
19297         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
19298         of END RECORD
19299
19300         * scans.ads (Type_Token_Location): New flag
19301
19302         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
19303         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
19304         P_Null_Exclusion, to suppress "not null" warnings.
19305
19306 2007-04-06  Robert Dewar  <dewar@adacore.com>
19307             Javier Miranda  <miranda@adacore.com>
19308             Bob Duff  <duff@adacore.com>
19309             Vincent Celier  <celier@adacore.com>
19310
19311         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
19312         (Extensions_Allowed): No longer sets Ada_Version
19313         Entry for pragma Unreferenced_Objects
19314
19315         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
19316         system.tasking if pragma priority used in a procedure
19317         (Analyze_Pragma, case Warning): Handle dot warning switches
19318         (Process_Compile_Time_Warning_Or_Error): New procedure
19319         (Analyze_Pragma): Add processing for Compile_Time_Error
19320         Add support for extra arguments External_Name and Link_Name.
19321         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
19322         (Process_Import_Or_Interface): Add support for the use of pragma Import
19323         with tagged types.
19324         (Extensions_Allowed): No longer affects Ada_Version
19325         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
19326         Is_Abstract_Type. Make sure these are called only when appropriate.
19327         Add processing for pragma Unreferenced_Objects
19328
19329         * snames.h, snames.ads, snames.adb: Add entry for pragma
19330         Compile_Time_Error
19331         Add new standard name Minimum_Binder_Options for new gprmake
19332         Add new standard names for gprmake: Archive_Suffix,
19333         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
19334         Library_Support, Library_Version_Options,
19335         Shared_Library_Minimum_Options,
19336         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
19337         Change Name_Call to Name_uCall so that it cannot clash with a legal
19338         subprogram name.
19339         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
19340         Append C_Plus_Plus to convention identifiers as synonym for CPP
19341         Add new standard names Stack and Builder_Switches
19342         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
19343         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
19344         Run_Path_Option, Toolchain_Version.
19345         Entry for pragma Unreferenced_Objects
19346
19347         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
19348         switches, without repetition of "eD". Make sure that last character of
19349         -gnatep= switch is not taken as -gnat switch character.
19350         Complete rewrite of circuit for handling saving compilation options
19351         Occasioned by need to support dot switchs for -gnatw, but cleans up
19352         things in general.
19353         -gnatX does not affect Ada_Version
19354         Include -gnatyA in -gnatg style switches
19355
19356         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
19357         warnings on return objects.
19358         (Warn_On_Useless_Assignment): Exclude warnings on return objects
19359         (Set_Dot_Warning_Switch): New procedure
19360         (Check_References): Add missing case of test for
19361         Has_Pragma_Unreferenced_Objects
19362         (Output_Unreferenced_Messages): Implement effect of new pragma
19363         Unreferenced_Objects, remove special casing of limited controlled
19364         variables.
19365
19366 2007-04-06  Vincent Celier  <celier@adacore.com>
19367
19368         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
19369         the default project path, initially done during elaboration of the
19370         package.
19371         If the prefix returned by Sdefault is null, get the prefix from a call
19372         to Executable_Prefix_Path.
19373         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
19374         null.
19375
19376         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
19377         canonical directory name to open the directory from which files are
19378         retrieved.
19379         (Record_Other_Sources): Idem.
19380         (Locate_Directory): Add the possibility to create automatically missing
19381         directories when Setup_Projects is True.
19382         Call Locate_Directory so that the directory will be created when
19383         Setup_Projects is True, for object dir, library dir, library ALI dir,
19384         library source copy dir and exec dir.
19385
19386         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
19387         versions of GNAT.
19388
19389 2007-04-06  Robert Dewar  <dewar@adacore.com>
19390
19391         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
19392         Use First/Next_Component_Or_Discriminant
19393         (Analyze_Record_Representation_Clause):
19394         Use First/Next_Component_Or_Discriminant
19395         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
19396         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
19397         definition if type is unconstrained.
19398         (Adjust_Record_For_Reverse_Bit_Order): New procedure
19399         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
19400         Is_Abstract_Subprogram and Is_Abstract_Type.
19401         (Adjust_Record_For_Reverse_Bit_Order): New procedure
19402
19403         * repinfo.adb (List_Record_Info): Use First/
19404         Next_Component_Or_Discriminant.
19405
19406         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
19407         New procedure.
19408
19409         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
19410         Include -gnatyA in default switches
19411
19412         * opt.ads: (Warn_On_Non_Local_Exception): New flag
19413         (Warn_On_Reverse_Bit_Order): New flag
19414         (Extensions_Allowed): Update the documentation.
19415         (Warn_On_Questionable_Missing_Parens): Now on by default
19416
19417         * usage.adb: Add documentation of -gnatw.x/X switches
19418         Document new -gnatyA style switch
19419         -gnatq warnings are on by default
19420
19421 2007-04-06  Ed Falis  <falis@adacore.com>
19422
19423         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
19424         full word is no longer compared twice.
19425
19426 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19427
19428         * sem_ch10.adb (Install_Limited_Context_Clauses.
19429         Expand_Limited_With_Clause): Use a new copy of selector name in the
19430         call to Make_With_Clause. This fixes the tree structure for ASIS
19431         purposes. Nothing is changed in the compiler behaviour.
19432         (Process_Body_Clauses): Handle properly use clauses whose prefix is
19433         a package renaming.
19434         (Install_Limited_With_Clauses): Do not install non-limited view when it
19435         is still incomplete.
19436
19437 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19438             Gary Dismukes  <dismukes@adacore.com>
19439
19440         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
19441         when capturing size information, instead of base type, which for a
19442         formal array type will be the unconstrained type.
19443         (Analyze_Formal_Object_Declaration): Add check for illegal default
19444         expressions for a formal in object of a limited type.
19445         (Instantiate_Object): Ditto.
19446         (Check_Formal_Package_Instance): Skip entities that are formal objects,
19447         because they were defaulted in the formal package and no check applies
19448         to them.
19449         (Check_Formal_Package_Instance): Extend conformance check to other
19450         discrete types beyond Integer.
19451         (Process_Default): Copy directly the unmatched formal. A generic copy
19452         has already been performed in Analyze_Formal_Package.
19453         (Analyze_Associations): If a formal subprogram has no match, check for
19454         partial parametrization before looking for a default, to prevent
19455         spurious errors.
19456         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
19457         not set the instantiation environment before analyzing the actuals.
19458         Fixes regression on 8515-003 with implementation of AI-133.
19459         Set_Instance_Env checks whether the generic unit is a predefined
19460         unit, in which case the instance must be analyzed with the latest Ada
19461         mode. This setting must take place after analysis of the actuals,
19462         because the actuals must be analyzed and frozen in the Ada mode extant
19463         outside of the current instantiation.
19464         (Save_Env, Restore_Env): Preserve and restore the configuration
19465         parameters so that predefined units can be compiled in the proper Ada
19466         mode.
19467         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
19468         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
19469         and Is_Abstract_Type.
19470         (Analyze_Formal_Package): For better error recovery, Add exception
19471         handler to catch Instantion_Error, which can be raised in
19472         Analyze_Associations
19473
19474 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19475             Bob Duff  <duff@adacore.com>
19476             Gary Dismukes  <dismukes@adacore.com>
19477
19478         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
19479         prefix type is a discriminated subtype of the type of the formal.
19480         (Analyze_Allocator): Collect all coextensions regardless of the context.
19481         Whether they can be allocated statically is determined in exp_ch4.
19482         (Analyze_Selected_Component): If the prefix is a limited view and the
19483         non-limited view is available, use the non-limited one.
19484         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
19485         therefore illegal), suggest a qualified expression rather than a type
19486         conversion, because a type conversion would be illegal in this context.
19487         (Anayze_Allocator): Trace recursively all nested allocators so that all
19488         coextensions are on the corresponding list for the root. Do no mark
19489         coextensions if the root allocator is within a declaration for a stack-
19490         allocated object, because the access discriminants will be allocated on
19491         the stack as well.
19492         (Analyze_Call): Remove restriction on calls to limited functions for the
19493         cases of generic actuals for formal objects, defaults for formal objects
19494         and defaults for record components.
19495         (Analyze_Allocator): Before analysis, chain coextensions on the proper
19496         element list. Their expansion is delayed until the enclosing allocator
19497         is processed and its finalization list constructed.
19498         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
19499         for an operation with the given name among the primitive operations of
19500         the corresponding record type.
19501         (Analyze_Selected_Component): If the prefix is a task type that
19502         implements an interface, and there is no entry with the given name,
19503         check whether there is another primitive operation (e.g. a function)
19504         with that name.
19505         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
19506         properly the indexing of a function call written in prefix form, where
19507         the function returns an array type, and all parameters of the function
19508         except the first have defaults.
19509         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
19510         the original operands, rather than relocating them, for efficiency and
19511         to work properly when an operand is overloaded.
19512         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
19513         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
19514         (Analyze_Selected_Component): If the prefix is a private extension, only
19515         scan the visible components, not those of the full view.
19516         (Try_Primitive_Operation): If the operation is a procedure, collect all
19517         possible interpretations, as for a function, because in the presence of
19518         classwide parameters several primitive operations of the type can match
19519         the given arguments.
19520
19521 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19522             Robert Dewar  <dewar@adacore.com>
19523
19524         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
19525         tag-indeterminate call to an abstract function, when the left-hand side
19526         is not classwide.
19527         (Analyze_Loop_Statement): Improve detection of infinite loops
19528
19529 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19530             Thomas Quinot  <quinot@adacore.com>
19531
19532         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
19533         out of Analyze_Package_Declaration, because processing must be applied
19534         to package bodies as well, for deferred constants completed by pragmas.
19535         (Analyze_Package_Declaration): When the package declaration being
19536         analyzed does not require an explicit body, call Check_Completion.
19537         (May_Need_Implicit_Body): An implicit body is required when a package
19538         spec contains the declaration of a remote access-to-classwide type.
19539         (Analyze_Package_Body): If the package contains RACWs, append the
19540         pending subprogram bodies generated by exp_dist at the end of the body.
19541         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
19542         Is_Abstract_Subprogram and Is_Abstract_Type.
19543         (Preserve_Full_Attributes): The full entity list is not an attribute
19544         that must be preserved from full to partial view.
19545
19546         * sem_dist.adb (Add_RAS_Dereference_TSS):
19547         Change primitive name to _Call so it cannot clash with any legal
19548         identifier, and be special-cased in Check_Completion.
19549         Mark the full view of the designated type for the RACW associated with
19550         a RAS as Comes_From_Source to get proper view switching when installing
19551         private declarations.
19552         Provite a placeholder nested package body along with the nested spec
19553         to have a place for Append_RACW_Bodies to generate the calling stubs
19554         and stream attributes.
19555
19556 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19557             Robert Dewar  <dewar@adacore.com>
19558
19559         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
19560         that is a limited view, check the non-limited view if available.
19561         (Undefined): Refine error message for missing with of Text_IO
19562         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
19563         to distinguish real missing with cases.
19564         Fix format of all missing with messages
19565         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
19566         renaming as body when renamed entity is abstract.
19567
19568 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19569             Javier Miranda  <miranda@adacore.com>
19570
19571         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
19572         predicate recursive, to handle complex expressions on literals whose
19573         spurious ambiguity comes from the abstract interpretation of some
19574         subexpression.
19575         (Interface_Present_In_Ancestor): Add support to concurrent record
19576         types.
19577         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
19578         Is_Abstract_Subprogram and Is_Abstract_Type.
19579
19580 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19581             Javier Miranda  <miranda@adacore.com>
19582
19583         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
19584         dereference of a local object R created as a reference to another
19585         object O, use the access level of O.
19586         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
19587         rather than local Same_Formal_Type, to check whether protected operation
19588         overrides an inherited one.
19589         (Same_Formal_Type): New predicate, used when matching signatures of
19590         overriding synchronized operations, to handle the case when a formal
19591         has a type that is a generic actual.
19592         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
19593         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
19594         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
19595         syntactic ambiguities involving indexing of function calls that return
19596         arrays.
19597         (Abstract_Interface_List): New subprogram that returns the list of
19598         abstract interfaces associated with a concurrent type or a
19599         concurrent record type.
19600         (Interface_Present_In_Parent): New subprogram used to check if a
19601         given type or some of its parents implement a given interface.
19602         (Collect_Abstract_Interfaces): Add support for concurrent types
19603         with interface types.
19604         (Has_Abstract_Interfaces): Add support for concurrent types with
19605         interface types.
19606         (Is_Parent): New subprogram that determines whether E1 is a parent
19607         of E2. For a concurrent type its parent is the first element of its
19608         list of interface types; for other types this function provides the
19609         same result than Is_Ancestor.
19610         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
19611         (Collect_Synchronized_Interfaces): Removed because the subprogram
19612         Collect_Abstract_Interfaces provides this functionality.
19613         (Collect_Abstract_Interfaces): Minor update to give support to
19614         concurrent types and thus avoid undesired code duplication.
19615         (Get_Subprogram_Entity): Handle entry calls.
19616         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
19617         entry calls.
19618         (Enter_Name): Do not give -gnatwh hiding warning for record component
19619         entities, they never result in hiding.
19620
19621 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19622             Robert Dewar  <dewar@adacore.com>
19623
19624         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
19625         to chain nested components that are allocators for access discriminants
19626         of the enclosing object.
19627         Add N_Push and N_Pop nodes
19628         New field Exception_Label added
19629         (Local_Raise_Statements): New field in N_Exception_Handler_Node
19630         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
19631         (Is_Coextension): New flag for allocators, to mark allocators that
19632         correspond to access discriminants of dynamically allocated objects.
19633         (N_Block_Statement): Document the fact that the corresponding entity
19634         can be an E_Return_Statement.
19635         (Is_Coextension): New flag for allocators.
19636         Remove all code for DSP option
19637
19638         * sprint.ads, sprint.adb: Display basic information for class_wide
19639         subtypes. Add handling of N_Push and N_Pop nodes
19640
19641 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
19642
19643         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
19644         before propagating exception.
19645
19646 2007-04-06  Olivier Hainque  <hainque@adacore.com>
19647
19648         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
19649         an address always within the call instruction from a return address.
19650
19651 2007-04-06  Olivier Hainque  <hainque@adacore.com>
19652             Eric Botcazou  <botcazou@adacore.com>
19653
19654         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
19655         expression with a COMPOUND_EXPR including the call instead of emitting
19656         the call directly here.
19657         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
19658         high bound is constant and the slice is empty.  Tidy.
19659         (tree_transform, case N_Op_Not): Handle properly the case where the
19660         operation applies to a private type whose full view is a modular type.
19661         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
19662         Address_Clause, use the associated Expression as the GNAT tree
19663         representing the choice value to ensure the corresponding GCC tree is
19664         of the proper kind.
19665         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
19666         instead of just the operands, as the base GCC stabilize_reference does.
19667         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
19668         requested; otherwise fail.
19669         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
19670
19671 2007-04-06  Thomas Quinot  <quinot@adacore.com>
19672
19673         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
19674         implementation of UI_Div.
19675         (UI_Div): Reimplement as a call to UI_Div_Rem.
19676         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
19677         remainder, avoiding the cost of a multiplication and a subtraction.
19678         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
19679         provides both quotient and remainder in a single computation.
19680         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
19681         functions for uint.
19682         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
19683         is undefined if the given n is not inversible.
19684
19685 2007-04-06  Olivier Hainque  <hainque@adacore.com>
19686
19687         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
19688         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
19689         opcodes.
19690
19691 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
19692             Olivier Hainque  <hainque@adacore.com>
19693
19694         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
19695         when updating the contents of the old pointer to an unconstrained array.
19696         (end_subprog_body): Set error_gnat_node to Empty.
19697         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
19698         (unchecked_convert): For subtype to base type conversions, require that
19699         the source be a subtype if it is an integer type.
19700         (builtin_decls): New global, vector of available builtin functions.
19701         (gnat_pushdecl): Add global builtin function declaration nodes to the
19702         builtin_decls list.
19703         (gnat_install_builtins): Adjust comments.
19704         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
19705         calling gnat_pushdecl, so that it knows when it handed a builtin
19706         function declaration node.
19707         (builtin_decl_for): Search the builtin_decls list.
19708
19709 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
19710
19711         * s-stchop-vxworks.adb:
19712         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
19713
19714 2007-04-06  Robert Dewar  <dewar@adacore.com>
19715             Arnaud Charlet  <charlet@adacore.com>
19716
19717         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
19718
19719         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
19720         of files
19721         Add mention of -Sev (set initialize_scalars option from environment
19722         variable at run time) in gnatbind usage message.
19723
19724         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
19725
19726         * fname-uf.ads: Minor comment fix
19727
19728         * osint.ads: Change pragma Elaborate to Elaborate_All
19729
19730         * par-load.adb: Add documentation.
19731
19732         * sem_cat.ads, sem_cat.adb: Minor code reorganization
19733
19734         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
19735
19736         * s-secsta.ads: Extra comments
19737
19738         * s-soflin.ads: Minor comment fixes
19739
19740         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
19741
19742         * s-wchcon.ads: Minor comment addition
19743
19744         * treepr.adb: Minor change in message
19745         (Print_Name,Print_Node): Make these debug printouts more robust: print
19746         "no such..." instead of crashing on bad input.
19747
19748 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
19749
19750         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
19751         instead of gnat_signed_or_unsigned_type.
19752         * utils.c (gnat_signed_or_unsigned_type): Remove.
19753         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
19754         * gigi.h (gnat_signed_or_unsigned_type): Remove
19755
19756 2007-03-09  Roger Sayle  <roger@eyesopen.com>
19757
19758         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
19759         fold with the result of buildN.
19760         * decl.c (gnat_to_gnu_entity): Likewise.
19761         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
19762         * utils.c (finish_record_type, merge_sizes, max_size, convert):
19763         Likewise.
19764         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
19765         nonbinary_modular_operation, build_binary_op, build_unary_op,
19766         build_cond_expr): Likewise.
19767
19768         * utils.c (convert): Use fold_build1 when casting values to void.
19769         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
19770         fold_convert instead of convert when appropriate.
19771
19772 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19773
19774         * Make-lang.in: Add install-pdf target as copied from
19775         automake v1.10 rules.
19776
19777 2007-02-28  Andreas Schwab  <schwab@suse.de>
19778
19779         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
19780         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
19781         (doc/gnat-style.info): Likewise.
19782
19783 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
19784
19785         * gnat-style.texi: Standardize title page.
19786         * gnat_rm.texi: Likewise.
19787         * gnat_ugn.texi: Likewise.
19788
19789 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
19790
19791         * decl.c (annotate_value): Adjust for refactoring of tree_map
19792         hierarchy.
19793
19794 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
19795
19796         * decl.c (annotate_value): Adjust for refactoring of tree_map
19797         hierarchy.
19798
19799 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
19800
19801         PR ada/18819
19802         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
19803         untagged derived type, add hidden components to keep discriminant
19804         layout consistent, when a given discriminant of the derived type
19805         constraints several discriminants of the parent type.
19806
19807 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19808             Sandra Loosemore  <sandra@codesourcery.com>
19809
19810         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
19811         build the call expression.
19812         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
19813         * utils.c (max_size) <tcc_exceptional>: Delete.
19814         <tcc_vl_exp>: New case.
19815         <tcc_expression>: Delete CALL_EXPR subcase.
19816         (build_global_cdtor): Use build_call_nary instead of build3.
19817         * utils2.c (build_call_1_expr): Likewise.
19818         (build_call_2_expr): Likewise.
19819         (build_call_0_expr): Likewise.
19820         (build_call_alloc_dealloc): Likewise.
19821
19822 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
19823
19824         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
19825         get_action_description_for): Replace _Unwind_Word with _uleb128_t
19826         and _Unwind_SWord with _sleb128_t.
19827
19828 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
19829
19830         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
19831         * decl.c: Include gt-ada-decl.h.
19832         (annotate_value_cache): New.
19833         (annotate_value): Use it instead of TREE_COMPLEXITY.
19834
19835 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
19836
19837         * misc.c, utils2.c: Fix comment typos.
19838
19839 2007-01-24  Roger Sayle  <roger@eyesopen.com>
19840
19841         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
19842         TREE_CONSTANT_OVERFLOW.
19843         (allocatable_size_p, annotate_value): Likewise.
19844         * trans.c (gnat_to_gnu): Likewise.
19845         * utils.c (unchecked_convert): Likewise.
19846         * utils2.c (build_simple_component_ref): Likewise.
19847
19848 2007-01-23  Richard Guenther  <rguenther@suse.de>
19849
19850         PR bootstrap/30541
19851         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
19852         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
19853         (gnatboot3): Likewise.
19854         (GNATBIND): Do not define.
19855         * Makefile.in (GNATBIND): Do not define.
19856
19857 2007-01-08  Richard Guenther  <rguenther@suse.de>
19858
19859         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
19860         * trans.c (gnat_to_gnu): Likewise.
19861
19862 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
19863
19864         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
19865         * adaint.c: Likewise.
19866
19867 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
19868
19869         Merge from gimple-tuples-branch:
19870         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
19871
19872         * ada-tree.h (lang_tree_node): Handle gimple tuples.
19873         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
19874         GIMPLE_MODIFY_STMT.
19875
19876 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
19877
19878         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
19879         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
19880         Fix typos.
19881
19882 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
19883
19884         PR ada/27936
19885         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
19886         if the initializer takes into account the padding.
19887
19888 2006-11-11  Richard Guenther  <rguenther@suse.de>
19889
19890         * trans.c (maybe_stabilize_reference): Remove handling of
19891         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
19892
19893 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
19894
19895         PR ada/29707
19896         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
19897         (To_Target_Priority): New function.
19898
19899 2006-10-31  Robert Dewar  <dewar@adacore.com>
19900
19901         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
19902         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
19903         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
19904         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
19905         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
19906         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
19907         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
19908         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
19909         a-szbzha.adb: Minor reformatting. Fix header.
19910
19911         * a-numaux-x86.adb: Add parentheses for use of unary minus
19912         * a-ngcefu.adb: Supply missing parentheses for unary minus
19913         * a-ngcoty.adb: Add parens for use of unary minus
19914         * a-ngelfu.adb: Add missing parens for unary minus
19915         * a-tifiio.adb: Add parentheses for uses of unary minus
19916
19917 2006-10-31  Robert Dewar  <dewar@adacore.com>
19918             Bob Duff  <duff@adacore.com>
19919             Ed Schonberg  <schonberg@adacore.com>
19920
19921         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
19922         with multiplying operator.
19923         (Expected_Type_Is_Any_Real): New function to determine from the Parent
19924         pointer whether the context expects "any real type".
19925         (Resolve_Arithmetic_Op): Do not give an error on calls to the
19926         universal_fixed "*" and "/" operators when they are used in a context
19927         that expects any real type. Also set the type of the node to
19928         Universal_Real in this case, because downstream processing requires it
19929         (mainly static expression evaluation).
19930         Reword some continuation messages
19931         Add some \\ sequences to continuation messages
19932         (Resolve_Call): Refine infinite recursion case. The test has been
19933         sharpened to eliminate some false positives.
19934         Check for Current_Task usage now includes entry barrier, and is now a
19935         warning, not an error.
19936         (Resolve): If the call is ambiguous, indicate whether an interpretation
19937         is an inherited operation.
19938         (Check_Aggr): When resolving aggregates, skip associations with a box,
19939         which are priori correct, and will be replaced by an actual default
19940         expression in the course of expansion.
19941         (Resolve_Type_Conversion): Add missing support for conversion from
19942         a class-wide interface to a tagged type. Minor code cleanup.
19943         (Valid_Tagged_Converion): Add support for abstact interface type
19944         conversions.
19945         (Resolve_Selected_Component): Call Generate_Reference here rather than
19946         during analysis, and use May_Be_Lvalue to distinguish read/write.
19947         (Valid_Array_Conversion): New procedure, abstracted from
19948         Valid_Conversion, to incorporate accessibility checks for arrays of
19949         anonymous access types.
19950         (Valid_Conversion): For a conversion to a numeric type occurring in an
19951         instance or inlined body, no need to check that the operand type is
19952         numeric, since this has been checked during analysis of the template.
19953         Remove legacy test for scope name Unchecked_Conversion.
19954
19955         * sem_res.ads: Minor reformatting
19956
19957         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
19958         (PE_Current_Task_In_Entry_Body): New exception code
19959         (SE_Restriction_Violation): Removed, not used
19960
19961         * a-except.ads:  Update comments.
19962
19963         * types.h, types.ads: Add definition for Validity_Check
19964         (PE_Current_Task_In_Entry_Body): New exception code
19965         (SE_Restriction_Violation): Removed, not used
19966
19967 2006-10-31  Thomas Quinot  <quinot@adacore.com>
19968
19969         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
19970         error status.
19971
19972 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
19973             Jose Ruiz  <ruiz@adacore.com>
19974
19975         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
19976         part of Ada.Calendar: all subprogram raise Unimplemented.
19977         (Split_W_Offset): Temp function body, raising Unimplemented
19978
19979         * a-calend.ads, a-calend-vms.ads:
19980         Add imported variable Invalid_TZ_Offset used to designate targets unable
19981         to support time zones.
19982         (Unimplemented): Temporary function raised by the body of new
19983         subprograms below.
19984         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
19985         unit provides handling of leap seconds and is used by the new Ada 2005
19986         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
19987         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
19988         version returns an extra value which is the offset to UTC.
19989
19990         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
19991         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
19992         (Split_W_Offset): New function body.
19993         (Time_Of): When a date is close to UNIX epoch, compute the time for
19994         that date plus one day (that amount is later substracted after
19995         executing mktime) so there are no problems with time zone adjustments.
19996
19997         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
19998
19999         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
20000         a-catizo.ads, a-catizo.adb: New files.
20001
20002         * impunit.adb: Add new Ada 2005 entries
20003
20004         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
20005         Rename all occurences of "__gnat_localtime_r" to
20006         "__gnat_localtime_tzoff".
20007         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
20008         zone data and calculate the GMT offset.
20009         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
20010         Use the field "tm_gmtoff" to extract the GMT offset.
20011         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
20012         the external variable "timezone" to calculate the GMT offset.
20013
20014 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
20015             Jose Ruiz  <ruiz@adacore.com>
20016
20017         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
20018         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
20019         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
20020         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
20021         System.Any_Priority to a POSIX priority on the target.
20022
20023         * system-linux-ia64.ads:
20024         Extend range of Priority types on Linux to use the whole range made
20025         available by the system.
20026
20027         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
20028         function maps from System.Any_Priority to a POSIX priority on the
20029         target.
20030         (PTHREAD_PRIO_PROTECT): Set real value.
20031         (PTHREAD_PRIO_INHERIT): Now a function.
20032         (SIGCPUFAIL): New signal.
20033         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
20034         are documented as reserved by the OS.
20035
20036         * system-aix.ads: Use the full range of priorities provided by the
20037         system on AIX.
20038
20039         * s-taprop-posix.adb: Call new function To_Target_Priority.
20040         (Set_Priority): Take into account Task_Dispatching_Policy and
20041         Priority_Specific_Dispatching pragmas when determining if Round Robin
20042         must be used for scheduling the task.
20043
20044         * system-linux-x86_64.ads, system-linux-x86.ads,
20045         system-linux-ppc.ads: Extend range of Priority types on Linux to use
20046         the whole range made available by the system.
20047
20048         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
20049         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
20050         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
20051         when deallocating the TCB in order to avoid potential references to
20052         deallocated data.
20053         (Set_Priority): Take into account Task_Dispatching_Policy and
20054         Priority_Specific_Dispatching pragmas when determining if Round Robin
20055         or FIFO within priorities must be used for scheduling the task.
20056
20057         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
20058         the Thread field (to be used internally by the run-time system) and the
20059         kernel-level task id in the LWP field (to be used by the debugger).
20060         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
20061         instance, and propagate the current task options to the spawned task.
20062         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
20063         (Initialize): Set Round Robin dispatching when the corresponding pragma
20064         is in effect.
20065
20066 2006-10-31  Robert Dewar  <dewar@adacore.com>
20067
20068         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20069         system-linux-hppa.ads, system-hpux-ia64.ads,
20070         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
20071         system-vxworks-sparcv9.ads, system-solaris-x86.ads,
20072         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
20073         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
20074         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20075         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
20076         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
20077         Default_Bit_Order) to kill constant condition warnings for references
20078         to this switch.
20079
20080 2006-10-31  Vincent Celier  <celier@adacore.com>
20081             Eric Botcazou  <ebotcazou@adacore.com>
20082
20083         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
20084         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
20085         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
20086         Ext_To, when building the library file name
20087
20088         * mlib-tgt-vxworks.adb: ditto.
20089         (Get_Target_Suffix): Add support for x86 targets.
20090
20091         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
20092
20093         * mlib-tgt-darwin.adb:
20094         Use Append_To, instead of Ext_To, when building the library file name
20095         (Flat_Namespace): New global variable.
20096         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
20097         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
20098         (Link_Shared_Libgcc): Delete.
20099         (Build_Dynamic_Library): Adjust for above changes.
20100         Use Opt package.
20101         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
20102
20103 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
20104
20105         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
20106         (Initialize): Add type conversions required by above change.
20107
20108 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
20109
20110         * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
20111         (getpid): New body for this function that uses the underlying taskIdSelf
20112         function for VxWorks 5 and VxWorks 6 in kernel mode.
20113         (unsigned_int): New type, modular to allow logical bit operations.
20114         (taskOptionsGet): New imported function.
20115
20116         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
20117         field to be compliant with the type used by the corresponding operating
20118         system primitive.
20119
20120 2006-10-31  Pascal Obry  <obry@adacore.com>
20121             Eric Botcazou  <ebotcazou@adacore.com>
20122             Vincent Celier  <celier@adacore.com>
20123
20124         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
20125         ASCII version of the registry API. This is needed as the GNAT runtime
20126         is now UNICODE by default.
20127         Include version.h.
20128         (get_gcc_version): Do not hardcode the return value.
20129         (__gnat_file_time_name): On Windows properly set the default returned
20130         value to -1 which corresponds to Invalid_Time.
20131         (__gnat_fopen): New routine. A simple wrapper on all plateforms
20132          except on Windows where it does conversion for unicode support.
20133         (__gnat_freopen): Idem.
20134         (__gnat_locate_exec_on_path): If environment variable PATH does not
20135         exist, return a NULL pointer
20136
20137         * adaint.h: (__gnat_fopen): Declare.
20138         (__gnat_freopen): Likewise.
20139
20140         * mingw32.h (_tfreopen): Define this macro here for older MingW
20141         version.
20142         Activate the unicode support on platforms using a MingW runtime
20143         version 3.9 or newer.
20144
20145         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
20146         This is needed for proper unicode support on Windows.
20147         (freopen): Idem.
20148
20149 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
20150             Nicolas Setton  <setton@adacore.com>
20151             Olivier Hainque  <hainque@adacore.com>
20152             Gary Dismukes  <dismukes@adacore.com>
20153
20154         * gigi.h: (tree_code_for_record_type): Declare.
20155         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
20156         (get_global_renaming_pointers): Rename to
20157         invalidate_global_renaming_pointers.
20158         (static_ctors): Delete.
20159         (static_dtors): Likewise.
20160         (gnat_write_global_declarations): Declare.
20161         (create_var_decl): Adjust descriptive comment to indicate that the
20162         subprogram may return a CONST_DECL node.
20163         (create_true_var_decl): Declare new function, similar to
20164         create_var_decl but forcing the creation of a VAR_DECL node.
20165         (get_global_renaming_pointers): Declare.
20166         (add_global_renaming_pointer): Likewise.
20167
20168         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
20169
20170         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
20171         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
20172         processing.
20173         (gnat_to_gnu_entity): Remove From_With_Type from computation for
20174         imported_p.
20175         <E_Access_Type>: Use the Non_Limited_View as the full view of the
20176         designated type if the pointer comes from a limited_with clause.  Make
20177         incomplete designated type if it is in the main unit and has a freeze
20178         node.
20179         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
20180         Underlying_Full_View similarly.  Return earlier if the full view already
20181         has an associated tree.
20182         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
20183         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
20184         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
20185         reference type built for objects with an address clause.
20186         Use create_true_var_decl with const_flag set for
20187         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
20188         TREE_READONLY set.
20189         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
20190         for Character and Wide_Character types. This info is read by the
20191         dwarf-2 writer, and is needed to be able to use the command "ptype
20192         character" in the debugger.
20193         (gnat_to_gnu_entity): When generating a type representing
20194         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
20195         so that debug writers can distinguish it from ordinary integers.
20196         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
20197         addition to TREE_READONLY to assert the constantness of variables for
20198         elaboration purposes.
20199         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
20200         parameters to call new Einfo function First_Formal_With_Extras.
20201         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
20202         protected type with its corresponding discriminant, to obtain a usable
20203         declaration
20204         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
20205         for a multiple elaboration of the "equivalent" type.
20206         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
20207         into record_global_renaming_pointer.
20208         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
20209         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
20210         <E_Array_Subtype>: Likewise.
20211         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
20212         incomplete subtypes and incomplete subtypes of incomplete types visible
20213         through a limited with clause.
20214         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
20215         the base index type for the maximum size of the array only if they are
20216         constant.
20217         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
20218         expression into a SAVE_EXPR if stabilization failed.
20219
20220         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
20221         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
20222         by lower level compilation passes.
20223         (gnat_genericize): New function, lowering a function body to GENERIC.
20224         Turn the type of RESULT_DECL into a real reference type if the decl
20225         has been marked DECL_BY_REFERENCE, and adjust references to the latter
20226         accordingly.
20227         (gnat_genericize_r): New function. Tree walking callback for
20228         gnat_genericize.
20229         (convert_from_reference, is_byref_result): New functions. Helpers for
20230         gnat_genericize_r.
20231         (create_type_decl): Call gnat_pushdecl before calling
20232         rest_of_decl_compilation, to make sure that field TYPE_NAME of
20233         type_decl is properly set before calling the debug information writers.
20234         (write_record_type_debug_info): The heuristics which compute the
20235         alignment of a field in a variant record might not be accurate. Add a
20236         safety test to make sure no alignment is set to a smaller value than
20237         the alignment of the field type.
20238         (make_dummy_type): Use the Non_Limited_View as the underlying type if
20239         the type comes from a limited_with clause. Do not loop on the full view.
20240         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
20241         (dummy_node_table): New global variable, moved from decl.c.
20242         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
20243         (save_gnu_tree): Use above macros.
20244         (get_gnu_tree): Likewise.
20245         (present_gnu_tree): Likewise.
20246         (init_dummy_type): New function, moved from decl.c. Use above macros.
20247         (make_dummy_type): Likewise.
20248         (tree_code_for_record_type): New function extracted from make_dummy_type
20249         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
20250         (static_ctors): Change it to a vector, make static.
20251         (static_dtors): Likewise.
20252         (end_subprog_body): Adjust for above change.
20253         (build_global_cdtor): Moved from trans.c.
20254         (gnat_write_global_declarations): Emit global constructor and
20255         destructor, and call cgraph_optimize before emitting debug info for
20256         global declarations.
20257         (global_decls): New global variable.
20258         (gnat_pushdecl): Store the global declarations in global_decls, for
20259         later use.
20260         (gnat_write_global_declarations): Emit debug information for global
20261          declarations.
20262         (create_var_decl_1): Former create_var_decl, with an extra argument to
20263          state whether the creation of a CONST_DECL is allowed.
20264         (create_var_decl): Behavior unchanged. Now a wrapper around
20265         create_var_decl_1 allowing CONST_DECL creation.
20266         (create_true_var_decl): New function, similar to create_var_decl but
20267         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
20268         (create_field_decl): Do not always mark the field as addressable
20269         if its type is an aggregate.
20270         (global_renaming_pointers): New static variable.
20271         (add_global_renaming_pointer): New function.
20272         (get_global_renaming_pointers): Likewise.
20273
20274         * misc.c (gnat_dwarf_name): New function.
20275         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
20276         (gnat_post_options): Add comment about structural alias analysis.
20277         (gnat_parse_file): Do not call cgraph_optimize here.
20278         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
20279
20280         * trans.c (process_freeze_entity): Don't abort if we already have a
20281         non dummy GCC tree for a Concurrent_Record_Type, as it might
20282         legitimately have been elaborated while processing the associated
20283         Concurrent_Type prior to this explicit freeze node.
20284         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
20285         exception handler volatile if it is of variable size.
20286         (process_type): Remove bypass for types coming from a limited_with
20287         clause.
20288         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
20289         actual, convert the corresponding gnu_actual to the real destination
20290         type when necessary.
20291         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
20292         originally TREE_READONLY but whose elaboration cannot be performed
20293         statically.
20294         Part of fix for F504-021.
20295         (tree_transform, subprogram cases): Change loops on formal parameters to
20296         call new Einfo function First_Formal_With_Extras.
20297         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
20298         stemming from type conversion for the lhs.
20299         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
20300         number of bits per unit for components of records.
20301         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
20302         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
20303         with At_End_Proc after the SJLJ EH cleanup.
20304         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
20305         compilation unit.
20306         (elaborate_all_entities): Do not retest type_annotate_only.
20307         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
20308         result type of an abstract subprogram, which may be an itype associated
20309         with an anonymous access result (related to AI-318-02).
20310         (build_global_cdtor): Move to utils.c.
20311         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
20312         this choice is not a null tree nor an integer constant.
20313         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
20314         on the body of elaboration routines instead of mark_unvisited.
20315         (add_stmt): Do not mark the tree.
20316         (add_decl_expr): Tweak comment.
20317         (mark_unvisited): Delete.
20318         (unshare_save_expr): New static function.
20319         (call_to_gnu): Issue an error when making a temporary around a
20320         procedure call because of non-addressable actual parameter if the
20321         type of the formal is by_reference.
20322         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
20323         after building the elaboration routine.
20324
20325 2006-10-31  Bob Duff  <duff@adacore.com>
20326
20327         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
20328         as finalization-started, so we can raise Program_Error on 'new'.
20329
20330         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
20331         collection has already started.
20332
20333         * s-finimp.ads (Collection_Finalization_Started): Added new special
20334         flag value for indicating that a collection's finalization has started.
20335
20336         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
20337         create a task whose master has already waited for dependent tasks.
20338
20339 2006-10-31  Robert Dewar  <dewar@adacore.com>
20340
20341         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
20342
20343         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
20344         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
20345         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
20346         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
20347         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
20348         a-except-2005.ads: Add pragma Preelaborable_Warning
20349
20350 2006-10-31  Robert Dewar  <dewar@adacore.com>
20351             Jose Ruiz  <ruiz@adacore.com>
20352
20353         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
20354
20355         * ali.adb (Get_Name): Properly handle scanning of wide character names
20356         encoded with brackets notation.
20357         (Known_ALI_Lines): Add S lines to this list.
20358         (Scan_ALI): Acquire S (priority specific dispatching) lines.
20359         New flag Elaborate_All_Desirable in unit table
20360
20361         * ali.ads (Priority_Specific_Dispatching): Add this range of
20362         identifiers to be used for Priority_Specific_Dispatching table entries.
20363         (ALIs_Record): Add First_Specific_Dispatching and
20364         Last_Specific_Dispatching that point to the first and last entries
20365         respectively in the priority specific dispatching table for this unit.
20366         (Specific_Dispatching): Add this table for storing each S (priority
20367         specific dispatching) line encountered in the input ALI file.
20368         New flag Elaborate_All_Desirable in unit table
20369
20370         * bcheck.adb: (Check_Configuration_Consistency): Add call to
20371         Check_Consistent_Dispatching_Policy.
20372         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
20373         verifying that the use of Priority_Specific_Dispatching,
20374         Task_Dispatching_Policy, and Locking_Policy is consistent across the
20375         partition.
20376
20377         * bindgen.adb: (Public_Version_Warning): function removed.
20378         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
20379         required information from ALI files in order to initialize the table
20380         containing the specific dispatching policy.
20381         (Gen_Adainit_Ada): Generate the variables required for priority specific
20382         dispatching entries (__gl_priority_specific_dispatching and
20383         __gl_num_specific_dispatching).
20384         (Gen_Adainit_C): Generate the variables required for priority specific
20385         dispatching entries (__gl_priority_specific_dispatching and
20386         __gl_num_specific_dispatching).
20387         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
20388         pragma entries.
20389         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
20390         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
20391         (Tab_To): Removed.
20392         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
20393         a call to gnat_set_globals.
20394         Generate a string containing settings from
20395         Priority_Specific_Dispatching pragma entries.
20396         (Gen_Object_Files_Options): Do not include the runtime libraries when
20397         pragma No_Run_Time is specified.
20398
20399         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
20400         consistency with s-intman-posix.adb.
20401         (__gnat_error_handler, case FreeBSD): Account for the fact that the
20402         handler is installed with SA_SIGINFO.
20403         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
20404         FreeBSD ZCX support, copied from Linux version.
20405         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
20406         sigfillset, and sigemptyset so the routines defined by MaRTE.
20407         (__gl_priority_specific_dispatching): Add this variable that stores the
20408         string containing priority specific dispatching policies in the
20409         partition.
20410         (__gl_num_specific_dispatching): Add this variable that indicates the
20411         highest priority for which a priority specific dispatching pragma
20412         applies.
20413         (__gnat_get_specific_dispatching): Add this routine that returns the
20414         priority specific dispatching policy, as set by a
20415         Priority_Specific_Dispatching pragma appearing anywhere in the current
20416         partition. The input argument is the priority number, and the result
20417         is the upper case first character of the policy name.
20418         (__gnat_set_globals): Now a dummy function.
20419         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
20420         mechargs instead of sigargs, as the latter can be retrieved from the
20421         former and sigargs is not what we want on ia64.
20422         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
20423         mechargs argument.
20424         (__gnat_adjust_context_for_raise, ia64-vms): New function.
20425         (tasking_error): Remove unused symbol.
20426         (_abort_signal): Move this symbol to the IRIX specific part since this
20427         is the only target that uses this definition.
20428         (Check_Abort_Status): Move this symbol to the IRIX specific part since
20429         this is the only target that uses this definition.
20430         (Lock_Task): Remove unused symbol.
20431         (Unlock_Task): Remove unused symbol.
20432
20433         * lib-writ.adb (Write_ALI): Output new S lines for
20434         Priority_Specific_Dispatching pragmas.
20435         Implement new flag BD for elaborate body desirable
20436
20437         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
20438         (Specific_Dispatching): Add this table for storing the entries
20439         corresponding to Priority_Specific_Dispatching pragmas.
20440         Document new BD flag for elaborate body desirable
20441
20442         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
20443         of known pragmas.
20444
20445 2006-10-31  Javier Miranda  <miranda@adacore.com>
20446
20447         * a-tags.ads, a-tags.adb:
20448         (Predefined_DT): New function that improves readability of the code.
20449         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
20450         Inherit_DT): Use the new function Predefined_DT to improve code
20451         readability.
20452         (Register_Interface_Tag): Update assertion.
20453         (Set_Interface_Table): Update assertion.
20454         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
20455         determining progenitor interfaces in Tags.
20456         (Inherit_CPP_DT): New subprogram.
20457
20458         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
20459         analysis of the thunk code.
20460         (Expand_Interface_Conversion): Handle run-time conversion of
20461         access to class wide types.
20462         (Expand_Dispatching_Call): When generating the profile for the
20463         subprogram itype for a dispatching operation, properly terminate the
20464         formal parameters chaind list (set the Next_Entity of the last formal
20465         to Empty).
20466         (Collect_All_Interfaces): Removed. This routine has been moved to
20467         sem_util and renamed as Collect_All_Abstract_Interfaces.
20468         (Set_All_DT_Position): Hidden entities associated with abstract
20469         interface primitives are not taken into account in the check for
20470         3.9.3(10); this check is done with the aliased entity.
20471         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
20472         interfacing with CPP by default.
20473         (Expand_Interface_Conversion): Add missing support for static conversion
20474         from an interface to a tagged type.
20475         (Collect_All_Interfaces): Add new out formal containing the list of
20476         abstract interface types to cleanup the subprogram Make_DT.
20477         (Make_DT): Update the code to generate the table of interfaces in case
20478         of abstract interface types.
20479         (Is_Predefined_Dispatching_Alias): New function that returns true if
20480         a primitive is not a predefined dispatching primitive but it is an
20481         alias of a predefined dispatching primitive.
20482         (Make_DT): If the ancestor of the type is a CPP_Class and we are
20483         compiling under full ABI compatibility mode we avoid the generation of
20484         calls to run-time services that fill the dispatch tables because under
20485         this mode we currently inherit the dispatch tables in the IP subprogram.
20486         (Write_DT): Emit an "is null" indication for a null procedure primitive.
20487         (Expand_Interface_Conversion): Use an address as the type of the formal
20488         of the internally built function that handles the case in which the
20489         target type is an access type.
20490
20491 2006-10-31  Robert Dewar  <dewar@adacore.com>
20492
20493         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
20494
20495 2006-10-31  Robert Dewar  <dewar@adacore.com>
20496
20497         * bindusg.ads, bindusg.adb:
20498         Change to package and rename procedure as Display, which
20499         now ensures that it only outputs usage information once.
20500
20501 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
20502
20503         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
20504         using RTPs.
20505
20506         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
20507         when using RTPs.
20508
20509 2006-10-31  Robert Dewar  <dewar@adacore.com>
20510             Ed Schonberg  <schonberg@adacore.com>
20511
20512         * treepr.adb: Use new subtype N_Membership_Test
20513
20514         * checks.ads, checks.adb: Add definition for Validity_Check
20515         (Range_Or_Validity_Checks_Suppressed): New function
20516         (Ensure_Valid): Test Validity_Check suppressed
20517         (Insert_Valid_Check): Test Validity_Check suppressed
20518         (Insert_Valid_Check): Preserve Do_Range_Check flag
20519         (Validity_Check_Range): New procedure
20520         (Expr_Known_Valid): Result of membership test is always valid
20521         (Selected_Range_Checks): Range checks cannot be applied to discriminants
20522         by themselves. Disabling those checks must also be done for task types,
20523         where discriminants may be used for the bounds of entry families.
20524         (Apply_Address_Clause_Check): Remove side-effects if address expression
20525         is non-static and is not the name of a declared constant.
20526         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
20527         Code cleanup and new error messages.
20528         (Enable_Range_Check): Test for some cases of suppressed checks
20529         (Generate_Index_Checks): Suppress index checks if index checks are
20530         suppressed for array object or array type.
20531         (Apply_Selected_Length_Checks): Give warning for compile-time detected
20532         length check failure, even if checks are off.
20533         (Ensure_Valid): Do not generate a check on an indexed component whose
20534         prefix is a packed boolean array.
20535         * checks.adb: (Alignment_Checks_Suppressed): New function
20536         (Apply_Address_Clause_Check): New procedure, this is a completely
20537         rewritten replacement for Apply_Alignment_Check
20538         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
20539         we request a discriminal value only in case of discriminants.
20540         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
20541         assignments where the target subtype is unconstrained and the target
20542         object is a parameter or dereference (other aliased cases are known
20543         to be unconstrained).
20544
20545 2006-10-31  Robert Dewar  <dewar@adacore.com>
20546
20547         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
20548         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
20549         vms_conv.adb: Fix bad table increment values (much too small)
20550
20551         * table.adb (Realloc): Make sure we get at least some new elements
20552         Defends against silly small values for table increment
20553
20554 2006-10-31  Robert Dewar  <dewar@adacore.com>
20555             Ed Schonberg  <schonberg@adacore.com>
20556             Bob Duff  <duff@adacore.com>
20557
20558         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
20559         entities. Move other fields around to make this possible
20560         (Is_Derived_Type): Add missing call to Is_Type.
20561         (Extra_Formals): New function for subprograms, entries, subprogram
20562         types.
20563         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
20564         (First_Formal_With_Extras): New function for subprogs, entries, subp
20565         types.
20566         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
20567         Add node information for E_Return_Statement.
20568         (Elaborate_Body_Desirable): New flag
20569         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
20570         to be Is_Inherently_Limited_Type, because return-by-reference has
20571         no meaning in Ada 2005.
20572         (E_Return_Statement): New entity kind.
20573         (Return_Applies_To): Field of E_Return_Statement.
20574         (Is_Return_Object): New flag in object entities.
20575         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
20576         (Must_Have_Preelab_Init): New flag
20577         (Known_To_Have_Preelab_Init): New flag
20578         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
20579         (Is_Visible_Formal): New flag on entities in formal packages.
20580         (Low_Bound_Known): New flag
20581         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
20582         Incomplete_Kind.
20583         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
20584         output when Id is an incomplete subtype.
20585
20586 2006-10-31  Robert Dewar  <dewar@adacore.com>
20587
20588         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
20589         Avoid abbreviation Creat
20590         (Finalize): List all sources in extended mail source if -gnatl
20591         switch is active.
20592         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
20593         (Finalize): Implement new -gnatl=xxx switch to output listing to file
20594         (Set_Specific_Warning_On): New procedure
20595         (Set_Specific_Warning_Off): New procedure
20596         Add implementation of new insertion \\
20597         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
20598         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
20599         types.
20600         (Error_Msg_Internal): Make sure that we set Last_Killed to
20601         True when a message from another package is suppressed.
20602         Implement insertion character ~ (insert string)
20603         (First_Node): Minor adjustments to get better placement.
20604
20605         * frontend.adb:
20606         Implement new -gnatl=xxx switch to output listing to file
20607
20608         * gnat1drv.adb:
20609         Implement new -gnatl=xxx switch to output listing to file
20610
20611         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
20612         (Commands_To_Stdout): New flag
20613         Implement new -gnatl=xxx switch to output listing to file
20614         New switch Dump_Source_Text
20615         (Warn_On_Deleted_Code): New warning flag for -gnatwt
20616         Define Error_Msg_Line_Length
20617         (Warn_On_Assumed_Low_Bound): New switch
20618
20619         * osint.ads, osint.adb
20620         (Normalize_Directory_Name): Fix bug.
20621         Implement new -gnatl=xxx switch to output listing to file
20622         (Concat): Removed, replaced by real concatenation
20623         Make use of concatenation now allowed in compiler
20624         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
20625         we find the 'lib' or 'bin' directory even when the tool has been
20626         invoked with a relative path.
20627         (Executable_Name): New function taking string parameters.
20628
20629         * osint-c.ads, osint-c.adb:
20630         Implement new -gnatl=xxx switch to output listing to file
20631
20632         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
20633
20634         * switch-c.adb:
20635         Implement new -gnatl=xxx switch to output listing to file
20636         Recognize new -gnatL switch
20637         (no longer keep in old warning about old style usage)
20638         Use concatenation to simplify code
20639         Recognize -gnatjnn switch
20640         (Scan_Front_End_Switches): Clean up handling of -gnatW
20641         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
20642
20643 2006-10-31  Robert Dewar  <dewar@adacore.com>
20644
20645         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
20646         (Set_Specific_Warning_Off): New procedure
20647         (Warning_Specifically_Suppressed): New function
20648         (Validate_Specific_Warnings): New procedure
20649         (Output_Msg_Text): Complete rewrite to support -gnatjnn
20650
20651         * err_vars.ads: Implement insertion character ~ (insert string)
20652
20653 2006-10-31  Bob Duff  <duff@adacore.com>
20654             Ed Schonberg  <schonberg@adacore.com>
20655
20656         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
20657         the parent part is a build-in-place function call, generate assignments.
20658         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
20659         are build-in-place function calls.
20660         (Replace_Self_Reference): New subsidiary of
20661         Make_OK_Assignment_Statement, to replace an access attribute that is a
20662         self-reference into an access to the appropriate component of the
20663         target object. Generalizes previous mechanism to handle self-references
20664         nested at any level.
20665         (Is_Self_Referential_Init): Remove, not needed.
20666         (Is_Self_Referential_Init): New predicate to simplify handling of self
20667         referential components in record aggregates.
20668         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
20669         check for presence of entity before checking for self-reference.
20670         (Has_Default_Init_Comps): Return True if a component association is a
20671         self-reference to the enclosing type, which can only come from a
20672         default initialization.
20673         (Make_OK_Assignment_Statement): If the expression is of the form
20674         Typ'Acc, where Acc is an access attribute, the expression comes from a
20675         default initialized self-referential component.
20676         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
20677         that has been derived from several abstract interfaces we must also
20678         initialize the tags of the secondary dispatch tables.
20679
20680 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
20681             Thomas Quinot  <quinot@adacore.com>
20682             Javier Miranda  <miranda@adacore.com>
20683             Robert Dewar  <dewar@adacore.com>
20684
20685         * exp_attr.adb:
20686         (Expand_Access_To_Protected_Op): If the context indicates that an access
20687         to a local operation may be transfered outside of the object, create an
20688         access to the wrapper operation that must be used in an external call.
20689         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
20690         target, pass the Valid attribute applied to a floating-point prefix on
20691         to the back end without expansion.
20692         (Storage_Size): Use the new run-time function Storage_Size to retrieve
20693         the allocated storage when it is specified by a per-object expression.
20694         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
20695         Nothing to do here, the attribute has been rewritten during semantic
20696         analysis.
20697         (Expand_Attribute_Reference): Handle expansion of the new Priority
20698         attribute
20699         (Find_Fat_Info): Handle case of universal real
20700         (Expand_Access_To_Protected_Op): Fix use of access to protected
20701         subprogram from inside the body of a protected entry.
20702         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
20703         'Access and 'Unrestricted_Access, to transform the attribute reference
20704         into a fat pointer.
20705         (Is_Constrained_Aliased_View): New predicate to help determine whether a
20706         subcomponent's enclosing variable is aliased with a constrained subtype.
20707         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
20708         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
20709         an aliased prefix must be known to be constrained in order to use True
20710         for the attribute value, and now it's possible for some aliased views
20711         to be unconstrained.
20712
20713 2006-10-31  Robert Dewar  <dewar@adacore.com>
20714
20715         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
20716         (Expand_Entity_Reference): Correct error of not handling subprogram
20717         formals in current_value processing.
20718
20719 2006-10-31  Javier Miranda  <miranda@adacore.com>
20720             Robert Dewar  <dewar@adacore.com>
20721             Ed Schonberg  <schonberg@adacore.com>
20722             Gary Dismukes  <dismukes@adacore.com>
20723
20724         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
20725         register in the final list objects containing class-wide interfaces;
20726         otherwise we incorrectly register the tag of the interface in the final
20727         list.
20728         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
20729         generate the wrapper if the parent primitive is abstract. This is
20730         required to report the correct error message.
20731         (Expand_N_Subtype_Indication): Do validity checks on range
20732         (Clean_Task_Names): If an initialization procedure includes a call to
20733         initialize a task (sub)component, indicate that the procedure will use
20734         the secondary stack.
20735         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
20736         compatibility for interfacing with CPP by default.
20737         (Expand_N_Object_Declaration): Only build an Adjust call when the
20738         object's type is a nonlimited controlled type.
20739         * exp_ch3.adb: Add with and use of Exp_Ch6.
20740         (Expand_N_Object_Declaration): Check for object initialization that is a
20741         call to build-in-place function and apply Make_Build_In_Place_Call_In_
20742         Object_Declaration to the call.
20743         (Freeze_Type): When the designated type of an RACW was not frozen at the
20744         point where the RACW was declared, validate the primitive operations
20745         with respect to E.2.2(14) when it finally is frozen.
20746         (Build_Initialization_Call,Expand_Record_Controller): Rename
20747         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
20748         return-by-reference has no meaning in Ada 2005.
20749         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
20750         to register tag of the immediate ancestor interfaces in the
20751         run-time structure.
20752         (Init_Secondary_Tags): Moved to the specification to allow the
20753         initialization of extension aggregates with abstract interfaces.
20754         (Build_Master_Renaming): Make public, for use by function declarations
20755         whose return type is an anonymous access type.
20756         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
20757         Insert_List_Before_And_Analyze after the generation of the specs
20758         associated with null procedures.
20759         (Expand_Tagged_Root): Update documentation in its specification.
20760         (Init_Secondary_Tags): Update documentation.
20761         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
20762         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
20763         then generate code to inherit the contents of the dispatch table
20764         directly from the ancestor.
20765         (Expand_Record_Controller): Insert controller component after tags of
20766         implemented interfaces.
20767         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
20768         create null procedure overridings when null procedures are inherited
20769         from interfaces.
20770         (Make_Null_Procedure_Specs): New procedure to generate null procedure
20771         declarations for overriding null primitives inherited from interfaces.
20772         (Is_Null_Interface_Procedure): New function in
20773         Make_Null_Procedure_Specs.
20774         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
20775         immediate ancestor of a tagged type is an abstract interface type we
20776         must generate the specification of the predefined primitives associated
20777         with controlled types (because the dispatch table of the ancestor is
20778         null and hence these entries cannot be inherited). This is required to
20779         elaborate well the dispatch table.
20780
20781 2006-10-31  Javier Miranda  <miranda@adacore.com>
20782             Ed Schonberg  <schonberg@adacore.com>
20783             Bob Duff  <duff@adacore.com>
20784             Gary Dismukes  <dismukes@adacore.com>
20785             Robert Dewar  <dewar@adacore.com>
20786
20787         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
20788         conversion.
20789         (Expand_N_In): Do validity checks on range
20790         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
20791         (Expand_N_Allocator): For "new T", if the object is constrained by
20792         discriminant defaults, allocate the right amount of memory, rather than
20793         the maximum for type T.
20794         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
20795         when the allocator is initialized by a build-in-place call, since the
20796         allocator is already rewritten as a reference to the function result,
20797         and this prevents an unwanted duplication of the function call.
20798         Add with and use of Exp_Ch6.
20799         (Expand_Allocator_Expresssion): Check for an allocator whose expression
20800         is a call to build-in-place function and apply
20801         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
20802         untagged designated types).
20803         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
20804         optimization if source or target is biased.
20805         (Expand_N_Allocator): Add comments for case of an allocator within a
20806         function that returns an anonymous access type designating tasks.
20807         (Expand_N_Allocator): apply discriminant checks for access
20808         discriminants of anonymous access types (AI-402, AI-416)
20809
20810 2006-10-31  Bob Duff  <duff@adacore.com>
20811             Robert Dewar  <dewar@adacore.com>
20812             Gary Dismukes  <dismukes@adacore.com>
20813             Ed Schonberg  <schonberg@adacore.com>
20814
20815         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
20816
20817         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
20818         (Expand_N_Assignment_Statement): Call
20819         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
20820         build-in-place function call. Currently, this can happen only for
20821         assignments that come from aggregates.
20822         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20823         in order to alleviate the upward compatibility introduced by AI-318.
20824         (Expand_N_Extended_Return_Statement): Add support for handling the
20825         return object as a build-in-place result.
20826         (Expand_Non_Function_Return): Implement simple return statements nested
20827         within an extended return.
20828         (Enable_New_Return_Processing): Turn on the new processing of return
20829         statements.
20830         (Expand_Non_Function_Return): For a return within an extended return,
20831         don't raise Program_Error, because Sem_Ch6 now gives a warning.
20832         (Expand_N_Extended_Return_Statement): Implement AI-318
20833         (Expand_Simple_Function_Return): Ditto.
20834         (Expand_N_If_Statement): Handle new -gnatwt warning
20835         (Expand_N_Case_Statement): Handle new -gnatwt warning
20836         (Expand_N_Assignment): Handle assignment to the Priority attribute of
20837         a protected object.
20838         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
20839         validity checking of assignments to elementary record components.
20840         (Expand_N_Return_Statement): return Class Wide types on the secondary
20841         stack independantly of their controlled status since with HIE runtimes,
20842         class wide types are not potentially controlled anymore.
20843
20844         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
20845         node kind.
20846
20847         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
20848         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
20849         it expects a block, procedure, or task. The return statement will get
20850         turned into a block, and Expand_Cleanup_Actions will happen then.
20851
20852 2006-10-31  Robert Dewar  <dewar@adacore.com>
20853             Ed Schonberg  <schonberg@adacore.com>
20854             Bob Duff  <duff@adacore.com>
20855             Gary Dismukes  <dismukes@adacore.com>
20856
20857         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
20858         capability.
20859         (Expand_Inlined_Call): Tagged types are by-reference types, and
20860         therefore should be replaced by a renaming declaration in the expanded
20861         body, as is done for limited types.
20862         (Expand_Call): If this is a call to a function with dispatching access
20863         result, propagate tag from context.
20864         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
20865         CPP by default.
20866         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
20867         build-in-place when the right-hand side of an assignment is a
20868         build-in-place function call.
20869         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
20870         of the explicit dereference of the allocator to the result subtype of
20871         the build-in-place function. This is needed to satisfy type checking
20872         in cases where the caller's return object is created by an allocator for
20873         a class-wide access type and the type named in the allocator is a
20874         specific type.
20875         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
20876         conversion of the reference to the declared object to the result subtype
20877         of the build-in-place function. This is needed to satisfy type checking
20878         in cases where the declared object has a class-wide type. Also, in the
20879         class-wide case, change the type of the object entity to the specific
20880         result subtype of the function, to avoid passing a class-wide object
20881         without explicit initialization to the back end.
20882         (Register_Interface_DT_Entry): Moved outside the body of
20883         Freeze_Subprogram because this routine is now public; it is called from
20884         Check_Dispatching_Overriding to handle late overriding of abstract
20885         interface primitives.
20886         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
20887         adding an implicit access actual on a call to a build-in-place function.
20888         (Expand_Actuals): Test for an actual parameter that is a call to a
20889         build-in-place function and apply
20890         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
20891         (Is_Build_In_Place_Function): New function to determine whether an
20892         entity is a function whose calls should be handled as build-in-place.
20893         (Is_Build_In_Place_Function_Call): New function to determine whether an
20894         expression is a function call that should handled as build-in-place.
20895         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
20896         calls to build-in-place functions as the initialization of an allocator.
20897         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
20898         handling calls to build-in-place functions in contexts that do not
20899         involve init of a separate object (for example, actuals of subprogram
20900         calls).
20901         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
20902         handling calls to build-in-place functions as the initialization of an
20903         object declaration.
20904         (Detect_Infinite_Recursion): Add explicit parameter Process to
20905         instantiation of Traverse_Body to avoid unreferenced warning.
20906         (Check_Overriding_Inherited_Interfaces): Removed.
20907         (Register_Interface_DT_Entry): Code cleanup.
20908         (Register_Predefined_DT_Entry): Code cleanup.
20909         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
20910         inlined statements if within a transient scope.
20911         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
20912         formal parameters with occurrences of actuals in inlined body, establish
20913         visibility on the proper view of the actual's subtype for the body's
20914         context.
20915         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
20916         compatibility mode and we have an imported CPP subprogram because
20917         for now we assume that imported CPP primitives correspond with
20918         objects whose constructor is in the CPP side (and therefore we
20919         don't need to generate code to register them in the dispatch table).
20920         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
20921         aligned selected component.
20922         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
20923         the actual of an in-mode parameter is a type conversion.
20924         (Expand_Actuals): If the call does not come from source and the actual
20925         is potentially misaligned, let gigi handle it rather than rejecting the
20926         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
20927         Class Wide types as returning by reference independantly of their
20928         controlled status since with HIE runtimes class wide types are not
20929         potentially controlled anymore.
20930
20931 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
20932
20933         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
20934         references that are private components of the protected object.
20935         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
20936         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
20937         instantiation to deal with warnings.
20938         (Initialize_Protection): If expression for priority is non-static, use
20939         System_Priority as its expected type, in case the expression has not
20940         been analyzed yet.
20941
20942 2006-10-31  Robert Dewar  <dewar@adacore.com>
20943
20944         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
20945         initialization of Homonym_Len.
20946         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
20947         names from fully qualified name. Fixes problem of duplicate
20948         external names differing only in the presence of such a block name.
20949
20950 2006-10-31  Thomas Quinot  <quinot@adacore.com>
20951             Pablo Oliveira  <oliveira@adacore.com>
20952
20953         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
20954         subprogram Ids, even if they are not yet assigned.
20955         (Build_Subprogram_Id): It is now this function that will take care of
20956         calling Assign_Subprogram_Ids if necessary.
20957         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
20958         should be done only once they are assigned.
20959         (Build_From_Any_Function, case of tagged types): Add missing call to
20960         Allocate_Buffer.
20961         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
20962         type for an RACW type.
20963         (Add_RACW_Features): When processing an RACW declaration for which the
20964         designated type is already frozen, enforce E.2.2(14) rules immediately.
20965         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
20966         special reordering of controlling formals.
20967
20968         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
20969         associated stub type for an RACW type.
20970
20971 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
20972
20973         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
20974         fixed-point operations in an integer context, i.e. as operands of a
20975         conversion to an integer type, indicate that result must be rounded.
20976
20977 2006-10-31  Robert Dewar  <dewar@adacore.com>
20978
20979         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
20980         cases, pass the encoding method, since it is now required by the run
20981         time.
20982
20983         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
20984         assumption that Str'First = 1.
20985         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
20986         it on to the Value_Wide_Wide_Character call.
20987         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
20988         properly handles a string of the form quote-encoded_wide_char-quote.
20989
20990         * s-wchcnv.adb: Minor reformatting
20991
20992 2006-10-31  Javier Miranda  <miranda@adacore.com>
20993
20994         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
20995         run-time membership test to ensure that the constructed object
20996         implements the target abstract interface.
20997
20998 2006-10-31  Robert Dewar  <dewar@adacore.com>
20999
21000         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
21001         Machine_Attribute pragma internally to implement the user pragma.
21002         Add processing for pragma Interface so that it is now completely
21003         equivalent to pragma Import.
21004
21005         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
21006         so that it can be applied to all entities, including record components
21007         and enumeration literals.
21008         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
21009         priority ranges are correct, verify compatibility against task
21010         dispatching and locking policies, and if everything is correct an entry
21011         is added to the table containing priority specific dispatching entries
21012         for this compilation unit.
21013         (Delay_Config_Pragma_Analyze): Delay processing
21014         Priority_Specific_Dispatching pragmas because when processing the
21015         pragma we need to access run-time data, such as the range of
21016         System.Any_Priority.
21017         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
21018         Allow pragma Unreferenced as a context item
21019         Add pragma Preelaborable_Initialization
21020         (Analyze_Pragma, case Interface): Interface is extended so that it is
21021         now syntactically and semantically equivalent to Import.
21022         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
21023         insertion characters.
21024         Add handling for Pragma_Wide_Character_Encoding
21025         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
21026         never supercedes a real restriction, and that a real restriction
21027         always supercedes a warning.
21028         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
21029         appropriate form.
21030
21031 2006-10-31  Bob Duff  <duff@adacore.com>
21032             Ed Schonberg  <schonberg@adacore.com>
21033             Robert Dewar  <dewar@adacore.com>
21034
21035         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
21036         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
21037         Is_Inherently_Limited_Type, because return-by-reference has no meaning
21038         in Ada 2005.
21039         (Find_Node_To_Be_Wrapped): Use new method of determining the result
21040         type of the function containing a return statement, because the
21041         Return_Type field was removed. We now use the Return_Applies_To field.
21042
21043         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
21044         (Build_Task_Image_Decl): If procedure is not called from an
21045         initialization procedure, indicate that function that builds task name
21046         uses the sec. stack. Otherwise the enclosing initialization procedure
21047         will carry the indication.
21048         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
21049         N_Object_Declaration instead.
21050         (Kill_Dead_Code): New interface to implement -gnatwt warning for
21051         conditional dead code killed, and change implementation accordingly.
21052         (Insert_Actions): Add N_Return_Object_Declaration case.
21053         Correct comment to mention N_Extension_Aggregate node.
21054         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
21055         attempts to save information for global variables which cannot be
21056         safely tracked.
21057         (Get_Current_Value_Condition): Handle conditions the other way round
21058         (constant on left). Also handle right operand of AND and AND THEN
21059         (Set_Current_Value_Condition): Corresponding changes
21060         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
21061         (Get_Current_Value_Condition): Handle simple boolean operands
21062         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
21063         (Get_Current_Value_Condition): If the variable reference is within an
21064         if-statement, does not appear in the list of then_statments, and does
21065         not come from source, treat it as being at unknown location.
21066         (Get_Current_Value_Condition): Enhance to allow while statements to be
21067         processed as well as if statements.
21068         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
21069         come from source.
21070         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
21071         of loop. This is safe now that we fixed Kill_Current_Values.
21072         (OK_To_Do_Constant_Replacement): Check whether current scope is
21073         Standard, before examining outer scopes.
21074
21075 2006-10-31  Vincent Celier  <celier@adacore.com>
21076
21077         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
21078         When True, apply VMS treatment to children of packages A, G, I and S.
21079         For F320-016
21080
21081         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
21082
21083 2006-10-31  Robert Dewar  <dewar@adacore.com>
21084             Ed Schonberg  <schonberg@adacore.com>
21085
21086         * freeze.adb: Add handling of Last_Assignment field
21087         (Warn_Overlay): Supply missing continuation marks in error msgs
21088         (Freeze_Entity): Add check for Preelaborable_Initialization
21089
21090         * g-comlin.adb: Add Warnings (Off) to prevent new warning
21091
21092         * g-expect.adb: Add Warnings (Off) to prevent new warning
21093
21094         * lib-xref.adb: Add handling of Last_Assignment field
21095         (Generate_Reference): Centralize handling of pragma Obsolescent here
21096         (Generate_Reference): Accept an implicit reference generated for a
21097         default in an instance.
21098         (Generate_Reference): Accept a reference for a node that is not in the
21099         main unit, if it is the generic body corresponding to an subprogram
21100         instantiation.
21101
21102         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
21103
21104         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
21105         -gnatwq/Q.
21106         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
21107         exception handler.
21108         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
21109         use clauses, to avoid messages on packages used to qualify, and also
21110         to avoid messages from obsolescent units.
21111         (Warn_On_Useless_Assignments): Don't generate messages for imported
21112         and exported variables.
21113         (Warn_On_Useless_Assignments): New procedure
21114         (Output_Obsolescent_Entity_Warnings): New procedure
21115         (Check_Code_Statement): New procedure
21116
21117         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
21118         Change name Is_Ada_2005 to Is_Ada_2005_Only
21119         (Last_Assignment): New field for useless assignment warning
21120
21121 2006-10-31  Olivier Hainque  <hainque@adacore.com>
21122
21123         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
21124         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
21125
21126 2006-10-31  Bob Duff  <duff@adacore.com>
21127             Robert Dewar  <dewar@adacore.com>
21128             Ed Schonberg  <schonberg@adacore.com>
21129
21130         * g-awk.adb (Default_Session, Current_Session): Compile this file in
21131         Ada 95 mode, because it violates the new rules for AI-318.
21132
21133         * g-awk.ads: Use overloaded subprograms in every case where we used to
21134         have a default of Current_Session. This makes the code closer to be
21135         correct for both Ada 95 and 2005.
21136
21137         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
21138         code, relying on the fact that the compiler generates a warning
21139         instead of an error in -gnatg mode.
21140
21141         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
21142         E_Return_Statement entity kind.
21143         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
21144
21145         * par.adb (P_Interface_Type_Definition): Addition of one formal to
21146         report an error if the reserved word abstract has been previously found.
21147         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
21148
21149         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
21150         parenthesized range attribute usage
21151         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
21152
21153         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
21154         in the syntax for extended_return_statement. This is not in the latest
21155         RM, but the ARG is expected to issue an AI allowing this.
21156         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
21157         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
21158         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
21159         P_Return_Statement): Parse the new syntax for extended_return_statement.
21160
21161         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
21162         Output_End_Missing): Add error-recovery code for the new
21163         extended_return_statement syntax; that is, the new E_Return entry on
21164         the scope stack.
21165
21166         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
21167         limited to nonlimited, because otherwise we violate the new Ada 2005
21168         rules about returning limited types in function Create_AST_Handler in
21169         s-asthan.adb.
21170
21171         * sem.adb (Analyze): Add cases for new node kinds
21172         N_Extended_Return_Statement and N_Return_Object_Declaration.
21173
21174         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
21175         type is in the same category as type of context before applying check,
21176         to prevent anomalies in instantiations.
21177         (Resolve_Aggregate): Remove test for limited components in aggregates.
21178         It's unnecessary in Ada 95, because if it has limited components, then
21179         it must be limited. It's wrong in Ada 2005, because limited aggregates
21180         are now allowed.
21181         (Resolve_Record_Aggregate): Move check for limited types later, because
21182         OK_For_Limited_Init requires its argument to have been resolved.
21183         (Get_Value): When copying the component default expression for a
21184         defaulted association in an aggregate, use the sloc of the aggregate
21185         and not that of the original expression, to prevent spurious
21186         elaboration errors, when the expression includes function calls.
21187         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
21188         were missing. We also didn't handle qualified expressions. Now also
21189         allow function calls. Use new common routine OK_For_Limited_Init.
21190         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
21191         with space can upper case letter).
21192
21193         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
21194         Has_Static_Discriminants flag
21195         (Record_Type_Declaration): Diagnose an attempt to declare an interface
21196         type with discriminants.
21197         (Process_Range_Expr_In_Decl): Do validity checks on range
21198         (Build_Discriminant_Constraints): Use updated form of
21199         Denotes_Discriminant.
21200         (Process_Subtype): If the subtype is a private subtype whose full view
21201         is a concurrent subtype, introduce an itype reference to prevent scope
21202         anomalies in gigi.
21203         (Build_Derived_Record_Type, Collect_Interface_Primitives,
21204         Record_Type_Declaration):  The functionality of the subprograms
21205         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
21206         is now performed by a single routine.
21207         (Build_Derived_Record_Type): If the type definition includes an explicit
21208         indication of limitedness, then the type must be marked as limited here
21209         to ensure that any access discriminants will not be treated as having
21210         a local anonymous access type.
21211         (Check_Abstract_Overriding): Issue a detailed error message when an
21212         abstract subprogram was not overridden due to incorrect mode of its
21213         first parameter.
21214         (Analyze_Private_Extension_Declaration): Add support for the analysis of
21215         synchronized private extension declarations. Verify that the ancestor is
21216         a limited or synchronized interface or in the generic case, the ancestor
21217         is a tagged limited type or synchronized interface and all progenitors
21218         are either limited or synchronized interfaces.
21219         Derived_Type_Declaration): Check for presence of private extension when
21220         dealing with synchronized formal derived types.
21221         Process_Full_View): Enchance the check done on the usage of "limited" by
21222         testing whether the private view is synchronized.
21223         Verify that a synchronized private view is completed by a protected or
21224         task type.
21225         (OK_For_Limited_Init_In_05): New function.
21226         (Analyze_Object_Declaration): Move check for limited types later,
21227         because OK_For_Limited_Init requires its argument to have been resolved.
21228         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21229         in order to alleviate the upward compatibility introduced by AI-318.
21230         (Constrain_Corresponding_Record): If the constraint is for a component
21231         subtype, mark the itype as frozen, to avoid out-of-scope references to
21232         discriminants in the back-end.
21233         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
21234         this subprogram against wrong sources.
21235         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
21236         discriminant of limited type completed with a protected type, when the
21237         discriminant is used to constrain a private component of the type, and
21238         expansion is disabled.
21239         (Find_Type_Of_Object): Do not treat a return subtype that is an
21240         anonymous subtype as a local_anonymous_type, because its accessibility
21241         level is the return type of the enclosing function.
21242         (Check_Initialization): In -gnatg mode, turn the error "cannot
21243         initialize entities of limited type" into a warning.
21244         (OK_For_Limited_Init): Return true for generated nodes, since it
21245         sometimes violates the legality rules.
21246         (Make_Incomplete_Declaration): If the type for which an incomplete
21247         declaration is created happens to be the currently visible entity,
21248         preserve the homonym chain when removing it from visibility.
21249         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
21250         inherited subprograms.
21251         (Access_Definition): If this is an access to function that is the return
21252         type of an access_to_function definition, context is a type declaration
21253         and the scope of the anonymous type is the current one.
21254         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
21255         incomplete subtype to the set of private dependents of the original
21256         incomplete type.
21257         (Constrain_Discriminated_Type): Emit an error message whenever an
21258         incomplete subtype is being constrained.
21259         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
21260         corresponding subtype of the full view of the original incomplete type.
21261         (Check_Incomplete): Properly detect invalid usage of incomplete types
21262         and subtypes.
21263
21264 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
21265
21266         * g-catiio.ads, g-catiio.adb (Value): New function.
21267         Given an input String, try and parse a valid Time value.
21268
21269 2006-10-31  Vincent Celier  <celier@adacore.com>
21270
21271         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
21272         Integer_Address arithmetic, as in Set_Valid.
21273
21274 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
21275             Robert Dewar  <dewar@adacore.com>
21276
21277         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
21278         handling executable extension manually and duplicating code.
21279
21280         * make.adb: Implement new -S switch
21281         (Gnatmake): Use new function Osint.Executable_Name instead
21282         of handling executable extension manually.
21283
21284         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
21285         is specified, the executable name ends with this suffix.
21286         Take advantage of Osint.Executable_Name instead of duplicating code.
21287
21288         * switch-m.adb: Recognize new gnatmake -S switch
21289
21290         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
21291         variable.
21292         (Get_Target_Parameters): Set Executable_Extension_On_Target if
21293         available.
21294
21295         * makeusg.adb: Add line for gnatmake -S switch
21296
21297 2006-10-31  Vincent Celier  <celier@adacore.com>
21298
21299         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
21300         call it with -static-libgcc, as there are some platforms, such as
21301         Darwin, where one of these two switches is compulsory to link.
21302
21303 2006-10-31  Vincent Celier  <celier@adacore.com>
21304
21305         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
21306         instead of ADA_PROJECT_PATH, for the project path.
21307         (Gnatls): When displaying the project path directories, use host dir
21308         specs.
21309
21310         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
21311         names in the project path, as absolute paths may correspond to
21312         multi-valued VMS logical names.
21313
21314 2006-10-31  Vincent Celier  <celier@adacore.com>
21315
21316         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
21317         absolute path name.
21318         (Locate_Regular_File): Ditto
21319         (Change_Dir): Remove, no longer used
21320         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
21321         on Windows. Get it calling Get_Current_Dir.
21322         (OpenVMS): Remove imported boolean, no longer needed.
21323         (Normalize_Pathname)[VMS]: Do not resolve directory names.
21324         (Pid_To_Integer): New function to convert a Process_Id to  Integer
21325
21326 2006-10-31  Thomas Quinot  <quinot@adacore.com>
21327
21328         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
21329         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
21330         to No_Socket.
21331         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
21332         W_Sig_Socket.
21333
21334 2006-10-31  Robert Dewar  <dewar@adacore.com>
21335
21336         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
21337         initial letter o as a zero.
21338
21339 2006-10-31  Robert Dewar  <dewar@adacore.com>
21340
21341         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
21342
21343 2006-10-31  Robert Dewar  <dewar@adacore.com>
21344
21345         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
21346         variant records
21347         (Layout_Variant_Record): Retrieve the discriminants from the entity
21348         rather than from the type definition, because in the case of a full
21349         type for a private type we need to take the discriminants from the
21350         partial view.
21351         (Layout_Component_List): When applying the Max operator to variants with
21352         a nonstatic size, check whether either operand is static and scale that
21353         operand from bits to storage units before applying Max.
21354         (Layout_Type): In VMS, if a C-convention access type has no explicit
21355         size clause (and does not inherit one in the case of a derived type),
21356         then the size is reset to 32 from 64.
21357
21358 2006-10-31  Vincent Celier  <celier@adacore.com>
21359
21360         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
21361         its file has already been loaded, according to the unit being loaded,
21362         not to the current value of Multiple_Unit_Index.
21363
21364 2006-10-31  Thomas Quinot  <quinot@adacore.com>
21365             Eric Botcazou  <ebotcazou@adacore.com>
21366             Arnaud Charlet  <charlet@adacore.com>
21367
21368         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
21369         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
21370         possible.
21371         (a-except.o): Pass it to the compiler.
21372         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
21373         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
21374         a-calend-mingw.adb version.
21375
21376         * Makefile.rtl: Added s-dsaser.
21377         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
21378         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
21379         Ada.Dispatching.Round_Robin.
21380         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
21381
21382         * Make-lang.in: Remove all references to gt-ada-decl.h.
21383         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
21384         sources.
21385         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
21386         Update dependencies.
21387
21388         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
21389
21390 2006-10-31  Vincent Celier  <celier@adacore.com>
21391
21392         * mlib-utl.adb (Initialized): Remove, no longer used
21393         (Initialize): Remove, no longer used
21394         (Ar): If Ar_Exec is null, get the location of the archive builder and,
21395         if there is one, the archive indexer. Fail if the archive builder cannot
21396         be found.
21397         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
21398         be found.
21399
21400 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21401
21402         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
21403         Process_Body_Clauses): If the context of a body includes a use clause
21404         for P.Q then a with_clause for P in the same body is not redundant,
21405         even if the spec also has a with_clause on P.
21406         Add missing continuation mark to error msg
21407         (Build_Limited_Views): A limited view of a type is tagged if its
21408         declaration includes a record extension.
21409         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
21410         node, even if the subunit has errors. This avoids malfunction by
21411         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
21412         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
21413         generation of obsolescent messages for with statements (cannot do
21414         this too early, or we cannot implement avoiding the messages in the
21415         case of obsolescent units withing obsolescent units).
21416         (Install_Siblings): If the with_clause is on a remote descendant of
21417         an ancestor of the current compilation unit, find whether there is
21418         a sibling child unit that is immediately visible.
21419         (Remove_Private_With_Clauses): New procedure, invoked after completing
21420         the analysis of the private part of a nested package, to remove from
21421         visibility the private with_clauses of the enclosing package
21422         declaration.
21423         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
21424         now centralized in Generate_Reference.
21425         (Install_Limited_Context_Clauses): Remove superfluous error
21426         message associated with unlimited view visible through use
21427         and renamings. In addition, at the point in which the error
21428         is reported, we add the backslash to the text of the error
21429         to ensure that it is reported as a single error message.
21430         Use new // insertion for some continuation messages
21431         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
21432         to create implicit with_clause for parent unit mentioned in original
21433         limited_with_clause.
21434         (Install_Limited_With_Unit): Set entity of parent identifiers if the
21435         unit is a child unit. For ASIS queries.
21436         (Analyze_Subunit): If the subunit appears within a child unit, make all
21437         ancestor child units directly visible again.
21438
21439 2006-10-31  Robert Dewar  <dewar@adacore.com>
21440
21441         * par-ch10.adb (P_Context_Clause): Minor error message fix
21442
21443 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
21444             Javier Miranda  <miranda@adacore.com>
21445
21446         * par-ch12.adb: Grammar update and cleanup.
21447         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
21448         support for synchronized derived type definitions.
21449         Add the new actual Abstract_Present to every call to
21450         P_Interface_Type_Definition.
21451         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
21452         a formal object declaration with an access definition or a subtype mark
21453         with a null exclusion.
21454         (P_Generic_Association): Handle association with box, and others_choice
21455         with box, to support Ada 2005 partially parametrized formal packages.
21456
21457 2006-10-31  Robert Dewar  <dewar@adacore.com>
21458             Javier Miranda  <miranda@adacore.com>
21459
21460         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
21461         (P_Type_Declaration): Remove barrier against the reserved word "limited"
21462         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
21463         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
21464         private extensions.
21465         (P_Type_Declaration): Add the new actual Abstract_Present to every call
21466         to P_Interface_Type_Definition.
21467         (P_Interface_Type_Definition): Addition of one formal to report an error
21468         if the reserved word abstract has been previously found.
21469         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
21470         object renaming declaration with an access definition or subtype mark
21471         with a possible null exclusion.
21472
21473         * par-ch9.adb: Minor error msg fix
21474
21475         * par-load.adb: Add missing continuation mark to error msg
21476
21477         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
21478
21479 2006-10-31  Vincent Celier  <celier@adacore.com>
21480
21481         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
21482         unknown attribute in unknown package or in package that does not need
21483         to be checked.
21484         (Parse_Package_Declaration): Do not issue warning for unknown package in
21485         quiet output.
21486
21487 2006-10-31  Vincent Celier  <celier@adacore.com>
21488
21489         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
21490         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
21491         Packages_To_Check.
21492
21493 2006-10-31  Vincent Celier  <celier@adacore.com>
21494
21495         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
21496         on VMS, change "__" to '.' before checking the name.
21497         (Record_Ada_Source): Always add the source file name in the list of
21498         of sources, even if it is not the first time, as it is for another
21499         source index.
21500         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
21501         dot, instead of replacing only the first '_'.
21502
21503         * prj-part.adb (Parse): Convert project file path to canonical form
21504
21505         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
21506         extended, the project id of the project extending it is recorded in its
21507         data, even when it has already been processed as an imported project.
21508
21509 2006-10-31  Robert Dewar  <dewar@adacore.com>
21510
21511         * repinfo.adb (List_Entities): Don't list entities from renaming
21512         declarations.
21513
21514 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
21515             Robert Dewar  <dewar@adacore.com>
21516
21517         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
21518         only a restriction warning is active for the given restriction. This is
21519         desirable because we do not want to modify code in the case where only
21520         a warning is set.
21521         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
21522         causes overriding of real restrictions.
21523         Take advantage of new No_Restrictions constant.
21524
21525         * raise.h: (__gnat_set_globals): Change profile.
21526
21527 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
21528
21529         * rtsfind.adb: Remove s-polint from comment as it exists no more.
21530
21531         * rtsfind.ads:
21532         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
21533         Move all the entities in obsolete package System.PolyORB_Interface to
21534         System.Partition_Interface.
21535         (RE_Storage_Size): New function in System.Tasking.
21536         (RE_Get_Ceiling): New entity.
21537         (RE_Set_Ceiling): New entity.
21538         (RO_PE_Get_Ceiling): New entity.
21539         (RO_RE_Set_Ceiling): New entity.
21540         (Inherit_CPP_DT): New entity
21541
21542 2006-10-31  Robert Dewar  <dewar@adacore.com>
21543
21544         * scng.adb (Scan, case of numeric literal): Better msg for identifier
21545         starting with a digit.
21546
21547 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21548             Thomas Quinot  <quinot@adacore.com>
21549             Javier Miranda  <miranda@adacore.com>
21550             Gary Dismukes  <dismukes@adacore.com>
21551
21552         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
21553         properly an attempt to apply Unchecked_Access to a protected operation.
21554         (OK_Self_Reference): New subprogram to check the legality of an access
21555         attribute whose prefix is the type of an enclosing aggregate.
21556         Generalizes previous mechanism to handle attribute references nested
21557         arbitrarily deep within the aggregate.
21558         (Analyze_Access_Attribute): An access attribute whose prefix is a type
21559         can appear in an aggregate if this is a default-initialized aggregate
21560         for a self-referential type.
21561         (Resolve_Attribute, case Access): Ditto.
21562         Add support for new implementation defined attribute Stub_Type.
21563         (Eval_Attribute, case Attribute_Stub_Type): New case.
21564         (Analyze_Attribute, case Attribute_Stub_Type): New case.
21565         (Stream_Attribute_Available): Implement using new subprogram from
21566         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
21567         Has_Specified_Stream_Attribute flag.
21568         Disallow Storage_Size and Storage_Pool for access to subprogram
21569         (Resolve_Attribute, case 'Access et al): Take into account anonymous
21570         access types of return subtypes in extended return statements. Remove
21571         accessibility checks on anonymous access types when Unchecked_Access is
21572         used.
21573         (Analyze_Attribute): Add support for the use of 'Class to convert
21574         a class-wide interface to a tagged type.
21575         Add support for the attribute Priority.
21576         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
21577         whether the designated type is discriminated with a constrained partial
21578         view and require static matching in that case.
21579         Add local variable Des_Btyp. The Designated_Type
21580         of an access to incomplete subtype is either its non-limited view if
21581         coming from a limited with or its etype if regular incomplete subtype.
21582
21583         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
21584         Fix predicate to identify and allow cases of (expander-generated)
21585         references to tag of designated object of a RACW.
21586         (Validate_Static_Object_Name): In Ada 2005, a formal object is
21587         non-static, and therefore cannot appear as a primary in a preelaborable
21588         package.
21589         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
21590         Has_Read_Write_Attributes.
21591         (Has_Read_Write_Attributes): Reimplement in termes of
21592         Has_Stream_Attribute_Definition.
21593         (Missing_Read_Write_Attributes): When checking component types in a
21594         record, unconditionally call Missing_Read_Write_Attributes recursively
21595         (remove guard checking for Is_Record_Type / Is_Access_Type).
21596
21597 2006-10-31  Robert Dewar  <dewar@adacore.com>
21598
21599         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
21600         useless assignments here and conditionalize it on absence of exception
21601         handlers.
21602         (Analyze_Exception_Handlers): Small code reorganization of error
21603         detection code, for new handling of formal packages.
21604
21605 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21606             Hristian Kirtchev  <kirtchev@adacore.com>
21607
21608         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
21609         that has been constant-folded, preserve information of original tree,
21610         for ASIS uses.
21611         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
21612         generated private extension declaration if the formal derived type is
21613         synchronized. Carry synchronized present over to the generated private
21614         extension.
21615         (Validate_Derived_Type_Instance): Ensure that the actual of a
21616         synchronized formal derived type is a synchronized tagged type.
21617         (Instantiate_Formal_Package): When creating the instantiation used to
21618         validate the actual package of a formal declared without a box, check
21619         whether the formal itself depends on a prior actual.
21620         (Instantiate_Formal_Subprogram): Create new entities for the defining
21621         identifiers of the formals in the renaming declaration, for ASIS use.
21622         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
21623         a renaming declaration or a subtype declaration for an actual in an
21624         instance, capture location information of declaration in generic, for
21625         ASIS use.
21626         (Instantiate_Formal_Package): Add comments on needed additional tests.
21627         AI-317 (partial parametrization) is fully implemented.
21628         (Validate_Private_Type_Instance): Add check for actual which
21629         must have preelaborable initialization
21630         Use new // insertion for some continuation messages
21631         (Analyze_Formal_Object_Declaration): Change usage of Expression to
21632         Default_Expression. Add type retrieval when the declaration has an
21633         access definition. Update premature usage of incomplete type check.
21634         (Check_Access_Definition): New subsidiary routine. Check whether the
21635         current compilation version is Ada 05 and the supplied node has an
21636         access definition.
21637         (Instantiate object): Alphabetize local variables. Handle the creation
21638         of new renaming declarations with respect to the kind of definition
21639         used - either an access definition or a subtype mark. Guard against
21640         unnecessary error message in the context of anonymous access types after
21641         they have been resolved. Add check for required null exclusion in a
21642         formal object declaration.
21643         (Switch_View): A private subtype of a non-private type needs to be
21644         switched (the base type can have been switched without its private
21645         dependents because of the last branch of Check_Private_View.
21646         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
21647         value from BT.
21648         (Instantiate_Type): Emit an error message whenever a class-wide type of
21649         a tagged incomplete type is used as a generic actual.
21650         (Find_Actual_Type): Extend routine to handle a component type in a child
21651         unit that is imported from a formal package in a parent.
21652         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
21653         agree on constrainedness, rather than checking against ultimate ancestor
21654         (Instantiate_Subprogram_Body): Create a cross-reference link to the
21655         generic body, for navigation purposes.
21656
21657 2006-10-31  Robert Dewar  <dewar@adacore.com>
21658             Thomas Quinot  <quinot@adacore.com>
21659
21660         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
21661         type.
21662         (New_Stream_Subprogram): When processing an attribute definition clause
21663         for a stream-oriented subprogram, record an entity node occurring at
21664         the point of clause to use for checking the visibility of the clause,
21665         as defined by 8.3(23) as amended by AI-195.
21666         (New_Stream_Subprogram): New procedure, factoring behaviour from both
21667          New_Stream_Function and New_Stream_Procedure.
21668         (New_Stream_Function, New_Stream_Procedure): Removed.
21669         (Analyze_Attribute_Definition_Clause, case Address): Check new
21670         Alignment_Check check
21671
21672 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21673             Javier Miranda  <miranda@adacore.com>
21674             Robert Dewar  <dewar@adacore.com>
21675
21676         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
21677         generate the same errors compiling under -gnatc.
21678         (Try_Object_Operation): If no candidate interpretation succeeds, but
21679         there is at least one primitive operation with the right name, report
21680         error in call rather than on a malformed selected component.
21681         (Analyze_Selected_Component): If the prefix is an incomplete type from
21682         a limited view, and the full view is available, use the full view to
21683         determine whether this is a prefixed call to a primitive operation.
21684         (Operator_Check): Verify that a candidate interpretation is a binary
21685         operation before checking the type of its second formal.
21686         (Analyze_Call): Add additional warnings for function call contexts not
21687         yet supported.
21688         (Analyze_Allocator): Move the check for "initialization not allowed for
21689         limited types" after analyzing the expression. This is necessary,
21690         because OK_For_Limited_Init looks at the structure of the expression.
21691         Before analysis, we don't necessarily know what sort of expression it
21692         is. For example, we don't know whether F(X) is a function call or an
21693         indexed component; the former is legal in Ada 2005; the latter is not.
21694         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
21695         were missing. We also didn't handle qualified expressions. Now also
21696         allow function calls. Use new common routine OK_For_Limited_Init.
21697         (Analyze_Type_Conversion): Do not perform some legality checks in an
21698         instance, because the error message will be redundant or spurious.
21699         (Analyze_Overloaded_Selected_Component): Do not do style check when
21700         setting an entity, since we do not know it is the right entity yet.
21701         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
21702         (Analyze_Overloaded_Selected_Component): Same change
21703         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
21704         since regular incomplete subtypes are transformed into corresponding
21705         subtypes of their full views.
21706         (Complete_Object_Operation): Treat name of transformed subprogram call
21707         as coming from source, for browsing purposes.
21708         (Try_Primitive_Operation): If formal is an access parameter, compare
21709         with base type of object to determine whether it is a primitive
21710         operation.
21711         (Operator_Check): If no interpretation of the operator matches, check
21712         whether a use clause on any candidate might make the operation legal.
21713         (Try_Class_Wide_Operation): Check whether the first parameter is an
21714         access type whose designated type is class-wide.
21715
21716 2006-10-31  Robert Dewar  <dewar@adacore.com>
21717             Ed Schonberg  <schonberg@adacore.com>
21718             Gary Dismukes  <dismukes@adacore.com>
21719
21720         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
21721         warn on infinite loops.
21722         Add \\ to some continuation messages
21723         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
21724         (Process_Bounds): If the bounds are integer literals that result from
21725         constant-folding, and they carry a user-defined type, preserve that type
21726         rather than treating this as an integer range.
21727         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
21728         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
21729         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
21730         left hand side of assignment.
21731         (Analyze_Assignment): Add suport to manage assigments to the attribute
21732         priority of a protected object.
21733         (Check_Possible_Current_Value_Condition): Allow fully qualified names
21734         not just identifiers.
21735         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
21736         or AND THEN for possible tracking.
21737         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
21738         case of while loops so we can track values in the loop body.
21739
21740 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21741             Hristian Kirtchev  <kirtchev@adacore.com>
21742             Bob Duff  <duff@adacore.com>
21743
21744         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
21745         procedure cannot be a protected operation (it is a basic_declaration,
21746         not a subprogram_declaration).
21747         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
21748         Subp. Add logic for entry processing.
21749         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
21750         Determine whether an entry or subprogram of a protected or task type
21751         override an inherited primitive of an implemented interface.
21752         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
21753         Update the actual used in calls to Check_Overriding_Indicator.
21754         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
21755         generate the proper reference to the parent unit, for cross-reference.
21756         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
21757         Is_Formal.
21758         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21759         (Add_Extra_Formal): Revise procedure to allow passing in associated
21760         entity, scope, and name suffix, and handle setting of the new
21761         Extra_Formals field.
21762         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
21763         pass new parameters. Add support for adding the new extra access formal
21764         for functions whose calls are treated as build-in-place.
21765         (Analyze_A_Return_Statement): Correct casing in error message.
21766         Move Pop_Scope to after Analyze_Function_Return, because an extended
21767         return statement really is a full-fledged scope. Otherwise, visibility
21768         doesn't work right. Correct use of "\" for continuation messages.
21769         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
21770         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
21771         the node doesn't get properly marked as analyzed.
21772         (Analyze_Subprogram_Body): If subprogram is a function that returns
21773         an anonymous access type that denotes a task, build a Master Entity
21774         for it.
21775         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
21776         proper usage of null exclusion in a result definition.
21777         (Process_Formals): Code cleanup and new error message.
21778         (Process_Formals): Detect incorrect application of null exclusion to
21779         non-access types.
21780         (Conforming_Types): Handle conformance between [sub]types and itypes
21781          generated for entities that have null exclusions applied to them.
21782         (Maybe_Primitive_Operation): Add an additional type retrieval when the
21783          base type is an access subtype. This case arrises with null exclusions.
21784         (New_Overloaded_Entity): Do not remove the overriden entity from the
21785         homonym chain if it corresponds with an abstract interface primitive.
21786         (Process_Formals): Replace membership test agains Incomplete_Kind with a
21787         call to the synthesized predicate Is_Incomplete_Type.
21788         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
21789         primitives.
21790         (Analyze_Subprogram_Declaration): Check that abstract interface
21791         primitives are abstract or null.
21792         (Analyze_Subprogram_Specification): Remove previous check for abstract
21793         interfaces because it was not complete.
21794         (Has_Interface_Formals): Removed.
21795
21796 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21797             Javier Miranda  <miranda@adacore.com>
21798
21799         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
21800         of Analyze_Package_Body, to create Itype references for anonymous
21801         access types created in the package declaration, whose designated types
21802         may have only a limited view.
21803         (Analyze_Package_Specification): For the private part of a nested
21804         package, install private_with_clauses of enclosing compilation unit if
21805         we are in its visible part.
21806         (Declare_Inherited_Private_Subprograms): Complete barrier
21807         to ensure that the primitive operation has an alias to some parent
21808         primitive. This is now required because, after the changes done for the
21809         implementation of abstract interfaces, the contents of the list of
21810         primitives has entities whose alias attribute references entities of
21811         such list of primitives.
21812         (Analyze_Package_Specification): Simplify code that handles parent units
21813         of instances and formal packages.
21814         (Uninstall_Declarations): Check the convention consistency among
21815         primitive overriding operations of a tagged record type.
21816
21817 2006-10-31  Robert Dewar  <dewar@adacore.com>
21818             Hristian Kirtchev  <kirtchev@adacore.com>
21819             Javier Miranda  <miranda@adacore.com>
21820             Ed Schonberg  <schonberg@adacore.com>
21821
21822         * sem_ch8.adb: Minor error msg rewording
21823         (Undefined): When checking for misspellings, invert arguments (to get
21824         expected and found set right)
21825         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
21826         (Analyze_Generic_Renaming): Same fix
21827         (Use_One_Package): Do not take into account the internal entities of
21828         abstract interfaces during the analysis of entities that are marked
21829         as potentially use-visible.
21830         (Find_Type): Handle the case of an attribute reference for
21831         implementation defined attribute Stub_Type (simply let the analysis of
21832         the attribute reference rewrite it).
21833         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
21834         type that appears in a Use_Type clause.
21835         (Analyze_Object_Renaming): Add support for renaming of the Priority
21836         attribute.
21837         (Find_Type): In Ada 2005, a task type can be used within its own body,
21838         when it appears in an access definition.
21839         (Analyze_Object_Renaming): Remove warning on null_exclusion.
21840         (Analyze_Object_Renaming): Introduce checks for required null exclusion
21841          in a formal object declaration or in a subtype declaration.
21842         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
21843         (Check_Null_Exclusion): New local routine to
21844         Analyze_Subprogram_Renaming. Check whether the formals and return
21845         profile of a renamed subprogram have required null exclusions when
21846         their counterparts of the renaming already impose them.
21847         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
21848         Determine whether an entity is inside a generic scope.
21849         (In_Open_Scope): First pass of documentation update.
21850         (Find_Expanded_Name): Add support for shadow entities associated with
21851         limited withed packages. This is required to handle nested packages.
21852         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
21853         that makes a renaming of a limited withed package illegal.
21854
21855 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
21856             Ed Schonberg  <schonberg@adacore.com>
21857
21858         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
21859         Check_Overriding_Indicator.
21860         (Analyze_Task_Definition): Ditto.
21861         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
21862         (Check_Overriding_Indicator): To find overridden interface operation,
21863         examine only homonyms that have an explicit subprogram declaration, not
21864         inherited operations created by an unrelated type derivation.
21865         (Check_Overriding_Indicator): When checking for the presence of "null"
21866         in a procedure, ensure that the queried node is a procedure
21867         specification.
21868         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
21869         type when the formal is an access to variable.
21870         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
21871         (Analyze_Task_Type): Same addition
21872         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
21873         provide navigation capabilities for entries.
21874
21875 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
21876             Ed Schonberg  <schonberg@adacore.com>
21877             Javier Miranda  <miranda@adacore.com>
21878             Gary Dismukes  <dismukes@adacore.com>
21879
21880         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
21881         inherited from an interface ancestor by another interface in the
21882         context of an instance as 'late'.
21883         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
21884         of a call to a function that dispatches on access result.
21885         (Check_Dispatching_Operation): In case of late overriding of a primitive
21886         that covers abstract interface subprograms we register it in all the
21887         secondary dispatch tables associated with abstract interfaces.
21888         (Check_Dispatching_Call): Add check that a dispatching call is not made
21889         to a function with a controlling result of a limited type. This is a
21890         current implementation restriction.
21891         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
21892         (Check_Dispatching_Operation): Do no emit a warning if the controlling
21893         argument is an interface type that is a generic formal.
21894         (Is_Interface_Subprogram): Removed.
21895         (Check_Dispatching_Operation): If the subprogram is not a dispatching
21896         operation, check the formals to handle the case in which it is
21897         associated with an abstract interface type.
21898
21899 2006-10-31  Robert Dewar  <dewar@adacore.com>
21900             Ed Schonberg  <schonberg@adacore.com>
21901
21902         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
21903         Add new calls to this procedure during traversal
21904         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
21905         another unit if expansion is disabled.
21906
21907 2006-10-31  Robert Dewar  <dewar@adacore.com>
21908
21909         * sem_eval.adb (Compile_Time_Compare): Make use of information from
21910         Current_Value in the conditional case, to evaluate additional
21911         comparisons at compile time.
21912
21913 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21914             Hristian Kirtchev  <kirtchev@adacore.com>
21915             Javier Miranda  <miranda@adacore.com>
21916
21917         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
21918         subprogram type to provide better diagnostics in case of ambiguity.
21919         (Covers): Handle coverage of formal and actual anonymous access types in
21920         the context of generic instantiation.
21921         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
21922         abstract interface types; this is required to handle concurrent types
21923         with discriminants and abstract interface types.
21924         (Covers): Include type coverage of both regular incomplete subtypes and
21925         incomplete subtypes of incomplete type visibles through a limited with
21926         clause.
21927
21928 2006-10-31  Robert Dewar  <dewar@adacore.com>
21929             Hristian Kirtchev  <kirtchev@adacore.com>
21930             Ed Schonberg  <schonberg@adacore.com>
21931
21932         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
21933         messages for entities in packages which are not used.
21934         (Collect_Synchronized_Interfaces): New procedure.
21935         (Overrides_Synchronized_Primitive): New function.
21936         (Denotes_Discriminant): Extend predicate to apply to task types.
21937         Add missing continuation marks in error msgs
21938         (Unqualify): New function for removing zero or more levels of
21939         qualification from an expression. There are numerous places where this
21940         ought to be used, but we currently only deal properly with zero or one
21941         level.
21942         (In_Instance); The analysis of the actuals in the instantiation of a
21943         child unit is not within an instantiation, even though the parent
21944         instance is on the scope stack.
21945         (Safe_To_Capture_Value): Exclude the case of variables that are
21946         renamings.
21947         (Check_Obsolescent): Removed
21948         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
21949         is an aliased view, even when rewritten as a reference to the target
21950         object in an assignment.
21951         (Get_Subprogram_Entity): New function
21952         (Known_To_Be_Assigned): New function
21953         (Type_Access_Level): Compute properly the access level of a return
21954         subtype that is an anonymous access type.
21955         (Explain_Limited_Type): Correct use of "\" for continuation messages.
21956         (Is_Transfer): The new extended_return_statement causes a transfer of
21957         control.
21958         (Has_Preelaborable_Initialization): New function
21959         (Has_Null_Exclusion): New function. Given a node N, determine whether it
21960         has a null exclusion depending on its Nkind.
21961         Change Is_Lvalue to May_Be_Lvalue
21962         (May_Be_Lvalue): Extensive additional code to deal with subprogram
21963         arguments (IN parameters are not Lvalues, IN OUT parameters are).
21964         (Safe_To_Capture_Value): Extend functionality so it can be used for
21965         the current value condition case.
21966         (Has_Compatible_Alignment): New function
21967         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
21968         objects to handle the Ada 2005 case, where aliasedness no longer implies
21969         that the object is constrained. In particular, for dereferenced names,
21970         the designated object must be assumed to be unconstrained.
21971         (Kill_Current_Values): Properly deal with the case where we encounter
21972         a loop in the scope chain.
21973         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
21974         a value.
21975         (Compile_Time_Constraint_Error): Improve error message in error case
21976
21977         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
21978         associated with entities of abstract interface primitives.
21979         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
21980
21981 2006-10-31  Robert Dewar  <dewar@adacore.com>
21982
21983         * s-osinte-tru64.adb:
21984         Mark Asm statements Volatile to prevent warnings (seems a
21985         reasonable change anyway)
21986         Fixes new warnings
21987
21988         * s-mastop-irix.adb: Add Volatile to Asm statements
21989         Suppresses warning, and seems appropriate in any case
21990
21991         * s-osinte-vms.adb: Add Volatile to Asm statement
21992
21993         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
21994
21995         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
21996         returned.
21997         Add call to Check_Code_Statement
21998
21999 2006-10-31  Robert Dewar  <dewar@adacore.com>
22000             Ed Schonberg  <schonberg@adacore.com>
22001             Bob Duff  <duff@adacore.com>
22002
22003         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
22004         Synchronized_Present): Add Formal_Derived_Type_Definition and
22005         Private_Extension_Declaration to the list of assertions.
22006         (Is_Entry_Barrier_Function): New flag
22007         (Has_Self_Reference): New flag on aggregates, to indicate that they
22008         contain a reference to the enclosing type, inserted through a default
22009         initialization.
22010         (Next_Rep_Item): Move from Node4 to Node5.
22011         (Entity): Add this field for N_Attribute_Definition_Clause.
22012         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
22013         (N_Return_Object_Declaration): Remove this node kind. We now use
22014         N_Object_Declaration instead.
22015         (Actual_Designated_Subtype): Move to a different place to make room in
22016         N_Extended_Return_Statement.
22017         (Procedure_To_Call): Move to a different place to make room in
22018         N_Extended_Return_Statement.
22019         (Return_Type): Removed this field to make room in return statements
22020         (both kinds).
22021         (Return_Statement_Entity): New field in return statements, in part to
22022         replace Return_Type, and in part to support the fact that return
22023         statements are now pushed on the scope stack during semantic analysis.
22024         (Return_Object_Declarations): New field to support extended return
22025         statements.
22026         (N_Extended_Return_Statement): New node for extended_return_statement
22027         nonterminal.
22028         (N_Return_Object_Declaration): New node for part of
22029         extended_return_statement nonterminal. Needed because all the necessary
22030         fields won't fit in N_Extended_Return_Statement.
22031         Generic_associations now carry the Box_Present flag, to indicate a
22032         default for an actual in a partially parametrized formal package.
22033
22034         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
22035         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
22036         and for the new predefined dispatching policies: EDF_Across_Priorities,
22037         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
22038         Introduce new name Stub_Type for implementation defined attribute.
22039         Add pragma Preelaborable_Initialization
22040         Add entry for Priority attribute.
22041         Add Pragma_Wide_Character_Encoding
22042         (Get_Convention_Name): Given a convention id, this function returns the
22043         corresponding name id from the names table.
22044
22045 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
22046             Robert Dewar  <dewar@adacore.com>
22047             Bob Duff  <duff@adacore.com>
22048
22049         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
22050         print null exclusion twice in the case of an access definition,
22051         Implement new -gnatL switch
22052         Remove N_Return_Object_Declaration. We now use
22053         N_Object_Declaration instead. Implement the case for
22054         N_Extended_Return_Statement. Alphabetize the cases.
22055         Add cases for new nodes N_Extended_Return_Statement and
22056         N_Return_Object_Declaration. The code is not yet written.
22057         Update the output for N_Formal_Object_Declaration
22058         and N_Object_Renaming_Declaration.
22059         (Write_Itype): Account for the case of a modular integer subtype whose
22060         base type is private.
22061
22062 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
22063
22064         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
22065         Remove elaboration code, now done in the binder.
22066
22067         * s-rident.ads: Make this unit Preelaborate.
22068         (No_Restrictions): New constant used to clean up code and follow
22069         preelaborate constraints.
22070
22071         * s-stalib.adb:
22072         Add System.Restrictions dependence, referenced directly from the
22073         binder generated file.
22074
22075 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
22076
22077         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
22078         True when AAMP extended floating-point is in use (48-bit). Change type
22079         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
22080         the two byte array types on AFloat. Change type of IV_Ilf overlay
22081         variable from Byte8 to ByteLF. Add appropriate initializations of
22082         floating-point overlays for AAMP cases.
22083
22084 2006-10-31  Javier Miranda  <miranda@adacore.com>
22085
22086         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
22087         (Get_Ceiling): New subprogram that returns
22088         the ceiling priority of the protected object.
22089         (Set_Ceiling): New subprogram that sets the new ceiling priority of
22090         the protected object.
22091
22092         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
22093
22094         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
22095
22096 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
22097
22098         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
22099         requeuing to the same protected object to give higher priority tasks
22100         the opportunity to execute.
22101
22102 2006-10-31  Robert Dewar  <dewar@adacore.com>
22103
22104         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
22105         add more precise check for the character sequence that follows '[' to
22106         avoid possible confusion in case if '[' is the last character of a
22107         string literals.
22108         (Scan_Wide): Always allow brackets encoding
22109
22110 2006-10-31  Olivier Hainque  <hainque@adacore.com>
22111
22112         * s-stchop.ads: make this unit preelaborate. This is desirable in
22113         general and made mandatory by the use of this unit by s-taprop which
22114         is itself preelaborate.
22115
22116         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
22117         Td_Events component.
22118
22119 2006-10-31  Vincent Celier  <celier@adacore.com>
22120
22121         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
22122         in file names.
22123
22124 2006-10-31  Vincent Celier  <celier@adacore.com>
22125
22126         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
22127
22128 2006-10-31  Vincent Celier  <celier@adacore.com>
22129
22130         * makegpr.adb (Check_Compilation_Needed): Take into account path names
22131         with spaces.
22132         (Check_Compilation_Needed): When checking a C or C++ source, do not
22133         resolve symbolic links.
22134         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
22135         When not in verbose mode and Ellipse is True, display "..." for the
22136         first argument with Display set to False.
22137         (Build_Global_Archive): Always set Display True for the first object
22138         file. Call Display_Command with Ellipse set to True.
22139
22140 2006-10-31  Matt Heaney  <heaney@adacore.com>
22141
22142         * a-crbtgo.ads: Commented each subprogram
22143
22144         * a-crbtgo.adb: Added reference to book from which algorithms were
22145         adapted.
22146
22147         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
22148         indicate which child.
22149         (Generic_Conditional_Insert): changed parameter name from "Success" to
22150         "Inserted".
22151         (Generic_Unconditional_Insert_With_Hint): improved algorithm
22152
22153         * a-coorse.adb (Replace_Element): changed parameter name in call to
22154         conditional insert operation.
22155
22156         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
22157
22158         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
22159         Generic_Iteration
22160
22161         * a-ciorse.adb (Replace_Element): changed parameter name in call to
22162         conditional insert operation.
22163
22164         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
22165         Generic_Iteration.
22166
22167         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
22168         instead of mode inout.
22169
22170         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
22171         draft
22172         (Generic_Read): preserve existing buckets array if possible
22173         (Generic_Write): don't send buckets array length anymore
22174
22175         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
22176         instead of mode inout.
22177
22178         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
22179         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22180
22181         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
22182         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22183         (Replace_Element): local operation is now an instantiation
22184
22185         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
22186         check current length.
22187         (Generic_Replace_Element): new operation
22188
22189 2006-10-31  Doug Rupp  <rupp@adacore.com>
22190
22191         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
22192         Call TBK$SYMBOLIZE without omitting parameters.
22193
22194 2006-10-31  Vincent Celier  <celier@adacore.com>
22195
22196         * symbols-processing-vms-ia64.adb,
22197         symbols-processing-vms-alpha.adb (Process): Do not include symbols
22198         that come from generic instantiations in bodies.
22199
22200 2006-10-31  Pat Rogers  <rogers@adacore.com>
22201
22202         * a-rttiev.ads, a-rttiev.adb:
22203         This is a significant redesign primarily for the sake of automatic
22204         timer task termination but also to fix a design flaw.
22205         Therefore we are now using an RTS lock, instead of a protected
22206         object, to provide mutual exclusion to the queue of pending events
22207         and the type Timing_Event is no longer a protected type.
22208
22209 2006-10-31  Robert Dewar  <dewar@adacore.com>
22210             Cyrille Comar  <comar@adacore.com>
22211             Ben Brosgol  <brosgol@adacore.com>
22212
22213         * debug.adb:  Update flags documentation
22214
22215         * gnat_ugn.texi: Add documentation for new -gnatwq switch
22216         Clean up documentation for several other warning switches
22217         Clarify how task stack size can be specified with various
22218         versions of Windows.
22219         Add note that -gnatVo includes ranges including loops
22220         Add documentation for -gnatL switch
22221         Add note on elaboration warning for initializing variables
22222         Add documentation for new -gnatwt warning switch
22223         Document new form of pragma Warnings (On|Off, string)
22224         Add comment on use of pragma Warnings to control warnings
22225         Add documentation for -gnatjnn switch
22226         Modify section on interfacing with C for VMS 64-bit.
22227         Add doc for -gnatVe/E
22228         Add documentation of new warning flags -gnatww/-gnatwW
22229         Add warnings about address clause overlays to list of warnings
22230         (Exception Handling Control): Document that the option --RTS must be
22231         used consistently for gcc and gnatbind.
22232         Clarify that inlining is not always possible
22233         Update documentation on pragma Unchecked_Union.
22234
22235         * gnat_rm.texi:
22236         Add documentation for new extended version of pragma Obsolescent
22237         Add documentation for implementation defined attribute 'Stub_Type.
22238         Add note on use of Volatile in asm statements
22239         Add documentation on use of pragma Unreferenced in context clause
22240         Document new form of pragma Warnings (On|Off, pattern)
22241         Document pragma Wide_Character_Encoding
22242         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
22243         enforced if code generation is active.
22244         Add section on pragma Suppress to document GNAT specific check
22245         Alignment_Check
22246         Clarify difference between No_Dispatching_Calls & No_Dispatch.
22247         Add documentation for pragma Restrictions (No_Elaboration_Code)
22248
22249         * gnat-style.texi:
22250         Add comments on layout of subprogram local variables in the
22251         presence of nested subprograms.
22252
22253         * ug_words: Resync.
22254
22255         * elists.ads: Minor reformatting
22256         Node returns Node_Or_Entity_Id (doc change only)
22257
22258         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
22259
22260         * g-arrspl.ads (Create): Update comments.
22261
22262         * sem.ads: Add details on the handling of the scope stack.
22263
22264         * usage.adb: Update documentation.
22265
22266         * validsw.ads, validsw.adb:
22267         Add definition of Validity_Check_Components and implement -gnatVe/E
22268
22269         * vms_data.ads: Add missing VMS qualifiers.
22270
22271         * s-addope.ads: Add documentation on overflow and divide by zero
22272
22273 2006-10-31  Robert Dewar  <dewar@adacore.com>
22274             Thomas Quinot  <quinot@adacore.com>
22275             Arnaud Charlet  <charlet@adacore.com>
22276
22277         * fmap.adb: Put routines in alpha order
22278
22279         * g-boumai.ads: Remove redundant 'in' keywords
22280
22281         * g-cgi.adb: Minor reformatting
22282
22283         * g-cgi.ads: Remove redundant 'in' keywords
22284
22285         * get_targ.adb: Put routines in alpha order
22286
22287         * prj-attr.ads: Minor reformatting
22288
22289         * s-atacco.ads: Minor reformatting
22290
22291         * scn.adb: Put routines in alpha order
22292
22293         * sinput-l.adb: Minor comment fix
22294
22295         * sinput-p.adb: Minor comment fix
22296
22297         * s-maccod.ads: Minor reformatting
22298
22299         * s-memory.adb: Minor reformatting
22300
22301         * s-htable.adb: Fix typo in comment.
22302
22303         * s-secsta.adb: Minor comment update.
22304
22305         * s-soflin.adb: Minor reformatting
22306
22307         * s-stoele.ads:
22308         Add comment about odd qualification in Storage_Offset declaration
22309
22310         * s-strxdr.adb:
22311         Remove unnecessary 'in' keywords for formal parameters.
22312
22313         * treeprs.adt: Minor reformatting
22314
22315         * urealp.adb: Put routines in alpha order
22316
22317         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
22318         taking string.
22319
22320         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22321
22322         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
22323
22324         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
22325         workaround as on other platforms.
22326
22327         * g-eacodu-vms.adb: Remove redundant 'in' keywords
22328         * g-expect-vms.adb: Remove redundant 'in' keywords
22329
22330         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
22331         clear error message if the list-of-files file cannot be opened.
22332
22333         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
22334         equality operator is always visible.
22335
22336         * lang.opt: Woverlength-strings: New option.
22337
22338         * nmake.adt:
22339         Update copyright, since nmake.ads and nmake.adb have changed.
22340
22341         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
22342         (Binder_Output_Time_Stamps_Set): removed.
22343         (Old_Binder_Output_Time_Stamp): idem.
22344         (New_Binder_Output_Time_Stamp): idem.
22345         (Recording_Time_From_Last_Bind): idem.
22346         (Recording_Time_From_Last_Bind): Make constant.
22347
22348         * output.ads, output.adb (Write_Str): Allow LF characters
22349         (Write_Spaces): New procedure
22350
22351         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
22352
22353         * inline.adb: Minor reformatting
22354
22355         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22356
22357         * s-mastop-vms.adb: Remove redundant 'in' keywords
22358
22359         * s-osprim-vms.adb: Remove redundant 'in' keywords
22360
22361         * s-trafor-default.adb: Remove redundant 'in' keywords
22362
22363         * 9drpc.adb: Remove redundant 'in' keywords
22364
22365         * s-osinte-mingw.ads: Minor reformatting
22366
22367         * s-inmaop-posix.adb: Minor reformatting
22368
22369         * a-direio.ads: Remove quotes from Compile_Time_Warning message
22370
22371         * a-exexda.adb: Minor code reorganization
22372
22373         * a-filico.adb: Minor reformatting
22374
22375         * a-finali.adb: Minor reformatting
22376
22377         * a-nudira.ads: Remove quote from Compile_Time_Warning message
22378
22379         * a-numeri.ads: Minor reformatting
22380
22381         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
22382
22383         * exp_pakd.ads: Fix obsolete comment
22384
22385         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
22386         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
22387         Probably not a bug, but certainly neater and more efficient.
22388
22389         * a-tienio.adb: Minor reformatting
22390
22391         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
22392         Avoid assuming low bound of string is 1.
22393
22394         * gnatbind.adb: Change Bindusg to package and rename procedure as
22395         Display, which now ensures that it only outputs usage information once.
22396         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
22397
22398         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
22399         Table'First.
22400
22401         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
22402         warning.
22403         (Match): Add pragma Assert to ensure that Matches'First is zero
22404
22405         * g-regpat.ads (Match): Document that Matches lower bound must be zero
22406
22407         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
22408         documented preconditions (also kills warnings about bad indexes).
22409
22410         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
22411         is 1.
22412         (Build_Import_Library): Ditto;
22413
22414         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
22415
22416         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
22417
22418         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
22419         lower bound of choice table is 1.
22420
22421         * sem_case.ads (Analyze_Choices): Document that lower bound of
22422         Choice_Table is 1.
22423
22424         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
22425         string is 1.
22426
22427         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
22428         and add appropriate Assert pragma to suppress warnings.
22429
22430         * atree.h, atree.ads, atree.adb
22431         Change Elist24 to Elist25
22432         Add definitions of Field28 and Node28
22433         (Traverse_Field): Use new syntactic parent table in sinfo.
22434
22435         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22436
22437         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22438
22439         * exp_tss.adb: Put routines in alpha order
22440
22441         * fe.h: Remove redundant declarations.
22442
22443 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22444
22445         * utils.c (builtin_function): Rename to gnat_builtin_function.
22446         Move common code to add_builtin_function.
22447         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
22448         gnat_builtin_function.
22449         * gigi.h (builtin_function): Rename to gnat_builtin_function.
22450         Change the signature.
22451
22452 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
22453
22454         * Makefile.in: Add TEXI2PDF definition.
22455         * Make-lang.in: Add "ada.pdf" target.
22456
22457 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
22458
22459         * decl.c, utils.c: Fix comment typos.
22460         * utils.c: Fix a typo.
22461
22462 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
22463
22464         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
22465         on "pure" Ada subprograms if SJLJ exceptions are used.
22466         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
22467         on the declaration node of JMPBUF_SAVE.
22468         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
22469         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
22470         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
22471
22472 2006-08-20  Laurent Guerby  <laurent@guerby.net>
22473
22474         PR ada/28716
22475         g-socket.adb (Bind_Socket): Call Set_Address.
22476
22477 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
22478
22479         PR ada/15802
22480         * decl.c (same_discriminant_p): New static function.
22481         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
22482         subtype and we have discriminants, fix up the COMPONENT_REFs
22483         for the discriminants to make them reference the corresponding
22484         fields of the parent subtype after it has been built.
22485
22486 2006-09-15  Roger Sayle  <roger@eyesopen.com>
22487
22488         PR ada/18817
22489         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
22490         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
22491
22492 2006-09-13  Olivier Hainque  <hainque@adacore.com>
22493
22494         PR ada/29025
22495         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
22496         of a SAVE_EXPR, just make the operand addressable/not-readonly and
22497         let the common gimplifier code make and propagate a temporary copy.
22498         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
22499         out/in-out actuals and defer setting the addressable/readonly bits
22500         to the gimplifier.
22501
22502 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
22503
22504         PR ada/28591
22505         * decl.c (components_to_record): Defer emitting debug info for the
22506         record type associated with the variant until after we are sure to
22507         actually use it.
22508
22509 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
22510
22511         PR ada/21952
22512         * gigi.h (gnat_internal_attribute_table): Declare.
22513         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
22514         * utils.c (gnat_internal_attribute_table): New global variable.
22515         (builtin_function): Always call decl_attributes on the builtin.
22516         (handle_const_attribute): New static function.
22517         (handle_nothrow_attribute): Likewise.
22518
22519 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
22520
22521         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
22522
22523 2006-06-23  Olivier Hainque  <hainque@adacore.com>
22524
22525         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
22526         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
22527
22528 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
22529             Eric Botcazou  <ebotcazou@adacore.com>
22530
22531         PR ada/18692
22532         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
22533         check-gnat into check-acats.
22534
22535 2006-06-17  Karl Berry  <karl@gnu.org>
22536
22537         * gnat-style.texi (@dircategory): Use "Software development"
22538         instead of "Programming", following the Free Software Directory.
22539
22540 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22541
22542         PR ada/27944
22543         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
22544
22545 2006-06-06  Laurent Guerby  <laurent@guerby.net>
22546
22547         PR ada/27769
22548         mlib-utl.adb: Use Program_Name.
22549
22550 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
22551
22552         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
22553         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
22554         trans.c, utils.c: Fix comment typos.  Follow spelling
22555         conventions.
22556         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
22557         conventions.
22558
22559 2006-05-19  Nicolas Setton  <setton@adacore.com>
22560
22561         * misc.c (gnat_dwarf_name): New function.
22562         (LANG_HOOKS_DWARF_NAME): Define to it.
22563
22564 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22565
22566         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
22567         (ada/misc.o): Likewise.
22568         (ada/utils.o): Likewise.
22569
22570 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
22571
22572         * Makefile.in: Add Ada support for GNU/kFreeBSD.
22573         * s-osinte-kfreebsd-gnu.ads: New file.
22574
22575 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
22576
22577         * Make-lang.in: Rename docdir to gcc_docdir.
22578
22579 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
22580
22581         * gigi.h (get_ada_base_type): Delete.
22582         * utils2.c (get_ada_base_type): Likewise.
22583         * trans.c (convert_with_check): Operate in the real base type.
22584
22585 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22586
22587         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
22588
22589 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
22590
22591         * utils.c (create_var_decl): Use have_global_bss_p when deciding
22592         whether to make the decl common.
22593
22594 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22595
22596         * Make-lang.in (Ada): Remove.
22597         (.PHONY): Remove Ada
22598
22599 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22600
22601         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
22602         aggregate, check the interpretations of the other operand to find one
22603         that may be a boolean array.
22604
22605         (Analyze_Selected_Component): Fix flow-of-control typo in case where
22606         the prefix is a private extension.
22607
22608 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
22609
22610         PR ada/26315
22611         * utils2.c (find_common_type): If both input types are BLKmode and
22612         have the same constant size, keep using the first one.
22613
22614         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
22615
22616         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
22617
22618         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
22619
22620 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
22621
22622         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
22623         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
22624         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
22625         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
22626         Abort_Defer/Undefer pairs to avoid the possibility of a task being
22627         aborted while owning a lock.
22628
22629 2006-02-17  Javier Miranda  <miranda@adacore.com>
22630             Robert Dewar  <dewar@adacore.com>
22631
22632         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
22633         through an access to class-wide interface we force the displacement of
22634         the pointer to the allocated object to reference the corresponding
22635         secondary dispatch table.
22636         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
22637         if Long_Shifts are supported on the target, even if 64 bit divides
22638         are not supported (configurable run time mode).
22639         (Expand_N_Type_Conversion): Do validity check if validity checks on
22640         operands are enabled.
22641         (Expand_N_Qualified_Expression): Do validity check if validity checks
22642         on operands are enabled.
22643
22644 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22645
22646         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
22647         must be materialized when the renamed expression is an explicit
22648         dereference.
22649
22650 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22651
22652         * freeze.adb (Statically_Discriminated_Components): Return false if
22653         the bounds of the type of the discriminant are not static expressions.
22654
22655         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
22656         the bounds of the discriminant type are not static.
22657
22658 2006-02-17  Robert Dewar  <dewar@adacore.com>
22659
22660         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
22661         then we close To if it is valid.
22662
22663 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
22664
22665         * init.c (facility_resignal_table): new array
22666         (__gnat_default_resignal_p): enhance default predicate to resignal if
22667         VMS condition has one of the predefined facility codes.
22668
22669 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
22670
22671         * Makefile.in: Use VMS64 specialized versions of several units in
22672         Interfaces.C hierarchy to be compatible with HP C default size choices.
22673         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
22674
22675 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22676
22677         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
22678         instantiation, the corresponding entity is the related_instance of the
22679         wrapper package created for the instance.
22680
22681 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22682
22683         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
22684         the current instance is nested within another instance in a child unit.
22685
22686 2006-02-17  Javier Miranda  <miranda@adacore.com>
22687             Ed Schonberg  <schonberg@adacore.com>
22688
22689         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
22690         type we cannot inherit the primitive operations; we inherit the
22691         Corresponding_Record_Type (which has the list of primitive operations).
22692         (Check_Anonymous_Access_Types): When creating anonymous access types for
22693         access components, use Rewrite in order to preserve the tree structure,
22694         for ASIS use.
22695         (Analyze_Object_Declaration): For limited types with access
22696         discriminants with defaults initialized by an aggregate, obtain
22697         subtype from aggregate as for other mutable types.
22698         (Derived_Type_Declaration): If the derived type is a limited interface,
22699         set the corresponding flag (Is_Limited_Record is not sufficient).
22700
22701 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22702
22703         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
22704         to inline a function that returns an unconstrained type, the return
22705         expression must be the first variable declared in the body of the
22706         function.
22707
22708 2006-02-17  Javier Miranda  <miranda@adacore.com>
22709
22710         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
22711         abstract interface type, the static analysis is not enough to know if
22712         the interface is implemented or not by the source tagged type. Hence
22713         we must pass the work to the expander to generate the required code to
22714         evaluate the conversion at run-time.
22715         (Resolve_Equality_Op): Do not apply previous
22716         transformation if expansion is disasbled, to prevent anomalies when
22717         locating global references in a generic unit.
22718
22719 2006-02-17  Vincent Celier  <celier@adacore.com>
22720
22721         * snames.ads, snames.adb: New standard names for new project attributes:
22722         archive_builder, archive_indexer, compiler_pic_option,
22723         config_body_file_name, config_body_file_name_pattern,
22724         config_file_switches, config_file_unique, config_spec_file_name,
22725         config_spec_file_name_pattern, default_builder_switches,
22726         default_global_compiler_switches, default_language,
22727         dependency_file_kind, global_compiler_switches, include_path,
22728         include_path_file, language_kind, linker_executable_option,
22729         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
22730         roots, runtime_project.
22731
22732 2006-02-17  Matthew Heaney  <heaney@adacore.com>
22733
22734         * a-convec.ads, a-convec.adb:
22735         (operator "&"): handle potential overflow for large index types
22736         (Insert): removed Contraint_Error when using large index types
22737         (Insert_Space): removed Constraint_Error for large index types
22738         (Length): moved constraint check from Length to Insert
22739
22740         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
22741         as not null access.
22742         Explicit raise statements now include an exception message.
22743         (operator "&"): handle potential overflow for large index types
22744         (Insert): removed Contraint_Error when using large index types
22745         (Insert_Space): removed Constraint_Error for large index types
22746         (Length): moved constraint check from Length to Insert
22747
22748 2006-02-17  Robert Dewar  <dewar@adacore.com>
22749
22750         * s-wchcnv.adb: Document handling of [ on output (we do not change
22751         this to ["5B"] and the new comments say why not.
22752
22753         * gnat_ugn.texi:
22754         Add note for -gnatVo that this now includes the cases of type
22755         conversions and qualified expressions.
22756         Add comments on handling of brackets encoding for Text_IO
22757
22758 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
22759             Thomas Quinot  <quinot@adacore.com>
22760             Robert Dewar  <dewar@adacore.com>
22761             Javier Miranda  <miranda@adacore.com>
22762
22763         * expander.adb: Fix typo in comment
22764
22765         * exp_pakd.adb: Fix typo
22766         Minor comment reformatting.
22767
22768         * g-dyntab.adb: Minor reformatting
22769
22770         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
22771         aliased subprograms to look for the abstract interface subprogram.
22772
22773 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
22774
22775         * env.c (__gnat_setenv): Use size_t.
22776         (__gnat_unsetenv): Likewise.
22777         (__gnat_clearenv): Likewise.
22778
22779 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
22780
22781         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
22782
22783 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
22784
22785         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
22786         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
22787         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
22788         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
22789         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
22790         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
22791         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
22792         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
22793         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
22794         no longer used.
22795
22796 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
22797
22798         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
22799         protection against race conditions is not needed.
22800         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
22801         fallback handler.
22802         (Set_Specific_Handler): Add mutual exclusive access to the specific
22803         handler.
22804         (Specific_Handler): Add mutual exclusive access for retrieving the
22805         specific handler.
22806
22807         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
22808         back handler.
22809
22810         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
22811         Fall_Back_Handler and Specific_Handler.
22812
22813         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
22814         termination handlers.
22815         Set two different owerflow depending on the maximal stack size.
22816
22817         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
22818         protection against race conditions is not needed when executing the
22819         task termination handler.
22820
22821 2006-02-13  Robert Dewar  <dewar@adacore.com>
22822
22823         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
22824         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
22825         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22826         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
22827         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
22828         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
22829         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
22830         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
22831         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
22832         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
22833         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
22834         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
22835         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
22836         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
22837         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
22838         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
22839         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
22840         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
22841         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
22842         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
22843         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
22844         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
22845         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
22846         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
22847         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
22848         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
22849         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
22850         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
22851         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
22852         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
22853         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
22854         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
22855         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
22856         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
22857         reformatting.
22858
22859 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
22860
22861         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
22862         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
22863         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
22864         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
22865         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
22866         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
22867         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
22868         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
22869         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
22870
22871 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
22872
22873         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
22874         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
22875         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
22876         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
22877         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
22878         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
22879         replaced by anonymous access type.
22880         (pthread_sigmask): Now take an access sigset_t
22881
22882         * s-osinte-hpux.ads:  Ditto.
22883         (pthread_mutex_t, pthread_cond_t): Update definitions to support
22884         properly 32 and 64 bit ABIs.
22885
22886 2006-02-13  Pascal Obry  <obry@adacore.com>
22887
22888         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
22889         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
22890         s-taprop-linux.adb, s-taprop-solaris.adb,
22891         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
22892         adjustement is already done when calling this routine.
22893
22894 2006-02-13  Pascal Obry  <obry@adacore.com>
22895
22896         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
22897         table to take advantage of the 16 priority levels available on Windows
22898         2000 and XP. On NT4 there are only 7 priority levels, this is properly
22899         supported by this new mapping.
22900
22901 2006-02-13  Nicolas Setton  <setton@adacore.com>
22902
22903         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
22904         (get_encoding): New subprogram. Extracts the encodings from an encoded
22905         Ada name.
22906
22907 2006-02-13  Pascal Obry  <obry@adacore.com>
22908             Nicolas Roche  <roche@adacore.com>
22909             Arnaud Charlet  <charlet@adacore.com>
22910
22911         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
22912         support.
22913         (__gnat_try_lock): Add unicode support by using a specific section on
22914         Windows.
22915         (__gnat_get_current_dir): Idem.
22916         (__gnat_open_read): Idem.
22917         (__gnat_open_rw): Idem.
22918         (__gnat_open_create): Idem.
22919         (__gnat_create_output_file): Idem.
22920         (__gnat_open_append): Idem.
22921         (__gnat_open_new): Idem.
22922         (__gnat_file_time_name): Idem.
22923         (__gnat_set_file_time_name): Idem.
22924         (__gnat_stat): Idem.
22925         (win32_no_block_spawn): Idem.
22926         (__gnat_locate_exec_on_path): Idem.
22927         (__gnat_opendir): New routine.
22928         (__gnat_closedir): Idem.
22929         (__gnat_readdir): Add new parameter length (pointer to int). Update
22930         implementation to use it and add specific Win32 code for Unicode
22931         support.
22932         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
22933         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
22934         (convert_addresses): Do not define this dummy routine on VMS.
22935
22936         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
22937         runtime Unicode support will be activated.
22938         (S2WS): String to Wide-String conversion. This version just copy a
22939         string in non Unicode version.
22940         (WS2S): Wide-String to String conversion. This version just copy a
22941         string in non Unicode version.
22942
22943         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
22944         (Open): Now import __gnat_opendir from adaint.c.
22945         (Read): Change the implementation to support unicode characters. It is
22946         not possible to use strlen() on Windows as this version supports only
22947         standard ASCII characters. So the length of the directory entry is now
22948         returned from the imported __gnat_readdir routine.
22949         Update copyright notice.
22950
22951         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
22952         (opendir): Moved to adaint.c.
22953
22954         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
22955         (Get_Directory): Fix wrong indexing.
22956         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
22957         __gnat_getenv from env.c
22958         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
22959         from env.c
22960
22961         * env.h, env.c: New file.
22962
22963         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
22964         adaint.c by __gnat_getenv from env.c
22965
22966         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
22967         adaint.c by __gnat_getenv from env.c
22968
22969         * Make-lang.in: Add env.o in the list of C object needed by gnat1
22970         and gnatbind.
22971         Update dependencies.
22972
22973 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22974             Olivier Hainque  <hainque@adacore.com>
22975             Eric Botcazou  <ebotcazou@adacore.com>
22976
22977         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
22978
22979         * gigi.h (value_factor_p): Add prototype and description, now public.
22980
22981         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
22982         promotion for field with rep clause if the associated size was proven
22983         to be in error.
22984         Expand comments describing attempts to use a packable type.
22985         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
22986         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
22987         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
22988         necessary since these are not different types and pointers may
22989         actually designate any subtype in this hierarchy.
22990         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
22991         discriminants but put them into record only if not Unchecked_Union;
22992         pass flag to components_to_record showing Unchecked_Union.
22993         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
22994         components before variants; don't set TYPE_UNCHECKED_UNION_P.
22995         (components_to_record): New argument UNCHECKED_UNION.
22996         Remove special case code for Unchecked_Union and instead use main code
22997         with small changes.
22998
22999         PR ada/26096
23000         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
23001         variable with the expression being built, only its inner field.
23002
23003         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
23004         emit_sequence_entry_statements.
23005         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
23006         (establish_gnat_vms_condition_handler): Move before
23007         Subprogram_Body_to_gnu.
23008         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
23009         for a subprogram if it has a foreign convention or is exported.
23010         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
23011         substituted for a CONST_DECL.
23012         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
23013         Etype to assoc_to_constructor.
23014         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
23015         discriminants of Unchecked_Union.
23016         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
23017         don't need cluttering preprocessor directives.
23018         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
23019         condition handler as current in the compiled function.
23020         (body_with_handlers_p): New function. Tell whether a given sequence of
23021         statements node is attached to a package or subprogram body and involves
23022         exception handlers possibly nested within inner block statements.
23023         (emit_sequence_entry_statements): New function, to emit special
23024         statements on entry of sequences when necessary. Establish GNAT
23025         condition handler in the proper cases for VMS.
23026         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
23027         emit_sequence_entry_statements.
23028
23029         * utils2.c (find_common_type): If both input types are BLKmode and
23030         have a constant size, use the smaller one.
23031         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
23032         the same.
23033
23034         * utils.c (value_factor_p): Make public, to allow uses from other gigi
23035         units.
23036         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
23037         (convert, case UNION_TYPE): Remove special treatment for unchecked
23038         unions.
23039
23040         PR ada/18659
23041         (update_pointer_to): Update variants of pointer types to unconstrained
23042         arrays by attaching the list of fields of the main variant.
23043
23044 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
23045             Robert Dewar  <dewar@adacore.com>
23046
23047         * a-exexpr.adb, a-exexpr-gcc.adb
23048         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
23049         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
23050         Remove code unused for exception propagation for the compiler itself
23051         from a-except.adb and update to still share separate packages.
23052
23053         * a-except.ads, a-except.adb: Ditto.
23054         Add comments that this version is now used only by the compiler and
23055         other basic tools. The full version that includes the Ada 2005 stuff
23056         is in separate files a-except-2005.ads/adb. The reason is that we do
23057         not want to cause bootstrap problems with compilers not recognizing
23058         Wide_Wide_String.
23059         Add exception reason code PE_Implicit_Return
23060         Add new exception reason code (Null Exception_Id)
23061
23062         * a-except-2005.adb, a-except-2005.ads: New files.
23063
23064         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
23065
23066         * s-wchcon.adb: New file.
23067
23068         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
23069         (traceback.o deps): Likewise.
23070         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
23071         Activate build of GMEM instrumentation library on VMS targets.
23072         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
23073         Use a-except-2005.ads/adb for all run-time library builds unless
23074         specified otherwise.
23075         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
23076         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
23077         Use s-parame.adb on all native platforms.
23078         Use s-parame-vxworks.adb on all vxworks platforms.
23079         Add env.c env.h in LIBGNAT_SRCS
23080         Add env.o in LIBGNAT_OBJS
23081         (GNATMAKE_OBJS): Remove ctrl_c.o object.
23082         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
23083         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
23084         supports VxWorks 6 RTPs.
23085         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
23086         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
23087
23088         * types.h, types.ads (Terminate_Program): New exception
23089         Add comment on modifying multiple versions of a-except.adb when the
23090         table of exception reasons is modified.
23091         Add exception reason code PE_Implicit_Return
23092         Add new exception reason code (Null Exception_Id)
23093
23094         * clean.adb (Initialize): Get the target parameters before checking
23095         if target is OpenVMS. Move the OpenVMS specific code here from package
23096         body elaboration code.
23097
23098 2006-02-13  Thomas Quinot  <quinot@adacore.com>
23099             Vincent Celier  <celier@adacore.com>
23100             Robert Dewar  <dewar@adacore.com>
23101
23102         * ali-util.adb (Get_File_Checksum): Update to account for change in
23103         profile of Initialize_Scanner.
23104
23105         * gprep.adb (Gnatprep): Update to account for change in profile of
23106         Initialize_Scanner.
23107         (Process_One_File): Same.
23108
23109         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
23110         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
23111         that behaviour using the new Unit information recorded in the source
23112         files table, rather than going through all units every time.
23113         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
23114         (Get_Source_Unit): Same.
23115
23116         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
23117         change in profile of Initialize_Scanner.
23118         (Prepare_To_Preprocess): Same.
23119
23120         * lib.ads: Fix typo in comment (templace -> template).
23121
23122         * prj-part.adb (Parse_Single_Project): Update to account for change in
23123         profile of Initialize_Scanner.
23124
23125         * scn.adb (Initialize_Scanner): Account for change in profile of
23126         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
23127         Also record the association of the given Source_File_Index to the
23128         corresponding Unit_Number_Type.
23129
23130         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
23131         procedure.
23132         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
23133         Remove Unit formal for generic scanner: this formal
23134         is only relevant to Scn (the scanner instance used to parse Ada source
23135         files), not to other instances. Update comment accordingly.
23136         (Scan): Use new function Snames.Is_Keyword_Name.
23137
23138         * sinfo-cn.adb: Fix typo in comment.
23139
23140         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
23141         Unit.
23142
23143         * sinput.ads (Source_File_Record): New component Unit, used to capture
23144         the unit identifier (if any) associated to a source file.
23145
23146         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
23147         Unit in Source_File_Record.
23148
23149         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
23150         in profile of Initialize_Scanner.
23151
23152         * scans.adb (Initialize_Ada_Keywords): New procedure
23153
23154         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
23155         Ada keywords in the Namet table, without the need to call
23156         Initialize_Scanner.
23157
23158         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
23159         (Is_Keyword_Name): New function
23160
23161         * snames.ads: Add subtype Configuration_Pragma_Names
23162         Add pragma Ada_2005 (synonym for Ada_05)
23163         (Is_Keyword_Name): New function
23164
23165         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
23166
23167 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
23168
23169         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
23170         index.
23171
23172         * a-stwima.adb (To_Set): Add extra check when N = 0.
23173
23174         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
23175
23176 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
23177
23178         * s-parame-mingw.adb, s-parame-linux.adb,
23179         s-parame-solaris.adb: Removed, replaced by s-parame.adb
23180
23181         * s-parame-vxworks.ads: Fix typo.
23182
23183         * s-parame-vxworks.adb: New file.
23184
23185         * s-parame.adb: Version now used by all native platforms.
23186         (Default_Stack_Size): Use 2 megs for default stack size and use
23187         __gl_default_stack_size when available.
23188         (Minimum_Stack_Size): Use 12K.
23189
23190         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
23191         (Create_Task): Refine implementation taking advantage of the XP stack
23192         size support. On XP, we now create the thread using the flag
23193         STACK_SIZE_PARAM_IS_A_RESERVATION.
23194
23195         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
23196
23197         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
23198         XP and 0 on older Windows versions.
23199
23200         * interfac-vms.ads: Removed, no longer used.
23201
23202 2006-02-13  Matthew Heaney  <heaney@adacore.com>
23203
23204         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
23205         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
23206         a-cohase.adb: All explicit raise statements now include an exception
23207         message.
23208
23209         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
23210         (Update_Element_Preserving_Key): renamed op to just Update_Element.
23211         Explicit raise statements now include an exception message
23212
23213         * a-cihase.ads, a-cohase.ads: Removed comment.
23214
23215         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
23216         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
23217         a-szbzha.adb, a-szfzha.ads: New files.
23218
23219 2006-02-13  Matthew Heaney  <heaney@adacore.com>
23220
23221         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
23222         quicksort.
23223
23224 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
23225
23226         * lang.opt: Wvariadic-macros: New option.
23227         Wold-style-definition: Likewise.
23228         Wmissing-format-attribute: Likewise.
23229
23230         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
23231         -Wold-style-definition and -Wmissing-format-attribute.
23232
23233 2006-02-13  Robert Dewar  <dewar@adacore.com>
23234
23235         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
23236
23237         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
23238
23239 2006-02-13  Nicolas Roche  <roche@adacore.com>
23240
23241         * a-envvar.adb, a-envvar.ads: New files.
23242
23243 2006-02-13  Douglas Rupp  <rupp@adacore.com>
23244
23245         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
23246
23247         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
23248
23249 2006-02-13  Pat Rogers  <rogers@adacore.com>
23250
23251         * a-rttiev.adb, a-rttiev.ads: New files.
23252
23253 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
23254
23255         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
23256         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
23257
23258         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
23259
23260 2006-02-13  Robert Dewar  <dewar@adacore.com>
23261
23262         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
23263         sem_case.adb: Minor code reorganization (not Present should be No)
23264
23265 2006-02-13  Geert Bosch  <bosch@adacore.com>
23266             Gary Dismukes  <dismukes@adacore.com>
23267
23268         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
23269         0, since the lower bound of the actual string may be greater than one.
23270
23271         PR ada/20753
23272         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
23273         layout is requested.
23274
23275 2006-02-13  Vincent Celier  <celier@adacore.com>
23276
23277         * back_end.adb (Scan_Compiler_Arguments): Check if
23278         Search_Directory_Present is True and, if it is, add the argument in
23279         the source search directory path.
23280
23281         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
23282         Search_Directory_Present to True.
23283
23284 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
23285
23286         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
23287         volatile, to tell the compiler to preserve this variable at any level
23288         of optimization.
23289         (Gen_Versions_Ada): Temporarily work around codegen bug.
23290
23291 2006-02-13  Vincent Celier  <celier@adacore.com>
23292
23293         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
23294         gcc to link with option -shared-libgcc.
23295         (Gnatlink): Remove duplicate switches -shared-libgcc
23296
23297 2006-02-13  Robert Dewar  <dewar@adacore.com>
23298
23299         * gnatvsn.ads (Current_Year): New constant, used to easily update
23300         copyright on all GNAT tools.
23301
23302         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
23303         copyright notice.
23304
23305 2006-02-13  Robert Dewar  <dewar@adacore.com>
23306
23307         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
23308         after hyphen (small aesthetic change useful for a range of numbers
23309         using ^-^.
23310         Suppress range checks for a couple of assignments which otherwise
23311         cause validity checks with validity checking turned on.
23312
23313         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
23314         Improvement in error message for object.
23315         (Rep_Item_Too_Late): Remove '!' in warning message.
23316
23317 2006-02-13  Robert Dewar  <dewar@adacore.com>
23318             Eric Botcazou  <ebotcazou@adacore.com>
23319
23320         * err_vars.ads: Suppress range checks for a couple of assignments
23321         which otherwise cause validity checks with validity checking turned on.
23322         Update comments.
23323
23324         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
23325         Make message unconditional if it is a warning.
23326         (Error_Msg_NEL): Always output warning messages.
23327         Suppress range checks for a couple of assignments which otherwise
23328         cause validity checks with validity checking turned on.
23329
23330         * errout.ads (Message Insertion Characters): Document that '!' is
23331         implied by '?' in error messages.
23332
23333         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
23334         (Gnat1drv): Use a goto to end of main subprogram instead of
23335         Exit_Program (E_Success) so that finalization can occur normally.
23336
23337 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
23338
23339         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
23340         wrapped around.
23341
23342 2006-02-13  Vincent Celier  <celier@adacore.com>
23343
23344         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
23345         Unchecked_Conversion functions.
23346         (Modification_Time): Use direct conversion of OS_Time to Calendar time
23347         when OpenVMS returns False.
23348
23349         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
23350         a-dirval.adb (OpenVMS): New Boolean function
23351
23352 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23353             Thomas Quinot  <quinot@adacore.com>
23354
23355         * checks.adb (Build_Discriminant_Checks): If the expression being
23356         checks is an aggregate retrieve the values of its discriminants to
23357         generate the check, rather than creating a temporary and a reference
23358         to it.
23359         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
23360         (Install_Null_Excluding_Check): Ditto
23361         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
23362         not for the renamed object, so that the actual itype is attached in the
23363         proper context.
23364
23365 2006-02-13  Robert Dewar  <dewar@adacore.com>
23366             Vincent Celier  <celier@adacore.com>
23367
23368         * debug.adb: Eliminate numeric switches for binder/gnatmake
23369
23370         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
23371         switches for the compiler.
23372         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
23373         (Scan_Make_Switches): When failing with an illegal switch, output an
23374         error message with the full switch.
23375         Eliminate numeric switches for binder/gnatmake
23376
23377         * switch.ads, switch.adb (Bad_Switch): New procedure
23378
23379         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
23380         Remove 0-9 as debug flag character possibilities
23381         -d is now controlling the primary stack size when its value is a
23382         positive. Also add checks against invalid values, and support for kb,
23383         mb. Ditto for -D switch.
23384
23385 2006-02-13  Robert Dewar  <dewar@adacore.com>
23386             Serguei Rybin  <rybin@adacore.com>
23387
23388         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
23389         save/restore routines.
23390         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23391         were not always properly handled previously.
23392         Since we are changing the tree format anyway, also get rid of the
23393         junk obsolete Immediate_Errors flag.
23394         (Tree_Read): Change the way of reading Tree_Version_String - now we
23395         read the version string from the tree even if its length is not the
23396         same as the length of the version string computed from Gnatvsn.
23397         (Search_Directory_Present): New Boolean flag for the compiler.
23398         Define Tree_Version_String as a dynamic string.
23399         (Default_Stack_Size): new variable, used to handle switch -d.
23400
23401         * par-prag.adb:
23402         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
23403         only for main unit.
23404         Add pragma Ada_2005 (synonym for Ada_05)
23405         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23406         were not always properly handled previously.
23407
23408         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
23409         explicit Ada_95 to Ada_2005.
23410
23411 2006-02-13  Javier Miranda  <miranda@adacore.com>
23412             Robert Dewar  <dewar@adacore.com>
23413             Ed Schonberg  <schonberg@adacore.com>
23414
23415         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
23416         against errors in the source program: a private types for which the
23417         corresponding full type declaration is missing and pragma CPP_Virtual
23418         is used.
23419         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
23420         (Is_Known_Null): New flag
23421         (Has_Pragma_Pure): New flag
23422         (No_Return): Present in all entities, set only for procedures
23423         (Is_Limited_Type): A type whose ancestor is an interface is limited if
23424         explicitly declared limited.
23425         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
23426         entities. Only used for component marked Is_Tag. If present it stores
23427         the Offset_To_Top function used to provide this value in tagged types
23428         whose ancestor has discriminants.
23429
23430         * exp_ch2.adb: Update status of new Is_Known_Null flag
23431
23432         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
23433
23434         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
23435         the categorization sense if Is_Pure was set by pragma Pure_Function.
23436
23437 2006-02-13  Quentin Ochem  <ochem@adacore.com>
23438             Olivier Hainque  <hainque@adacore.com>
23439
23440         * bindusg.adb: Updated documentation for -d and -D switches.
23441
23442         * raise.h (__gnat_set_globals): added new parameter for
23443         Default_Stack_Size.
23444
23445         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
23446         (__gnat_handle_vms_condition): Adjust context before raise.
23447         (__gnat_install_handler): Restore the global vector setup for GCC
23448         versions before 3.4, as the frame based circtuitry is not available
23449         in this case.
23450         (__gnat_set_globals): added a parameter default_stack_size
23451         (__gl_default_stack_size): new variable.
23452
23453 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23454
23455         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
23456         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
23457         does not exist in the Ada RM.
23458         (Compatible_Int_Bounds): Determine whether two integer range bounds
23459         are of equal length and have the same start and end values.
23460         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
23461         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
23462         aggregate when it is part of an object declaration.
23463         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
23464         constrains discriminants of its parent, add explicitly the discriminant
23465         constraints of the ancestor by retrieving them from the
23466         stored_constraint of the parent.
23467
23468 2006-02-13  Robert Dewar  <dewar@adacore.com>
23469
23470         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
23471         attribute Mechanism_Code is applied to renamed subprogram, modify
23472         prefix to point to base subprogram.
23473         Max/Min attributes now violate Restriction No_Implicit_Conditionals
23474
23475         * sinfo.ads: Document that Mechanism_Code cannot be applied to
23476         renamed subprograms so that the front-end must replace the prefix
23477         appropriately.
23478
23479 2006-02-13  Javier Miranda  <miranda@adacore.com>
23480             Gary Dismukes  <dismukes@adacore.com>
23481
23482         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
23483         availability of RE_Interface_Tag.
23484         (Build_Initialization_Call): Fix wrong access to the discriminant value.
23485         (Freeze_Record_Type): Do not generate the tables associated with
23486         timed and conditional dispatching calls through synchronized
23487         interfaces if compiling under No_Dispatching_Calls restriction.
23488         When compiling for Ada 2005, for a nonabstract
23489         type with a null extension, call Make_Controlling_Function_Wrappers
23490         and insert the wrapper function declarations and bodies (the latter
23491         being appended as freeze actions).
23492         (Predefined_Primitive_Bodies): Do not generate the bodies of the
23493         predefined primitives associated with timed and conditional
23494         dispatching calls through synchronized interfaces if we are
23495         compiling under No_Dispatching_Calls.
23496         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
23497         service is available before generating a call.
23498         (Make_Controlling_Function_Wrappers): New procedure.
23499         (Expand_N_Full_Type_Declaration): Create a class-wide master for
23500         access-to-limited-interfaces because they can be used to reference
23501         tasks that implement such limited interface.
23502         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
23503         procedure spec and body of the Offset_To_Top function that is generated
23504         when the parent of a type with discriminants has secondary dispatch
23505         tables.
23506         (Init_Secondary_Tags): Handle the case in which the parent of the type
23507         containing secondary dispatch tables has discriminants to generate the
23508         correct arguments to call Set_Offset_To_Top.
23509         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
23510
23511         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
23512         Add Wide_[Wide_]Expanded_Name.
23513         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
23514         the same functionality of Get_Prim_Op_Address but applied to predefined
23515         primitive operations because the pointers to the predefined primitives
23516         are now saved in a separate table.
23517         (Parent_Size): Modified to get access to the separate table of primitive
23518         operations or the parent type.
23519         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
23520         functionality of Set_Prim_Op_Address but applied to predefined primitive
23521         operations.
23522         (Set_Signature): New subprogram used to store the signature of a DT.
23523         (Displace): If the Offset_To_Top value is not static then call the
23524         function generated by the expander to get such value; otherwise use
23525         the value stored in the table of interfaces.
23526         (Offset_To_Top): The type of the actual has been changed to Address to
23527         give the correct support to tagged types with discriminants. In this
23528         case this value is stored just immediately after the tag field.
23529         (Set_Offset_To_Top): Two new formals have been added to indicate if the
23530         offset_to_top value is static and hence pass this value to the run-time
23531         to store it in the table of interfaces, or else if this value is dynamic
23532         and then pass to the run-time the address of a function that is
23533         generated by the expander to provide this value for each object of the
23534         type.
23535
23536         * rtsfind.ads (Default_Prin_Op_Count): Removed.
23537         (Default_Prim_Op_Count): New entity
23538         (Get_Predefined_Prim_Op_Address): New entity
23539         (Set_Predefined_Prim_Op_Address): New entity
23540         (RE_Set_Signature): New entity
23541
23542 2006-02-13  Thomas Quinot  <quinot@adacore.com>
23543             Ed Schonberg  <schonberg@adacore.com>
23544
23545         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
23546         Make_Adjust_Call done for a newly-allocated object.
23547
23548         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
23549         in a subprogram are wrapped in a cleanup block, indicate that the
23550         subprogram contains an inner block with an exception handler.
23551         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
23552         Adjust call is for a newly-allocated object. In that case we must not
23553         assume that the finalization list chain pointers are correct (since they
23554         come from a bit-for-bit copy of the original object's pointers) so if
23555         the attach level would otherwise be zero (no change), we set it to 4
23556         instead to cause the pointers to be reset to null.
23557
23558         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
23559         reset chain pointers to null.
23560
23561 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23562
23563         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
23564         string, and the context requires a loop for the assignment (e.g.
23565         because the left-hand side is packed), generate a unique name for the
23566         temporary that holds the string, to prevent spurious name clashes.
23567
23568 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23569             Javier Miranda  <miranda@adacore.com>
23570             Robert Dewar  <dewar@adacore.com>
23571             Gary Dismukes  <dismukes@adacore.com>
23572
23573         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
23574         return unconstrained arrays.
23575         Update comments.
23576         (Expand_Call):  An indirect call through an access parameter of a
23577         protected operation is not a protected call.
23578         Add circuit to raise CE in Ada 2005 mode following call
23579         to Raise_Exception.
23580         (Register_DT_Entry): Do nothing if
23581         the run-time does not give support to abstract interfaces.
23582         (Freeze_Subprogram): In case of dispatching operations, do not generate
23583         code to register the operation in the dispatch table if the source
23584         is compiled with No_Dispatching_Calls.
23585         (Register_Predefined_DT_Entry): Generate code that calls the new
23586         run-time subprogram Set_Predefined_Prim_Op_Address instead of
23587         Set_Prim_Op_Address.
23588
23589         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
23590         on array assignments if the right-hand side is a function call that has
23591         been inlined. Check is performed on the assignment in the block.
23592         (Process_Bounds): If bounds and range are overloaded, apply preference
23593         rule for root operations to disambiguate, and diagnose true ambiguity.
23594         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
23595         a tag-indeterminate right-hand side even when Expander_Active is True.
23596         Needed to ensure that dispatching calls to T'Input are allowed and
23597         get the tag of the target class-wide object.
23598
23599         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
23600         an inherited primitive operation that already overrides several
23601         abstract interface primitives. For transitivity, the new entity must
23602         also override all the abstract interface primitives covered by the
23603         inherited overriden primitive.
23604         Emit warning if new entity differs from homograph in same scope only in
23605         that one has an access parameter and the other one has a parameter of
23606         a general access type with the same designated type, at the same
23607         position in the signature.
23608         (Make_Inequality_Operator): Use source locations of parameters and
23609         subtype marks from corresponding equality operator when creating the
23610         tree structure for the implicit declaration of "/=". This does not
23611         change anything in behaviour except that the decoration of the
23612         components of the subtree created for "/=" allows ASIS to get the
23613         string images of the corresponding identifiers.
23614         (Analyze_Return_Statement): Remove '!' in warning message.
23615         (Check_Statement_Sequence): Likewise.
23616         (Analyze_Subprogram_Body): For an access parameter whose designated type
23617         is an incomplete type imported through a limited_with clause, use the
23618         type of the corresponding formal in the body.
23619         (Check_Returns): Implicit return in No_Return procedure now raises
23620         Program_Error with a compile time warning, instead of beging illegal.
23621         (Has_Single_Return):  Function returning unconstrained type cannot be
23622         inlined if expression in unique return statement is not an identifier.
23623         (Build_Body_To_Inline): It is possible to inline a function call that
23624         returns an unconstrained type if all return statements in the function
23625         return the same local variable. Subsidiary procedure Has_Single_Return
23626         verifies that the body conforms to this restriction.
23627
23628         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
23629         same type, and  one of them is of an anonymous access type, convert
23630         the other operand to it, so that this is a valid binary operation for
23631         gigi.
23632         (Resolve_Type_Conversion): Handle subtypes of protected types and
23633         task types when accessing to the corresponding record type.
23634         (Resolve_Allocator): Add '\' in 2-line warning message.
23635         Remove '!' in warning message.
23636         (Resolve_Call): Add '\' in 2-line warning message.
23637         (Valid_Conversion): Likewise.
23638         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
23639         resulting type may be an access type with an implicit dereference.
23640         Obtain the proper component from the designated type.
23641         (Make_Call_Into_Operator): Handle properly a call to predefined equality
23642         given by an expanded name with prefix Standard, when the operands are
23643         of an anonymous access type.
23644         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
23645         Explicit_Dereference and Resolve_Selected_Component, to verify that the
23646         prefix of the expression is not of an incomplete type. Allows full
23647         diagnoses of all semantic errors.
23648         (Resolve_Actuals): If the actual is an allocator whose directly
23649         designated type is a class-wide interface we build an anonymous
23650         access type to use it as the type of the allocator. Later, when
23651         the subprogram call is expanded, if the interface has a secondary
23652         dispatch table the expander will add a type conversion to force
23653         the displacement of the pointer.
23654         (Resolve_Call): If a function that returns an unconstrained type is
23655         marked Inlined_Always and inlined, the call will be inlined and does
23656         not require the creation of a transient scope.
23657         (Check_Direct_Boolean_Op): Removed
23658         (Resolve_Comparison_Op): Remove call to above
23659         (Resolve_Equality_Op): Remove call to above
23660         (Resolve_Logical_Op): Inline above, since this is only call.
23661         (Valid_Conversion): Handle properly conversions between arrays of
23662         convertible anonymous access types.
23663
23664         PR ada/25885
23665         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
23666         the literal in an unchecked conversion, because GCC 4.x needs a static
23667         value for a string bound.
23668
23669 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23670             Hristian Kirtchev  <kirtchev@adacore.com>
23671
23672         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
23673         components of the corresponding record, take into account component
23674         definitions that are access definitions.
23675         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
23676         procedure is not considered a dispatching call and will be expanded
23677         properly.
23678
23679 2006-02-13  Javier Miranda  <miranda@adacore.com>
23680
23681         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
23682         controlling argument of the dispatching call is an abstract interface
23683         class-wide type then we use it directly.
23684         Check No_Dispatching_Calls restriction.
23685         (Default_Prim_Op_Position): Remove the code that looks for the last
23686         entity in the list of aliased subprograms. This code was wrong in
23687         case of renamings.
23688         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
23689         when the source is compiled with the No_Dispatching_Calls restriction.
23690         (Init_Predefined_Interface_Primitives): No need to inherit primitives
23691         if we are compiling with restriction No_Dispatching_Calls.
23692         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
23693         subprograms if we are compiling under No_Dispatching_Calls restriction.
23694         (Make_DT): Generate a dispatch table with a single dummy entry if
23695         we are compiling with the No_Dispatching_Calls restriction. In
23696         addition, in this case we don't generate code that calls to the
23697         following run-time subprograms: Set_Type_Kind, Inherit_DT.
23698         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
23699         of this subprogram if compiling with the No_Dispatching_Calls
23700         restriction.
23701         (Expand_Type_Conversion): Instead of using the actual parameter,
23702         the argument passed as parameter to the conversion function was
23703         erroneously referenced by the expander.
23704         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
23705         Set_Predefined_Primitive_Op_Address and Set_Signature.
23706         (Expand_Dispatching_Call): Generate call to
23707         Get_Predefined_Prim_Op_Address for predefined primitives.
23708         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
23709         predefined primitives.
23710         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
23711         primitives we reserve one dummy entry to ensure that the tag does not
23712         point to some memory that is associated with some other object. In
23713         addition, remove all the old code that generated the assignments
23714         associated with the signature of the dispatch table and replace them
23715         by a call to the new subprogram Set_Signature.
23716         (Set_All_DT_Position): Change the algorithm because now we have a
23717         separate dispatch table associated with predefined primitive operations.
23718         (Expand_Interface_Conversion): In case of non-static offset_to_top
23719         add explicit dereference to get access to the object after the call
23720         to displace the pointer to the object.
23721         (Expand_Interface_Thunk): Modify the generation of the actual used
23722         in the calls to the run-time function Offset_To_Top to fulfil its
23723         new interface.
23724         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
23725
23726 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23727
23728         * exp_dist.adb (Copy_Specification): For access parameters, copy
23729         Null_Exclusion flag, which will have been set for stream subprograms
23730         in Ada2005 mode.
23731
23732 2006-02-13  Pascal Obry  <obry@adacore.com>
23733
23734         * expect.c (__gnat_expect_portable_execvp): New implementation. The
23735         previous implementation was using the C runtime spawnve routine but
23736         the corresponding wait was using directly the Win32 API. This was
23737         causing some times a lock when waiting for an event using
23738         WaitForSingleObject in __gnat_waitpid. This new implementation uses
23739         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
23740         API fixes this problem.
23741
23742 2006-02-13  Robert Dewar  <dewar@adacore.com>
23743
23744         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
23745         call.
23746
23747 2006-02-13  Thomas Quinot  <quinot@adacore.com>
23748
23749         * exp_pakd.ads: Fix typos in comments.
23750
23751         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
23752         array reference that is an explicit dereference, mark the converted
23753         (packed) array reference as analyzed to prevent a forthcoming
23754         reanalysis from resetting its type to the original (non-packed) array
23755         type.
23756
23757 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23758             Javier Miranda  <miranda@adacore.com>
23759             Eric Botcazou  <ebotcazou@adacore.com>
23760
23761         * exp_util.ads, exp_util.adb (Find_Prim_Op,
23762         Is_Predefined_Primitive_Operation): When
23763         searching for the predefined equality operator, verify that operands
23764         have the same type.
23765         (Is_Predefined_Dispatching_Operation): Remove the code that looks
23766         for the last entity in the list of aliased subprograms. This code
23767         was wrong in case of renamings.
23768         (Set_Renamed_Subprogram): New procedure
23769         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
23770         Exp_Type constant computed when entering this subprogram.
23771         (Known_Null): New function
23772         (OK_To_Do_Constant_Replacement): New function
23773         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
23774         (Side_Effect_Free): An attribute reference 'Input is not free of
23775         side effect, unlike other attributes that are functions. (from code
23776         reading).
23777         (Remove_Side_Effects): Expressions that involve packed arrays or records
23778         are copied at the point of reference, and therefore must be marked as
23779         renamings of objects.
23780         (Is_Predefined_Dispatching_Operation): Return false if the operation is
23781         not a dispatching operation.
23782
23783         PR ada/18819
23784         (Remove_Side_Effects): Lift enclosing type conversion nodes for
23785         elementary types in all cases.
23786
23787 2006-02-13  Javier Miranda  <miranda@adacore.com>
23788
23789         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
23790         task types when accessing to the corresponding record type.
23791         Remove '!' in warning message.
23792
23793 2006-02-13  Olivier Hainque  <hainque@adacore.com>
23794
23795         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
23796         to avoid useless and space inefficient overalignments on targets where
23797         Max_Alignment is larger than 16.
23798
23799 2006-02-13  Pascal Obry  <obry@adacore.com>
23800
23801         * g-catiio.adb (Sec_Number): New type used to compute the number of
23802         seconds since 1-1-1970.
23803         (Image) [Natural]: The parameter was an Integer, as we can't deal with
23804         negative numbers (years, months...) it is better to have a Natural here.
23805         Code clean-up.
23806         (Image) [Number]: Change parameter from Long_Integer to Number.
23807         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
23808         overflow for dates past year 2038.
23809
23810 2006-02-13  Matthew Heaney  <heaney@adacore.com>
23811
23812         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
23813         Constraint_Error.
23814
23815 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
23816
23817         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
23818         native platforms.
23819         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
23820         finalization can occur normally.
23821
23822 2006-02-13  Vincent Celier  <celier@adacore.com>
23823
23824         * gnatcmd.adb (Rules_Switches): New table
23825         (Add_To_Rules_Switches): New procedure
23826         (GNATCmd): For command CHECK, put all options following "-rules" in the
23827         Rules_Switches table. Append these -rules switches after the -cargs
23828         switches.
23829
23830 2006-02-13  Robert Dewar  <dewar@adacore.com>
23831
23832         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
23833         These two cases were generating incorrect output, and if this unit
23834         was built with checks on, generated a discriminant mismatch constraint
23835         error.
23836
23837 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23838             Robert Dewar  <dewar@adacore.com>
23839
23840         * lib-xref.adb (Get_Type_Reference): For a private type whose full
23841         view is an array type, indicate the component type as well, for
23842         navigation purposes.
23843         (Generate_Reference): Don't consider array ref on LHS to be a case
23844         of violating pragma Unreferenced.
23845         Do not give Ada 2005 warning except on real reference.
23846
23847 2006-02-13  Vincent Celier  <celier@adacore.com>
23848
23849         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
23850         main source, add switch -mdebug-main=_ada_ so that the executable can
23851         be debugged by the standard VMS debugger.
23852         (Gnatmake): Set No_Main_Subprogram to True when there is no main
23853         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
23854         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
23855         of the last source, as the binding and linking phases are never
23856         performed.
23857         Set all executable obsolete when rebuilding a library.
23858
23859         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
23860         options.
23861
23862 2006-02-13  Javier Miranda  <miranda@adacore.com>
23863
23864         PR ada/23973
23865         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
23866         code to improve the error message reported when the program has
23867         declarations of abstract interface types and it is not compiled with
23868         the -gnat05 switch.
23869         (P_Access_Definition): Reorganize the code to improve the error
23870         message reported when the new Ada 2005 syntax for anonymous
23871         access types is used and the program is not compiled with the
23872         -gnat05 switch.
23873
23874 2006-02-13  Robert Dewar  <dewar@adacore.com>
23875
23876         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
23877         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
23878         (MODE_IN)
23879
23880 2006-02-13  Javier Miranda  <miranda@adacore.com>
23881
23882         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
23883         against source containing syntax errors.
23884
23885 2006-02-13  Vincent Celier  <celier@adacore.com>
23886
23887         * prj.adb (Reset): Initialize the first element of table Namings with
23888         the standard naming data.
23889
23890 2006-02-13  Vincent Celier  <celier@adacore.com>
23891
23892         * prj.ads (Error_Warning): New enumeration type
23893
23894         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
23895         unknown, use the location of the project to report the error.
23896         (When_No_Sources): New global variable
23897         (Report_No_Ada_Sources): New procedure
23898         (Check): New parameter When_No_Sources. Set value of global variable
23899         When_No_Sources,
23900         (Find_Sources): Call Report_No_Ada_Sources when appropriate
23901         (Get_Sources_From_File): Ditto
23902         (Warn_If_Not_Sources): Better warning messages indicating the unit name
23903         and the file name.
23904
23905         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
23906         Call Prj.Proc.Process with parameter When_No_Sources.
23907
23908         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
23909         Call Recursive_Check with parameter When_No_Sources.
23910         (Recursive_Check): New parameter When_No_Sources. Call itself and
23911         Prj.Nmsc.Check with parameter When_No_Sources.
23912         (Process): New parameter When_No_Sources. Call Check with parameter
23913         When_No_Sources.
23914         (Copy_Package_Declarations): New procedure to copy renamed parameters
23915         and setting the location of the declared attributes to the location
23916         of the renamed package.
23917         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
23918         packages.
23919
23920 2006-02-13  Vincent Celier  <celier@adacore.com>
23921
23922         * prj-makr.adb (Make): Preserve the comments from the original project
23923         file.
23924         When removing nodes (attributes Source_Dirs, Source_Files,
23925         Source_List_File and package Naming), save the comments and attach the
23926         saved comments to the newly created nodes.
23927         Do not add a with clause for the naming package if one already exists.
23928
23929 2006-02-13  Javier Miranda  <miranda@adacore.com>
23930             Gary Dismukes  <dismukes@adacore.com>
23931             Robert Dewar  <dewar@adacore.com>
23932
23933         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
23934
23935         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
23936         aliased entities to look for the overriden abstract interface
23937         subprogram.
23938         (Is_Interface_Subprogram): Complete documentation.
23939         (Check_Dispatching_Operation): Do not generate code to register the
23940         operation in the dispatch table if the source is compiled with
23941         restriction No_Dispatching_Calls.
23942         (Override_Dispatching_Operation): Check for illegal attempt to override
23943         No_Return procedure with procedure that is not No_Return
23944         (Check_Dispatching_Call): Suppress the check for an abstract operation
23945         when the original node of an actual is a tag-indeterminate attribute
23946         call, since the attribute, which must be 'Input, can never be abstract.
23947         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
23948         call to the Input attribute (even when rewritten).
23949         (Propagate_Tag): Augment comment to indicate the possibility of a call
23950         to an Input attribute.
23951
23952         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
23953         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
23954
23955         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
23956         No_Wide_Characters is no longer partition-wide
23957         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
23958         rather than GNAT
23959
23960 2006-02-13  Douglas Rupp  <rupp@adacore.com>
23961
23962         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
23963
23964 2006-02-13  Javier Miranda  <miranda@adacore.com>
23965
23966         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
23967         handles default-initialized components to keep separate the management
23968         of this feature but also avoid the unrequired resolution and
23969         expansion of components that do not have partially initialized
23970         values.
23971         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
23972         (Check_Bounds): Likewise.
23973         (Check_Length): Likewise.
23974
23975 2006-02-13  Javier Miranda  <miranda@adacore.com>
23976             Ed Schonberg  <schonberg@adacore.com>
23977
23978         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
23979         abstract interface type call analyze_and_resolve to expand the type
23980         conversion into the corresponding displacement of the
23981         reference to the base of the object.
23982         (Eval_Attribute, case Width): For systems where IEEE extended precision
23983         is supported, the maximum exponent occupies 4 decimal digits.
23984         (Accessibility_Message): Add '\' in 2-line warning message.
23985         (Resolve_Attribute): Likewise.
23986         (case Attribute_Access): Significantly revise checks
23987         for illegal access-to-subprogram Access attributes to properly enforce
23988         the rules of 3.10.2(32/2).
23989         Diagnose use of current instance with an illegal attribute.
23990
23991         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
23992         to a Node_Id.
23993         (Enclosing_Generic_Unit): New function to return a node's innermost
23994         enclosing generic declaration node.
23995         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
23996         (Type_Access_Level): The accessibility level of anonymous acccess types
23997         associated with discriminants is that of the current instance of the
23998         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
23999         (Compile_Time_Constraint_Error): Handle case of conditional expression.
24000         (Kill_Current_Values_For_Entity): New function
24001         (Enter_Name): Change formal type to Entity_Id
24002
24003 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
24004             Ed Schonberg  <schonberg@adacore.com>
24005             Gary Dismukes  <dismukes@adacore.com>
24006
24007         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
24008         Analyze_Compilation_Unit.
24009         Detect and warn on redundant with clauses detected in a package spec
24010         and/or body when -gnatwr is used.
24011         (Analyze_Context): Analyze config pragmas before other items
24012         (Install_Context_Items): Don't analyze config pragmas here
24013         (Install_Limited_Withed_Unit): Set limited entity of package in
24014         with_clause so that cross-reference information or warning messages on
24015         unused packages can be properly generated
24016         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
24017         has Error_Posted set. Prevent infinite loops in illegal programs.
24018         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
24019         to the point of the error test requiring the current unit to be private.
24020         This ensures that private with clauses are not exempted from the basic
24021         checking for being a descendant of the same library unit parent as a
24022         withed private descendant unit.
24023         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
24024         handle private with clauses properly, as well as to account for cases
24025         where the withed unit is a public descendant of a private ancestor
24026         (in which case the current unit must be a descendant of the private
24027         ancestor's parent). The spec comments were updated accordingly. Also,
24028         the old error message in this subprogram was replaced with error
24029         messages that mirror the errors tested and reported by
24030         Check_Private_Child_Unit.
24031         Parameter and variable names improved for readability.
24032         (Install_Limited_Context_Clauses): Remove test for a withed unit being
24033         private as the precondition for calling
24034         Check_Private_Limited_Withed_Unit since that subprogram has been
24035         revised to test public units as well as private units.
24036
24037 2006-02-13  Thomas Quinot  <quinot@adacore.com>
24038             Robert Dewar  <dewar@adacore.com>
24039             Ed Schonberg  <schonberg@adacore.com>
24040             Javier Miranda  <miranda@adacore.com>
24041
24042         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
24043         that Scope_Stack.First = 1.
24044         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24045         were not always properly handled previously.
24046         (Formal_Entity): Complete rewrite, to handle properly some complex case
24047         with multiple levels of parametrization by formal packages.
24048         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
24049         to the corresponding derived type declaration for proper semantics.
24050
24051         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
24052         (Check_Component): Enforce restriction on components of
24053         unchecked_unions: a component in a variant cannot contain tasks or
24054         controlled types.
24055         (Unchecked_Union): Allow nested variants and multiple discriminants, to
24056         conform to AI-216.
24057         Add pragma Ada_2005 (synonym for Ada_05)
24058         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24059         were not always properly handled previously.
24060         Document that pragma Propagate_Exceptions has no effect
24061         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
24062         (Set_Convention_From_Pragma): Check that if a convention is
24063         specified for a dispatching operation, then it must be
24064         consistent with the existing convention for the operation.
24065         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
24066         longer required to specify an vtable-ptr component in the record. For
24067         compatibility reasons we leave the support for the previous definition.
24068         (Analyze_Pragma, case No_Return): Allow multiple arguments
24069
24070         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
24071         non-overrideen inherited operation with a controlling result as
24072         illegal only its implicit declaration comes from the derived type
24073         declaration of its result's type.
24074         (Check_Possible_Deferred_Completion): Relocate the object definition
24075         node of the subtype indication of a deferred constant completion rather
24076         than directly analyzing it. The analysis of the generated subtype will
24077         correctly decorate the GNAT tree.
24078         (Record_Type_Declaration): Check whether this is a declaration for a
24079         limited derived record before analyzing components.
24080         (Analyze_Component_Declaration): Diagnose record types  not explicitly
24081         declared limited when a component has a limited type.
24082         (Build_Derived_Record_Type): Code reorganization to check if some of
24083         the inherited subprograms of a tagged type cover interface primitives.
24084         This check was missing in case of a full-type associated with a private
24085         type declaration.
24086         (Constant_Redeclaration): Check that the subtypes of the partial and the
24087         full view of a constrained deferred constant statically match.
24088         (Mentions_T): A reference to the current type in an anonymous access
24089         component declaration  must be an entity name.
24090         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
24091         class_wide type to refer to full type, not to the incomplete one.
24092         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
24093         available. Required to give support to the certified run-time.
24094         (Analyze_Component_Declaration): In case of anonymous access components
24095         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
24096         (Process_Discriminants): For an access discriminant, use the
24097         discriminant specification as the associated_node_for_itype, to
24098         simplify accessibility checks.
24099
24100 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
24101             Javier Miranda  <miranda@adacore.com>
24102
24103         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
24104         abstract interpretations on an operator, remove interpretations that
24105         yield Address or a type derived from it, if one of the operands is an
24106         integer literal.
24107         (Try_Object_Operation.Try_Primitive_Operation,
24108         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
24109         location when creating the new reference to a primitive or class-wide
24110         operation as a part of rewriting a subprogram call.
24111         (Try_Primitive_Operations): If context requires a function, collect all
24112         interpretations after the first match, because there may be primitive
24113         operations of the same type with the same profile and different return
24114         types. From code reading.
24115         (Try_Primitive_Operation): Use the node kind to choose the proper
24116         operation when a function and a procedure have the same parameter
24117         profile.
24118         (Complete_Object_Operation): If formal is an access parameter and prefix
24119         is an object, rewrite as an Access reference, to match signature of
24120         primitive operation.
24121         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
24122         by an expanded name with prefix Standard, when the operands are of an
24123         anonymous access type.
24124         (Remove_Abstract_Operations): If the operation is abstract because it is
24125         inherited by a user-defined type derived from Address, remove it as
24126         well from the set of candidate interpretations of an overloaded node.
24127         (Analyze_Membership_Op): Membership test not applicable to cpp-class
24128         types.
24129
24130 2006-02-13  Bob Duff  <duff@adacore.com>
24131
24132         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
24133         redundant use clauses.
24134         In particular, if the scope of two use clauses overlaps, but one is not
24135         entirely included in the other, we should not warn.  This can happen
24136         with nested packages.
24137         (Analyze_Subprogram_Renaming): Protect the compiler against previously
24138         reported errors. The bug was reported when the compiler was built
24139         with assertions enabled.
24140         (Find_Type): If the node is a 'Class reference and the prefix is a
24141         synchronized type without a corresponding record, return the type
24142         itself.
24143
24144 2006-02-13  Javier Miranda  <miranda@adacore.com>
24145
24146         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
24147         if this is the full-declaration associated with a private declaration
24148         that implement interfaces, then the private type declaration must be
24149         limited.
24150         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
24151         as aliased. The use of the 'access attribute is not available for such
24152         object (for this purpose the object should be explicitly marked as
24153         aliased, but being an anonymous type this is not possible).
24154
24155 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
24156             Robert Dewar  <dewar@adacore.com>
24157
24158         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
24159         compilation unit is an elaboration scope.
24160         (Add_Task_Proc): Add '\' in 2-line warning message.
24161         (Activate_All_Desirable): Deal with case of unit with'ed by parent
24162
24163 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
24164             Javier Miranda  <miranda@adacore.com>
24165
24166         * sem_type.adb (Write_Overloads): Improve display of candidate
24167         interpretations.
24168         (Add_One_Interp): Do not add to the list of interpretations aliased
24169         entities corresponding with an abstract interface type that is an
24170         immediate ancestor of a tagged type; otherwise we have a dummy
24171         conflict between this entity and the aliased entity.
24172         (Disambiguate): The predefined equality on universal_access is not
24173         usable if there is a user-defined equality with the proper signature,
24174         declared in the same declarative part as the designated type.
24175         (Find_Unique_Type): The universal_access equality operator defined under
24176         AI-230 does not cover pool specific access types.
24177         (Covers): If one of the types is a generic actual subtype, check whether
24178         it matches the partial view of the other type.
24179
24180 2006-02-13  Thomas Quinot  <quinot@adacore.com>
24181
24182         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
24183         line. This is necessary to allow In_Extended_Main_Unit to provide
24184         correct results for itypes while writing out expanded source.
24185         (Close_File): No need to update the source_index_table here since it's
24186         now done for each line.
24187
24188 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
24189             Robert Dewar  <dewar@adacore.com>
24190
24191         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
24192         preserve the source unit where the itype is declared, and prevent a
24193         backend abort.
24194         (Note_Implicit_Run_Time_Call): New procedure
24195         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
24196         E_Subprogram_Type)
24197
24198         * sprint.ads: Document use of $ for implicit run time routine call
24199
24200 2006-02-13  Quentin Ochem  <ochem@adacore.com>
24201
24202         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
24203         task name.
24204
24205 2006-02-13  Bob Duff  <duff@adacore.com>
24206
24207         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
24208         Scan_Unsigned, so we do not scan leading blanks and sign twice.
24209         Integer'Value("- 5") and Integer'Value("-+5") now correctly
24210         raise Constraint_Error.
24211
24212         * s-vallli.adb (Scan_Long_Long_Integer): Call
24213         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
24214         do not scan leading blanks and sign twice.
24215         Integer'Value("- 5") and Integer'Value("-+5") now correctly
24216         raise Constraint_Error.
24217
24218         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
24219         Scan_Long_Long_Unsigned): Split out most of the processing from
24220         Scan_Long_Long_Unsigned out into
24221         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
24222         This prevents scanning leading blanks and sign twice.
24223         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
24224         See RM-3.5(44).
24225
24226         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
24227         out most of the processing from Scan_Unsigned out into
24228         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
24229         This prevents scanning leading blanks and sign twice.
24230
24231         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
24232         use with Modular'Value attribute.
24233         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
24234         attribute.
24235
24236 2006-02-13  Robert Dewar  <dewar@adacore.com>
24237
24238         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
24239
24240 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
24241
24242         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
24243         (PPC VxWorks): Likewise.
24244         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
24245         (forced_callee): Make non-inlinable and non-pure.
24246         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
24247
24248 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
24249             Ben Brosgol  <brosgol@adacore.com>
24250             Robert Dewar  <dewar@adacore.com>
24251
24252         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
24253         support.
24254         Document that gnatbind -M option is for cross environments only.
24255         Added description of using gnatmem to trace gnat rtl allocs and deallocs
24256         Add note on use of $ to label implicit run time calls
24257         Add documentation for -gnatyI (check mode IN)
24258         Updated chapter on compatibility with HP Ada
24259         VMS-oriented edits.
24260         Ran spell and corrected errors
24261         Add documentation for gnatbind -d and rework documentation of -D
24262         at the same time.
24263         Add subprogram/data elimination section.
24264         Minor editing of annex A.
24265         Add section for gnatcheck.
24266         Add documentation for restriction No_Dispatching_Calls
24267         Add documentation for pragma Ada_2005
24268         Remove mention of obsolete pragma Propagate_Exceptions
24269         Document that pragma Unreferenced can appear after DO in ACCEPT
24270         Clarify Pure_Function for library level units
24271         Mention Max/Min in connection with No_Implicit_Conditionals
24272         No_Wide_Characters restriction is no longer partition-wide
24273         Add a nice example for Universal_Literal_String attribute
24274         Document that pragma No_Return can take multiple arguments
24275
24276         * ug_words: Added entry for gnatcheck
24277
24278         * g-ctrl_c.ads (Install_Handler): Enhance comments
24279
24280         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
24281
24282         * g-trasym.ads: Add documentation on how to do off line symbolic
24283         traceback computation.
24284
24285         * s-fatgen.adb: Add comments for Unaligned_Valid
24286
24287         * stand.ads: Fix typo in comment
24288
24289 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
24290
24291         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
24292
24293 2006-02-06  Roger Sayle  <roger@eyesopen.com>
24294
24295         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
24296
24297 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24298
24299         PR target/25926
24300         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
24301         implementation that calls __main.
24302
24303 2006-01-25  Peter O'Gorman  <peter@pogma.com>
24304
24305         PR bootstrap/25859
24306         * Makefile.in (GCC_LINK): Remove quotes.
24307         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
24308         or $(GCC_LINK).
24309
24310         (powerpc-darwin): Pass -shared-libgcc when building shared library.
24311
24312 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24313
24314         PR ada/24533
24315         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
24316
24317 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24318
24319         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
24320
24321 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
24322
24323         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
24324         needed.
24325
24326 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
24327
24328         * Make-lang.in: Update dependencies
24329
24330 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
24331
24332         * Make-lang.in: Add rule for ada/exp_sel.o
24333
24334 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
24335
24336         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
24337
24338 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
24339
24340         * gnatvsn.ads (Library_Version): Bump to version 4.2
24341         (ASIS_Version_Number): Bumped.
24342
24343 2005-12-09  Doug Rupp  <rupp@adacore.com>
24344
24345         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
24346         Ada bind file prefix on VMS from b$ to b__.
24347         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
24348         __init.
24349
24350         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
24351         Targparm.OpenVMS_On_Target.
24352         (Object_Suffix): Initialize with target object suffix.
24353         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
24354
24355         * butil.adb: Change some Hostparm.OpenVMS checks to
24356         Targparm.OpenVMS_On_Target.
24357
24358         * clean.adb: Change some Hostparm.OpenVMS checks to
24359         Targparm.OpenVMS_On_Target.
24360         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
24361         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
24362         Ada bind file prefix on VMS from b$ to b__.
24363
24364         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
24365         --GCC so that Get_Target_Parameters can find system.ads.
24366         (Gnatlink): Call Get_Target_Parameters in mainline.
24367         Initialize standard packages for Targparm.
24368         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24369         (Process_Args): Also Check for object files with target object
24370         extension.
24371         (Make_Binder_File_Names): Create with target object extension.
24372         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
24373         to b__.
24374
24375         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
24376         Targparm.OpenVMS_On_Target.
24377         ({declaration},Build_Library,Check_Library): Change Ada bind file
24378         prefix on VMS from b$ to b__.
24379
24380         * osint-b.adb: Change some Hostparm.OpenVMS checks to
24381         Targparm.OpenVMS_On_Target.
24382         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
24383         b__.
24384
24385         * targext.c: New file.
24386
24387         * Makefile.in: add support for vxworks653 builds
24388         (../../vxaddr2line): gnatlink with targext.o.
24389         (TOOLS_LIBS): Move targext.o to precede libgnat.
24390         (init.o, initialize.o): Minor clean up in dependencies.
24391         (GNATLINK_OBJS): Add targparm.o, snames.o
24392         Add rules fo building targext.o and linking it explicitly with all
24393         tools.
24394         Also add targext.o to gnatlib.
24395
24396         * Make-lang.in: Add rules for building targext.o and linking it in
24397         with gnat1 and gnatbind.
24398         Add entry for exp_sel.o.
24399
24400         * osint.adb Change some Hostparm.OpenVMS checks to
24401         Targparm.OpenVMS_On_Target.
24402         (Object_File_Name): Use target object suffix.
24403
24404         * osint.ads (Object_Suffix): Remove, no longer used.
24405         (Target_Object_Suffix): Initialize with target object suffix.
24406
24407         * rident.ads: Add special exception to license.
24408
24409         * targparm.adb (Get_Target_Parameters): Set the value of
24410         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
24411         value.
24412         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
24413
24414         * targparm.ads: Add special exception to license.
24415
24416         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
24417         function.
24418         (Copy_File): Make sure from file is closed if error on to file
24419         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
24420
24421         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
24422         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
24423
24424         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
24425         target object suffix.
24426
24427 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
24428             Quentin Ochem  <ochem@adacore.com>
24429             Florian Villoing  <villoing@adacore.com>
24430
24431         * a-taster.ads, a-taster.adb: New files.
24432
24433         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
24434         link to the version that does nothing. This way the task termination
24435         routine is not executed twice for the environment task when finishing
24436         because of an unhandled exception.
24437
24438         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
24439         handler because of an unhandled exception.
24440
24441         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
24442         System.Tasking.Utilities instead of that in System.Tasking.Stages.
24443
24444         * s-finimp.adb (initialization code): Modify the soft link for the
24445         finalization of the global list instead of Adafinal.
24446
24447         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
24448         non-tasking version of the soft link for task termination. We do
24449         nothing since if we are using the non-tasking version it
24450         means that the task termination functionality is not used.
24451         (Null_Finalize_Global_List): Add this null version for the procedure
24452         in charge of finalizing the global list for controlled objects.
24453         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
24454         instead for handling run-time termination in a more flexible way.
24455         (Adafinal_NT): This new procedure will take care of finalizing the
24456         global list for controlled objects if needed, but no tasking
24457         finalization.
24458
24459         * s-tarest.adb (Task_Lock): Do not try to lock again the
24460         Global_Task_Lock if we already own it. Otherwise, we get blocked in
24461         some run-time operations.
24462         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
24463         until all nested locks have been released.
24464         (Task_Wrapper): Call the fall-back task termination handler. It
24465         applies to all tasks but the environment task.
24466         (Finalize_Global_Tasks): Add the call for the task termination
24467         procedure for the environment task.
24468         (Task_Wrapper): suppress warnings around declaration of
24469         Secondary_Stack_Address.
24470
24471         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
24472         moved to the Common_ATCB record.
24473         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
24474         Common_ATCB record.
24475         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
24476         Common_ATCB record.
24477
24478         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
24479         Fall_Back_Handler, and Specific_Handler.
24480
24481         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
24482         defined in Ada.Task_Termination, to avoid circular dependencies.
24483         (Termination_Handler): Redefine this type here, alredy defined in
24484         Ada.Task_Termination, for avoiding circular dependencies.
24485         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
24486         for storing task termination handlers. In addition,
24487         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
24488         Common_ATCB because it is used by both the regular and the restricted
24489         run times.
24490         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
24491         Common_ATCB because it is used by both the regular and the restricted
24492         run times.
24493         (Common_ATCB): Added a dynamic task analyzer field.
24494
24495         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
24496         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
24497         (Task_Wrapper): Call the task termination handler. It applies to all
24498         tasks but the environment task.
24499         (Finalize_Global_Tasks): Call the task termination procedure for the
24500         environment task. The call to Finalize_Global_List is now performed
24501         using the soft links mechanism.
24502         (Task_Wrapper): added dynamic stack analysis.
24503
24504         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
24505         potentially blocking operations has been moved from
24506         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
24507         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
24508         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
24509         this run-time check.
24510
24511         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
24512         of task termination procedure.
24513         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
24514         link for the task termination procedure.
24515
24516         * bindusg.adb: (Bindusg): Added documentation for -u option.
24517
24518         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
24519         (Get_Main_C): Add handling of dynamic stack analysis.
24520         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
24521
24522         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
24523         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
24524         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
24525
24526         * opt.ads: Added flags used by dynamic stack measurement.
24527         (Max_Line_Length): Remove (not used anymore)
24528
24529         * s-io.ads, s-io.adb (Standard_Error): new subprogram
24530         (Standart_Output): new subprogram
24531         (Set_Output): new subprogram
24532         (Put): now uses the value of Current_Out to know if the output has to be
24533         send to stderr or stdout.
24534
24535         * s-stausa.ads: Complete implementation.
24536
24537         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
24538
24539         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
24540         list of Ada 05 files.
24541         (GNAT Library Units): Add AltiVec files.
24542
24543         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
24544         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
24545         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
24546
24547 2005-12-09  Nicolas Setton  <setton@adacore.com>
24548
24549         * adaint.c (__gnat_locate_regular_file): Return immediately if
24550         file_name is empty.
24551
24552 2005-12-09  Javier Miranda  <miranda@adacore.com>
24553             Hristian Kirtchev  <kirtchev@adacore.com>
24554
24555         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
24556         to the specification because the frontend generates code that uses this
24557         subprogram.
24558         (Set_Interface_Table): Add missing assertion.
24559         Update documentation describing the run-time structure.
24560         (Displace): New subprogram that displaces the pointer to the object
24561         to reference one of its secondary dispatch tables.
24562         (IW_Membership): Modified to use the new table of interfaces.
24563         (Inherit_TSD): Modified to use the new table of interfaces.
24564         (Register_Interface_Tag): Use the additional formal to fill the
24565         contents of the new table of interfaces.
24566         (Set_Interface_Table): New subprogram that stores in the TSD the
24567         pointer to the table of interfaces.
24568         (Set_Offset_To_Top): Use the additional formal to save copy of
24569         the offset value in the table of interfaces.
24570         Update structure of GNAT Primary and Secondary dispatch table diagram.
24571         Add comment section on GNAT dispatch table prologue.
24572         (Offset_To_Signature): Update the constant value of the Signature field.
24573         (Dispatch_Table): Update comment on hidden fields in the prologue.
24574         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
24575         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
24576         the type of formal parameter T to Tag, introduce additional assertions.
24577         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
24578         conversion.
24579         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
24580
24581         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
24582         in all the calls to Expand_Interface_Thunk. Instead of referencing the
24583         record component containing the tag of the secondary dispatch table we
24584         have to use the Offset_To_Top run-time function to get this information;
24585         otherwise if the pointer to the base of the object has been displace
24586         we get a wrong value if we use the 'position attribute.
24587
24588         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
24589         all the calls to Expand_Interface_Thunk.
24590         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
24591         interfaces; hence the call to Set_Interface_Table was clearly wrong.
24592         (Collect_All_Interfaces): Modify the internal subprogram Collect to
24593         ensure that the interfaces implemented by the ancestors are placed
24594         at the header of the generated list.
24595         (Expand_Interface_Conversion): Handle the case in which the displacement
24596         associated with the interface conversion is not statically known. In
24597         this case we generate a call to the new run-time subprogram Displace.
24598         (Make_DT): Generate and fill the new table of interfaces.
24599         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
24600         Get_Tagged_Kind and Set_Tagged_Kind.
24601         (Tagged_Kind): New function that determines the tagged kind of a type
24602         with respect to limitedness and concurrency and returns a reference to
24603         RE_Tagged_Kind.
24604         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
24605         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
24606         primary dispatch table for a type.
24607         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
24608         secondary dispatch table respectively of a tagged type.
24609
24610         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
24611         (Expand_Interface_Conversion): New subprogram to indicate if the
24612         displacement of the type conversion is statically known.
24613         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
24614
24615         * rtsfind.ads (RE_Offset_To_Top): New entity
24616         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
24617         accessible to users.
24618         (Re_Displace): New entity
24619         (RE_Interface_Data): New entity
24620         (RE_Set_Interface_Data): New_Entity
24621         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
24622         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
24623         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
24624         RE_TK_Tagged, RE_TK_Task.
24625
24626         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
24627         Init_Secondary_Tags_Internal to allow its use with interface types and
24628         also to generate the code for the new additional actual required
24629         by Set_Offset_To_Top.
24630         (Build_Init_Statements): In case of components associated with abstract
24631         interface types there is no need to generate a call to its IP.
24632         (Freeze_Record_Type): Generate Select Specific Data tables only for
24633         concurrent types.
24634         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
24635         the bodies and specifications of the predefined primitive operations
24636         dealing with dispatching selects and abort, 'Callable, 'Terminated only
24637         for concurrent types.
24638
24639         * exp_sel.ads, exp_sel.adb: New files.
24640
24641         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
24642         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
24643         properly protected objects and attach handler in the case of the
24644         restricted profile.
24645         Move embeded package Select_Expansion_Utilities into a separate external
24646         package.
24647         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
24648         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
24649         (Build_K, Build_S_Assignment): New subprograms, part of the select
24650         expansion utilities.
24651         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
24652         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
24653         where the trigger is a dispatching procedure of a limited tagged type.
24654
24655 2005-12-09  Olivier Hainque  <hainque@adacore.com>
24656
24657         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
24658         pointer initialization values. Make a SAVE_EXPR instead. Add comments
24659         about the use and expansion of SAVE_EXPRs in the various possible
24660         renaming handling cases.
24661         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
24662         abusing DECL_FCONTEXT.
24663
24664 2005-12-09  Matthew Heaney  <heaney@adacore.com>
24665
24666         * a-convec.adb (Merge): Added assertions to check whether vector params
24667         are sorted.
24668
24669         * a-coinve.adb (Merge): Added assertions to check whether vector params
24670         are sorted.
24671
24672         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
24673         draft.
24674         (Cursor'Read): raises PE
24675
24676         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
24677         to its default value.
24678
24679         * a-cihama.adb: Manually check whether cursor's key and elem are
24680         non-null
24681
24682         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
24683         (Merge): Assert that target and source lists are in order
24684         (Swap): Declare non-const temporaries, to pass to Splice
24685
24686         * a-cdlili.ads: (Splice): Changed param name and param mode
24687
24688         * a-cdlili.adb: (Splice): Changed param name and param mode
24689         (Merge): Assert that target and source lists are in order
24690         (Swap): Declare non-const temporaries, to pass to Splice
24691
24692         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
24693         (Write): declare Stream param as not null
24694
24695         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
24696         an exception message.
24697
24698 2005-12-09  Thomas Quinot  <quinot@adacore.com>
24699             Robert Dewar  <dewar@adacore.com>
24700
24701         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
24702         which is the absolute maximum length we can support.
24703
24704         * frontend.adb: For the processing of configuration pragma files,
24705         remove references to Opt.Max_Line_Length, which is not checked anymore.
24706
24707         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
24708         length.
24709
24710         * scn.adb, scng.adb:
24711         Always check line length against the absolute supported maximum,
24712         Hostparm.Max_Line_Length.
24713
24714         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
24715         value for the maximum line length is Max_Line_Length (not
24716         Column_Number'Last).
24717         Minor error msg update
24718         (Set_Style_Check_Options): New interface returning error msg
24719         Minor code reorganization (processing for 'M' was out of alpha order)
24720
24721         * switch-c.adb: New interface for Set_Style_Check_Options
24722
24723         * stylesw.ads (Set_Style_Check_Options): New interface returning error
24724         msg.
24725
24726 2005-12-09  Javier Miranda  <miranda@adacore.com>
24727
24728         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
24729         with IP subprogram were only supported if there were limited types.
24730
24731         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
24732         records with IP subprogram were only supported if there were limited
24733         types.
24734
24735 2005-12-09  Olivier Hainque  <hainque@adacore.com>
24736             Eric Botcazou  <ebotcazou@adacore.com>
24737
24738         * trans.c (tree_transform, emit_check): Adjust calls to
24739         build_call_raise, passing the now expected GNAT_NODE argument.
24740
24741         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
24742         source line information than what the current global locus indicates
24743         when appropriate.
24744
24745         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
24746         field has overflowed.
24747         (build_call_raise): Add a GNAT_NODE argument to convey better source
24748         line information than what the current global locus indicates when
24749         appropriate.
24750         (build_component_ref): Adjust call to build_call_raise.
24751
24752 2005-12-09  Pascal Obry  <obry@adacore.com>
24753
24754         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
24755         the iterator is quitting iteration on parent directory.
24756
24757 2005-12-09  Javier Miranda  <miranda@adacore.com>
24758
24759         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
24760         and the assignment to a class-wide object, before the assignment we
24761         generate a run-time check to ensure that the tag of the Target is
24762         covered by the tag of the source.
24763
24764 2005-12-09  Robert Dewar  <dewar@adacore.com>
24765
24766         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
24767         parameter in call to Image_Wide_Character.
24768
24769         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
24770         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
24771         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
24772         annoying FFFE/FFFF inconsistency.
24773
24774 2005-12-09  Robert Dewar  <dewar@adacore.com>
24775             Javier Miranda  <miranda@adacore.com>
24776             Ed Schonberg  <schonberg@adacore.com>
24777
24778         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
24779         of type conversion.
24780         (Find_Interface): New subprogram that given a tagged type and one of its
24781         component associated with the secondary table of an abstract interface
24782         type, return the entity associated with such abstract interface type.
24783         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
24784         base type to create anonymous subtype, because entity may be a locally
24785         declared subtype or generic actual.
24786         (Find_Interface): New subprogram that given a tagged type and one of its
24787         component associated with the secondary table of an abstract interface
24788         type, return the entity associated with such abstract interface type.
24789
24790         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
24791         conversion cannot be handled at compile time. In this case we pass this
24792         information to the expander to generate the appropriate code.
24793
24794 2005-12-09  Robert Dewar  <dewar@adacore.com>
24795             Ed Schonberg  <schonberg@adacore.com>
24796             Gary Dismukes  <dismukes@adacore.com>
24797             Javier Miranda  <miranda@adacore.com>
24798             Hristian Kirtchev  <kirtchev@adacore.com>
24799
24800         * einfo.adb (Itype_Printed): New flag
24801         (Is_Limited_Type): Derived types do not inherit limitedness from
24802         interface progenitors.
24803         (Is_Return_By_Reference_Type): Predicate does not apply to limited
24804         interfaces.
24805
24806         * einfo.ads (Itype_Printed): New flag
24807         Move Is_Wrapper_Package to proper section
24808         Add missing Inline for Is_Volatile
24809
24810         * output.ads, output.adb (Write_Erase_Char): New procedure
24811         (Save/Restore_Output_Buffer): New procedures
24812         (Save/Restore_Output_Buffer): New procedures
24813
24814         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
24815         Add missing support for anonymous access type
24816         (Write_Id): Insert calls to Write_Itype
24817         (Write_Itype): New procedure to output itypes
24818
24819         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
24820         use of "limited" in declaration.
24821
24822         * sinfo.ads, sinfo.adb:
24823         Formal derived types can carry an explicit "limited" indication.
24824
24825         * sem_ch3.adb: Add with and use of Targparm.
24826         (Create_Component): If Frontend_Layout_On_Target is True and the
24827         copied component does not have a known static Esize, then reset
24828         the size and positional fields of the new component.
24829         (Analyze_Component_Declaration): A limited component is
24830         legal within a protected type that implements an interface.
24831         (Collect_Interfaces): Do not add to the list the interfaces that
24832         are implemented by the ancestors.
24833         (Derived_Type_Declaration): If the parent of the full-view is an
24834         interface perform a transformation of the tree to ensure that it has
24835         the same parent than the partial-view. This simplifies the job of the
24836         expander in order to generate the correct object layout, and it is
24837         needed because the list of interfaces of the full-view can be given in
24838         any order.
24839         (Process_Full_View): The parent of the full-view does not need to be
24840         a descendant of the parent of the partial view if both parents are
24841         interfaces.
24842         (Analyze_Private_Extension_Declaration): If declaration has an explicit
24843         "limited" the parent must be a limited type.
24844         (Build_Derived_Record_Type): A derived type that is explicitly limited
24845         must have limited ancestor and progenitors.
24846         (Build_Derived_Type): Ditto.
24847         (Process_Full_View): Verify that explicit uses of "limited" in partial
24848         and full declarations are consistent.
24849         (Find_Ancestor_Interface): Remove function.
24850         (Collect_Implemented_Interfaces): New procedure used to gather all
24851         implemented interfaces by a type.
24852         (Contain_Interface): New function used to check whether an interface is
24853         present in a list.
24854         (Find_Hidden_Interface): New function used to determine whether two
24855         lists of interfaces constitute a set equality. If not, the first
24856         differing interface is returned.
24857         (Process_Full_View): Improve the check for the "no hidden interface"
24858         rule as defined by AI-396.
24859
24860 2005-12-09  Robert Dewar  <dewar@adacore.com>
24861
24862         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
24863         types, not on record subtypes.
24864         (Freeze_Entity): Code cleanup. Add barrier to the loop
24865         that generates the references for primitive operations. This allows to
24866         remove an unnecessary exception handler.
24867         Code reformatting and comment clean ups.
24868
24869 2005-12-09  Vincent Celier  <celier@adacore.com>
24870
24871         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
24872         If GNAT CHECK is called with a project file, but with no
24873         source on the command line, call gnatcheck with all the compilable
24874         sources of the project.
24875         Take into account the new command Check, for gnatcheck. Treat as for
24876         other ASIS tools: take into account project, specific package Check and
24877         Compiler switches.
24878         For ASIS tools, add the switches in package Compiler for
24879         the invocation of the compiler.
24880
24881         * prj-attr.adb: Add package Check and its attributes
24882
24883         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
24884
24885         * vms_conv.adb (Initialize): Change Params of command Check to
24886         unlimited files.
24887         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24888         Add data for new command Check
24889
24890         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
24891         ELIM.
24892         Add qualifiers for Check command options
24893         (Command_Type): New command Check
24894
24895 2005-12-09  Thomas Quinot  <quinot@adacore.com>
24896
24897         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
24898         command line switch overruns the output buffer.
24899
24900 2005-12-09  Robert Dewar  <dewar@adacore.com>
24901
24902         * sem_prag.adb: Processing for new pragma Complete_Representation
24903         (Analyze_Pragma, case Debug): Implement two argument form.
24904
24905         * par-prag.adb: Entry for new pragma Complete_Representation
24906         (Prag, case Debug): Recognize two argument form of pragma Debug
24907         New interface for Set_Style_Check_Options.
24908
24909         * sem_ch13.adb: Implement new pragma Complete_Representation.
24910
24911         * snames.adb, snames.ads, snames.h: Entry for new pragma
24912         Complete_Representation.
24913
24914 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
24915
24916         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
24917         available user-specified stream attributes on limited parameters to
24918         also test the type directly rather than only its underlying type (for
24919         Ada 95) and, in the case of Ada 2005, to check that the user-specified
24920         attributes are visible at the point of the subprogram declaration.
24921         For Ada 2005, the error message is modified to indicate that the
24922         type's stream attributes must be visible (again, only for -gnat05).
24923
24924 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
24925
24926         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
24927         anonymous access types.
24928
24929         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
24930         matching of anonymous access types and anonymous access to subprogram
24931         types. 'R'M 4.9.1 (2/2).
24932
24933 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
24934
24935         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
24936         rule prematurely when operands are universal, remaining ambiguities
24937         will be removed during resolution.
24938         Code cleanup.
24939
24940         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
24941         that are Ada 2005 functions.
24942         (Has_Abstract_Interpretation): Subsidiary to
24943         Remove_Conversions, to remove ambiguities caused by abstract operations
24944         on numeric types when operands are universal.
24945
24946 2005-12-09  Robert Dewar  <dewar@adacore.com>
24947
24948         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
24949         for case where spec is categorized.
24950
24951 2005-12-09  Javier Miranda  <miranda@adacore.com>
24952
24953         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
24954         types use the corresponding record type. This was not needed before
24955         the implementation of Ada 2005 synchronized types because
24956         concurrent types were never tagged types in Ada 95.
24957
24958 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
24959
24960         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
24961         first subtype of the type of the expression to verify that it is a
24962         legal Time type.
24963
24964 2005-12-09  Robert Dewar  <dewar@adacore.com>
24965
24966         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
24967         decoded names.
24968
24969 2005-12-09  Quentin Ochem  <ochem@adacore.com>
24970             Robert Dewar  <dewar@adacore.com>
24971             Ed Falis  <falis@adacore.com>
24972             Florian Villoing  <villoing@adacore.com>
24973             Thomas Quinot  <quinot@adacore.com>
24974             Arnaud Charlet  <charlet@adacore.com>
24975
24976         * gnat_ugn.texi: Created section "Stack Related Tools"
24977         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
24978         "Stack Related Tools"
24979         Added subsection "Static Stack Usage Analysis"
24980         Added subsection "Dynamic Stack Usage Analysis"
24981         Include documentation of itypes in sprint listing (-gnatG)
24982         Documented gnatbind -D switch (default sec stack size for fixed sec
24983         stacks).
24984         Added Interrupt_State and Persistent_BSS to list of configuration
24985         pragmas.
24986         Add missing doc for maximum value of nnn in -gnatyMnnn
24987
24988         * gnat_rm.texi: Document the AltiVec binding.
24989         Add documentation for pragma Complete_Representation
24990         Shortened an overly long line (> 79 chars)
24991         Clarify documentation of unchecked conversion in implementation
24992         defined cases.
24993         Document two argument form of pragma Debug
24994
24995         * types.ads (Column_Number): Update documentation.
24996
24997         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
24998         library level Finalize_Storage_Only objects (these are not attached to
24999         any finalization list).
25000
25001         * system-mingw.ads: (Underlying_Priorities): Update comment.
25002
25003 2005-12-09  Robert Dewar  <dewar@adacore.com>
25004
25005         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
25006         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
25007         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
25008         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
25009         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
25010         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
25011         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
25012         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
25013         reformatting.
25014
25015 2005-12-09  Robert Dewar  <dewar@adacore.com>
25016
25017         * s-vaflop-vms-alpha.adb: (Ne_F): New function
25018         (Ne_G): New function
25019
25020         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
25021         for tag assignment.
25022         (Rewrite_Comparison): Handle case where operation is not a comparison
25023         and ignore, and also handle type conversion case.
25024
25025 2005-12-09  Thomas Quinot  <quinot@adacore.com>
25026
25027         * exp_aggr.ads: Fix typo in comment.
25028         ???-mark Convert_Aggr_In_Assignment as needing documentation.
25029
25030 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
25031
25032         * layout.adb: Replace various uses of byte by storage unit throughout.
25033         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
25034         static size, convert to storage units before returning, to conform to
25035         spec.
25036
25037 2005-12-09  Matthew Gingell  <gingell@adacore.com>
25038
25039         * g-exctra.ads: Fix typo in comment.
25040
25041 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25042
25043         * utils.c: Minor reformatting.
25044
25045 2005-12-09  Robert Dewar  <dewar@adacore.com>
25046
25047         * g-soccon.ads:
25048         Further comment fixes to make the status of the default file clear
25049
25050         * s-bitops.adb: Clarify comment for Bits_Array
25051
25052 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
25053
25054         * Make-lang.in (ada.install-normal): Remove.
25055
25056 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
25057
25058         * Make-lang.in: Remove all dependencies on s-gtype.
25059
25060 2005-12-05  Richard Guenther  <rguenther@suse.de>
25061
25062         * utils.c (convert): Use fold_convert where appropriate.
25063
25064 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
25065
25066         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
25067         a period is meant.
25068
25069 2005-12-02  Richard Guenther  <rguenther@suse.de>
25070
25071         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
25072
25073 2005-12-01  Roger Sayle  <roger@eyesopen.com>
25074
25075         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
25076         nodes.
25077
25078 2005-11-23  Laurent Guerby  <laurent@guerby.net>
25079
25080         * mlib-prj.adb (Build_Library): Initialize Delete.
25081
25082 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
25083
25084         * socket.c: Add extern int h_errno for rtems since networking header
25085         files are not available at this point in a tool bootstrap. Newlib
25086         only has basic C library header files.
25087
25088 2005-11-19  Richard Guenther  <rguenther@suse.de>
25089         Roger Sayle  <roger@eyesopen.com>
25090
25091         PR ada/23717
25092         * misc.c (internal_error_function): Don't use vsprintf to format
25093         the error message text, instead use pp_format_text and the new
25094         pretty printer APIs.  This allows handling of %qs, %w, etc.
25095
25096 2005-11-18  Laurent Guerby  <laurent@guerby.net>
25097
25098         PR ada/24857
25099         * Makefile.in: Use s-auxdec-empty for RTEMS.
25100
25101 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25102
25103         PR ada/22333
25104         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
25105         a temporary if taking the address of something that is neither
25106         reference, declaration, or constant, since the gimplifier
25107         can't handle that case.
25108
25109 2005-11-17  Laurent Guerby  <laurent@guerby.net>
25110
25111         PR ada/24857
25112         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
25113
25114 2005-11-16  Richard Guenther  <rguenther@suse.de>
25115
25116         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
25117
25118 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
25119
25120         PR ada/24855
25121         * raise-gcc.c: Add missing stdarg.h include.
25122
25123 2005-11-16  Richard Guenther  <rguenther@suse.de>
25124
25125         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
25126         (ada/misc.o): Likewise.
25127
25128 2005-11-14  Thomas Quinot  <quinot@adacore.com>
25129
25130         * g-soccon.ads: Minor reformatting. Update comments.
25131
25132         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
25133         gain visibility on the declaration of struct timeval.
25134
25135         * g-soccon-freebsd.ads,
25136         g-soccon-darwin.ads,
25137         g-soccon-tru64.ads,
25138         g-soccon-aix.ads,
25139         g-soccon-irix.ads,
25140         g-soccon-hpux.ads,
25141         g-soccon-solaris.ads,
25142         g-soccon-vms.ads,
25143         g-soccon-mingw.ads,
25144         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
25145
25146         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
25147         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
25148         g-soccon-linux-x86.ads: New files.
25149
25150         * g-socthi-mingw.adb:
25151         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
25152
25153         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
25154         (time_t, suseconds_t): New types constructed to match the tv_sec
25155         and tv_usec fields of C struct timeval.
25156         (Timeval): Construct structure in terms of the new types.
25157         (Host_Errno): New function (imported from socket.c), returns last hosts
25158         database error.
25159
25160         * g-socthi-vxworks.adb:  Add error handling circuitry.
25161
25162         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
25163         components of struct timeval.
25164         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
25165         (Check_Selector): In error conditions, clear internal socket sets to
25166         avoid a memory leak.
25167         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
25168         Send_Timeout, Receive_Timeout.
25169
25170         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
25171         the tv_sec and tv_usec fields of C struct timeval.
25172         (Timeval): Construct structure in terms of the new types.
25173         (Host_Errno): New function (imported from socket.c), returns last hosts
25174         database error.
25175
25176         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
25177         hosts database last error code.
25178
25179         * gen-soccon.c: Complete value expansion should not be performed on
25180         TARGET, as it has the form of a math expression, and some components
25181         may be platform-defined macros.
25182         For VxWorks, generate the OK and ERROR values.
25183         New constants giving the sizes of the components of C struct timeval.
25184
25185 2005-11-14  Robert Dewar  <dewar@adacore.com>
25186             Ed Schonberg  <schonberg@adacore.com>
25187
25188         PR ada/18434
25189         * types.ads: Include All_Checks in Suppress_Array
25190
25191         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
25192         not(a=b), since we no longer do this rewriting, and hence it is not
25193         needed.
25194         (Elaboration_Checks_Suppressed): Add special casing to
25195         deal with different cases of static and dynamic elaboration checks (all
25196         checks does not count in the first case, but does in the second).
25197         (Expr_Known_Valid): Do not assume that the result of any arbitrary
25198         function call is valid, since this is not the case.
25199         (Ensure_Valid): Do not apply validity check to a real literal
25200         in a universal or fixed context
25201
25202         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
25203         elementary types using the operator in standard. It is cleaner not to
25204         modify the programmers intent, especially in the case of floating-point.
25205         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
25206         it did not matter because we always rewrote a/=b to not(a=b).
25207         (Expand_Allocator_Expression): For an allocator expression whose nominal
25208         subtype is an unconstrained packed type, convert the expression to its
25209         actual constrained subtype.
25210         Implement warning for <= or >= where < or > not possible
25211         Fix to Vax_Float tests (too early in many routines, causing premature
25212         Vax_Float expansions.
25213
25214         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
25215         to be used with packages and generic packages as well as with
25216         subprograms.
25217         (Suppress): Set All_Checks, but not Elaboration_Check, for case
25218         of pragma Suppress (All_Checks)
25219         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
25220         a string literal for precise control over warnings.
25221         Avoid raise of pragma in case of unrecognized pragma and just return
25222         instead.
25223
25224         * sem_prag.ads: Minor reformatting
25225
25226         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
25227         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25228         Switch. Do not handle any exception.
25229         Include -gnatwx as part of -gnatg (warn on redundant parens)
25230         Allow optional = after -gnatm
25231         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
25232         longer sets Elaboration_Checks.
25233         Code to set warning mode moved to Sem_Warn
25234         so that it can be shared by pragma processing.
25235
25236         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
25237         statement.
25238
25239         * s-taprop-solaris.adb:
25240         Change some <= to =, to avoid new warning
25241
25242         * a-exexda.adb, prj-proc.adb:
25243         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
25244         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
25245
25246 2005-11-14  Robert Dewar  <dewar@adacore.com>
25247
25248         * exp_vfpt.adb: Handle /= case
25249         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
25250         so that we do not get duplicate scaling for fixed point conversions.
25251
25252         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
25253
25254 2005-11-14  Matthew Gingell  <gingell@adacore.com>
25255
25256         * system-lynxos-ppc.ads, system-lynxos-x86.ads:
25257         Increase default priority on Lynx from 15 to 17, and meet the Ada
25258         requirement that Default_Priority be ((Priority'First +
25259         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
25260
25261 2005-11-14  Vincent Celier  <celier@adacore.com>
25262
25263         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25264         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
25265         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
25266         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
25267         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
25268         mlib-tgt-lynxos.adb (DLL_Prefix): New function
25269
25270 2005-11-14  Doug Rupp  <rupp@adacore.com>
25271
25272         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
25273         private part.
25274
25275 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
25276
25277         * s-traces-default.adb, s-trafor-default.ads,
25278         s-tratas-default.adb: Fix compilation errors.
25279
25280 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
25281
25282         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
25283         raising the exception so the memory used is freed.
25284
25285 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
25286
25287         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
25288         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
25289         (convert_address): Update comments and list of platforms using this.
25290
25291         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
25292         no longer used.
25293
25294 2005-11-14  Pascal Obry  <obry@adacore.com>
25295             Vincent Celier  <celier@adacore.com>
25296
25297         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
25298         GNAT.Command_Line.
25299
25300         * memroot.adb: Remove redundant with/use clause on
25301         System.Storage_Elements.
25302
25303 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
25304
25305         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
25306         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
25307         related code to a-exexpr.adb
25308         (Save_Occurrence_And_Private): Move GCC EH related code to
25309         a-exexpr-gcc.adb
25310         (Raise_Current_Excep): Add new variable Id with pragma
25311         volatile, to ensure that the variable lives on stack.
25312
25313         * a-exexpr-gcc.adb, raise-gcc.c: New file.
25314
25315         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
25316         from a-except.adb.
25317         Move GCC EH related code to a-exexpr-gcc.adb
25318
25319         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
25320         64-bit Solaris
25321         Split the Linux version of g-soccon into separate variants for 32 and 64
25322         bit platforms.
25323         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
25324         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
25325         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
25326         of host variable $(RANLIB_FLAGS).
25327         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
25328         Code clean up: remove unused/obsolete targets.
25329         (EH_MECHANISM): New variable introduced to differenciate between the
25330         two EH mechanisms statically.
25331         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
25332         (LIBGNAT_OBJS): Add raise-gcc.o
25333         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
25334         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
25335         supports VxWorks 6 RTPs.
25336         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
25337         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
25338
25339         * raise.c: Move all GCC EH-related routines to raise-gcc.c
25340
25341 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
25342
25343         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
25344         deferral level, when abort is not allowed, to a later stage (the
25345         Task_Wrapper).
25346         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
25347         it will not get changed by the generated code. It was previously done
25348         in Create_Task.
25349
25350 2005-11-14  Thomas Quinot  <quinot@adacore.com>
25351             Olivier Hainque  <hainque@adacore.com>
25352             Eric Botcazou  <ebotcazou@adacore.com>
25353
25354         * decl.c:
25355         Factor common code to build a storage type for an unconstrained object
25356         from a fat or thin pointer type and a constrained object type.
25357         (annotate_value): Handle BIT_AND_EXPR.
25358         (annotate_rep): Don't restrict the back annotation of inherited
25359         components to the type_annotate_only case.
25360         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
25361         we are not defining the type.
25362         <E_Record_Type>: Likewise.
25363         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
25364         to get advantage of the new maybe_stabilize_reference interface, to
25365         ensure that what we reference is indeed stabilized instead of relying
25366         on assumptions on what the stabilizer does.
25367         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
25368         type imported through a limited_with clause, use its non-limited view.
25369         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
25370         differentiation.
25371         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
25372         of #if sections + explicit comparisons of convention identifiers.
25373         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
25374         before early-returning for certain types when code generation is
25375         disabled.
25376         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
25377         nullification of gnu_expr we do for objects with address clause and
25378         that we are not defining.
25379         (elaborate_expression_1): Do not create constants when creating
25380         variables needed by the debug info: the dwarf2 writer considers that
25381         CONST_DECLs is used only to represent enumeration constants, and emits
25382         nothing for them.
25383         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
25384         object with an address clause into an indirect reference, drop the
25385         initializing expression.
25386         Include "expr.h".
25387         (STACK_CHECK_BUILTIN): Delete.
25388         (STACK_CHECK_PROBE_INTERVAL): Likewise.
25389         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
25390         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
25391         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
25392         corresponding to the renamed object as ignored for debugging purposes.
25393
25394         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
25395         related): For a prefix that is a dereference of a fat or thin pointer,
25396         if there is an actual subtype provided by the front-end, use that
25397         subtype to build an actual type with bounds template.
25398         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
25399         is provided by the front-end, use that subtype to compute the size of
25400         the deallocated object.
25401         (gnat_to_gnu): When adding a statement into an elaboration procedure,
25402         check for a potential violation of a No_Elaboration_Code restriction.
25403         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25404         with extra arguments to control whether to recurse through non-values
25405         and to let the caller know if the stabilization has succeeded.
25406         (gnat_stabilize_reference): Now a simple wrapper around
25407         maybe_stabilize, for common uses without restriction on lvalues and
25408         without need to check for the success indication.
25409         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
25410         pass false instead of 0 as the FORCE argument which is a bool.
25411         (Identifier_to_gnu): Remove checks ensuring that an renamed object
25412         attached to a renaming pointer has been properly stabilized, as no such
25413         object is attached otherwise.
25414         (call_to_gnu): Invoke create_var_decl to create the temporary when the
25415         function uses the "target pointer" return mechanism.
25416         Reinstate conversion of the actual to the type of the formal
25417         parameter before any other specific treatment based on the passing
25418         mechanism. This turns out to be necessary in order for PLACEHOLDER
25419         substitution to work properly when the latter type is unconstrained.
25420
25421         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
25422         common pattern.
25423         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25424         with extra arguments to control whether to recurse through non-values
25425         and to let the caller know if the stabilization has succeeded.
25426
25427         * utils2.c (gnat_build_constructor): Only sort the fields for possible
25428         static output of record constructor if all the components are constant.
25429         (gnat_build_constructor): For a record type, sort the list of field
25430         initializers in increasing bit position order.
25431         Factor common code to build a storage type for an unconstrained object
25432         from a fat or thin pointer type and a constrained object type.
25433         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
25434         types variants, and process special cases of VIEW_CONVERT expressions
25435         as their NOP_EXPR counterpart to ensure we get to the
25436         CORRESPONDING_VARs associated with CONST_DECls.
25437         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
25438         on the right-hand side.
25439
25440         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
25441         a common pattern.
25442         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
25443         are converting back to its original type.
25444         (convert) <JM input>: Fallthrough regular conversion code instead of
25445         extracting the object if converting to a type variant.
25446         (create_var_decl): When a variable has an initializer requiring code
25447         generation and we are at the top level, check for a potential violation
25448         of a No_Elaboration_Code restriction.
25449         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
25450         SIZE and SIZE_UNIT which we need for later back-annotations.
25451         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
25452         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
25453         is an unchecked union.
25454         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
25455         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
25456         main variant, just replace the VIEW_CONVERT_EXPR.
25457         <UNION_TYPE>: Revert 2005-03-02 change.
25458
25459         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
25460
25461         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
25462
25463 2005-11-14  Matthew Heaney  <heaney@adacore.com>
25464
25465         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
25466         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
25467         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
25468         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
25469         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25470         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
25471         Compiles against the spec for ordered maps described in sections
25472         A.18.6 of the most recent (August 2005) AI-302 draft.
25473
25474 2005-11-14  Olivier Hainque  <hainque@adacore.com>
25475
25476         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
25477         to ensure bias adjustments take place when need be and to prevent
25478         occurrences of intermediate overflows.
25479
25480 2005-11-14  Matthew Gingell  <gingell@adacore.com>
25481             Olivier Hainque  <hainque@adacore.com>
25482
25483         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
25484         ia64 HP-UX.
25485
25486         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
25487         tracebacks on ia64 HP-UX and provide explanatory comment.
25488         Enable backtraces on ia64 GNU/Linux.
25489         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
25490         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
25491
25492 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
25493             Javier Miranda  <miranda@adacore.com>
25494
25495         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
25496         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
25497         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
25498         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
25499
25500         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
25501         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
25502         assertions).
25503
25504         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
25505         subprogram that generates the external name associated with a
25506         secondary dispatch table.
25507         (Get_Secondary_DT_External_Name): New subprogram that generates the
25508         external name associated with a secondary dispatch table.
25509
25510 2005-11-14  Emmanuel Briot  <briot@adacore.com>
25511
25512         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
25513         line in the ALI file to include both an instantiation reference, and a
25514         returned value.
25515
25516 2005-11-14  Vincent Celier  <celier@adacore.com>
25517
25518         * clean.adb (Check_Project): Look for Ada code in extending project,
25519         even if Ada is not specified as a language.
25520         Use new function DLL_Prefix for DLL_Name
25521         (Clean_Interface_Copy_Directory): New procedure
25522         (Clean_Library_Directory): New procedure
25523         (Clean_Directory): Remove procedure, no longer used
25524         (Clean_Project): Do not delete any file in an externally built project
25525
25526         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
25527         directory of an extending project, even when there are no Ada source
25528         present.
25529         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
25530         (Set_Ada_Paths.Add.Recursive_Add): Ditto
25531
25532         * mlib-prj.adb (Check_Library): For all library projects, get the
25533         library file timestamp.
25534         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
25535         (Build_Library): Use new function DLL_Prefix for the DLL_Name
25536         (Clean): Remove procedure, no longer used
25537         (Ultimate_Extension_Of): New function
25538         (Build_Library): When cleaning the library directory, only remove an
25539         existing library file and any ALI file of a source of the project.
25540         When cleaning the interface copy directory, remove any source that
25541         could be a source of the project.
25542
25543         * prj.ads, prj.adb (Project_Empty): Add values of new components
25544         Library_TS and All_Imported_Projects.
25545         (Project_Empty): Add values for new components of Project_Data:
25546         Library_ALI_Dir and Display_Library_ALI_Dir
25547
25548         * prj-attr.adb: New project level attribute name Library_ALI_Dir
25549
25550         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
25551         attribute Library_ALI_Dir.
25552         (Check_Library_Attributes): The library directory cannot be the same as
25553         any source directory of the project tree.
25554         (Check_Stand_Alone_Library): The interface copy directory cannot be
25555         the same as any source directory of the project tree.
25556
25557         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
25558         all temporary files.
25559
25560 2005-11-14  Robert Dewar  <dewar@adacore.com>
25561             Ed Schonberg  <schonberg@adacore.com>
25562
25563         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25564         (Check_Elab_Call): A call within a protected body is never an
25565         elaboration call, and does not require checking.
25566         (Same_Elaboration_Scope): Take into account protected types for both
25567         entities.
25568         (Activate_Elaborate_All_Desirable): New procedure
25569
25570         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
25571         desirable
25572
25573         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
25574         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
25575
25576         * lib-writ.ads, lib-writ.adb:
25577         Implement new AD/ED for Elaborate_All/Elaborate desirable
25578         Use new Elaborate_All_Desirable flag in N_With_Clause node
25579
25580         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
25581         N_Free_Statement nodes.
25582         Define new class N_Subprogram_Instantiation
25583         Add Elaborate_Desirable flag to N_With_Clause node
25584         Add N_Delay_Statement (covering two kinds of delay)
25585
25586         * debug.adb: Introduce d.f flag for compiler
25587         Add -da switch for binder
25588
25589 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25590             Cyrille Comar  <comar@adacore.com>
25591
25592         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
25593         for task component, in the case of a limited aggregate. The enclosed
25594         object declaration will create it earlier. Otherwise, in the case of a
25595         nested aggregate, the object may appear in the wrong scope.
25596         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
25597         (Gen_Assign): If the component being assigned is an array type and the
25598         expression is itself an aggregate, wrap the assignment in a block to
25599         force finalization actions on the temporary created for each row of the
25600         enclosing object.
25601         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
25602         structures are initialized after all discriminants are set so that
25603         they can be accessed even when their offset is dynamic.
25604
25605 2005-11-14  Robert Dewar  <dewar@adacore.com>
25606             Hristian Kirtchev  <kirtchev@adacore.com>
25607
25608         * sem_attr.adb: Implement Machine_Rounding attribute
25609         (Analyze_Access_Attribute): The access attribute may appear within an
25610         aggregate that has been expanded into a loop.
25611         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
25612         'Terminated whenever the prefix is of a task interface class-wide type.
25613         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
25614         the prefix is of a task interface class-wide type.
25615
25616         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
25617         to avoid warnings.
25618
25619         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
25620         Remove pragma Inline for [Unaligned_]Valid.
25621         Add comments that Valid routines do not work for Vax_Float
25622
25623         * exp_attr.adb: Implement Machine_Rounding attribute
25624
25625         * snames.h: Add entry for Machine_Rounding attribute
25626
25627 2005-11-14  Javier Miranda  <miranda@adacore.com>
25628             Robert Dewar  <dewar@adacore.com>
25629             Hristian Kirtchev  <kirtchev@adacore.com>
25630
25631         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
25632         and related): For a prefix that is an explicit dereference of an
25633         access to unconstrained packed array type, annotate the dereference
25634         with an actual subtype so GIGI can make a correct size computation.
25635         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
25636         'Unrestricted_Access, if the designated type is an interface we
25637         add a type conversion to force the displacement of the pointer
25638         to the secondary dispatch table.
25639         Use Universal_Real instead of Long_Long_Float when we need a high
25640         precision float type for the generated code (prevents gratuitous
25641         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25642         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
25643         'Terminated for task interface class-wide objects. Generate a call to
25644         the predefined dispatching routine used to retrieve the _task_id from
25645         a task corresponding record.
25646         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
25647
25648         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25649         (Check_Dispatching_Operation): Protect the frontend againts
25650         previously detected errors.
25651
25652         * Makefile.rtl: Add new instantiations of system.fat_gen
25653
25654         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
25655         Change name of instantiated package for better consistency
25656         with newly added system.fat_gen instantiations.
25657
25658         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
25659         s-fvagfl.ads: New files.
25660
25661 2005-11-14  Cyrille Comar  <comar@adacore.com>
25662             Thomas Quinot  <quinot@adacore.com>
25663
25664         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
25665         assignment of a value of a tagged type that has been rewritten to a
25666         block statement, it is known by construction that no checks are
25667         necessary for the statements within the block: analyze it with checks
25668         suppressed.
25669         (Expand_N_If_Statement): When killing a dead then-branch in an
25670         if-statement that has elsif_parts, recompute the Current_Value node
25671         for any entity whose value is known from the condition of the first
25672         elsif_part.
25673         (Expand_N_Return_Statement): When returning a mutable record, convert
25674         the return value into its actual subtype in order to help the backend
25675         to return the actual size instead of the maximum. This is another
25676         aftermath of not returning mutable records on the sec-stack anymore.
25677
25678         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
25679         handling of error msg for suspicious reverse range iteration.
25680         (Check_Possible_Current_Value_Condition): Move declaration from body to
25681         spec, to allow this subprogram to be called from exp_ch5.
25682
25683 2005-11-14  Thomas Quinot  <quinot@adacore.com>
25684
25685         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
25686         generate a set of nested array aggregates instead of a single flat
25687         aggregate for multi-dimensional arrays.
25688
25689 2005-11-14  Pascal Obry  <obry@adacore.com>
25690
25691         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
25692         by spawnve is a process handle, no need to convert. Add a parameter
25693         close to control wether the process handle must be closed.
25694         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
25695         a process handle, not need to convert.
25696         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
25697
25698         * g-expect.adb: (Kill): Document the new close parameter.
25699         (Close): Do not release the process handle in the kill there as
25700         waitpid() is using it.
25701         (Send_Signal): Release the process handle.
25702
25703 2005-11-14  Robert Dewar  <dewar@adacore.com>
25704
25705         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
25706         need a high precision float type for the generated code (prevents
25707         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25708         used).
25709
25710         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
25711         need a high precision float type for the generated code (prevents
25712         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25713         used).
25714         (Expand_Width_Attribute): In configurable run-time, the attribute is not
25715         allowed on non-static enumeration subtypes. Force a load error to emit
25716         the correct diagnostic.
25717
25718 2005-11-14  Thomas Quinot  <quinot@adacore.com>
25719             Robert Dewar  <dewar@adacore.com>
25720             Ed Schonberg  <schonberg@adacore.com>
25721
25722         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
25723         subtype to compute the size of the designated object at run-time,
25724         create such a subtype and store it in the Actual_Designated_Subtype
25725         attribute of the N_Free_Statement.
25726         Generate itype for classwide designated object in both cases of
25727         user-specified storage pool: specific and class-wide, not only in the
25728         specific case.
25729         Raise CE when trying to set a not null access type object to null.
25730         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
25731         an explicit loop, because freeze nodes make its position variable.
25732
25733         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
25734         null object.
25735
25736 2005-11-14  Javier Miranda  <miranda@adacore.com>
25737
25738         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
25739         Build_Stream_Procedure): Add the null-excluding attribute to the first
25740         formal.
25741         This has no semantic meaning under Ada95 mode but it is a
25742         requirement under Ada05 mode.
25743
25744         * par-ch3.adb (P_Access_Definition): Addition of warning message if
25745         the null exclusion is used under Ada95 mode
25746         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
25747         (P_Access_Definition): Remove assertion that forbids the use of
25748         the null-exclusion feature in Ada95.
25749
25750 2005-11-14  Robert Dewar  <dewar@adacore.com>
25751
25752         * impunit.adb: Exclude container helper units not intended for use by
25753         users.
25754
25755 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25756
25757         * freeze.adb (Freeze_Entity): For an access formal that is an access
25758         to subprogram, freeze the anonymous subprogram type at the same time,
25759         to prevent later freezing in the wrong scope, such as the enclosing
25760         subprogram body.
25761         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
25762         subprogram whenever available.
25763
25764 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
25765
25766         PR ada/23732
25767         * gnatvsn.ads (Library_Version): Bump to 4.1
25768
25769 2005-11-14  Robert Dewar  <dewar@adacore.com>
25770
25771         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
25772         Storage_Offset to avoid wrap around causing invalid results.
25773
25774 2005-11-14  Pascal Obry  <obry@adacore.com>
25775
25776         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
25777         cross-compiler.
25778         (Scan_Bind_Arg): Fail with an error message if -M option is used
25779         on a native compiler.
25780
25781 2005-11-14  Robert Dewar  <dewar@adacore.com>
25782             Vincent Celier  <celier@adacore.com>
25783
25784         * gprep.adb: Implement -C switch to scan comments
25785
25786         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
25787
25788         * scans.ads: Comment updates (including new use of Tok_Comment in
25789         preprocessing)
25790
25791         * opt.ads: Add documentation for flags that are used by gprmake,
25792         currently and in the next version of gprmake.
25793         (Verbosity_Level): New variable
25794         Add Replace_In_Comments switch
25795
25796         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
25797         and -vm.
25798         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
25799
25800 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
25801
25802         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
25803         message, friendlier.
25804
25805 2005-11-14  Robert Dewar  <dewar@adacore.com>
25806
25807         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
25808
25809 2005-11-14  Doug Rupp  <rupp@adacore.com>
25810
25811         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
25812
25813 2005-11-14  Robert Dewar  <dewar@adacore.com>
25814
25815         * interfac.ads: Change declarations of IEEE float types so that we no
25816         longer need a separate version of this package for VMS.
25817
25818 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25819
25820         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
25821         internal entity created for the declaration of a child subprogram body
25822         with no spec as coming from source, to generate proper cross-reference
25823         information.
25824
25825 2005-11-14  Vincent Celier  <celier@adacore.com>
25826
25827         * make.adb (Compile_Sources): Change verbose message to minimum
25828         verbosity level High for "is in an Ada library", "is a read-only
25829         library" and "is an internal library",
25830         (Create_Binder_Mapping_File): Path name of ALI file for library project
25831         must include the library directory, not the object directory.
25832         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
25833         for new switches -vl, -vm and -vh.
25834         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
25835         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
25836         (Compile_Sources): Do not attempt to compile if an ALI file is missing
25837         in a project that is externally built.
25838         (Compute_All_Imported_Projects): New procedure
25839         (Gnatmake): Check if importing libraries should be regenerated because
25840         at least an imported library is more recent.
25841         (Initialize): For each project compute the list of the projects it
25842         imports directly or indirectly.
25843         (Add_Library_Search_Dir): New procedure, used in place of
25844         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25845         put in the search paths.
25846         (Add_Source_Search_Dir): New procedure, used in place of
25847         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25848         put in the search paths.
25849         (Mark_Directory): Resolve the absolute path the directory before marking
25850         it.
25851
25852         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
25853         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25854         Switch. Do not handle any exception.
25855         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
25856         so that the switch is recognized as valid.
25857         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
25858
25859 2005-11-14  GNAT Script  <nobody@adacore.com>
25860
25861         * Make-lang.in: Makefile automatically updated
25862
25863 2005-11-14  Pascal Obry  <obry@adacore.com>
25864
25865         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
25866         used.
25867         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
25868         In both cases the last argument was dropped.
25869
25870 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
25871
25872         * namet.h: (Column_Numbe): New type.
25873         (Get_Column_Number): Define to sinput__get_column_number.
25874         (Instantiation): Define to sinput__instantiation.
25875         (Get_Column_Number): Declare.
25876         (Instantiation): Likewise.
25877
25878 2005-11-14  Robert Dewar  <dewar@adacore.com>
25879
25880         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
25881         syntax, which could cause compiler hangs.
25882
25883 2005-11-14  Vincent Celier  <celier@adacore.com>
25884
25885         * prj-ext.adb: Take into account new environment variable
25886         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
25887         are defined.
25888         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
25889         normalize its path name, making it absolute and resolving symbolic
25890         links, and replace the original if resolved path is different.
25891
25892 2005-11-14  Vincent Celier  <celier@adacore.com>
25893
25894         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
25895         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
25896
25897 2005-11-14  Emmanuel Briot  <briot@adacore.com>
25898
25899         * prj-pp.adb (Print): Do not output the with statement if the
25900         associated name is empty, which happens for virtual extending projects.
25901         (Print): Preserve the "extends all" attribute when printing the project.
25902
25903         * prj-tree.ads (String_Value_Of): Add comment about returned value for
25904         a virtual extending project.
25905
25906 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25907
25908         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
25909         rhs of an assignment even if the type is unconstrained, when the
25910         context is non-expanding.
25911         In an inlined body, if the context type is private,
25912         resolve with its full view, which must be a composite type.
25913
25914 2005-11-14  Robert Dewar  <dewar@adacore.com>
25915             Ed Schonberg  <schonberg@adacore.com>
25916
25917         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25918         Do not give obsolescent warning on with of subprogram (since we
25919         diagnose calls)
25920         (Analyze_With_Clause): Add test for obsolescent package
25921         (Install_Context_Clauses): If the unit is the body of a child unit, do
25922         not install twice the private declarations of the parents, to prevent
25923         circular lists of Use_Clauses in a parent.
25924         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
25925         compiling body of child unit.
25926         Use new class N_Subprogram_Instantiation
25927         (Expand_With_Clause): If this is a private with_clause for a child unit,
25928         appearing in the context of a package declaration, then the implicit
25929         with_clauses generated for parent units are private as well.
25930         (License_Check): Do not generate message if with'ed unit is internal
25931
25932 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
25933             Ed Schonberg  <schonberg@adacore.com>
25934             Thomas Quinot  <quinot@adacore.com>
25935
25936         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
25937         names are internal, because they will not have a corresponding partner
25938         in the actual package.
25939         (Analyze_Formal_Package): Move the setting of the formal package spec's
25940         Generic_Parent field so that it occurs prior to analyzing the package,
25941         to allow proper operation of Install_Parent_Private_Declarations.
25942         (Analyze_Package_Instantiation): Set the instantiated package entity's
25943         Package_Instantiation field.
25944         (Get_Package_Instantiation_Node): Move declaration to package spec.
25945         Retrieve the N_Package_Instantiation node when the Package_Instantiation
25946         field is present.
25947         (Check_Generic_Child_Unit): Within an inlined call, the only possible
25948         instantiation is Unchecked_Conversion, for which no parents are needed.
25949         (Inline_Instance_Body): Deinstall and record the use_clauses for all
25950         parent scopes of a scope being removed prior to inlining an instance
25951         body.
25952         (Analyze_Package_Instantiation): Do not perform front-end inlining when
25953         the current context is itself an instance within a non-instance child
25954         unit, to prevent scope stack errors.
25955         (Save_References): If the node is an aggregate that is an actual in a
25956         call, rewrite as a qualified expression to preserve some type
25957         information, to resolve possible ambiguities in the instance.
25958         (Instance_Parent_Unit): New global variable to record the ultimate
25959         parent unit associated with a generic child unit instance (associated
25960         with the existing Parent_Unit_Visible flag).
25961         (type Instance_Env): New component Instance_Parent_Unit for stacking
25962         parents recorded in the global Instance_Parent_Unit.
25963         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
25964         stack.
25965         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
25966         it's not a top-level unit, and only do this if Instance_Parent_Unit is
25967         not already set. Replace test of Is_Child_Unit with test of parent's
25968         scope against package Standard. Add comments and a ??? comment.
25969         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
25970         on a child instance parent to test that the parent equals
25971         Instance_Parent rather than simply checking that the unit is not a
25972         child unit.
25973         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
25974         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
25975         a formal interface are ancestors of the corresponding actual.
25976         (Validate_Formal_Interface_Type): Additional legality checks.
25977         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
25978         interface types with ancestors.
25979         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
25980         to diagnose attempts to use generic within its own declaration.
25981
25982 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25983             Javier Miranda  <miranda@adacore.com>
25984
25985         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
25986         discriminant.
25987         (Build_Private_Derived_Type): The entity of the created full view of the
25988         derived type does not come from source. If after installing the private
25989         declarations of the parent scope the parent is still private, use its
25990         full view to construct the full declaration of the derived type.
25991         (Build_Derived_Record_Type): Relax the condition that controls the
25992         execution of the check that verifies that the partial view and
25993         the full view agree in the set of implemented interfaces. In
25994         addition, this test now only takes into account the progenitors.
25995         (Derive_Interface_Subprograms): No need to derive subprograms
25996         of ancestors that are interfaces.
25997         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
25998         associated code.
25999         Change name Is_Package to Is_Package_Or_Generic_Package
26000         (Complete_Subprograms_Derivation): Handle the case in which the full
26001         view is a transitive derivation of the ancestor of the partial view.
26002         (Process_Full_View): Rename local subprogram Find_Interface_In_
26003         Descendant to Find_Ancestor_Interface to leave the code more clear.
26004         Remove wrong code that avoids the generation of an error message
26005         when the immediate ancestor of the partial view is an interface.
26006         In addition some minor reorganization of the code has been done to
26007         leave it more clear.
26008         (Analyze_Type_Declaration): If type has previous incomplete tagged
26009         partial view, inherit properly its primitive operations.
26010         (Collect_Interfaces): Make public, for analysis of formal
26011         interfaces.
26012         (Analyze_Interface_Declaration): New procedure for use for regular and
26013         formal interface declarations.
26014         (Build_Derived_Record_Type): Add support for private types to the code
26015         that checks if a tagged type implements abstract interfaces.
26016         (Check_Aliased_Component_Type): The test applies in the spec of an
26017         instance as well.
26018         (Access_Type_Declaration): Clean up declaration of malformed type
26019         declared as an access to its own classwide type, to prevent cascaded
26020         crash.
26021         (Collect_Interfaces): For private extensions and for derived task types
26022         and derived protected types, the parent may be an interface that must
26023         be included in the interface list.
26024         (Access_Definition): If the designated type is an interface that may
26025         contain tasks, create Master_Id for it before analyzing the expression
26026         of the declaration, which may be an allocator.
26027         (Record_Type_Declaration): Set properly the interface kind, for use
26028         in allocators, the creation of master id's for task interfaces, etc.
26029
26030 2005-11-14  Javier Miranda  <miranda@adacore.com>
26031             Ed Schonberg  <schonberg@adacore.com>
26032
26033         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
26034         omitted in case of stream attribute subprograms.
26035         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
26036         appear immediately after a subprogram body, when there is no previous
26037         subprogram declaration.
26038         Change name Is_Package to Is_Package_Or_Generic_Package
26039         (Process_Formals): A non null qualifier on a non null named access
26040         type is not an error, and is a warning only if Redundant_Constructs
26041         are flagged.
26042
26043 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
26044             Ed Schonberg  <schonberg@adacore.com>
26045
26046         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
26047         nested within Analyze_Package_Specification to install the private
26048         declarations and use clauses within each of the parent units of a
26049         package instance of a generic child package.
26050         (Analyze_Package_Specification): When entering a private part of a
26051         package associated with a generic instance or formal package, the
26052         private declarations of the parent must be installed (by calling new
26053         procedure Install_Parent_Private_Declarations).
26054         Change name Is_Package to Is_Package_Or_Generic_Package
26055         (Preserve_Full_Attributes): For a synchronized type, the corresponding
26056         record is absent in a generic context, which does not indicate a
26057         compiler error.
26058
26059 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
26060
26061         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
26062         not try to rewrite a renamed stream attribute, because the operations
26063         on the type may not have been generated.
26064         Handle properly a renaming_as_body generated for a stream operation
26065         whose default is abstract because the object type itself is abstract.
26066         (Find_Type): If the type is incomplete and appears as the prefix of a
26067         'Class reference, it is tagged, and its list of primitive operations
26068         must be initialized properly.
26069         (Chain_Use_Clauses): When chaining the use clauses that appear in the
26070         private declaration of a parent unit, prior to compiling the private
26071         part of a child unit, find on the scope stack the proper parent entity
26072         on which to link the use clause.
26073         (Note_Redundant_Use): Emit a warning when a redundant use clause is
26074         detected.
26075         (Analyze_Object_Renaming): An attribute reference is not a legal object
26076         if it is not a function call.
26077
26078 2005-11-14  Robert Dewar  <dewar@adacore.com>
26079             Ed Schonberg  <schonberg@adacore.com>
26080
26081         * sem_eval.adb: Implement d.f flag
26082         (Subtype_Statically_Match): A generic actual type has unknown
26083         discriminants when the corresponding actual has a similar partial view.
26084         If the routine is called to validate the signature of an inherited
26085         operation in a child instance, the generic actual matches the full view,
26086
26087 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
26088             Ed Schonberg  <schonberg@adacore.com>
26089             Robert Dewar  <dewar@adacore.com>
26090             Thomas Quinot  <quinot@adacore.com>
26091
26092         * sem_res.adb (Resolve_Call): Provide a better error message whenever
26093         a procedure call is used as a select statement trigger and is not an
26094         entry renaming or a primitive of a limited interface.
26095         (Valid_Conversion): If the operand has a single interpretation do not
26096         remove address operations.
26097         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
26098         statement to inhibit warning.
26099         (Resolve_Unary_Op): Do not produce a warning when
26100         processing an expression of the form -(A mod B)
26101         Use Universal_Real instead of Long_Long_Float when we need a high
26102         precision float type for the generated code (prevents gratuitous
26103         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
26104         (Resolve_Concatenation_Arg): Improve error message when argument is an
26105         ambiguous call to a function that returns an array.
26106         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
26107         there is an implicit operator in the given scope if we are within an
26108         instance: legality check has been performed on the generic.
26109         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
26110         after resolving operand, to avoid false warnings on overloaded calls.
26111
26112 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
26113             Javier Miranda  <miranda@adacore.com>
26114
26115         PR ada/15604
26116         * sem_type.adb (Covers): In an inlined body, a composite type matches
26117         a private type whose full view is a composite type.
26118         (Interface_Present_In_Ancestor): Protect the frontend against
26119         previously detected errors to ensure that its compilation
26120         with assertions enabled gives the same output that its
26121         compilation without assertions.
26122         (Interface_Present_In_Ancestor): Add support for private types.
26123         Change name In_Actual to In_Generic_Actual (clean up)
26124         (Disambiguate): New predicate In_Actual, to recognize expressions that
26125         appear in the renaming declaration generated for generic actuals, and
26126         which must be resolved in the outer context.
26127
26128 2005-11-14  Robert Dewar  <dewar@adacore.com>
26129             Thomas Quinot  <quinot@adacore.com>
26130             Hristian Kirtchev  <kirtchev@adacore.com>
26131             Ed Schonberg  <schonberg@adacore.com>
26132
26133         * sem_util.ads, sem_util.adb: Change name Is_Package to
26134         Is_Package_Or_Generic_Package.
26135         (Check_Obsolescent): New procedure.
26136         (Set_Is_Public): Remove obsolete junk test.
26137         (Set_Public_Status): Do not set Is_Public on an object whose declaration
26138         occurs within a handled_sequence_of_statemets.
26139         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
26140         for a parameterless procedure.
26141         (Enter_Name): Recognize renaming declarations created for private
26142         component of a protected type within protected operations, so that
26143         the source name of the component can be used in the debugger.
26144
26145 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
26146             Robert Dewar  <dewar@adacore.com>
26147
26148         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
26149         of a generic subprogram are not visible outside the body.
26150         (Set_Warning_Switch): New procedure (code to set warning mode moved
26151         here from Switch.C so that it can be shared by pragma processing.
26152         (Check_References): Special case warning for non-modified non-imported
26153         volatile objects.
26154         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
26155         form with a string literal argument
26156
26157 2005-11-14  Javier Miranda  <miranda@adacore.com>
26158
26159         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
26160         anonymous access.
26161         (Write): Addition of "not null" to the anonymous access.
26162         (Read): Addition of "not null" to the anonymous access.
26163         (Write): Addition of "not null" to the anonymous access.
26164
26165         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
26166         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
26167         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
26168         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
26169         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
26170         "not null" to the anonymous access.
26171
26172 2005-11-14  Robert Dewar  <dewar@adacore.com>
26173
26174         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
26175         offset values
26176
26177 2005-11-14  Vincent Celier  <celier@adacore.com>
26178
26179         * switch.adb (Bad_Switch): New procedure
26180         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
26181         message when in error.
26182
26183         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
26184         Too_Many_Output_Files): Remove declarations, no longer used.
26185         (Scan_Nat): New parameter Switch
26186         (Scan_Pos): Ditto
26187         (Bad_Switch): New procedure
26188
26189         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
26190         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
26191         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
26192         to Osint.Fail. Do not handle any exception.
26193
26194 2005-11-14  Vincent Celier  <celier@adacore.com>
26195
26196         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
26197         designates a non existent directory.
26198
26199 2005-11-14  Robert Dewar  <dewar@adacore.com>
26200
26201         * xgnatugn.adb: Replace invalid membership test by 'Valid
26202
26203 2005-11-14  Vincent Celier  <celier@adacore.com>
26204
26205         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
26206         there is no object directory.
26207
26208 2005-11-14  Robert Dewar  <dewar@adacore.com>
26209
26210         * usage.adb: Minor adjustment to output format, use nn instead of nnn
26211         (so that -gnateInnn does not run into next column)
26212
26213 2005-11-14  Ed Falis  <falis@adacore.com>
26214
26215         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
26216         "constrained"
26217
26218 2005-11-14  Cyrille Comar  <comar@adacore.com>
26219
26220         * s-chepoo.ads: Add comments on Dereference.
26221         Remove unnecessary inherited abstract primitives.
26222         Cosmetic cleanup.
26223
26224 2005-11-14  Robert Dewar  <dewar@adacore.com>
26225
26226         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
26227         node parameter, not needed, since it is available as Declaration_Node.
26228
26229 2005-11-14  Geert Bosch  <bosch@adacore.com>
26230
26231         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
26232         grammatically correct.
26233
26234 2005-11-14  Vincent Celier  <celier@adacore.com>
26235
26236         * s-fileio.ads: Correct spelling error in comment
26237
26238 2005-11-14  Cyrille Comar  <comar@adacore.com>
26239             Robert Dewar  <dewar@adacore.com>
26240             Vincent Celier  <celier@adacore.com>
26241             Ben Brosgol  <brosgol@adacore.com>
26242             Jose Ruiz  <ruiz@adacore.com>
26243             Pascal Obry  <obry@adacore.com>
26244
26245         * gnat_ugn.texi:
26246         Document that -fstack-check is needed for strict compliance with the
26247         Ada 95 Reference Manual.
26248         Correct reference to VAX systems to meet HP guidelines
26249         Add documentation for new gnatmake switches -vl, -vm and -vh
26250         Replace DEC Ada by HP Ada
26251         Replace DIGITAL by HP
26252         Remove empty section on tools in compatibility section
26253         Clarify the Windows convention semantics.
26254         Document the Win32 calling convention.
26255         The Stdcall, Win32 and DLL convention are synonyms.
26256         Add a note in -gnatR description about zero size record components
26257         Note on new >= and <= warnings for -gnatwc
26258         Document that equal sign after -gnatm is optional.
26259         Note that strip is working fine on DLL built with a Library
26260         Project. The restriction apply only to DLL built with gnatdll.
26261         Update section about the way to debug a DLL.
26262         Update information about the DLL convention.
26263         Document -C switch for gnatprep
26264         Document new attribute Library_ALI_Dir
26265         Update elaboration doc to include implicit Elaborate pragmas now
26266         generated for subprogram instantiations.
26267         Document limitation on executable names that include spaces for --GCC,
26268         --GNATBIND, and --GNATLINK switches.
26269         Document that -w causes -gnatws to be added at start of gcc switches
26270
26271         * gnat_rm.texi: Document that -mieee is needed for generating infinite
26272         and NaN values in case of overflow on machines that are not fully
26273         compliant with the IEEE floating-point standard.
26274         Create a section describing the set of compiler options needed for
26275         strict compliance with the Ada 95 Reference Manual.
26276         Add documentation for pragma Obsolescent applied to a package
26277         Clarify potential issues of mixed language programs related to the
26278         I/O buffering enabling in the elaboration of the GNAT runtime.
26279         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
26280         This documentation only patch adds extra documentsion for pragma
26281         Restrictions (No_Elaboration_Code), explaining why it is not possible
26282         to document this restriction in terms of allowed source constructs.
26283         Document string literal form of pragma Warnings
26284         Document new attribute Library_ALI_Dir
26285         Add documentation on stable attributes in project files that was missing
26286
26287         * gnat-style.texi: Indicate that paragraphs within a single comment
26288         should be separated by empty comment lines
26289
26290         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
26291         /05 respectively)
26292
26293         * bindusg.adb: Minor cleanup, put -m before -M for consistency
26294
26295 2005-11-14  Robert Dewar  <dewar@adacore.com>
26296
26297         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
26298         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
26299         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
26300         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
26301         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
26302         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
26303         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26304         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
26305         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
26306         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26307         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
26308         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
26309         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
26310         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
26311         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
26312         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
26313         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
26314         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
26315         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
26316         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
26317         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
26318         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
26319         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
26320         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
26321         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
26322         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
26323         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
26324         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
26325         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
26326         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
26327         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
26328         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
26329         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
26330         system-interix.ads, system-solaris-sparc.ads,
26331         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
26332         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
26333         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
26334         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
26335         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
26336         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
26337         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
26338         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
26339         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
26340         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
26341         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
26342         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
26343         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
26344         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
26345         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
26346         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
26347         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
26348         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
26349         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
26350         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
26351         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
26352         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
26353         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
26354         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
26355         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
26356         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
26357         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
26358         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
26359         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
26360         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
26361         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
26362         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
26363         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
26364         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
26365         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
26366         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
26367         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
26368         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
26369         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
26370         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
26371         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
26372         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
26373         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
26374         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
26375         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
26376         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
26377         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
26378         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
26379         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
26380         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
26381         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
26382         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
26383         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
26384         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
26385         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
26386         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
26387         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
26388         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
26389         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
26390         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
26391         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
26392         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
26393         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
26394         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
26395         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
26396         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
26397         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
26398         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
26399         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
26400         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
26401         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
26402         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
26403         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
26404         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
26405         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
26406         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
26407         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
26408         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
26409         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
26410         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
26411         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
26412         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
26413         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
26414         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
26415         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
26416         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
26417         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
26418         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
26419         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
26420         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
26421         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
26422         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
26423         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
26424         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
26425         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
26426         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
26427         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
26428         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
26429         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
26430         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
26431         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
26432         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
26433         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
26434         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
26435         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
26436         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
26437         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
26438         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
26439         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
26440         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
26441         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
26442         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
26443         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
26444         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
26445         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
26446         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
26447         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
26448         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
26449         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
26450         a-numaux-darwin.ads, a-numaux-darwin.adb,
26451         a-swuwha.ads, a-stunha.ads: Minor reformatting
26452
26453 2005-11-14  Robert Dewar  <dewar@adacore.com>
26454
26455         PR ada/18434
26456         * osint-m.adb: Add pragma Elaborate_All for Osint
26457
26458 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
26459
26460         PR ada/23995
26461         * trans.c (call_to_gnu): Restore statement lost in translation.
26462
26463 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
26464
26465         * init.c: Use the Linux-specific section for the IA-64/Linux target.
26466         (__gnat_adjust_context_for_raise): Add conditional code so that the
26467         IA-64 is also supported.
26468
26469 2005-11-03  James E Wilson  <wilson@specifix.com>
26470
26471         PR ada/23427
26472         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
26473         TREE_OVERFLOW check.
26474
26475 2005-09-21  Olivier Hainque  <hainque@adacore.com>
26476
26477         PR ada/22418
26478         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
26479         as we create them to store a size in bits.
26480
26481 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
26482
26483         PR ada/21937
26484         PR ada/22328
26485         PR ada/22381
26486         PR ada/22383
26487         PR ada/22419
26488         PR ada/22420
26489         * utils2.c (build_return_expr): New helper function.
26490         * gigi.h (build_return_expr): Declare it.
26491         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
26492         of manually building the RETURN_EXPR tree.
26493         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
26494         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
26495         build_binary_op for the "target pointer" case.  Use build_return_expr
26496         instead of manually building the RETURN_EXPR tree.
26497
26498 2005-09-16  Laurent Guerby  <laurent@guerby.net>
26499
26500         PR ada/23788
26501         * s-tpinop.ads: Make this unit Preelaborate.
26502
26503 2005-09-16  Andreas Jaeger  <aj@suse.de>
26504
26505         * socket.c: Add string.h for memcpy.
26506
26507 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
26508
26509         * dec-io.ads, dec-io.adb: Removed, no longer used.
26510
26511 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26512
26513         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
26514
26515         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
26516         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
26517         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
26518         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
26519         dependent units are Preelaborate.
26520         (Initialize): Call Interrupt_Managemeent.Initialize and
26521         OS_Primitives.Initialize to ensure proper initialization of this unit.
26522         Remove use of System.Soft_Links
26523         Make this unit Preelaborate.
26524
26525         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
26526         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
26527         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
26528         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
26529         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26530         s-tratas.ads, s-tasinf.ads: Minor reformatting.
26531         Add pragma Preelaborate, since these packages are suitable for this
26532         categorization.
26533         Update comments.
26534
26535         * s-traent-vms.ads, s-intman-dummy.adb,
26536         s-taprop-dummy.adb: Make this unit Preelaborate.
26537
26538         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26539         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
26540         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
26541         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
26542         s-intman-solaris.adb, s-intman-irix-athread.adb,
26543         s-intman-irix.adb: Mark this unit Preelaborate.
26544         (Initialize): New procedure.
26545         Update comments.
26546
26547         * s-taspri-linux.ads: Removed.
26548
26549         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
26550         as done by other implementations (e.g. posix).
26551
26552         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
26553         responsible for deferring abort.
26554         Mark this unit Preelaborate.
26555
26556         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
26557         proper initialization of the tasking run-time.
26558
26559         * s-tasdeb.ads: Mark this unit Preelaborate.
26560         (Known_Tasks): Add explicit default value to avoid elaboration code.
26561
26562         * s-inmaop-vms.adb (Elaboration code): Add call to
26563         Interrupt_Management.Initialize since the elaboration code depends on
26564         proper initialization of this package.
26565
26566         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
26567         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
26568         s-osprim-posix.adb: Make this unit Preelaborate.
26569
26570         * a-calend.adb: Add call to OS_Primitives.Initialize
26571
26572         * a-elchha.adb: Update use of Except.Id.Full_Name.
26573         Minor reformatting.
26574         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
26575
26576         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
26577         Move with clauses outside Warnings Off now that dependent units are
26578         Preelaborate.
26579         Use raise xxx with "..."; Ada 2005 form.
26580
26581         * a-taside.ads, a-taside.adb:
26582         Remove some dependencies, to make it easier to make this unit truly
26583         Preelaborate.
26584         Rewrite some code to be conformant with Preelaborate rules.
26585
26586         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
26587         marked Preelaborate in the future.
26588
26589         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
26590         these units Preelaborate.
26591
26592         * s-exctab.adb: Update use of Except.Id.Full_Name.
26593
26594         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
26595         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
26596         Set_Exc_Stack_Addr): Removed, no longer used.
26597         Remove reference to *Machine_State_Addr*, no longer needed.
26598
26599         * s-stalib.ads: Mark this unit as Preelaborate[_05].
26600         (Exception_Data): Full_Name is now a System.Address so that this unit
26601         can be made Preelaborate.
26602         Clean up/simplify code thanks to Full_Name being a System.Address.
26603         Remove obsolete pragma Suppress (All_Checks), no longer needed.
26604
26605         * s-taskin.ads, s-taskin.adb:
26606         Move with clauses outside Warnings Off now that dependent units are
26607         Preelaborate.
26608         Make this unit Preelaborate.
26609         (Initialize): New proceduure, replace elaboration code and makes the
26610         set up of the tasking run-time cleaner.
26611         (Detect_Blocking): Now a function instead of a deferred boolean, to
26612         obey Preelaborate rules.
26613
26614         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
26615         soft links, no longer used.
26616
26617         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
26618         packages are suitable for this categorization.
26619
26620         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
26621         since we compile run-time sources in Ada 2005 mode.
26622         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
26623         avoid having s-taprop*.adb depend on s-soflin and to avoid code
26624         duplication.
26625         Remove reference to *Machine_State_Addr*, no longer needed.
26626
26627 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26628
26629         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
26630         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26631         Remove reference to System.Exceptions.
26632
26633         * s-mastop-x86.adb: Removed, no longer used.
26634
26635         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
26636
26637         * a-excach.adb: Minor reformatting.
26638
26639         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
26640         instead fix new warnings that were hidden by this change.
26641         (AAA, ZZZ): Removed, replaced by...
26642         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
26643         are used instead of constants, to help make Ada.Exception truly
26644         preelaborate.
26645         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
26646         Raise_Storage_Error): File is now a System.Address, to simplify code.
26647         (Elab code): Removed, no longer used.
26648         (Null_Occurrence): Remove Warnings Off and make this construct
26649         preelaborate.
26650         Remove code related to front-end zero cost exception handling, since
26651         it is no longer used.
26652         Remove -gnatL/-gnatZ switches.
26653
26654         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
26655         Update use of Except.Msg.
26656
26657         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
26658         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
26659         to front-end zero cost exception handling, since it is no longer used.
26660         Remove -gnatL/-gnatZ switches.
26661
26662         * lib-writ.ads: Minor reformatting
26663         Remove doc of UX
26664
26665         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
26666
26667         * Make-lang.in: Remove references to s-except.ads
26668
26669         * s-except.ads: Removed, no longer used.
26670
26671         * s-mastop.ads, s-mastop.adb:
26672         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26673         Remove reference to System.Exceptions.
26674
26675         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
26676         switch-b.adb: Remove code related to front-end zero cost exception
26677         handling, since it is no longer used.
26678         Remove -gnatL/-gnatZ switches.
26679
26680 2005-09-01  Robert Dewar  <dewar@adacore.com>
26681             Gary Dismukes  <dismukes@adacore.com>
26682             Javier Miranda  <miranda@adacore.com>
26683
26684         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
26685         type by valid test and generate warning.
26686         (Tagged_Membership): Generate call to the run-time
26687         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
26688         Change formal name Subtype_Mark to Result_Definition in several calls to
26689         Make_Function_Specification.
26690         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
26691         check for proper accessibility of the operand of a class-wide allocator.
26692         The check can be left out if checks are suppressed or if the expression
26693         has a specific tagged type whose level is known to be safe.
26694
26695         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
26696         generates the run-time check associated with null-excluding entities.
26697         (Expand_N_Return_Statement): Add tests to determine if the accessibility
26698         check on the level of the return expression of a class-wide function
26699         can be elided. The check usually isn't needed if the expression has a
26700         specific type (unless it's a conversion or a formal parameter). Also
26701         add a test for whether accessibility checks are suppressed. Augment
26702         the comments to describe the conditions for performing the check.
26703
26704 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
26705             Javier Miranda  <miranda@adacore.com>
26706             Gary Dismukes  <dismukes@adacore.com>
26707             Ed Schonberg  <schonberg@adacore.com>
26708
26709         * a-tags.adb (IW_Membership): Give support to
26710         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
26711         subprogram has been extended to look for the tag in the ancestors tag
26712         table.
26713         Update the structure of the GNAT Dispatch Table to reflect the
26714         additional two tables used in dispatching selects.
26715         Introduce appropriate array types and record components in
26716         Type_Specific_Data to reflect the two tables.
26717         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
26718         the TSD of a tag, indexed by position.
26719         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
26720         operation kind in the TSD of a tag, indexed by position.
26721
26722         * a-tags.ads: Introduce an enumeration type to capture different
26723         primitive operation kinds. Define a constant reflecting the number of
26724         predefined primitive operations.
26725         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
26726         of an entry wrapper.
26727         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
26728         callable entity of a primitive operation.
26729
26730         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
26731         primitive operations used in dispatching selects for limited
26732         interfaces, limited tagged, task and protected types what implement a
26733         limited interface.
26734         (Freeze_Type): Generate the bodies of the primitive operations used in
26735         dispatching selects for limited tagged, task and protected types that
26736         implement a limited interface. Generate statements to populate the two
26737         auxiliary tables used for dispatching in select statements.
26738         (Freeze_Record_Type): Add call to initialize the dispatch table entries
26739         associated with predefined interface primitive operations.
26740         (Build_Dcheck_Function): Change Set_Subtype_Mark to
26741         Set_Result_Definition.
26742         (Build_Variant_Record_Equality): Change Subtype_Mark to
26743         Result_Definition.
26744         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
26745         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
26746         (Build_Assignment): Simplify the code that adds the run-time-check.
26747         (Expand_N_Object_Declaration): Code cleanup.
26748
26749         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
26750         entries when there is a protected type that implements a limited
26751         interface.
26752
26753         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
26754         common routines used in expansion of dispatching selects.
26755         (Add_Private_Declarations): Select the appropriate protection type when
26756         there is a protected type that implements a limited interface.
26757         (Build_Parameter_Block): Generate a wrapped parameter block.
26758         (Build_Protected_Subprogram_Body): Select the appropriate type for
26759         locking entries when there is a protected type that implements a
26760         limited interface.
26761         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
26762         classified as entry wrappers.
26763         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
26764         asynchronous selects.
26765         (Expand_N_Conditional_Entry_Call): Add support for expansion of
26766         dispatching conditional selects.
26767         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
26768         protection when there is a protected type that implements limited
26769         interfaces.
26770         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
26771         timed selects.
26772         (Extract_Dispatching_Call): Extract the entity of the name of a
26773         dispatching call, the object parameter, actual parameters and
26774         corresponding formals.
26775         (Make_Initialize_Protection): Correct logic of protection initialization
26776         when there is a protected type that implements a limited interface.
26777         (Parameter_Block_Pack): Populate a wrapped parameter block with the
26778         values of actual parameters.
26779         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
26780         block and assign them to the original actual parameters.
26781
26782         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
26783         (Build_Protected_Sub_Specification): Change the type and name of the
26784         last formal to account for the increased variety of protection modes.
26785
26786         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
26787         entities. Used to save the value of the Is_Hidden attribute when the
26788         limited-view is installed.
26789         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
26790         the attribute of procedures classified as entry wrappers.
26791         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
26792         entity of a primitive wrapper.
26793         (Write_Entity_Flags): Output the name and value of the
26794         Is_Primitive_Wrapper attribute.
26795         (Write_Field27_Name): Output the name and entity of the field Wrapped_
26796         Entity.
26797         (Underlying_Type): If we have an incomplete entity that comes from
26798         the limited view then we return the Underlying_Type of its non-limited
26799         view if it is already available.
26800         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
26801         including operators.
26802         (Write_Field26_Name): Add entry for Overridden_Operation
26803         (Overridden_Operation): New attribute of functions and procedures.
26804
26805         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
26806         predefined position in the dispatch table for the primitive operations
26807         used in dispatching selects.
26808         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
26809         predefined primitive operations and replace it with
26810         Default_Prim_Op_Count.
26811         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
26812         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
26813         the names of the generated primitive operations used in dispatching
26814         selects.
26815         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
26816         case of abstract interface types. They will be inherit by the objects
26817         implementing the interface.
26818         (Make_DT): There is no need to inherit the dispatch table of the
26819         ancestor interface for the elaboration of abstract interface types.
26820         The dispatch table will be inherited by the object implementing the
26821         interface.
26822         (Copy_Secondary_DTs): Add documentation.
26823         (Validate_Position): Improve this static check in case of
26824         aliased subprograms because aliased subprograms must have
26825         the same position.
26826         (Init_Predefined_Interface_Primitives): New subprogram that initializes
26827         the entries associated with predefined primitives of all the secondary
26828         dispatch tables.
26829         (Build_Anonymous_Access_Type): Removed.
26830         (Expand_Interface_Actuals): With the previous cleanup there is no need
26831         to build an anonymous access type. This allows further cleanup in the
26832         code generated by the expander.
26833         (Expand_Interface_Conversion): If the actual is an access type then
26834         build an internal function to handle the displacement. If the actual
26835         is null this function returns null because no displacement is
26836         required; otherwise performs a type conversion that will be
26837         expanded in the code that returns the value of the displaced actual.
26838         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
26839         conversions that have no effect in the generated code because no
26840         displacement is required. Code cleanup; use local variables to
26841         avoid repeated calls to the subprogram directly_designated_type().
26842
26843         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
26844         Classify the primitive operations used in dispatching selects as
26845         predefined.
26846         (Implements_Limited_Interface): Determine whether some type either
26847         directly implements a limited interface or extends a type that
26848         implements a limited interface.
26849         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
26850         (Expand_Subtype_From_Expr): Do not build actual subtype if the
26851         expression is limited.
26852         (Find_Interface_Tag): Add code to handle class-wide types and
26853         entities from the limited-view.
26854
26855         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
26856         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
26857         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
26858         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
26859         Set_Prim_Op_Kind.
26860
26861         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
26862         of procedure name or prefix that appears as a trigger in a triggering
26863         alternative.
26864
26865         * uintp.ads: Introduce constants Uint_11 and Uint_13.
26866
26867 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26868
26869         * s-tataat.adb, a-tasatt.adb:
26870         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
26871
26872         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
26873         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
26874         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
26875         longer used.
26876
26877 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26878             Jose Ruiz  <ruiz@adacore.com>
26879
26880         * s-taprop-vxworks.adb:
26881         Move with clauses outside Warnings Off now that dependent units are
26882         Preelaborate.
26883         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
26884         initialization of this unit.
26885         (Specific): Add new procedures Initialize and Delete so that this
26886         package can be used for VxWorks 5.x and 6.x
26887         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
26888         differences between VxWorks 5.x and 6.x
26889         Minor reformatting.
26890         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
26891         caller.
26892         Use only Preelaborate-compatible constructs.
26893
26894         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
26895         Primitives.Operations.
26896         (Delete, Initialize): New procedures.
26897
26898         * s-osinte-vxworks.adb: Body used to handle differences between
26899         VxWorks 5.x and 6.x
26900         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
26901
26902         * s-osinte-vxworks.ads: Minor reformatting.
26903         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
26904         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
26905         and 6.
26906         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
26907         between Vxworks 5 and 6.
26908         (taskLock, taskUnlock): Removeed, no longer used.
26909
26910         * adaint.c: The wait.h header is not located in the sys directory on
26911         VxWorks when using RTPs.
26912         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
26913         using RTPs.
26914         (__gnat_dup): dup is available on Vxworks when using RTPs.
26915         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
26916
26917         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
26918
26919         * expect.c: The wait.h header is not located in the sys directory on
26920         VxWorks when using RTPs.
26921
26922 2005-09-01  Thomas Quinot  <quinot@adacore.com>
26923
26924         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
26925
26926         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
26927
26928         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
26929         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26930         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
26931         g-soccon-freebsd.ads: Add new constants:
26932          IP_MULTICAST_IF
26933          SO_RCVTIMEO/SO_SNDTIMEO
26934          IOV_MAX
26935
26936         * gen-soccon.c:
26937         Move all target-specific file inclusions and macro definitions to
26938         gsocket.h, in order to ensure that any C code in socket.c will see a
26939         set of constants that is consistent with the contents of g-soccon.ads.
26940
26941         * gsocket.h: Code imported from gen-soccon.c:
26942         Move all target-specific file inclusions and macro definitions to
26943         gsocket.h, in order to ensure that any C code in socket.c will see a set
26944         of constants that is consistent with the contents of g-soccon.ads.
26945         This change also makes gen-soccon self-contained (removing dependencies
26946         upon GCC internal headers).
26947
26948         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
26949         iovecs at a time.
26950         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
26951
26952         * socket.c: Minor reformatting.
26953
26954 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
26955             Thomas Quinot  <quinot@adacore.com>
26956
26957         * fname-sf.adb, mlib-tgt.ads,
26958         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
26959         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
26960         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
26961         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
26962         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
26963         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
26964         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
26965         makegpr.adb: Remove redundant use_clauses.
26966
26967 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26968
26969         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
26970         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
26971         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
26972         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
26973         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
26974         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
26975         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
26976         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
26977         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26978         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
26979         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
26980         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
26981         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
26982         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
26983         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
26984         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
26985         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26986         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
26987         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
26988         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
26989         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
26990         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
26991         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
26992         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
26993         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
26994         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
26995         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
26996         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
26997         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
26998         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
26999         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
27000         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
27001         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
27002         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
27003         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
27004         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
27005         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
27006         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
27007         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
27008         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
27009         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
27010         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
27011         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
27012         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
27013         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
27014         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
27015         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
27016         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
27017         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
27018         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
27019         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
27020         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
27021         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
27022         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
27023         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
27024         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
27025         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
27026         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
27027         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
27028         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
27029         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
27030         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
27031         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
27032         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
27033         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
27034         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
27035         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
27036         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
27037         and always use the no parameter form for consistency.
27038
27039         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
27040
27041 2005-09-01  Robert Dewar  <dewar@adacore.com>
27042
27043         * binde.adb: Minor reformatting
27044         (Find_Elab_Order): Output warning if -p used with static elab order
27045
27046 2005-09-01  Robert Dewar  <dewar@adacore.com>
27047
27048         * checks.adb (Check_Needed): New procedure, deals with removing checks
27049         based on analysis of short-circuited forms. Also generates warnings for
27050         improper use of non-short-circuited forms.
27051         Code clean ups.
27052
27053 2005-09-01  Robert Dewar  <dewar@adacore.com>
27054
27055         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
27056         with 'Valid tests.
27057
27058 2005-09-01  Robert Dewar  <dewar@adacore.com>
27059
27060         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
27061         spec.
27062         Implement new insertion char < (conditional warning)
27063         * errutil.adb, erroutc.adb: Implement new insertion char <
27064         (conditional warning).
27065         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
27066         (Error_Msg_Warn): New variable for < insertion char.
27067         * prj-nmsc.adb: Implement new errout insertion char < (conditional
27068         warning).
27069         (Check_For_Source): Change value of Source_Id only after the current
27070         source has been dealt with.
27071
27072 2005-09-01  Robert Dewar  <dewar@adacore.com>
27073             Doug Rupp  <rupp@adacore.com>
27074
27075         * exp_attr.adb: Handle vax fpt for 'Valid attribute
27076         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
27077         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
27078         (Valid_D, Valid_F, Valid_G): New functions
27079
27080 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27081             Hristian Kirtchev  <kirtchev@adacore.com>
27082             Javier Miranda  <miranda@adacore.com>
27083
27084         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
27085         from object notation, the original node is unanalyzed and carries no
27086         semantic information, so that accessiblity checks must be performed on
27087         the type of the actual itself.
27088         (Expand_N_Subprogram_Declaration): Change last actual parameter for
27089         compatibility with Build_Protected_Sub_Specification.
27090         (Check_Overriding_Inherited_Interfaces): Add suport to handle
27091         overloaded primitives.
27092         (Register_Interface_DT_Entry): Use the new name of the formal
27093         the the calls to Expand_Interface_Thunk
27094
27095         * exp_dbug.ads: Augment comments on encoding of protected types to
27096         include the generation of dispatching subprograms when the type
27097         implements at least one interface.
27098
27099         * lib.ads: Extend information in Load_Stack to include whether a given
27100         load comes from a Limited_With_Clause.
27101
27102         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
27103         whether a potential circularity is harmless, because it includes units
27104         loaded through a limited_with clause. Extends previous treatment which
27105         did not handle properly arbitrary combinations of limited and
27106         non-limited clauses.
27107
27108 2005-09-01  Nicolas Setton  <setton@adacore.com>
27109
27110         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
27111         to be encoded as typ___XBLU_lowerbound__upperbound instead of
27112         typ___XB_lowerbound__upperbound.
27113
27114 2005-09-01  Thomas Quinot  <quinot@adacore.com>
27115
27116         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
27117         dummy access formal for RACW/RAS TypeCode TSS.
27118         (Build_TypeCode_Call): Do not generate dummy null access actual for
27119         calls to the TypeCode TSS.
27120
27121 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27122
27123         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
27124         fully qualified name, to distinguish instances with the same local name.
27125
27126         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
27127         fully qualified.
27128
27129 2005-09-01  Robert Dewar  <dewar@adacore.com>
27130
27131         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
27132         packed arrays.
27133
27134 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
27135
27136         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
27137         (Free): New deallocation procedure for filter elements
27138         (Close): Deallocate any existing filter for the concerned connection
27139
27140 2005-09-01  Laurent Pautet  <pautet@adacore.com>
27141
27142         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
27143         position set is provided, we compute one in order to reduce the maximum
27144         length of the keys.  This computation first selects a character
27145         position between 1 and the minimum length of the keys in order to
27146         avoid reducing one of the keys to an empty string.
27147         (Initialize, Compute): When the ratio V to K is too low, the algorithm
27148         does not converge. The initialization procedure now comes with a
27149         maximum number of iterations such that when exceeded, an exception is
27150         raised in Compute. The user can initialize this ratio to another value
27151         and try again
27152         Reformating and updated headers.
27153
27154 2005-09-01  Javier Miranda  <miranda@adacore.com>
27155
27156         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
27157         that given an entity T creates and returns an Itype that duplicates the
27158         contents of T. The returned Itype has the null-exclusion
27159         attribute set to True, and its Etype attribute references T
27160         to keep the association between the two entities.
27161         Update copyright notice
27162
27163         * sem_aggr.adb (Check_Can_Never_Be_Null,
27164         Aggregate_Constraint_Checks, Resolve_Aggregate,
27165         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
27166
27167         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
27168
27169 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
27170             Robert Dewar  <dewar@adacore.com>
27171             Hristian Kirtchev  <kirtchev@adacore.com>
27172
27173         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
27174         Result_Definition.
27175
27176         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
27177         function specs.
27178         Call Set_Result_Definition instead of Set_Subtype_Mark.
27179         (P_Subprogram_Specification): Add parsing of anonymous access result
27180         plus null exclusions. Call Set_Result_Definition instead of
27181         Set_Subtype_Mark.
27182
27183         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27184         (P_Access_Type_Definition): Add parsing for an anonymous access result
27185         subtype, plus parsing for null exclusions. Call Set_Result_Definition
27186         instead of Set_Subtype_Mark.
27187
27188         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27189         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
27190         (Result_Definition): New function for N_Function_Specifications.
27191         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
27192         N_Function_Specification.
27193         (Set_Null_Exclusion_Present): Allow this flag for
27194         N_Function_Specification.
27195         (Set_Result_Definition): New procedure for N_Function_Specifications.
27196         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
27197         and N_Function_Specification.
27198
27199         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
27200         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
27201         Add support for LIMITED NEW for Ada 2005 AI-419
27202         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
27203         syntax for anonymous access results.
27204         Replace Subtype_Mark field by Result_Definition in
27205         N_Function_Specification and N_Access_Definition specs.
27206         Add Null_Exclusion_Present to spec of N_Function_Specification.
27207         (Result_Definition): New function for N_Function_Specification and
27208         N_Access_Function_Definition.
27209         (Set_Result_Definition): New procedure for N_Function_Specification and
27210         N_Access_Function_Definition.
27211
27212         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
27213         Result_Definition for cases of N_Access_Function_Definition and
27214         N_Function_Specification.
27215         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
27216
27217 2005-09-01  Vincent Celier  <celier@adacore.com>
27218
27219         * lib-writ.adb: Update Copyright notice
27220         (Write_With_Lines): On platforms where file names are case-insensitive,
27221         record the file names in lower case.
27222         (Write_ALI): For D lines, on platforms where file names are
27223         case-insensitive, record the file names in lower case.
27224
27225 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27226             Emmanuel Briot  <briot@adacore.com>
27227
27228         * lib-xref.adb (Output_Overridden_Op): Display information on
27229         overridden operation.
27230
27231         * lib-xref.ads: Add documentation on overridden operations.
27232
27233         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
27234         information.
27235
27236         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
27237         overriding entity information.
27238
27239 2005-09-01  Vincent Celier  <celier@adacore.com>
27240
27241         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
27242         including those that are inherited.
27243
27244 2005-09-01  Robert Dewar  <dewar@adacore.com>
27245
27246         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
27247
27248         * par-prag.adb: Implement new pragma Debug_Policy
27249
27250         * sem_prag.adb Implement new pragma Debug_Policy
27251         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
27252         Component_Size attribute specification. Give warning for ignored pragma
27253         Pack.
27254
27255         * snames.h, snames.ads, snames.adb: Introduce entries in
27256         Preset_Names for Name_Disp_Asynchronous_Select,
27257         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
27258         Name_Disp_Timed_Select.
27259         New pragma Debug_Policy
27260
27261         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
27262         explicitly.
27263         Switch -gnata also sets Debug_Pragmas_Enabled
27264
27265         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
27266         handle an explicit -gnata when compiling predefined files.
27267
27268 2005-09-01  Vincent Celier  <celier@adacore.com>
27269
27270         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
27271         directories of projects that have no Ada sources.
27272
27273 2005-09-01  Robert Dewar  <dewar@adacore.com>
27274
27275         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
27276         (makes a difference for wide characters)
27277
27278         * widechar.adb, widechar.ads:
27279         Add Wide_Char_Byte_Count feature to count chars vs bytes
27280
27281 2005-09-01  Thomas Quinot  <quinot@adacore.com>
27282             Ed Schonberg  <schonberg@adacore.com>
27283             Robert Dewar  <dewar@adacore.com>
27284
27285         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
27286         'Address attribute reference with an overloaded prefix, use the
27287         location of the prefix (not the location of the attribute reference) as
27288         the error location.
27289         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
27290         a function renaming thereof, is a valid prefix for 'Size (where it is
27291         intepreted as a function call).
27292         (Statically_Denotes_Entity): New predicate to determine whether the
27293         prefix of an array attribute can be considered static.
27294
27295         PR ada/9087
27296         (Eval_Attr): Fix failure to evaluate Component_Size for
27297         unconstrained arrays (resulted in wrong value in packed case, since
27298         back end cannot handle this case)
27299
27300 2005-09-01  Robert Dewar  <dewar@adacore.com>
27301
27302         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
27303         error msgs for most common cases.
27304         Use new errout insertion char < (conditional warning)
27305
27306 2005-09-01  Javier Miranda  <miranda@adacore.com>
27307             Ed Schonberg  <schonberg@adacore.com>
27308
27309         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
27310         become local to the whole package.
27311         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
27312         the package was already analyzed the new algorithm "replaces" the
27313         real entities by the shadow ones. This is required to ensure that
27314         the order of these entities in the homonym chains does not change;
27315         otherwise we can have undefined references at linking time because
27316         in case of conflicts the external name of the entities will have
27317         a suffix that depends on the order of the entities in the chain.
27318         (Remove_Limited_With_Clause): Complementary code that completes the
27319         new algorithm and replaces the shadow entities by the real ones.
27320         (Install_Limited_Withed_Unit): When unchaining entities before the
27321         installation of the shadow entities, only regular entities of the
27322         public part must be taken into account. This is required to
27323         keep this routine in synch with the work done by Remove_Limited_
27324         With_Clause
27325         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
27326         even if unit is analyzed, because the analysis of the unit is
27327         idempotent in any case, and the limited view of the unit may have to
27328         be installed for proper visibility.
27329         (Expand_Limited_With_Clause): Even if the unit in the implicit
27330         with_clause has been analyzed already, a limited view of the package
27331         must be built for the current context, if it does not exist yet.
27332
27333 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27334             Javier Miranda  <miranda@adacore.com>
27335             Gary Dismukes  <dismukes@adacore.com>
27336
27337         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
27338         defining entity for the instance body, make a new defining identifier
27339         rather than copying the entity of the spec, to prevent accidental
27340         sharing of the entity list.
27341         (Check_Private_View): When exchanging views of private types, build the
27342         list of exchanged views as a stack, to ensure that on exit the exchanges
27343         are undone in the proper order.
27344         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
27345         Restore the compilation environment in case of instantiation_error.
27346         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
27347         for an anonymous access result.
27348         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
27349         (Formal_Entity): Handle properly the case of a formal package that
27350         denotes a generic package renaming.
27351
27352 2005-09-01  Thomas Quinot  <quinot@adacore.com>
27353
27354         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
27355         clause if the array aggregate is surrounded by parentheses.
27356
27357 2005-09-01  Cyrille Comar  <comar@adacore.com>
27358             Gary Dismukes  <dismukes@adacore.com>
27359             Ed Schonberg  <schonberg@adacore.com>
27360             Javier Miranda  <miranda@adacore.com>
27361
27362         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
27363         underlying type
27364         to check if a type is Constrained in cases related to code generation
27365         (rather than semantic checking) since otherwise we do not generate
27366         similar code for mutable private types depending if their
27367         discriminants are visible or not.
27368         (Check_Abstract_Overriding): Do not complain about failure to override
27369         the primitive operations used in dispatching selects since they will
27370         always be overriden at the freeze point of the type.
27371         (Access_Definition): Separate out handling for resetting the scope
27372         of an anonymous access function result type. Retrieve the scope
27373         of the associated function rather than using Current_Scope, which
27374         does not have a consistent value (depends on whether we're in the
27375         middle of analyzing formal parameters). Add ??? comment about
27376         finding a cleaner way to handle the special cases of scope setting.
27377         (Process_Incomplete_Dependents): A protected operation is never a
27378         dispatching operation (only its wrapper may be).
27379         (Build_Derived_Record_Type): In case of tagged private types that
27380         implement interfaces add derivation of predefined primitive
27381         operations.
27382         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
27383         by two parameters that are used in case of derivation from abstract
27384         interface types: No_Predefined_Prims is used to avoid the derivation
27385         of predefined primitives from the interface, and Predefined
27386         Prims_Only is used to complete the derivation predefined primitives
27387         in case of private tagged types implementing interfaces.
27388         Fix typo in comments
27389         (Find_Interface_In_Descendant): Protect the frontend against
27390         wrong code with large circularity chains.
27391         (Is_Private_Overriding): Add support for entities overriding interface
27392         subprograms. The test failed because Entities associated with overriden
27393         interface subprograms are always marked as hidden (and used to build
27394         the secondary dispatch table); in this case the overriden entity is
27395         available through the field abstract_interface_alias (cf. override_
27396         dispatching_operation)
27397         (Access_Definition): Set the scope of the type to Current_Scope for the
27398         case of a function with an anonymous access result type.
27399         (Access_Subprogram_Declaration): Handle creation of the type entity for
27400         an access-to-function type with an anonymous access result.
27401         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
27402         in handling for N_Access_Function_Definition.
27403         (Analyze_Subtype_Declaration): Modify the text of error message.
27404         (Derived_Type_Declaration): Modify the text of error message.
27405         (Process_Subtype): Modify the text of error message plus cleanup
27406         of one redundant error message.
27407         (Analyze_Component_Declaration): Code cleanup.
27408         (Analyze_Object_Declaration): Code cleanup.
27409         (Analyze_Subtype_Declaration): Propagate the null-exclusion
27410         attribute in case of access types. Code cleanup.
27411         (Array_Type_Declaration): Code cleanup.
27412         (Process_Discriminants): Create the new null-excluding itype
27413         if required. Code cleanup.
27414         (Process_Subtype): Create the new null-excluding itype if
27415         required. Code cleanup.
27416         (Build_Derived_Record_Type): Code cleanup to avoid calling
27417         twice the subprogram derive_subprograms in case of private
27418         types that implement interfaces. In this particular case the
27419         subprogram Complete_Subprograms_Derivation already does the
27420         job associated with the second call.
27421
27422         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
27423         conversion to the full view when generating an operation for a
27424         discriminant whose type may currently be private.
27425
27426 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27427             Javier Miranda  <miranda@adacore.com>
27428
27429         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
27430         V (Obj.F), the rewriting does not involve the indexed component, but
27431         only the selected component itself.
27432         Do not apply the transformation if the analyzed node is an actual of a
27433         call to another subprogram.
27434         (Complete_Object_Operation): Retain the entity of the
27435         dispatching operation in the selector of the rewritten node. The
27436         entity will be used in the expansion of dispatching selects.
27437         (Analyze_One_Call): Improve location of the error message associated
27438         with interface.
27439         (Analyze_Selected_Component): No need to resolve prefix when it is a
27440         function call, resolution is done when parent node is resolved, as
27441         usual.
27442         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
27443         when attempting to resolve a call transformed from its object notation.
27444         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
27445         of the argument list for each interpretation of the operation.
27446         (Try_Object_Operation): The designated type of an access parameter may
27447         be an incomplete type obtained through a limited_with clause, in which
27448         case the primitive operations of the type are retrieved from its full
27449         view.
27450         (Analyze_Call): If this is an indirect call, and the return type of the
27451         access_to_subprogram is incomplete, use its full view if available.
27452
27453 2005-09-01  Javier Miranda  <miranda@adacore.com>
27454             Gary Dismukes  <dismukes@adacore.com>
27455
27456         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
27457         access types the null-exclusion and access-to-constant attributes must
27458         also match.
27459         (Analyze_Return_Statement): When the result type is an anonymous access
27460         type, apply a conversion of the return expression to the access type
27461         to ensure that appropriate accessibility checks are performed.
27462         (Analyze_Return_Type): For the case of an anonymous access result type,
27463         generate the Itype and set Is_Local_Anonymous_Access on the type.
27464         Add ??? placeholder for check to disallow returning a limited object
27465         in Ada 2005 unless it's an aggregate or a result of a function call.
27466         Change calls from Subtype_Mark to Result_Definition.
27467         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
27468         Result_Definition in call to Make_Function_Specification.
27469         (Build_Body_To_Inline): Change Set_Subtype_Mark to
27470         Set_Result_Definition.
27471         (Make_Inequality_Operator): Change formal Subtype_Mark to
27472         Result_Definition in call to Make_Function_Specification.
27473         (Process_Formals): Create the new null-excluding itype if required.
27474         (New_Overloaded_Entity): For an entity overriding an interface primitive
27475         check if the entity also covers other abstract subprograms in the same
27476         scope. This is required to handle the general case, that is, overriding
27477         other interface primitives and overriding abstract subprograms inherited
27478         from some abstract ancestor type.
27479         (New_Overloaded_Entity): For an overriding entity that comes from
27480         source, note the operation that it overrides.
27481         (Check_Conformance, Type_Conformant): Addition of one new formal
27482         to skip controlling formals in the analysis. This is used to
27483         handle overloading of abstract interfaces.
27484         (Base_Types_Match): Add missing case for types imported from
27485         limited-with clauses
27486         (New_Overloaded_Entity): Add barrier to protect the use of
27487         the "alias" attribute.
27488
27489 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27490
27491         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
27492         verify that the procedure and the entry are mode conformant.
27493         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
27494         as a different operator, which is often a cut-and-paste error.
27495
27496 2005-09-01  Javier Miranda  <miranda@adacore.com>
27497             Ed Schonberg  <schonberg@adacore.com>
27498
27499         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
27500         used in controlling parameters exclude null because it is necessary to
27501         read the tag to dispatch, and null has no tag.
27502         (Override_Dispatching_Operation): If the previous operation is inherited
27503         from an interface, it becomes hidden  and does not participate in later
27504         name resolution.
27505
27506 2005-09-01  Javier Miranda  <miranda@adacore.com>
27507             Ed Schonberg  <schonberg@adacore.com>
27508             Gary Dismukes  <dismukes@adacore.com>
27509
27510         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
27511         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
27512         the expander will generate the corresponding run-time check to evaluate
27513         the expression.
27514         (Resolve_Call): Check for legal type of procedure name or prefix that
27515         appears as a trigger in a triggering alternative.
27516         (Valid_Conversion): If expression is ambiguous and the context involves
27517         an extension of System, remove System.Address interpretations.
27518         (Resolve_Qualified_Expression): Reject the case of a specific-type
27519         qualification applied to a class-wide argument. Enhance comment
27520         to explain checking of Original_Node.
27521         (Resolve_Type_Conversion): The location of the error message was not
27522         general enough to handle the general case and hence it has been removed.
27523         In addition, this patch improves the text of the message.
27524         (Resolve_Type_Conversion): Add missing support for access to interface
27525         types.
27526         (Resolve_Type_Conversion): If the target is a class-wide interface type,
27527         do not expand if the expression is the actual in a call, because proper
27528         expansion will take place when the call itself is expanded.
27529         (Resolve_Allocator): If the context is an unchecked conversion, the
27530         allocator inherits its storage pool, if any, from the target type of
27531         the conversion.
27532
27533 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27534             Javier Miranda  <miranda@adacore.com>
27535
27536         * sem_type.adb (Add_One_Interp): If a candidate operation is an
27537         inherited interface operation that has an implementation, use the
27538         implementation to avoid spurious ambiguities.
27539         (Interface_Present_In_Ancestor): In case of concurrent types we can't
27540         use the Corresponding_Record_Typ attribute to look for the interface
27541         because it is set by the expander (and hence it is not always
27542         available). For this reason we traverse the list of interfaces
27543         (available in the parent of the concurrent type).
27544         (Interface_Present_In_Ancestor): Handle entities from the limited view
27545
27546 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27547
27548         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
27549         from the list of required components.
27550         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
27551         primitive procedure of a limited interface with a controlling first
27552         parameter.
27553         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
27554         of an entry.
27555         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
27556         capture if it is generated in the second operand of a short-circuit
27557         operation.
27558         Do not capture values for variables with address clauses.
27559         (Is_Object_Reference): Treat a function call as an object reference only
27560         if its type is not Standard_Void_Type.
27561
27562 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27563
27564         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
27565         to a variable that is statically known to be constant.
27566
27567 2005-09-01  Geert Bosch  <bosch@adacore.com>
27568             Robert Dewar  <dewar@adacore.com>
27569
27570         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
27571         (VAXGF_Safe_First): Idem.
27572
27573 2005-09-01  Robert Dewar  <dewar@adacore.com>
27574             Arnaud Charlet  <charlet@adacore.com>
27575
27576         * g-dirope.ads: Minor reformatting
27577         Document that bounds of result of Base_Name match the input index
27578         positions.
27579         Add documentation on environment variable syntax for Expand_Path
27580
27581         * gnat_ugn.texi: Update documentation to include mention of -m switches
27582         Document new treatment of wide characters in max line length
27583         style check.
27584         Remove -gnatL/-gnatZ switches, no longer used.
27585         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
27586         of -gnata switch.
27587
27588         * gnat_rm.texi: Add doc for two argument form of pragma
27589         Float_Representation.
27590         Add documentation for pragma No_Strict_Aliasing
27591         Add note that explicit component clause overrides pragma Pack.
27592         Add documentation of pragma Debug_Policy
27593
27594 2005-09-01  Matthew Heaney  <heaney@adacore.com>
27595
27596         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
27597         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
27598         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
27599         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
27600         draft (Draft 13, August 2005) of Ada Amendment 1.
27601
27602 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
27603
27604         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
27605         Note that the platform-specific version of g-soccon.ads for VMS is now
27606         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
27607         really is a package spec).
27608         Replace s-taspri-linux.ads by s-taspri-posix.ads
27609         Remove references to s-mastop-x86.adb
27610
27611         * system-vxworks-xscale.ads: Removed, no longer used.
27612         * s-vxwork-xscale.ads: Removed, no longer used.
27613
27614 2005-09-01  Robert Dewar  <dewar@adacore.com>
27615
27616         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
27617         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
27618         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
27619         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
27620         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
27621         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
27622         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
27623         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
27624         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
27625         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
27626         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
27627         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
27628         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
27629         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
27630         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
27631         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
27632         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
27633         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
27634         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
27635         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
27636         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
27637
27638 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
27639
27640         PR ada/23187
27641         * adaint.c
27642         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
27643
27644 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
27645             Doug Rupp  <rupp@adacore.com>
27646
27647         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
27648         when needed.
27649         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
27650         this code in the GNAT run-time.
27651
27652         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
27653
27654         PR ada/21053
27655         * init.c (__gnat_error_handler [many]): Mark "msg" as const
27656         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
27657
27658         (__gnat_inside_elab_final_code): Moved here from
27659         Standard_Library and only defined for the compiler.
27660         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
27661         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
27662         using RTPs because directly vectored Interrupt routines are not
27663         supported on this configuration.
27664         (getpid): Do not redefine this function on VxWorks when using RTPs
27665         because this primitive is well supported by the RTP libraries.
27666         (copy_msg): Correct the code that checks for buffer overflow.
27667         Discovered during code reading.
27668
27669 2005-08-29  Olivier Hainque  <hainque@adacore.com>
27670
27671         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
27672         a library level mutable variable with an initializer, tell
27673         build_allocator to ignore the initializer's size. It may not be large
27674         enough for all the values that might be assigned to the variable later
27675         on.
27676
27677 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
27678             Eric Botcazou  <ebotcazou@adacore.com>
27679
27680         * trans.c: Protect < in error msg with quote
27681         Replace GCC_ZCX by Back_End_Exceptions.
27682         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
27683         has been sufficiently aligned in the record.
27684
27685 2005-08-15  James E. Wilson  <wilson@specifix.com>
27686
27687         * system-linux-alpha.ads: Change ia64 to alpha.
27688
27689 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
27690
27691         * decl.c, utils.c: Fix comment typos.
27692
27693 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
27694
27695         * decl.c, init.c, initialize.c: Fix comment typos.
27696
27697 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
27698
27699         Make CONSTRUCTOR use VEC to store initializers.
27700         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
27701         CONSTRUCTOR_ELTS.
27702         * trans.c (extract_values): Likewise.
27703         * utils.c (convert, remove_conversions): Likewise.
27704         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
27705         gnat_build_constructor): Likewise.
27706
27707 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
27708
27709         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
27710         DECL_SECTION_NAME.
27711         (compare_field_bitpos): Likewise.
27712
27713 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
27714
27715         * utils.c (create_var_decl): Only set DECL_COMMON on
27716         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
27717         VAR_OR_FUNCTION_DECL_P.
27718
27719 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
27720
27721         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
27722         removed.
27723
27724 2005-07-07  Pascal Obry  <obry@adacore.com>
27725
27726         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
27727         returned type on Windows.
27728
27729         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
27730         routine.
27731
27732         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
27733         exception in this case.
27734         Simplify the code as "Image (Image'Range)" = "Image".
27735
27736 2005-07-07  Vincent Celier  <celier@adacore.com>
27737
27738         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
27739         the destructor/constructor attributes for <lib>final/<lib>init.
27740
27741         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
27742
27743 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
27744
27745         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
27746         type if the parameter is not passed by copy but reference by default.
27747
27748 2005-07-07  Javier Miranda  <miranda@adacore.com>
27749
27750         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
27751         Reimplementation of the support for abstract interface types in order
27752         to leave the code more clear and easy to maintain.
27753
27754         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
27755         abstract interface types in order to leave the code clearer and easier
27756         to maintain.
27757
27758         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
27759         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
27760         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
27761         appropriate entry of the secondary dispatch table.
27762         (Make_DT): Add code to inherit the secondary dispatch tables of
27763         the ancestors.
27764
27765         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
27766         implementing both functionalities by means of a common routine, each
27767         routine has its own code.
27768
27769 2005-07-07  Javier Miranda  <miranda@adacore.com>
27770
27771         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
27772
27773         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
27774         types:
27775         --
27776           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27777         --
27778
27779         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
27780         use of tag incomplete types.
27781
27782         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
27783         give support to tagged incomplete types.
27784
27785         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
27786         expression is a discriminant reference and its type is private, as can
27787         happen within a stream operation for a mutable record, use the full
27788         view of the type to resolve the case alternatives.
27789         (Analyze_Assignment): Check wrong dereference of incomplete types.
27790
27791         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
27792         types.
27793
27794         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
27795         incomplete types.
27796
27797         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
27798         N_Incomplete_Type_Declaration nodes.
27799
27800         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
27801         Tag_Present to give support to tagged incomplete types:
27802         --
27803           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27804         --
27805
27806 2005-07-07  Olivier Hainque  <hainque@adacore.com>
27807
27808         PR ada/22301
27809         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
27810         definitions for the Unwind wrappers in the compiler case.
27811
27812 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
27813             Javier Miranda  <miranda@adacore.com>
27814
27815         * par-load.adb (Load): If a child unit is loaded through a limited_with
27816         clause, each parent must be loaded as a limited unit as well.
27817
27818         * sem_ch10.adb (Previous_Withed_Unit): Better name for
27819         Check_Withed_Unit. Return true if there is a previous with_clause for
27820         this unit, whether limited or not.
27821         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
27822         the current unit.
27823         (Is_Visible_Through_Renamings): New local subprogram of install_limited
27824         _withed_unit that checks if some package installed through normal with
27825         clauses has a renaming declaration of package whose limited-view is
27826         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
27827         of the current Draft document for Ada 2005.
27828         (Analyze_Context): Complete the list of compilation units that
27829         are allowed to contain limited-with clauses. It also contains
27830         checks that were previously done by Install_Limited_Context_Clauses.
27831         This makes the code more clear and easy to maintain.
27832         (Expand_Limited_With_Clause) It is now a local subprogram of
27833         Install_Limited_Context_Clauses, and contains the code that adds
27834         the implicit limited-with clauses for parents of child units.
27835         This functionality was prevously done by Analyze_Context.
27836
27837         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
27838         incomplete type.
27839
27840         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
27841         been erroneously named in a limited-with clause of its own context.
27842         In this case the error has been previously notified by Analyze_Context.
27843
27844 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
27845
27846         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
27847         generic package that contains local declarations with the same name.
27848         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
27849
27850 2005-07-07  Bernard Banner  <banner@adacore.com>
27851
27852         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
27853         ia64 platform only on platforms that you the GCC unwind library
27854         rather than the system unwind library.
27855
27856 2005-07-07  Thomas Quinot  <quinot@adacore.com>
27857
27858         * expect.c: Minor reformatting
27859
27860 2005-07-07  Sergey Rybin  <rybin@adacore.com>
27861
27862         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
27863         --no-separate-is
27864
27865         * gnat_ugn.texi: Add description for new gnatpp option
27866         (--no-separate-is)
27867
27868 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27869
27870         * g-expect-vms.adb, g-expect.ads, g-expect.adb
27871         (Get_Command_Output): New subprogram to launch a process and get its
27872         standard output as a string.
27873
27874 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
27875             Olivier Hainque  <hainque@adacore.com>
27876
27877         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
27878         fetch a code-range descriptor associated with the machine state. On
27879         failure set the machine state's PC to 0; on success, pass the
27880         descriptor to exc_virtual_unwind.
27881
27882         * init.c (Tru64 section): New function __gnat_set_code_loc.
27883
27884 2005-07-04  Vincent Celier  <celier@adacore.com>
27885
27886         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27887         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27888         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
27889         Remove all auto-initialization code, as this is now done through the
27890         constructor mechanism.
27891
27892         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
27893         __gnat_sals_init_using_constructors): New functions.
27894
27895         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
27896         Linker_Constructor and Linker_Destructor when switch -a is used.
27897
27898         * bindusg.adb: Add line for new switch -a
27899
27900         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
27901         (Gnatbind): When switch -a is used, check if it is allowed
27902
27903         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
27904
27905 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
27906
27907         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
27908         This prevents us from hitting a limitation during the debug info
27909         generation when using stabs.
27910         (Prims_Ptr): Likewise.
27911
27912 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
27913             Ed Schonberg  <schonberg@adacore.com>
27914             Javier Miranda  <miranda@adacore.com>
27915
27916         * checks.adb (Null_Exclusion_Static_Checks): In the case of
27917         N_Object_Declaration, only perform the checks if the Object_Definition
27918         is not an Access_Definition.
27919
27920         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
27921         where the parent of an the access definition is an N_Object_Declaration
27922         when determining the Associated_Node_For_Itype and scope of an
27923         anonymous access-to-subprogram type.
27924
27925         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
27926         Corresponding_Spec on the body created for a null procedure. Add ???
27927         comment. Remove New_Copy_Tree call on body argument to
27928         Set_Body_To_Inline.
27929
27930         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
27931         discriminants, use the type of the actual as well, because the
27932         discriminants may be read by the called subprogram.
27933
27934         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
27935         access type we do not need to handle non-limited views.
27936         (Build_Derived_Record_Type): Additional check to check that in case of
27937         private types, interfaces are only allowed in private extensions.
27938
27939 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
27940
27941         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
27942         <Pragma_Linker_Destructor>: Likewise.
27943
27944         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
27945         Pragma_Linker_Destructor.
27946
27947         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
27948         ATTR_LINK_DESTRUCTOR.
27949         (static_ctors, static_dtors): New variables.
27950
27951         * misc.c (gnat_expand_body): Output current function as constructor
27952         and destructor if requested.
27953
27954         * par-prag.adb: Add processing for pragma Linker_Constructor and
27955         Linker_Destructor.
27956
27957         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
27958         extracted from Check_Interrupt_Or_Attach_Handler.
27959         (Check_Interrupt_Or_Attach_Handler): Invoke it.
27960         Implement pragma Linker_Constructor and Linker_Destructor with the
27961         help of Find_Unique_Parameterless_Procedure.
27962         Replace Name_Alias with Name_Target for pragma Linker_Alias.
27963
27964         * snames.h, snames.ads, snames.adb:
27965         Add Name_Linker_Constructor and Name_Linker_Destructor.
27966         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
27967         * snames.adb: Remove Name_Alias.
27968
27969         * trans.c: Include cgraph.h.
27970         (build_global_cdtor): New function.
27971         (Compilation_Unit_to_gnu): Build global constructor and destructor if
27972         needed.
27973         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
27974         of objects too.
27975         (addressable_p) <COMPONENT_REF>: Unconditionally test
27976         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
27977
27978         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
27979         variable if it is external.
27980
27981         (static_ctors, static_dtors): New global variables.
27982         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
27983         <ATTR_LINK_DESTRUCTOR>: Likewise.
27984         (end_subprog_body): Chain function as constructor and destructor
27985         if requested.
27986
27987         * exp_util.adb (Force_Evaluation): Unconditionally invoke
27988         Remove_Side_Effects with Variable_Ref set to true.
27989         (Remove_Side_Effects): Handle scalar types first. Use a renaming
27990         for non-scalar types even if Variable_Ref is true and for class-wide
27991         expressions.
27992
27993 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27994
27995         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
27996         to prevent spurious warnings.
27997
27998 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27999
28000         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
28001         Itypes. Itypes are really unexpected there.
28002         (Build_TypeCode_Function): Generalise special processing for Itypes to
28003         handle the case of numeric implicit base types as well as enumerated
28004         ones.
28005
28006 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
28007
28008         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
28009         controlled, indicate the expected type of the dereference that is
28010         created for the call to Deep_Finalize, to prevent spurious errors when
28011         the designated type is private and completed with a derivation from
28012         another private type.
28013
28014 2005-07-04  Vincent Celier  <celier@adacore.com>
28015
28016         * make.adb (Change_To_Object_Directory): When unable to change the
28017         current dir to the object directory, output the full path of the
28018         directory.
28019
28020 2005-07-04  Matthew Gingell  <gingell@adacore.com>
28021
28022         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
28023
28024         * indepsw-linux.adb: Replace by...
28025
28026         * indepsw-gnu.adb: ...this new file
28027
28028 2005-07-04  Vincent Celier  <celier@adacore.com>
28029
28030         * mlib-prj.adb (Auto_Initialize): New constant String
28031         (SALs_Use_Constructors): New Boolean function
28032         (Build_Library): Call gnatbind with Auto_Initialize switch when
28033         SALs_Use_Constructors returns True.
28034
28035         * mlib-tgt.ads: Minor reformatting
28036
28037         * mlib-utl.ads: Minor reformatting
28038
28039         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
28040
28041 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
28042
28043         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
28044         single protected declarations can have an interface list.
28045         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
28046         with seriously malformed entry declarations, and lead to compilation
28047         abandoned messages.
28048
28049 2005-07-04  Javier Miranda  <miranda@adacore.com>
28050
28051         * par-load.adb: Load the context items in two rounds.
28052
28053 2005-07-04  Robert Dewar  <dewar@adacore.com>
28054
28055         * scng.adb: Do not consider Mod used as an attribute to be a keyword
28056
28057 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
28058             Javier Miranda  <miranda@adacore.com>
28059
28060         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
28061         type extension needs a limited view.
28062         Remove previous restriction on private types available through the
28063         limited-view (only tagged private types were previously allowed).
28064         (Install_Withed_Unit): In the code that implements the
28065         legality rule given in AI-377, exclude a child unit with the name
28066         Standard, because it is a homonym of the Standard environment package.
28067
28068 2005-07-04  Thomas Quinot  <quinot@adacore.com>
28069
28070         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
28071         overloaded function call, carry interpretations from the original tree
28072         to the copy.
28073
28074 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
28075
28076         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
28077         types check whether some designated type is a limited view, and use
28078         the non-limited view if available.
28079
28080 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
28081
28082         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
28083         constraint of full view of a private view T1 if present, when T2 is a
28084         discriminated full view.
28085
28086 2005-07-04  Thomas Quinot  <quinot@adacore.com>
28087
28088         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
28089         actual that is a view conversion of a bit packed array reference.
28090
28091 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
28092
28093         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
28094         present before checking whether an interface type covers a synchronized
28095         type.
28096
28097 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
28098
28099         * sem_util.adb (Is_Object_Reference): An indexed or selected component
28100         whose prefix is an implicit dereference is an object reference. Removes
28101         spurious errors when compiling with -gnatc.
28102
28103 2005-07-04  Robert Dewar  <dewar@adacore.com>
28104
28105         PR ada/22039
28106         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
28107
28108 2005-07-04  Matthew Gingell  <gingell@adacore.com>
28109
28110         * tracebak.c: Enable tracebacks on ia64 platforms
28111
28112 2005-07-04  Vincent Celier  <celier@adacore.com>
28113
28114         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
28115         the GNAT BIND command, as gnatbind accepts multiples ALI files with
28116         the -L or -n switches.
28117
28118 2005-07-04  Vincent Celier  <celier@adacore.com>
28119
28120         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
28121         correctly computed and the main project data is not modified while
28122         doing so.
28123         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
28124         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
28125         c++linker as this does not work on some platforms.
28126
28127 2005-07-04  Matthew Heaney  <heaney@adacore.com>
28128
28129         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
28130         was changed.
28131         * a-coinve.adb: Perform constraint checks explicitly.
28132
28133 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28134             Thomas Quinot  <quinot@adacore.com>
28135
28136         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
28137         new target gen-soccon.
28138
28139 2005-07-04  Robert Dewar  <dewar@adacore.com>
28140
28141         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
28142
28143 2005-07-04  Thomas Quinot  <quinot@adacore.com>
28144
28145         * g-socket.ads (Check_Selector): Minor rewording of comment.
28146
28147 2005-07-04  Vincent Celier  <celier@adacore.com>
28148
28149         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
28150
28151 2005-07-04  Thomas Quinot  <quinot@adacore.com>
28152
28153         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
28154
28155 2005-07-04  Sergey Rybin  <rybin@adacore.com>
28156
28157         * gnat_ugn.texi: Add description of --eol gnatpp option
28158
28159 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
28160             Thomas Quinot  <quinot@adacore.com>
28161
28162         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
28163         if the user wants all calls of a subprogram to be flagged,
28164         independently of whether they are made from within the same unit or
28165         another unit.
28166         Mention restriction for pragma Linker_Alias on some platforms.
28167         Document pragma Linker_Constructor and Linker_Destructor.
28168         Rewrite documentation of Weak_External, Linker_Section and
28169         Linker_Alias pragmas.
28170
28171 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
28172
28173         * s-stausa.ads, s-stausa.adb: New files.
28174
28175 2005-06-30  Kelley Cook
28176
28177         * all files:  Update FSF address in copyright headers.
28178         * gen-soccon.co (main): Output new FSF address in generated files.
28179
28180 2005-06-28  Paul Brook  <paul@codesourcery.com>
28181
28182         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
28183
28184 2005-06-14  Olivier Hainque  <hainque@adacore.com>
28185             Eric Botcazou  <ebotcazou@adacore.com>
28186
28187         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
28188         exc_unwind, now that we are generating proper .debug_frame output for
28189         that target.
28190
28191         * tracebak.c: Remove the mips-irix section, as we are now using the
28192         s-mastop based unwinder again.
28193         Under SPARC/Solaris, take into account the stack bias to compute the
28194         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
28195         ABI.
28196
28197 2005-06-14  Doug Rupp  <rupp@adacore.com>
28198
28199         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
28200
28201         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
28202
28203 2005-06-14  Pascal Obry  <obry@adacore.com>
28204
28205         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
28206         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
28207         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
28208         package name).
28209
28210         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
28211         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
28212         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
28213         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
28214         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
28215         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
28216         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
28217         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
28218         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
28219         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
28220         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
28221         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
28222         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
28223         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
28224         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
28225         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
28226         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
28227         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
28228         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
28229         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
28230         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
28231         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
28232         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
28233         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
28234         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
28235         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
28236         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
28237         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
28238         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
28239         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
28240         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
28241         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
28242         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
28243         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
28244         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
28245         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
28246         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
28247         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
28248         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
28249         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
28250         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
28251         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
28252         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
28253         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
28254         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
28255         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
28256         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
28257         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
28258         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
28259         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
28260         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
28261         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
28262         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
28263         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28264         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
28265         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
28266         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
28267         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
28268         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
28269         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
28270         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
28271         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
28272         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
28273         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
28274         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
28275         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
28276         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
28277         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
28278         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
28279         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
28280         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
28281         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
28282         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
28283         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
28284         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
28285         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
28286         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
28287         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
28288         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
28289         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
28290         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
28291         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
28292         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
28293         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
28294         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
28295         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
28296         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
28297         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
28298         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
28299         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
28300         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
28301         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
28302         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
28303         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
28304         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
28305         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
28306         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
28307         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
28308         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
28309         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
28310         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
28311         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
28312         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
28313         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
28314         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
28315         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
28316         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
28317         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
28318         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
28319         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
28320         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
28321         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
28322         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28323         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
28324         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
28325         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
28326         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
28327         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
28328         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
28329         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
28330         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
28331         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
28332         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
28333         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
28334         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
28335         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
28336         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
28337         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
28338         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
28339         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
28340         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
28341         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
28342         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
28343
28344 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
28345             Arnaud Charlet  <charlet@adacore.com>
28346
28347         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
28348         longer protected objects. They have been replaced by lower-level
28349         suspension objects made up by a mutex and a condition variable (or
28350         their equivalent given a particular OS) plus some internal data to
28351         reflect the state of the suspension object.
28352         (Initialize, Finalize): Add this initialization procedure for
28353         Suspension_Object, which is a controlled type.
28354         (Finalize): Add the finalization procedure for Suspension_Object,
28355         which is a controlled type.
28356
28357         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
28358         Ada.Synchronous_Task_Control because there is no longer a need for a
28359         VxWorks specific version of this package. Target dependencies
28360         has been moved to System.Task_Primitives.Operations.
28361
28362         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
28363         longer needed.
28364         (InitializeCriticalSection, EnterCriticalSection,
28365         LeaveCriticalSection, DeleteCriticalSection): Replace the type
28366         pCriticalSection by an anonymous access type so that we avoid problems
28367         of accessibility to local objects.
28368
28369         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
28370         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
28371         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
28372         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
28373         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
28374         set the environment task mask here.
28375         (Current_State): Add this function that returns the state of the
28376         suspension object.
28377         (Set_False): Add this procedure that sets the state of the suspension
28378         object to False.
28379         (Set_True): Add this procedure that sets the state of the suspension
28380         object to True, releasing the task that was suspended, if any.
28381         (Suspend_Until_True): Add this procedure that blocks the calling task
28382         until the state of the object is True. Program_Error is raised if
28383         another task is already waiting on that suspension object.
28384         (Initialize): Add this procedure for initializing the suspension
28385         object. It initializes the mutex and the condition variable which are
28386         used for synchronization and queuing, and it sets the internal state
28387         to False.
28388         (Finalize): Add this procedure for finalizing the suspension object,
28389         destroying the mutex and the condition variable.
28390
28391         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
28392         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
28393         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
28394         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
28395         which provides a low-level abstraction (using operating system
28396         primitives) for Ada.Synchronous_Task_Control.
28397         This object is made up by a mutex (for ensuring mutual exclusion), a
28398         condition variable (for queuing threads until the condition is
28399         signaled), a Boolean (State) indicating whether the object is open,
28400         and a Boolean (Waiting) reflecting whether there is a task already
28401         suspended on this object.
28402
28403         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
28404         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
28405         s-intman-vms.ads, s-intman-mingw.adb,
28406         (Initialize_Interrupts): Removed, no longer used.
28407
28408         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
28409         (Setup_Interrupt_Mask): New procedure.
28410
28411         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
28412
28413         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
28414
28415         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
28416         this is no longer done in the body of s-taprop
28417         (Server_Task): Explicitely test for Pending_Action in case
28418         System.Parameters.No_Abort is True.
28419
28420         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
28421         is no longer done in the body of s-taprop
28422
28423 2005-06-14  Robert Dewar  <dewar@adacore.com>
28424
28425         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28426         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28427         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28428         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28429         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28430         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
28431         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
28432         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28433         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
28434         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
28435         system-linux-hppa.ads, system-vms_64.ads,
28436         system-vxworks-alpha.ads: Minor comment update for
28437         AI-362 (unit is Pure).
28438
28439         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
28440         Add pragma Pure_05 for AI-362
28441         Make remaining conversion functions obsolescent in Ada 95
28442
28443         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28444         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
28445         Add entries for a-wichun and a-zchuni
28446         Add a-widcha a-zchara for AI-395
28447         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
28448
28449         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28450         Add entries for a-wichun.o and a-zchuni.o
28451         Entries for a-widcha.o and a-zchara.o
28452         Add entry for a-chacon.o
28453
28454         * a-ztenau.adb: Add with of Ada.Characters.Conversions
28455
28456         * a-chacon.ads, a-chacon.adb: New files.
28457
28458         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
28459         categorization violations.
28460
28461         * a-strmap.ads: Add pragma Pure_05 for AI-362
28462         * a-strmap.ads: Add note on implicit categorization for AI-362
28463
28464         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
28465
28466         * par-prag.adb: Dummy entry for pragma Persistent_BSS
28467         Set Ada_Version_Explicit, for implementation of AI-362
28468         Add processing for pragma Pure_05 and Preelaborate_05
28469         Add entry for Assertion_Policy pragma
28470
28471         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
28472         when needed for proper processing of categorization stuff
28473
28474         * sem_cat.adb:
28475         For several cases, make errors in preealborate units warnings,
28476         instead of errors, if GNAT_Mode is set. For AI-362.
28477
28478         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
28479         preelaborate unit is now warning if in GNAT mode
28480
28481         * s-stoele.ads: Document AI-362 for pragma preelaborate
28482
28483 2005-06-14  Doug Rupp  <rupp@adacore.com>
28484
28485         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
28486         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
28487         Default_Exception_Msg_Max_Length: new parameter.
28488
28489         * a-except.ads: (Exception_Msg_Max_Length): Set to
28490         System.Parameters.Default_Exception_Msg_Max_Length
28491         Add pragma Preelaborate_05 for AI-362
28492         Add warnings off to allow categorization violations for AI-362
28493
28494 2005-06-14  Vincent Celier  <celier@adacore.com>
28495
28496         * gnatsym.adb: Adapt to modification of package Symbols: procedure
28497         Process is now in package Processing.
28498
28499         * symbols.ads, symbols.adb:
28500         (Processing): New package, containing procedure Process
28501
28502         * symbols-vms-alpha.adb:
28503         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
28504
28505         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
28506         symbols-processing-vms-ia64.adb: New files.
28507
28508 2005-06-14  Pascal Obry  <obry@adacore.com>
28509
28510         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
28511         implementation. This new version generates the proper DllMain routine
28512         to initialize the SAL. The DllMain is generated in Ada and compiled
28513         before being added as option to the library build command.
28514
28515 2005-06-14  Doug Rupp  <rupp@adacore.com>
28516             Pascal Obry  <obry@adacore.com>
28517
28518         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
28519         call to decc$translate_vms.
28520         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
28521         need to remove those quotes before catenating the filename.
28522         (__gnat_locate_exec_on_path): improvements to the Win32 section:
28523         * avoid allocating the memory twice for better efficiency;
28524         * allocate 32K buffer for environment expansion as suggested by MSDN;
28525         * prepend ".;" to the path so that current directory is searched too.
28526
28527 2005-06-14  Robert Dewar  <dewar@adacore.com>
28528
28529         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
28530         instead of raising CE (AI-241)
28531         Add warnings off to allow categorization violations for AI-362
28532
28533 2005-06-14  Robert Dewar  <dewar@adacore.com>
28534
28535         * ali-util.adb, gnatbind.adb: Remove references to
28536         Force_RM_Elaboration_Order.
28537
28538         * switch-b.adb: Remove recognition of -f switch
28539
28540 2005-06-14  Pascal Obry  <obry@adacore.com>
28541
28542         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
28543         implementation which is slightly more efficient.
28544
28545 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
28546             Javier Miranda  <miranda@adacore.com>
28547             Ed Schonberg  <schonberg@adacore.com>
28548             Hristian Kirtchev  <kirtchev@adacore.com>
28549
28550         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
28551         allocator's designated type is a class-wide type, and compiling for
28552         Ada 2005, emit a run-time check that the accessibility level of the
28553         type given in the allocator's expression is not deeper than the level
28554         of the allocator's access type.
28555
28556         (Tagged_Membership): Modified to gives support to abstract interface
28557         types.
28558
28559         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
28560         Access_Level.
28561         (Descendant_Tag): New predefined function
28562         (Is_Descendant_At_Same_Level): New predefined function
28563         (Get_Access_Level): New private function
28564         (Set_Access_Level): New private procedure
28565         (IW_Membership): New function. Given the tag of an object and the tag
28566         associated with an interface, evaluate if the object implements the
28567         interface.
28568         (Register_Interface_Tag): New procedure used to initialize the table of
28569         interfaces used by the IW_Membership function.
28570         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
28571         of the dispatch table.
28572         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
28573         table of interfaces of the parent.
28574         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
28575         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
28576         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
28577         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
28578         Ada 2005 semantics for the new predefined function.
28579
28580         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
28581         call to Descendant_Tag rather than Internal_Tag.
28582         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
28583         the accessibility level of the attribute's Item parameter is not deeper
28584         than the level of the attribute's prefix type. Tag_Error is raised if
28585         the check fails. The check is only emitted for Ada_05.
28586         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
28587         requested stream attribute, use it.
28588         (Expand_N_Attribute_Reference): If the designated type is an interface
28589         then rewrite the referenced object as a conversion to force the
28590         displacement of the pointer to the secondary dispatch table.
28591         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
28592         is a dereference of an object with a constrained partial view.
28593
28594         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
28595         type is a class-wide type, emit a run-time check that the accessibility
28596         level of the returned object is not deeper than the level of the
28597         function's master (only when compiling for Ada 2005).
28598
28599         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
28600         Action_Nb_Arg): Add entries for new Get_Access_Level and
28601         Set_Access_Level routines in these tables.
28602         (Make_DT): Generate a call to set the accessibility level of the
28603         tagged type in its TSD.
28604         (Make_DT): Code cleanup. The functionality of generating all the
28605         secondary dispatch tables has been moved to freeze_record_type.
28606         (Make_Abstract_Interface_DT): Minor code cleanup.
28607         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
28608         this subprogram implements a new algorithm that provides the
28609         same functionality and it is more clear in case of primitives
28610         associated with abstract interfaces.
28611         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
28612         clean up, the functionality of this subprogram is now provided
28613         by Set_All_DT_Position.
28614         (Write_DT): New subprogram: a debugging procedure designed to be called
28615         within gdb to display the dispatch tables associated with a tagged
28616         type.
28617         (Collect_All_Interfaces): New subprogram that collects the whole list
28618         of interfaces that are directly or indirectly implemented by a tagged
28619         type.
28620         (Default_Prim_Op_Position): New subprogram that returns the fixed
28621         position in the dispatch table of the default primitive operations.
28622         (Expand_Interface_Actuals): New subprogram to generate code that
28623         displaces all the actuals corresponding to class-wide interfaces to
28624         reference the interface tag of the actual object.
28625         (Expand_Interface_Conversion): New subprogram. Reference the base of
28626         the object to give access to the interface tag associated with the
28627         secondary dispatch table.
28628         (Expand_Interface_Thunk): New subprogram that generates the code of the
28629         thunk. This is required for compatibility with the C+ ABI.
28630         (Make_Abstract_Interface_DT): New subprogram that generate the
28631         declarations for the secondary dispatch tables associated with an
28632         abstract interface.
28633         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
28634         attribute for each primitive operation covering interface subprograms
28635         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
28636         These subprograms were upgraded to give support to abstract interfaces
28637
28638         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
28639         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
28640         RE_Set_Access_Level.
28641         (RE_Unit_Table): Add entries for new Ada.Tags operations.
28642         Add support to call the followig new run-time subprograms:
28643         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
28644
28645         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
28646         match its full declaration when both have an access definition with
28647         statically matching designated subtypes.
28648         (Analyze_Component_Declaration): Delete commented out code that was
28649         incorrectly setting the scope of an anonymous access component's type.
28650         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
28651         an access discriminant when the containing type is nonlimited.
28652         (Make_Incomplete_Type_Declaration): Create an incomplete type
28653         declaration for a record type that includes self-referential access
28654         components.
28655         (Check_Anonymous_Access_Types): Before full analysis of a record type
28656         declaration, create anonymous access types for each self-referential
28657         access component.
28658         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
28659         an access component in this context is a Local_Anonymous_Access, for
28660         proper accessibility checks.
28661         (Access_Definition): Set properly the scope of the anonymous access type
28662         created for a stand-alone access object.
28663         (Find_Type_Of_Object): An object declaration may be given with an access
28664         definition.
28665         (Complete_Subprograms_Derivation): New subprogram used to complete
28666         type derivation of private tagged types implementing interfaces.
28667         In this case some interface primitives may have been overriden
28668         with the partial-view and, instead of re-calculating them, they
28669         are included in the list of primitive operations of the full-view.
28670         (Build_Derived_Record_Type): Modified to give support to private
28671         types implemening interfaces.
28672         (Access_Definition): Reject ALL on anonymous access types.
28673         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
28674         type derivation to occur at a deeper accessibility level than the
28675         parent type.
28676         For the case of derivation within a generic body however, disallow the
28677         derivation if the derived type has an ancestor that is a formal type
28678         declared in the formal part of an enclosing generic.
28679         (Analyze_Object_Declaration): For protected objects, remove the check
28680         that they cannot contain interrupt handlers if not declared at library
28681         level.
28682         (Add_Interface_Tag_Components): New subprogram to add the tag components
28683         corresponding to all the abstract interface types implemented by a
28684         record type or a derived record type.
28685         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28686         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28687         Process_Full_View, Record_Type_Declaration): Modified to give
28688         support to abstract interface types
28689         (Collect_Interfaces): New subprogram that collects the list of
28690         interfaces that are not already implemented by the ancestors
28691         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
28692         when partial view has no discriminants and full view has defaults.
28693         (Constrain_Access): Reject a constraint on a general access type
28694         if the discriminants of the designated type have defaults.
28695         (Access_Subprogram_Declaration): Associate the Itype node with the inner
28696         full-type declaration or subprogram spec. This is required to handle
28697         nested anonymous declarations.
28698         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28699         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28700         Process_Full_View, Record_Type_Declaration): Modified to give
28701         support to abstract interface types
28702         (Derive_Subprograms): Addition of a new formal to indicate if
28703         we are in the case of an abstact-interface derivation
28704         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
28705         to the specification because it is requied to analyze all the
28706         identifiers found in a list of interfaces
28707
28708         * debug.adb: Complete documentation of flag "-gnatdZ"
28709
28710         * exp_ch3.adb: Implement config version of persistent_bss pragma
28711         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
28712         testing for TSS presence to properly enforce visibility rules.
28713         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
28714         Make_Abstract_Interfaces_DT to generate the secondary tables
28715         associated with abstract interfaces.
28716         (Build_Init_Procedure): Modified to initialize all the tags
28717         corresponding.
28718         (Component_Needs_Simple_Initialization): Similar to other tags,
28719         interface tags do not need initialization.
28720         (Freeze_Record_Type): Modified to give support to abstract interface
28721         types.
28722         (Expand_N_Object_Declaration): Do not generate an initialization for
28723         a scalar temporary marked as internal.
28724
28725         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
28726         in-out parameter that is a component in an initialization procedure,
28727         whose constraint might depend on discriminants, and that may be
28728         misaligned because of packing or representation clauses.
28729         (Is_Legal_Copy): New predicate to determine whether a possibly
28730         misaligned in-out actual can actually be passed by copy/return. This
28731         is an error in case the type is by_reference, and a warning if this is
28732         the consequence of a DEC import pragma on the subprogram.
28733         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
28734         interface types
28735         (Expand_Inlined_Call): Mark temporary generated for the return value as
28736         internal, so that no useless scalar normalization is generated for it.
28737         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
28738         null procedure can always be inlined.
28739         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
28740         procedure, generate an explicit empty body for it.
28741
28742         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
28743         Given a type implementing an interface, returns the corresponding
28744         access_disp_table value.
28745         (Find_Interface_Tag): New subprogram. Given a type implementing an
28746         interface, returns the record component containing the tag of the
28747         interface.
28748         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
28749         previous ones that return the corresponding tag and access_disp_table
28750         entities.
28751         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
28752         is a predefined primitive operation.
28753         (Expand_Subtype_From_Expr): If the expression is a selected component
28754         within an initialization procedure, compute its actual subtype, because
28755         the component may depend on the discriminants of the enclosing record.
28756
28757         * i-cpp.ads, i-cpp.adb:
28758         This package has been left available for compatibility with previous
28759         versions of the frontend. As part of the new layout this is now a
28760         dummy package that uses declarations available at a-tags.ads
28761
28762         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
28763         "constant access" and "aliased [constant] access" when not compiling
28764         with -gnat05.
28765         Suppress Ada 2005 keyword warning if -gnatwY used
28766         (P_Identifier_Declarations): Add support for object declarations with
28767         access definitions.
28768         (Private_Extension_Declaration): Complete the documentation
28769         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
28770         attribute in case of private extension declaration
28771         (P_Type_Declaration): Mark as "abstract" the type declarations
28772         corresponding with protected, synchronized and task interfaces
28773         (P_Declarative_Items): "not" and "overriding" are overriding indicators
28774         for a subprogram or instance declaration.
28775
28776         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
28777         instantiation that is a dispatching operation has controlling access
28778         parameters that are null excluding.
28779         Save and restore Ada_Version_Explicit, for implementation of AI-362
28780         (Validate_Derived_Type_Instance): Add check for abstract interface
28781         types.
28782         (Analyze_Formal_Package): Establish Instantiation source for the copy of
28783         the generic that is created to represent the formal package.
28784         (Analyze_Package_Instantiation): Instantiate body immediately if the
28785         package is a predefined unit that contains inlined subprograms, and
28786         we are compiling for a Configurable_Run_Time.
28787         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
28788         If the program has a null default, generate an empty body for it.
28789
28790         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
28791         error message condition, null procedures are correctly detected now.
28792         (New_Overloaded_Entity): Bypass trivial overriding indicator check
28793         for subprograms in the context of protected types. Instead, the
28794         indicator is examined in Sem_Ch9 while analysing the subprogram
28795         declaration.
28796         (Check_Overriding_Indicator): Check consistency of overriding indicator
28797         on subprogram stubs as well.
28798         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
28799         the library level.
28800         (Analize_Subprogram_Specification): When analyzing a subprogram in which
28801         the type of the first formal is a concurrent type, replace this type
28802         by the corresponding record type.
28803         (Analyze_Subprogram_Body): Undo the previous work.
28804         (Analyze_Procedure_Call): If the call has the form Object.Op, the
28805         analysis of the prefix ends up analyzing the call itself, after which
28806         we are done.
28807         (Has_Interface_Formals): New subprogram subsidiary to analyze
28808         subprogram_specification that returns true if some non
28809         class-wide interface subprogram is found
28810         (New_Overloaded_Entity): Modified to give support to abstract
28811         interface types
28812         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
28813         access to subprograms must be recursive.
28814         (Is_Unchecked_Conversion): Improve the test that recognizes
28815         instantiations of Unchecked_Conversion, and allows them in bodies that
28816         are to be inlined by the front-end. When the body comes from an
28817         instantiation, a reference to Unchecked_Conversion will be an
28818         Expanded_Name, even though the body has not been analyzed yet.
28819         Replace Is_Overriding and Not_Overriding in subprogram_indication with
28820         Must_Override and Must_Not_Override, to better express intent of AI.
28821         (Analyze_Subprogram_Body): If an overriding indicator is given, check
28822         that it is consistent with the overrinding status of the subprogram
28823         at this point.
28824         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
28825         always inlined.
28826         If the subprogram is a null procedure, indicate that it does not need
28827         a completion.
28828
28829         * sem_disp.adb (Check_Controlling_Type): Give support to entities
28830         available through limited-with clauses.
28831         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
28832         allowed as the last primitive of a tagged type if it has no previous
28833         spec.
28834         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
28835         to give support to abstract interface types
28836
28837         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
28838         in the case where the target type is an anonymous access type of an
28839         object or component (that is, when Is_Local_Anonymous_Access is true).
28840         Prevent the special checks for conversions of access discriminants in
28841         the case where the discriminant belongs to a nonlimited type, since
28842         such discriminants have their accessibility level defined in the same
28843         way as a normal component of an anonymous access type.
28844         (Resolve_Allocator): When an allocator's designated type is a class-wide
28845         type, check that the accessibility level of type given in the
28846         allocator's expression or subtype indication is not statically deeper
28847         than the level of the allocator's access type.
28848         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
28849         name in a discriminant constraint of a record component.
28850         (Resolve_Explicit_Dereference): Do not check whether the type is
28851         incomplete when the dereference is a use of an access discriminant in
28852         an initialization procedure.
28853         (Resolve_Type_Conversion): Handle conversions to abstract interface
28854         types.
28855         (Valid_Tagged_Conversion): The conversion of a tagged type to an
28856         abstract interface type is always valid.
28857         (Valid_Conversion): Modified to give support to abstract interface types
28858         (Resolve_Actuals): Enable full error reporting on view conversions
28859         between unrelated by_reference array types.
28860         The rule for view conversions of arrays with aliased components is
28861         weakened in Ada 2005.
28862         Call to obsolescent subprogram is now considered to be a violation of
28863         pragma Restrictions (No_Obsolescent_Features).
28864         (Check_Direct_Boolean_Operator): If the boolean operation has been
28865         constant-folded, there is nothing to check.
28866         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
28867         check on possible violation of restriction No_Direct_Boolean_Operators
28868         until after expansion of operands, to prevent spurious errors when
28869         operation is constant-folded.
28870
28871         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
28872         Has_Compatible_Type): Modified to give support to abstract interface
28873         types.
28874         (Interface_Present_In_Ancestor): New function to theck if some ancestor
28875         of a given type implements a given interface
28876
28877         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
28878         prefix is a parameterless function that returns an access_to_procedure.
28879         (Transform_Object_Operation): Handle properly function calls of the
28880         form Obj.Op (X), which prior to analysis appear as indexed components.
28881         (Analyze_One_Call): Complete the error notification to help new Ada
28882         2005 users.
28883         (Analyze_Allocator): For an allocator without an initial value, where
28884         the designated type has a constrained partial view, a discriminant
28885         constraint is illegal.
28886
28887 2005-06-14  Robert Dewar  <dewar@adacore.com>
28888
28889         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
28890         do with treatment of Set_Col when positioned at end of line character.
28891
28892 2005-06-14  Robert Dewar  <dewar@adacore.com>
28893
28894         * atree.adb: (Elist*): Protect against uninitialized field
28895
28896 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28897
28898         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
28899         for an attribute reference that returns an access type.
28900         (Apply_Discriminant_Check): No need for check if (designated) type has
28901         constrained partial view.
28902
28903         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
28904         both bound checks, rather than a conjunction.
28905         (Insert_Valid_Check): If the expression is an actual that is an indexed
28906         component of a bit-packed array, force expansion of the packed element
28907         reference, because it is specifically inhibited elsewhere.
28908
28909 2005-06-14  Vincent Celier  <celier@adacore.com>
28910
28911         * clean.adb (Clean_Project): Correctly delete executable specified as
28912         absolute path names.
28913
28914         * make.adb (Gnatmake): Allow relative executable path names with
28915         directory information even when project files are used.
28916         (Change_To_Object_Directory): Fail gracefully when unable to change
28917         current working directory to object directory of a project.
28918         (Gnatmake): Remove exception handler that could no longer be exercized
28919         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
28920         may be deallocated by Normalize_Arguments.
28921         (Collect_Arguments): Eliminate empty arguments
28922
28923         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
28924         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
28925         (Check_Project): Return False when Project is No_Project. Return True
28926         when All_Projects is True.
28927         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
28928         All_Projects to True.
28929         Minor reformatting
28930
28931 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28932             Javier Miranda  <miranda@adacore.com>
28933             Thomas Quinot  <quinot@adacore.com>
28934             Robert Dewar  <dewar@adacore.com>
28935             Hristian Kirtchev  <kirtchev@adacore.com>
28936             Gary Dismukes  <dismukes@adacore.com>
28937
28938         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
28939         anonymous access types, to indicate that the accessibility level of
28940         the type is determined by that of the enclosing declaration.
28941         (Has_Persistent_BSS): New flag
28942         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
28943         of this attribute with functions.
28944         (Is_Primitive_Wrapper): Remove the barrier.
28945         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
28946         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
28947         New subprograms.
28948         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
28949         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
28950         New subprograms.
28951         (Is_Pure_Unit_Access_Type): New flag
28952         (Abstract_Interfaces): Complete the assertion to cover all usages.
28953         (Set_Is_Interface): Complete the assertion to cover all usages.
28954         (Is_Primitive_Wrapper): New attribute.
28955         (Is_Obsolescent): Now applies to all entities (though it is only set
28956         for subprograms currently)
28957         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
28958         which solves various problems concerning access subtypes.
28959         (Has_Persistent_BSS): New flag
28960         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
28961         Remove these subprograms because this attribute is currently
28962         not used.
28963         New entity flags:
28964         Has_Specified_Stream_Input (Flag190)
28965         Has_Specified_Stream_Output (Flag191)
28966         Has_Specified_Stream_Read (Flag192)
28967         Has_Specified_Stream_Write (Flag193)
28968         Present in all type and subtype entities. Set for a given view if the
28969         corresponding stream-oriented attribute has been defined by an
28970         attribute definition clause. When such a clause occurs, a TSS is set
28971         on the underlying full view; the flags are used to track visibility of
28972         the attribute definition clause for partial or incomplete views.
28973         (Is_Pure_Unit_Access_Type): New flag
28974         Clarify use of Is_Internal.
28975         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
28976         internally generated to wrap the invocation of tasks and protected
28977         types that implement interfaces.
28978         (Implementation_Base_Type): Documentation correction
28979         (Is_Obsolescent): Now applies to all entities (though it is only set
28980         for subprograms currently)
28981         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
28982         which solves various problems concerning access subtypes.
28983
28984         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
28985         for examined parameters. Identify unequal parameter list lengths as
28986         non-conformant parameters.
28987         (Overriding_Possible): Do not check for "All" qualifier in declaration
28988         of controlling access parameter, following prescription of AI-404.
28989         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
28990         that build the procedure body that wraps an entry invocation
28991         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
28992         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
28993         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
28994         give support to abstract interface types
28995
28996         * freeze.adb (Freeze_Entity): Issue error message if
28997         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
28998         type has no storage pool (Ada 2005) AI-366.
28999         Also modified to give support to abstract interface types
29000         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
29001         Inline_Always pragma.
29002
29003         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
29004         now begin an entry declaration.
29005         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
29006         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
29007         a subprogram declaration preceded by an overriding indicator.
29008         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
29009         declarations or subprogram declarations preceded by reserved words
29010         "not" or "overriding".
29011         (P_Entry_Declaration): Update comment. Parse and check overriding
29012         indicator, set semantic flags of entry declarations.
29013         (P_Task): New error message in case of private applied
29014         to a task type declaration.
29015         (P_Protected): New error message in case of private applied
29016         to a task type declaration.
29017
29018         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
29019         in which the full view of a type implementing an interface is a
29020         concurrent type.
29021         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
29022         Declare_Inherited_Private_Subprograms): If an explicit operation
29023         overrides an operation that is inherited in the private part, mark the
29024         explicit one as overriding, to enable overriding indicator checks.
29025         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
29026         full view to partial view, to simplify handling in back-end.
29027
29028         * sprint.adb: Print interface lists where needed: derived types,
29029         protected types, task types.
29030         output "is null" for null procedures. Part of implementation of
29031
29032         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
29033         relaxation of rules for access types in pure, shared passive partitions.
29034
29035         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
29036         first read discriminants into temporary objects, performing checks on
29037         the read values, then possibly performing discriminant checks on the
29038         actual (if it is constrained), and only finally reading the components
29039         into a constrained temporary object.
29040         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
29041         case of reading discriminants of a mutable record type to recognize
29042         the new form of the code generated by
29043         Build_Mutable_Record_Read_Procedure.
29044
29045         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
29046         of a simple call to Make_TSS_Name.
29047         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
29048         buffer, in order for Is_TSS to work correctly on local TSS names.
29049
29050         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
29051         Is_Local_Anonymous_Access to check legaliy of attributes in the
29052         context of  access components and stand-alone access objects.
29053         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
29054         treated as available for a limited private type if there is an
29055         attribute_definition_clause that applies to its full view, but not in
29056         other cases where the attribute is available for the full view
29057         (specifically, the sole fact that the full view is non-limited does not
29058         make the attribute available for the partial view).
29059         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
29060         non-overloaded intrinsic subprogram.
29061         (Check_Stream_Attribute): Reject an attribute reference for an
29062         unavailable stream attribute even if the prefix is not a limited type
29063         (case of a 'Input attribute reference for an abstract, non-classwide
29064         type)
29065         (Stream_Attribute_Available): New function to determine whether a stream
29066         attribute is available at a place.
29067         (Check_Attribute): Use Stream_Attribute_Available instead of just
29068         testing for TSS presence on the implementation base type.
29069         (Analyze_Attribute): Modified to give support to task interfaces.
29070         (Analyze_Access_Attribute): Add error check for use of an Access (or
29071         Unrestricted_Access) attribute with a subprogram marked as
29072         Inline_Always.
29073         (Analyze_Attribute, case Attribute_Address): Add error check for use of
29074         an Address attribute with a subprogram marked as Inline_Always.
29075         Update Eval_Attribute to handle new value of Width from AI-395
29076
29077         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
29078         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
29079         Factor common code across the stream-oriented attribute circcuits into
29080         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
29081         processing is functionally identical to the previous duplicated one,
29082         except that an expression that denotes an abstract subprogram will now
29083         be rejected, as mandated by AI-195 item 5.
29084
29085         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
29086         Is_Local_Anonymous_Access to apply accessibility checks to access
29087         components and stand-alone access objects.
29088         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
29089         elsewhere.
29090         (Is_Potentially_Persistent_Type): New function
29091         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
29092         a heap-object whose type has a constrained partial view, the object is
29093         unconstrained and the component may depend on a discriminant, making its
29094         renaming illegal.
29095
29096         * sinfo.ads, sinfo.adb
29097         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
29098         (Must_Override): Flag applicable to N_Entry_Declaration.
29099         Indicate that interface_list can appear in single task and single
29100         protected declarations.
29101         Replace Is_Overriding and Not_Overriding with Must_Override and
29102         Must_Not_Override, to better express intent of AI.
29103         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
29104         of an overriding indicator in a subprogram or instance.
29105         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
29106         Add the overriding indicator [[not] overriding] construct to the
29107         following grammar productions:
29108          ENTRY_DECLARATION
29109          GENERIC_INSTANTIATION
29110          SUBPROGRAM_SPECIFICATION
29111
29112         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
29113         can start with an overriding indicator.
29114
29115         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
29116         flags accordingly on subrogram specifications or instances.
29117
29118         * sem_ch8.adb:
29119         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
29120         overriding_indicator, if present, is consistent with status of spec.
29121         Improve error message for null-excluding checks on controlling access
29122         parameters.
29123         (Check_In_Previous_With_Clause): Protect the frontend against
29124         previously reported critical errors in the context clauses.
29125         Save and restore Ada_Version_Explicit, for implementation of AI-362
29126         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
29127         operation verify that controlling formals of the renamed entity that
29128         are access parameters are explicitly non-null.
29129         (Find_Expanded_Name): Improve error message when prefix is an illegal
29130         reference to a private child unit.
29131
29132         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
29133         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
29134         Rewrite to correspond to new wide character names in AI-395
29135
29136         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
29137         default procedures.
29138
29139 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29140             Robert Dewar  <dewar@adacore.com>
29141
29142         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
29143         code, not on the bodies of predefined operations, to cut down on
29144         spurious noise.
29145
29146 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29147
29148         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
29149         be expanded in place. The size computation does not require a
29150         subtraction, which would raise an exception on a compiler built with
29151         assertions when the upper bound is Integer'first.
29152         (Flatten): For an array of composite components, take into account the
29153         size of the components to determine whether it is safe to expand the
29154         array into a purely positional representation.
29155
29156 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29157
29158         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
29159         denoting a formal parameter into account.
29160
29161 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29162
29163         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
29164         the entry_call alternative of a conditional entry call, wrap the
29165         conditional entry call itself.
29166
29167 2005-06-14  Nicolas Setton  <setton@adacore.com>
29168             Ed Schonberg  <schonberg@adacore.com>
29169
29170         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
29171         the "simple_choice" member in a variant record, in accordance with the
29172         description in the package spec: the information output for a constant
29173         should be "S number", not "SS number".
29174         (Get_Encoded_Name): Return at once if not generating code. Avoids name
29175         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
29176
29177 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29178
29179         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
29180         RACW without any primitives, do not generate the if statement for
29181         dispatching by name in the PolyORB/DSA case, as it would be malformed
29182         (it would have an Elsif_Parts list that is not No_List, but with a
29183         length of 0).
29184
29185 2005-06-14  Robert Dewar  <dewar@adacore.com>
29186
29187         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
29188
29189 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
29190
29191         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
29192         can determine whether pragma Suppress_Exception_Locations is in effect.
29193
29194         * utils2.c (build_call_raise): Do not pass the file name to the
29195         exception handler if pragma Suppress_Exception_Locations is in effect.
29196         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
29197
29198 2005-06-14  Emmanuel Briot  <briot@adacore.com>
29199
29200         * g-debpoo.adb (Deallocate, Dereference): Improve output.
29201
29202 2005-06-14  Nicolas Roche  <roche@adacore.com>
29203
29204         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
29205         to ""
29206         (Next_Level): Fix minor bug in handling of ../dir case
29207         (Read): Add dir separator to Directory name so that "" is understood as
29208          "/"
29209
29210 2005-06-14  Pascal Obry  <obry@adacore.com>
29211
29212         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
29213         releasing the items.
29214
29215 2005-06-14  Vincent Celier  <celier@adacore.com>
29216             Cyrille Comar  <comar@adacore.com>
29217
29218         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
29219         with output file descriptor and with output file name.
29220         (Dup, Dup2): Now global procedures as they are used by two subprograms
29221         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
29222
29223 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29224
29225         PR ada/6717
29226         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
29227         broadcast address.
29228         (Create_Selector): Bind listening socket used to create the signalling
29229         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
29230         Set listen backlog to 1 to ensure that we detect socket theft by a
29231         failure of our own connect(2) call.
29232         (Check_Selector): Improve documentation of the selector mechanism.
29233         (Broadcast_Inet_Addr): New constant.
29234
29235 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
29236
29237         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
29238         type which turns out to be an incomplete and incorrect fix.
29239         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
29240         of the type is declared in a record (for determination of insertion
29241         type).
29242         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
29243         a private type and ensure that the primary entity is used for the type
29244         of the newly created function's V formal by taking the Etype of the
29245         view.
29246
29247 2005-06-14  Javier Miranda  <miranda@adacore.com>
29248             Jose Ruiz  <ruiz@adacore.com>
29249             Robert Dewar  <dewar@adacore.com>
29250             Ed Schonberg  <schonberg@adacore.com>
29251
29252         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
29253         that indicates if we are parsing a compilation unit found in a
29254         limited-with clause.
29255         It is use to avoid the circularity check.
29256
29257         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
29258         we are parsing a compilation unit found in a limited-with clause. This
29259         is use to avoid the circularity check.
29260
29261         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
29262         unit as a consequence of parsing a limited-with clause. This is used
29263         to avoid the circularity check.
29264
29265         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
29266         (Analyze_Context): Limited-with clauses are now allowed
29267         in more compilation units.
29268         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
29269         againts previously reported critical errors in context clauses
29270         (Install_Limited_Withed_Unit): Code cleanup plus static detection
29271         of two further errors: renamed subprograms and renamed packages
29272         are not allowed in limited with clauses.
29273         (Install_Siblings): Do not install private_with_clauses on the package
29274         declaration for a non-private child unit.
29275         (Re_Install_Parents): When a parent of the subunit is reinstalled,
29276         reset visibility of child units properly.
29277         (Install_Withed_Unit): When a child unit appears in a with_clause of its
29278         parent, it is immediately visible.
29279
29280 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29281             Emmanuel Briot  <briot@adacore.com>
29282
29283         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
29284         declared within an inlined body as referenced, to prevent spurious
29285         warnings.
29286         (Output_One_Ref): If an entity renames an array component, indicate in
29287         the ALI file that this aliases (renames) the array. Capture as well
29288         function renamings that rename predefined operations.
29289         Add information about generic parent for package and subprogram
29290         instances.
29291         (Get_Type_Reference): For a subtype that is the renaming of an actual in
29292         an instantiation, use the first_subtype to ensure that we don't generate
29293         cross-reference information for internal types.
29294         For objects and parameters of a generic private type, retain the '*'
29295         indicator to distinguish such an entity from its type.
29296
29297         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
29298         to store information about instantiated entities.
29299
29300         * ali.adb (Scan_ALI): Add support for parsing the reference to the
29301         generic parent
29302
29303         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
29304         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
29305         information.
29306
29307 2005-06-10  Doug Rupp  <rupp@adacore.com>
29308             Arnaud Charlet  <charlet@adacore.com>
29309             Olivier Hainque  <hainque@adacore.com>
29310             Jose Ruiz  <ruiz@adacore.com>
29311
29312         * Make-lang.in: Add initialize.o when needed.
29313         Remove obsolete references to RT_FLAGS.
29314         Add missing dependencies for sdefault.o
29315
29316         * initialize.c: New file.
29317
29318         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
29319         [VMS] cond_signal_table: Fix problem in declaration.
29320         [VMS] __gnat_error_handler: rewrite.
29321         Move all __gnat_initialize() routines to initialize.c
29322         Specialize the former "hpux" section to "hppa hpux", as this is what the
29323         section really is here for and we now have other hpux ports that need
29324         different contents.
29325         (__gnat_adjust_context_for_raise) i386-linux: First version of this
29326         function for this target. Adjust PC by one in the machine context. This
29327         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
29328         it is more reliable to do that in the signal handler itself.
29329         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
29330         flags, so that the handler is passed the context structure to adjust
29331         prior to the raise.
29332         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
29333         SA_SIGINFO sigaction should look like. Call
29334         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
29335         Machine_State_Operations stuff.
29336         Add conditional code so that the x86_64 is also supported.
29337
29338 2005-06-14  Pascal Obry  <obry@adacore.com>
29339
29340         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
29341         the library name.
29342
29343 2005-06-14  Robert Dewar  <dewar@adacore.com>
29344
29345         * opt.ads, opt.adb: New flags for persistent_bss mode
29346         Add Ada_Version_Explicit, for implementation of AI-362
29347         Add Assertions_Enabled_Config and associated handling
29348         Needed since setting can be changed with Assertion_Policy pragma
29349         Add new flag Warn_On_Ada_2005_Compatibility
29350
29351         * switch-c.adb: Recognize -gnatwy/Y
29352         Set Ada_Version_Explicit, for implementation of AI-362
29353         The -gnatg switch now includes -gnatyu
29354
29355         * usage.adb: Add -gnatwy/Y
29356         Remove wrong asterisk on -gnatwX line
29357         Add line for -gnatyu switch
29358
29359 2005-06-14  Vincent Celier  <celier@adacore.com>
29360
29361         * osint.adb (Add_Default_Search_Dirs): Put source and object
29362         directories of project files before directories coming from
29363         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
29364
29365 2005-06-14  Robert Dewar  <dewar@adacore.com>
29366
29367         PR ada/15613
29368         * par-ch2.adb (Scan_Pragma_Argument): New procedure
29369         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
29370
29371 2005-06-14  Vincent Celier  <celier@adacore.com>
29372
29373         * prep.adb (Preprocess): Ignore error when scanning the first token of
29374         a line.
29375
29376 2005-06-14  Vincent Celier  <celier@adacore.com>
29377
29378         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
29379         (Check_Stand_Alone_Library): If the specified reference symbol file does
29380         not exist, only issue a warning when the symbol policy is not
29381         Controlled. And, when symbol policy is Compliant, set the symbol
29382         policy to Autonomous.
29383
29384 2005-06-14  Vincent Celier  <celier@adacore.com>
29385
29386         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
29387         when the project file in a with clause is not the last one, that is the
29388         project file name is followed by a comma.
29389         * prj-pp.adb: (First_With_In_List): New Boolean global variable
29390         (Print): Issue list of project files separated by commas in with clauses
29391         according to the values returned by Is_Not_Last_In_List.
29392         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
29393         (Set_Is_Not_Last_In_List): New procedure
29394
29395 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
29396
29397         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
29398
29399 2005-06-14  Robert Dewar  <dewar@adacore.com>
29400
29401         * scng.adb: Add call to new Check_EOF routine
29402         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
29403         Add some comments regarding wide character handling
29404
29405         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
29406
29407         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
29408
29409         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
29410         characters are now considered graphic characters and hence yield false
29411         in this call.
29412
29413         * nmake.adt: Modify header so that xnmake does not generate output
29414         files with multiple blank lines.
29415
29416         * treeprs.adt: Remove a blank line so that output from xtreeprs does
29417         not have an extra blank line
29418
29419 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
29420
29421         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
29422         expression when the component type is an anonymous access type to
29423         ensure that appropriate accessibility checks are done.
29424
29425         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
29426         expression of an assignment when the target object is of an anonymous
29427         access type. This ensures that required accessibility checks are done.
29428         (One_Bound): Move the check for type Universal_Integer to
29429         Process_Bounds.
29430         (Process_Bounds): Check whether the type of the preanalyzed range is
29431         Universal_Integer, and in that case set Typ to Integer_Type prior
29432         to setting the type of the original range and the calls to One_Bound.
29433
29434 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29435
29436         * sem_case.adb (Expand_Others_Choice): Improve warning.
29437
29438 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29439
29440         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
29441         constraint of full view if present, when other type is discriminated.
29442         (Eval_Relational_Op): Recognize tests of pointer values against Null,
29443         when the pointer is known to be non-null, and emit appropriate warning.
29444
29445 2005-06-14  Robert Dewar  <dewar@adacore.com>
29446             Ed Schonberg  <schonberg@adacore.com>
29447
29448         PR ada/10671
29449         * sem_prag.adb: Implement pragma Persistent_BSS
29450         Remove obsolete pragma Persistent_Data, Persistent_Object
29451         Set Ada_Version_Explicit, for implementation of AI-362
29452         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
29453         Add processing for pragma Pure_05 and Preelaborate_05
29454         Add processing for Assertion_Policy pragma
29455         Add pragma identifiers for Assert
29456         (Analyze_Pragma, case Assert): Check number of arguments
29457         (Process_Inline): Additional guard against an illegal program, where the
29458         argument of the pragma is undefined, and warnings on redundant
29459         constructs are enabled.
29460         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
29461         Ada_05 to this pragma, specifying that the pragma is only active in
29462         Ada_05 mode.
29463         (Check_Arg_Order): New procedure
29464         Add appropriate calls to this procedure throughout
29465         Also throughout, check entity name before doing any other checks
29466
29467         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
29468         Remove obsolete pragma Persistent_Data, Persistent_Object
29469         Add entries for pragma Pure_05 and Preelaborate_05
29470         Add entries for Assertion_Policy pragma and associated names
29471         Add some names for pragma argument processing
29472
29473         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
29474
29475 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29476
29477         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
29478         appears within a negation (either from source or as a rewriting of
29479         inequality) adjust text of warning accordingly.
29480
29481 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29482
29483         * s-strxdr.adb: Follow AI95-00132
29484
29485 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
29486
29487         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
29488
29489 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
29490             Jose Ruiz  <ruiz@adacore.com>
29491
29492         * s-tposen.adb, s-tpobop.adb
29493         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
29494         the exception id.
29495         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
29496         there is no violation of the Max_Entry_Queue_Length restriction (if it
29497         has been set); Program_Error is raised otherwise.
29498         (Requeue_Call): Before requeuing the task on the target entry queue we
29499         check that there is no violation of the Max_Entry_Queue_Length
29500         restriction (if it has been set); Program_Error is raised otherwise.
29501
29502 2005-06-14  Robert Dewar  <dewar@adacore.com>
29503
29504         * styleg.adb: Fix several remaining problems in -gnatyu switch
29505         Blank line count not reset at start
29506         Scanning outside source buffer in some cases
29507         Confusing message for blanks at end of file
29508         Non-empty blank lines not recognized
29509
29510         * nmake.adt: Modify header so that xnmake does not generate output
29511         files with multiple blank lines.
29512
29513         * treeprs.adt: Remove a blank line so that output from xtreeprs does
29514         not have an extra blank line
29515
29516 2005-06-14  Sergey Rybin  <rybin@adacore.com>
29517
29518         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
29519
29520 2005-06-14  Doug Rupp  <rupp@adacore.com>
29521             Vincent Celier  <celier@adacore.com>
29522
29523         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
29524         Update copyright.
29525
29526         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29527         Remove "Library" command.
29528         Change keyword for style check -gnatyd from NOCRLF to
29529         DOS_LINE_ENDINGS.
29530         Remove useless second style check keyword NONE
29531         Remove help documentation for inexistent style check keyword
29532         RM_COLUMN_LAYOUT.
29533         Add help documentation for style check keywords DOS_LINE_ENDINGS,
29534         UNNECESSARY_BLANK_LINES and XTRA_PARENS
29535         Add UNNECESSARY_BLANK_LINES for -gnatyu
29536         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
29537
29538         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29539
29540 2005-06-14  Vincent Celier  <celier@adacore.com>
29541
29542         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
29543         gprmake was invoked with -d.
29544         (Compile_Sources): If -d was used, output the "completed ..." message
29545         for each compilation.
29546         (Scan_Arg): Recognize new switch -d
29547         When -c and at least one main is specified, set
29548         Unique_Compile to True to guarantee that no other sources will be
29549         compiled.
29550
29551 2005-06-14  Matthew Heaney  <heaney@adacore.com>
29552
29553         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
29554         * a-swuwha.ads, a-swuwha.adb: New files
29555
29556         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
29557         * a-szuzha.ads, a-szuzha.adb: New files.
29558
29559         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
29560         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
29561         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
29562         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
29563         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
29564         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
29565         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
29566         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
29567         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
29568         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
29569         Ada 2005 RM.
29570
29571 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
29572             Olivier Hainque  <hainque@adacore.com>
29573             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29574             Pascal Obry  <obry@adacore.com>
29575
29576         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
29577
29578         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
29579         making a temporary around a procedure call because of non-addressable
29580         actual parameter.
29581         (process_freeze_entity): If entity is a private type, capture size
29582         information that may have been computed for the full view.
29583         (tree_transform, case N_Allocator): If have initializing expression,
29584         check type for Has_Constrained_Partial_View and pass that to
29585         build_allocator.
29586         (tree_transform, case N_Return_Statement): Pass extra arg to
29587         build_allocator.
29588
29589         * decl.c (annotate_value): Remove early return if -gnatR is not
29590         specified.
29591         (gnat_to_gnu_field): Don't make a packable type for a component clause
29592         if the position is byte aligned, the field is aliased, and the clause
29593         size isn't a multiple of the packable alignment. It serves no useful
29594         purpose packing-wise and would be rejected later on.
29595         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
29596
29597         PR ada/20515
29598         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
29599         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
29600         instead.
29601         (create_concat_name): Idem.
29602
29603 2005-06-10  Robert Dewar  <dewar@adacore.com>
29604             Eric Botcazou  <ebotcazou@adacore.com>
29605             Ben Brosgol  <brosgol@adacore.com>
29606             Cyrille Comar  <comar@adacore.com>
29607             Sergey Rybin  <rybin@adacore.com>
29608             Pascal Obry  <obry@adacore.com>
29609
29610         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
29611         Document second argument (Ada_05) of pragma Obsolescent
29612         Add note that call to subprogram marked with pragma Obsolescent
29613         is now considered to be a violation of program Restrictions
29614         (No_Obsolescent_Features).
29615         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
29616         that only machine-dependent attributes are supported.
29617
29618         * gnat_ugn.texi:
29619         Commented out menu lines and empty section for gnatclean examples
29620         Document -gnatwy/Y
29621         Fix some over long lines
29622         Clarify and enhance documentation of ADA_PROJECT_PATH.
29623         Rework section 2.11.2(3) about linking with a non-GNU compiler.
29624         Mention new switch -fcallgraph-info.
29625         Mention new switch -fstack-usage.
29626         For gnatpp, replace '-notab' with '-N' and add this option to Index
29627         Corrected VMS example.
29628         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
29629         Minor reformatting
29630         Add documentation for -gnatyu switch (unnecessary blank lines)
29631         Document new switch -U for GNAT PRETTY and GNAT METRIC
29632         Add note about Stdcall being handled as C convention on non Windows OS.
29633         Remove some junk typo in description of gnatbind -S switch
29634         Remove reference to Extensions_Allowed pragma
29635         Document the new order of the directories to be searched (source and
29636         object directories of project files before directories in ADA_*_PATH
29637         environment variables.
29638
29639         * g-trasym.ads: Document that IRIX is supported
29640
29641 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
29642
29643         * Makefile.in: Add initialize.o when needed.
29644         Adapt to new VMS package body Symbols and subunits
29645         No specialized version of a-sytaco is needed for VxWorks.
29646
29647         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
29648         * a-zchara.ads, a-widcha.ads: New files.
29649
29650         * system-hpux-ia64.ads: New file.
29651
29652         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
29653         is imported from the VxWorks kernel.
29654
29655 2005-06-14  Robert Dewar  <dewar@adacore.com>
29656
29657         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
29658         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
29659         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
29660         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
29661         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
29662         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
29663         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
29664         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
29665         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
29666         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
29667         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
29668         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
29669
29670 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29671
29672         * xeinfo.adb: Fix typo in comment
29673
29674 2005-06-14  Javier Miranda  <miranda@adacore.com>
29675
29676         * repinfo.ads: Fix typo in comment
29677
29678 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
29679
29680         * s-finimp.adb (Parent_Tag): Delete this imported function (function
29681         Parent_Tag is now in the visible part of Ada.Tags).
29682         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
29683         using imported function.
29684
29685 2005-06-14  Bernard Banner  <banner@adacore.com>
29686
29687         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
29688         also apply for handling support for VxSim 653.
29689
29690 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
29691
29692         * xsnames.adb: Add automatic generation of snames.h.
29693
29694 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29695
29696         * gen-soccon.c: Add IP_MULTICAST_IF constant
29697         Minor reformatting and adjustments to prevent warnings.
29698
29699 2005-06-14  Pascal Obry  <obry@adacore.com>
29700
29701         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
29702
29703 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
29704
29705         * trans.c (gnat_gimplify_expr): Call
29706         recompute_tree_invarant_for_addr_expr when we change
29707         the operand of the ADDR_EXPR.
29708
29709 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29710
29711         * misc.c: Don't include errors.h.
29712
29713 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29714
29715         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
29716
29717 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
29718
29719         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
29720         comment typos.
29721         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
29722
29723 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
29724
29725         PR ada/20270
29726         * Makefile.in: Make TGT_LIB behave correctly.
29727
29728 2005-04-23  DJ Delorie  <dj@redhat.com>
29729
29730         * misc.c: Adjust warning() callers.
29731
29732 2005-04-16  Laurent Guerby  <laurent@guerby.net>
29733
29734         PR ada/18847
29735         * a-nudira.adb (Value): Check for valid string.
29736         * a-nuflra.adb (Value): Likewise.
29737
29738 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
29739
29740         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
29741
29742 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
29743
29744         * adaint.c, init.c, tracebak.c: Fix comment typos.
29745         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
29746
29747 2005-04-07  Laurent Guerby  <laurent@guerby.net>
29748             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29749
29750         * Makefile.in: Add make ifeq define for hppa linux tasking support.
29751         * system-hpux.ads: Define Signed_Zeros to be True.
29752         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
29753
29754 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
29755
29756         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
29757         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
29758         typos.
29759
29760 2005-03-30  Tom Tromey  <tromey@redhat.com>
29761
29762         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
29763
29764 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
29765
29766         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
29767
29768 2005-03-29  Robert Dewar  <dewar@adacore.com>
29769
29770         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
29771         fixed-point expression has value that is not a multiple of the Small
29772         value.
29773
29774         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
29775
29776         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
29777         nanoseconds.
29778
29779         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
29780
29781 2005-03-29  Vincent Celier  <celier@adacore.com>
29782
29783         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
29784         (Build_Dynamic_Library.Version_String): Return the empty string when
29785         Lib_Version is empty or when the symbol policy is not Autonomous.
29786
29787         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
29788         a symbol is not in the reference symbol file, increase the Major ID
29789         and set the Minor ID to 0.
29790         Use gsmatch=lequal instead of gsmatch=equal
29791
29792 2005-03-29  Doug Rupp  <rupp@adacore.com>
29793
29794         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
29795         name and translate.
29796
29797 2005-03-29  Javier Miranda  <miranda@adacore.com>
29798
29799         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
29800         (Inherit_DT): The first formal has been redefined as a Tag.
29801         This allows us the removal of the subprogram Get_TSD.
29802         (TSD): Replace the call to Get_TSD by the actual code.
29803
29804         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
29805         (Make_DT): Upgrade the call to Inherit_TSD according to the
29806         new interface: the first formal is now a Tag.
29807
29808         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
29809         redefined as a Tag.
29810         This change allows us to remove the subprogram Get_TSD.
29811         (CPP_Get_TSD): Subprogram removed.
29812         (TSD): Replace the call to CPP_Get_TSD by the actual code.
29813
29814         * rtsfind.ads: Remove support to call the run-time
29815         subprogram Get_TSD
29816
29817 2005-03-29  Robert Dewar  <dewar@adacore.com>
29818
29819         * errutil.adb, errout.adb:
29820         Minor comment updates on Line_Terminator references
29821
29822         * par-ch10.adb: Add ??? comment about line terminator
29823
29824         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
29825         (check dos line terminator).
29826         (Check_Line_Max_Length): New procedure, split off from the existing
29827         Check_Line_Terminator routine. Separating this out allows -gnatyf to
29828         be properly recognized.
29829
29830         * styleg.adb: Add ??? comment for line terminator reference
29831
29832         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
29833         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
29834
29835         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
29836         (check dos line terminator).
29837         (Check_Line_Max_Length): New procedure, split off from the existing
29838         Check_Line_Terminator routine. Separating this out allows -gnatyf to
29839         be properly recognized.
29840
29841         * stylesw.ads, stylesw.adb:
29842         Add handling for new -gnatyd switch (check dos line terminator)
29843
29844         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
29845         Recognize -gnatwb/-gnatwB switches
29846         Include Warn_On_Bad_Fixed_Value for -gnatg
29847
29848         * usage.adb:
29849         Add line for new -gnatyd switch (check dos line terminator)
29850
29851         * usage.adb: Add lines for -gnatwb/-gnatwB
29852
29853         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
29854
29855         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
29856
29857         * gnat_ugn.texi: Fix overlong lines
29858         Document new -gnatyd switch
29859         Document new -gnatwb/-gnatwB switches
29860
29861 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
29862
29863         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
29864         order to retrieve the component list of the type, before examining
29865         individual components.
29866
29867         * sem_type.adb (Covers): Types are compatible if one is the base type
29868         of the other, even though their base types might differ when private
29869         views are involved.
29870
29871 2005-03-29  Thomas Quinot  <quinot@adacore.com>
29872
29873         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
29874         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
29875         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
29876         analyzed if expansion is disabled (which could otherwise cause spurious
29877         error messages if expansion has been disabled due to previous
29878         (unrelated) errors).
29879
29880         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
29881         is disabled, the entity denoted by the argument is the access type
29882         itself, not an underlying record type, so there is no need to go back
29883         to the Corresponding_Remote_Type.
29884
29885 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
29886             Robert Dewar  <dewar@adacore.com>
29887
29888         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
29889         expand a call to an instance of
29890         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
29891         Constructor actual of the instance. A class-wide membership
29892         check is also generated, to ensure that the tag passed to the instance
29893         denotes a type in the class.
29894         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
29895         of Name_Generic_Dispatching_Constructor.
29896
29897         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
29898         05 unit for AI-260-02).
29899
29900         * a-tgdico.ads: New file.
29901
29902         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
29903         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
29904
29905         * snames.ads, snames.adb (Preset_Names): Add entry for
29906         Generic_Dispatching_Constructor.
29907
29908         PR ada/20300
29909         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
29910         character type cases.
29911         (Analyze_Subprogram_Renaming): Add special handling for
29912         the case of renaming of stream attributes when the renaming denotes a
29913         generic formal subprogram association for an abstract formal subprogram.
29914         Check that the attribute is a primitive stream attribute (and not
29915         a class-wide stream attribute) and then rewrite the attribute name
29916         as the name of the appropriate compiler-generated stream primitive.
29917
29918 2005-03-29  Robert Dewar  <dewar@adacore.com>
29919
29920         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
29921         recursive calls.
29922         (Is_Possibly_Unaligned_Object): Correct typo that
29923         resulted in inaccurate result for unaligned scalars within records.
29924
29925 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
29926
29927         * freeze.adb (Freeze_Record_Type): If the type of the component is an
29928         itype whose parent is controlled and not yet frozen, do not create a
29929         freeze node for the itype if expansion is disabled.
29930
29931 2005-03-29  Vincent Celier  <celier@adacore.com>
29932
29933         * make.adb (Gnatmake): Don't fail if the main project file is declared
29934         as having no Ada sources. Do not display message "no sources to
29935         compile" in quiet output.
29936
29937 2005-03-29  Doug Rupp  <rupp@adacore.com>
29938
29939         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
29940         extra tools.
29941
29942 2005-03-29  Robert Dewar  <dewar@adacore.com>
29943
29944         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
29945         child.
29946
29947 2005-03-29  Robert Dewar  <dewar@adacore.com>
29948
29949         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
29950         missing TYPE Improve the error message generated when compiling a
29951         limited interface in Ada83 or Ada95 mode.
29952
29953 2005-03-29  Robert Dewar  <dewar@adacore.com>
29954
29955         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
29956         rather than proceed ahead using a junk attribute name.
29957
29958 2005-03-29  Vincent Celier  <celier@adacore.com>
29959
29960         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
29961
29962         * prj-part.adb (Parse_Single_Project): Set the location of a project
29963         on its defining identifier, rather than on the reserved word "project".
29964
29965         * prj-proc.adb (Expression): Adapt to the fact that default of external
29966         references may be string expressions, not always literal strings.
29967         (Recursive_Process): Set Display_Name equal to Name
29968         when Location is No_Location, that is when there is no actual file.
29969         Get the Display_Name of the project from the source, when it is not a
29970         virtual project.
29971         (Process): Use the Display_Name in error messages
29972
29973         * prj-strt.adb (External_Reference): Allow default to be string
29974         expressions, not only literal strings.
29975
29976 2005-03-29  Vincent Celier  <celier@adacore.com>
29977
29978         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
29979         file and the reference symbol file to be the same file.
29980
29981 2005-03-29  Thomas Quinot  <quinot@adacore.com>
29982
29983         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
29984         forbid conversion of a local access-to-subprogram type to a remote one.
29985
29986         * sem_util.adb (Wrong_Type): For a record type that is the expanded
29987         equivalent type for a remote access-to-subprogram type, go back to the
29988         original RAS entity when displaying an error message, so the casing is
29989         the original source casing.
29990
29991 2005-03-29  Robert Dewar  <dewar@adacore.com>
29992
29993         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
29994         on param update.
29995
29996 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
29997
29998         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
29999         subtype if code is being pre-analyzed, to prevent un-expanded
30000         references to protected formals, among others.
30001         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
30002         interpretation that can be a call, include the result of the call as a
30003         possible interpretation of the dereference.
30004
30005         * sem_ch5.adb (Process_Bounds): Determine type of range by
30006         pre-analyzing a copy of the original range, and then analyze the range
30007         with the expected type.
30008
30009         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
30010         with an overloaded prefix where not all interpretations yield an
30011         access to subprogram, do not rewrite node as a call.
30012         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
30013         the node as a call once the context identifies the interpretation of
30014         the prefix whose call yields the context type.
30015         (Valid_Conversion): For the case of a conversion between
30016         local access-to-subprogram types, check subtype conformance using
30017         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
30018         detailed error message.
30019
30020 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
30021
30022         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
30023         indicator, indicate that the formal can never be null.
30024         (Process_Formals): If a formal has a non_null indicator, insert the
30025         resulting subtype immediately before the enclosing subprogram decl,
30026         and not at the beginning of the corresponding declarative part, to
30027         prevent access before elaboration (Ada2005).
30028
30029 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30030
30031         PR ada/19956
30032         * utils.c (finish_record_type): Use variable_size when setting sizes.
30033
30034 2005-03-29  Robert Dewar  <dewar@adacore.com>
30035
30036         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
30037         guarantee Unix style line terminators for the output files, even when
30038         running on windows.
30039
30040 2005-03-29  Robert Dewar  <dewar@adacore.com>
30041
30042         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
30043         buffer if an exception is raised.
30044
30045 2005-03-29  Ed Falis  <falis@adacore.com>
30046
30047         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
30048         VxWorks 653 1.4
30049
30050 2005-03-29  Robert Dewar  <dewar@adacore.com>
30051
30052         * sem_util.ads: Minor reformatting
30053         * gnat_rm.texi: Minor editing.
30054
30055 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
30056
30057         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
30058         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
30059
30060 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
30061
30062         * adaint.c (__gnat_portable_spawn): Adjust cast.
30063
30064 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
30065
30066         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
30067
30068 2005-03-17  Pascal Obry  <obry@adacore.com>
30069
30070         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
30071         used.
30072
30073         * expect.c (__gnat_waitpid): Moved here from adaint.c.
30074         Reimplement under Win32 using Win32 API.
30075
30076         (__gnat_kill) [Win32]: Properly close the process handle before leaving
30077         this routine.
30078
30079 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
30080
30081         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
30082         (DECL_RENAMED_OBJECT): New accessor macro.
30083         (SET_DECL_RENAMED_OBJECT): New setter macro.
30084
30085         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
30086         object in all cases.  Attach the renamed object to the VAR_DECL.
30087         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
30088         field is not prescribed.
30089
30090         * misc.c (gnat_handle_option): Handle -gnatO separately.
30091         (gnat_print_decl) <VAR_DECL>: New case.
30092         Print the DECL_RENAMED_OBJECT node.
30093
30094         * lang.opt:  Declare separate -gnatO option.
30095
30096         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
30097         pointer, replace it with the renamed object.
30098         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
30099         pointer type if the source is not a fat pointer type whose underlying
30100         array has the same non-zero alias set as that of the destination array.
30101
30102 2005-03-17  Javier Miranda  <miranda@adacore.com>
30103
30104         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
30105         (Get_Inheritance_Depth): Removed.
30106         (Set_Inheritance_Depth): Removed.
30107
30108         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
30109         subprogram Get_Expanded_Name because it is not referenced by the
30110         frontend.
30111
30112         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
30113         (CPP_Get_Inheritance_Depth): Removed.
30114         (CPP_Set_Inheritance_Depth): Removed.
30115
30116         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
30117
30118 2005-03-17  Robert Dewar  <dewar@adacore.com>
30119
30120         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
30121         3, since we now expect GCC 3 to do all the work.
30122
30123 2005-03-17  Javier Miranda  <miranda@adacore.com>
30124
30125         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
30126         of one barrier to avoid wrong usage of this attribute.
30127
30128         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
30129         First_Private_Entity.
30130
30131         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
30132         the subprogram against wrong usage.
30133         Adapt the code to traverse the entities in the
30134         scope of a record_type because in addition to its usage regarding
30135         packages, this subprogram is also called by Expand_N_Freeze_Entity
30136         to install the visible declarations of the enclosing scope of a
30137         record_type_with_private to establish the proper visibility before
30138         freezing the entity and related subprograms.
30139
30140 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
30141
30142         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
30143         entry formals.
30144
30145 2005-03-17  Thomas Quinot  <quinot@adacore.com>
30146
30147         * exp_ch3.adb (Check_Attr): New subprogram.
30148         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
30149         into a new Check_Attr subprogram, in order to provide a more
30150         explanatory error message (including the name of the missing attribute).
30151         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
30152         subprogram determines whether a default implementation exists for a
30153         given stream attribute.
30154         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
30155         Determine whether to generate a default implementation for each stream
30156         attribute separately, as this depends on the specific attribute.
30157
30158         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
30159         limited extension where a stream attribute is missing for a limited
30160         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
30161         generate a bogus reference to the missing attribute to prevent
30162         cascaded errors. Instead, generate a null statement.
30163
30164         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
30165         available for a limited type if it has been specified for an ancestor
30166         of the type.
30167
30168 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
30169
30170         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
30171         entity is an operator.
30172
30173 2005-03-17  Thomas Quinot  <quinot@adacore.com>
30174
30175         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30176         spec, to make this predicate available to other units.
30177
30178         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
30179         reimplementing it.
30180
30181         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
30182         when no distribution runtime library is available.
30183
30184         * sem_res.adb, sem_dist.adb: Disable expansion of remote
30185         access-to-subprogram types when no distribution runtime library is
30186         available.
30187         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
30188         predicate available to other units.
30189
30190         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30191         spec, to make this predicate available to other units.
30192
30193 2005-03-17  Vincent Celier  <celier@adacore.com>
30194
30195         * make.adb (Insert_Project_Sources): Make sure the Q is always
30196         initialized.
30197
30198         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
30199         the default for the tree, not the global default naming.
30200
30201         * prj-proc.adb (Recursive_Process): No need to put the default naming
30202         in the project data, it's already there.
30203
30204 2005-03-17  Doug Rupp  <rupp@adacore.com>
30205
30206         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
30207
30208         * 5xcrtl.ads: Renamed to...
30209         * s-crtl-vms64.ads: ...this new file
30210
30211 2005-03-17  Robert Dewar  <dewar@adacore.com>
30212
30213         PR ada/19519
30214         * namet.adb (Copy_One_Character): Set proper wide character encoding
30215         for upper half character if we have upper half encoding.
30216
30217 2005-03-17  Robert Dewar  <dewar@adacore.com>
30218
30219         * par.adb (Par): Improved msg for attempt to recompile predefined unit
30220
30221 2005-03-17  Thomas Quinot  <quinot@adacore.com>
30222
30223         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
30224         tagged limited type, the TSS is a newly built renaming declaration:
30225         insert it using Set_TSS, not Copy_TSS.
30226
30227 2005-03-17  Javier Miranda  <miranda@adacore.com>
30228
30229         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
30230         Try_Object_Operation): Analyze the object that is accessible
30231         through the prefix of the subprogram call before we apply
30232         the transformation of the object-operation notation.
30233
30234 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
30235
30236         * s-taprob.adb (Initialize_Protection): Initialize the protected
30237         object's owner to Null_Task.
30238         (Lock): If pragma Detect_Blocking is in effect and the caller of this
30239         procedure is already the protected object's owner then Program_Error
30240         is raised. In addition the protected object's owner is updated.
30241         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
30242         of this procedure is already the protected object's owner then
30243         Program_Error is raised.
30244         In addition the protected object's owner is updated.
30245         (Unlock): Remove the ownership of the protected object.
30246
30247         * s-taprob.ads (Protection): Add the field Owner, used to store the
30248         protected object's owner.
30249         This component is needed for detecting one type of potentially blocking
30250         operations (external calls on a protected subprogram with the same
30251         target object as that of the protected action). Document the rest of
30252         the components.
30253
30254         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
30255         Initialize the protected object's owner to Null_Task.
30256         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
30257         caller of this procedure is already the protected object's owner then
30258         Program_Error is raised.
30259         Do not raise Program_Error when this procedure is called from a
30260         protected action.
30261         (Unlock_Entries): Remove the ownership of the protected object.
30262         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
30263         of this procedure is already the protected object's owner then
30264         Program_Error is raised.
30265         Do not raise Program_Error when this procedure is called from
30266         a protected action.
30267
30268         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
30269         used to store the protected object's owner.
30270
30271         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
30272         effect and this procedure (a potentially blocking operation) is called
30273         from whithin a protected action, Program_Error is raised.
30274         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
30275         and this procedure (a potentially blocking operation) is called from
30276         whithin a protected action, Program_Error is raised.
30277
30278 2005-03-17  Vincent Celier  <celier@adacore.com>
30279             Nicolas Setton  <setton@adacore.com>
30280
30281         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
30282         switch, not supported by the linker on Darwin. Add '_' before
30283         <library>init, as this character is added unconditionally by the
30284         compiler.
30285         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
30286         correct one ".dylib". This fixes detection of the archive files when
30287         building library projects.
30288
30289 2005-03-17  Vincent Celier  <celier@adacore.com>
30290
30291         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
30292         -gnat83, -gnat95 and -gnat05.
30293
30294 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
30295
30296         * gnat_ugn.texi: Document gnatmem restriction
30297
30298 2005-03-17  Thomas Quinot  <quinot@adacore.com>
30299
30300         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
30301         cleanup
30302
30303 2005-03-17  Robert Dewar  <dewar@adacore.com>
30304
30305         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
30306         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
30307         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
30308
30309         * casing.adb: Comment improvements
30310
30311 2005-03-17  Pascal Obry  <obry@adacore.com>
30312
30313         * g-expect.adb: Minor reformatting.
30314
30315 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
30316
30317         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
30318         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
30319         to dependencies.
30320
30321 2005-03-15  Vincent Celier  <celier@adacore.com>
30322
30323         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
30324         Add new parameter In_Tree to specify the project tree: needed
30325         by the project manager. Adapt to changes in project manager
30326         using new parameter In_Tree.
30327
30328 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
30329
30330         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
30331         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
30332         ada/bldtools to avoid make -jN failures.
30333
30334 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30335
30336         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
30337         to NULL_TREE on entry.
30338
30339 2005-03-15  Robert Dewar  <dewar@adacore.com>
30340
30341         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
30342         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
30343         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
30344         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
30345         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
30346         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
30347         system-interix.ads, system-solaris-sparc.ads,
30348         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
30349         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
30350         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
30351         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
30352         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
30353         Compiler_System_Version to be False.
30354
30355         * opt.ads: Add new flag Opt.Address_Is_Private
30356
30357         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
30358         Add new parameter Compiler_System_Version to avoid checking for
30359         completeness of parameters when compiler is compiling itself.
30360         Allows old versions of GNAT to be compiled with new compiler.
30361
30362 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30363
30364         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
30365         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
30366         calling thread.
30367         (Stack_Base_Available): New flag.
30368         (Get_Page_Size): New overloaded functions imported from C.
30369         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
30370         PROT_ON, PROT_OFF): New constants.
30371         (mprotect): New function imported from C.
30372         (pthread_teb_t): New record type.
30373
30374         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
30375         (Create_Task): Account for the Yellow Zone and the guard page.
30376
30377 2005-03-15  Vincent Celier  <celier@adacore.com>
30378
30379         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30380         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30381         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30382         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
30383         Library_File_Name_For): Add new parameter In_Tree
30384         to specify the project tree: needed by the project manager.
30385         Adapt to changes in project manager using new parameter In_Tree.
30386         Remove local imports, use functions in System.CRTL.
30387
30388         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
30389         to use the project manager.
30390
30391         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
30392         In_Tree to designate the project tree. Adapt to changes in the project
30393         manager, using In_Tree.
30394
30395         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
30396         Copy_Interface_Sources): Add new parameter In_Tree to specify the
30397         project tree: needed by the project manager.
30398         (Build_Library): Check that Arg'Length >= 6 before checking if it
30399         contains "--RTS=...".
30400
30401         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
30402         Library_File_Name_For): Add new parameter In_Tree to specify the
30403         project tree: needed by the project manager.
30404
30405         * prj.ads, prj.adb: Major modifications to allow several project trees
30406         in memory at the same time.
30407         Change tables to dynamic tables and hash tables to dynamic hash
30408         tables. Move tables and hash tables from Prj.Com (in the visible part)
30409         and Prj.Env (in the private part). Move some constants from the visible
30410         part to the private part. Make other constants deferred.
30411         (Project_Empty): Make it a variable, not a function
30412         (Empty_Project): Add parameter Tree. Returns the data with the default
30413         naming data of the project tree Tree.
30414         (Initialize): After updating Std_Naming_Data, copy its value to the
30415         component Naming of Project Empty.
30416         (Register_Default_Naming_Scheme): Use and update the default naming
30417         component of the project tree, instead of the global variable
30418         Std_Naming_Data.
30419         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
30420         Tree is not defaulted, return the default naming data of the Tree.
30421         (Initial_Buffer_Size): Constant moved from private part
30422         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
30423         variables initialized in procedure Initialize.
30424         (Add_To_Buffer): Add two in out parameters to replace global variables
30425         Buffer and Buffer_Last.
30426         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
30427         functions.
30428         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
30429         hash tables.
30430         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30431         for the project tree.
30432         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
30433         constant at the beginning of the package spec, so that they cane be used
30434         in subprograms before their full declarations.
30435         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
30436         (Empty_Project): Add parameter of type Project_Node_Ref
30437         (Private_Project_Tree_Data): Add component Default_Naming of type
30438         Naming_Data.
30439         (Buffer, Buffer_Last): remove global variables
30440         (Add_To_Buffer): Add two in out parameters to replace global variables
30441         Buffer and Buffer_Last.
30442         (Current_Packages_To_Check): Remove global variable
30443         (Empty_Name): Move to private part
30444         (No-Symbols): Make it a constant
30445         (Private_Project_Tree_Data): New type for the private part of the
30446         project tree data.
30447         (Project_Tree_Data): New type for the data of a project tree
30448         (Project_Tree_Ref): New type to designate a project tree
30449         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30450         for the project tree.
30451
30452         * prj-attr.ads: Add with Table; needed, as package Prj no longer
30453         imports package Table.
30454
30455         * prj-com.adb: Remove empty, no longer needed body
30456
30457         * prj-com.ads: Move most of the content of this package to package Prj.
30458
30459         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
30460         designate the project node tree and Packages_To_Check to replace
30461         global variable Current_Packages_To_Check.
30462         Add new parameters In_Tree and Packages_To_Check to local subprograms,
30463         when needed. Adapt to changes in project manager with project node tree
30464         In_Tree.
30465
30466         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
30467         project tree to most subprograms. Move tables and hash tables to
30468         private part of package Prj.
30469         Adapt to changes in project manager using project tree In_Tree.
30470
30471         * prj-makr.adb (Tree): New constant to designate the project node tree
30472         Adapt to change in project manager using project node tree Tree
30473
30474         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
30475         display the Library_Src_Dir and the Library_Dir.
30476         Add new parameter In_Tree to designate the project node tree to most
30477         subprograms. Adapt to changes in the project manager, using project tree
30478         In_Tree.
30479         (Check_Naming_Scheme): Do not alter the casing on platforms where
30480         the casing of file names is not significant.
30481         (Check): Add new parameter In_Tree to designate the
30482
30483         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
30484         designate the project tree.
30485         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
30486
30487         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
30488         to replace those that were in the private part of package Prj.
30489         Add new parameter In__Tree to designate the project node tree to most
30490         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30491         (Post_Parse_Context_Clause): When specifying the project node of a with
30492         clause, indicate that it is a limited with only if there is "limited"
30493         in the with clause, not necessarily when In_Limited is True.
30494         (Parse): Add new parameter In_Tree to designate the project node tree
30495
30496         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
30497         designate the project node tree. Adapt to change in Prj.Tree with
30498         project node tree In_Tree.
30499
30500         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
30501         tree In_Tree in the call to function Empty_Process to give its initial
30502         value to the project data Processed_Data.
30503         Add new parameters In_Tree to designate the project tree and
30504         From_Project_Node_Tree to designate the project node tree to several
30505         subprograms. Adapt to change in project manager with project tree
30506         In_Tree and project node tree From_Project_Node_Tree.
30507
30508         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
30509         to replace those that were in the private part of package Prj.
30510         Add new parameter In_Tree to designate the project node tree to most
30511         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30512
30513         * prj-tree.ads, prj-tree.adb: Add new parameter of type
30514         Project_Node_Tree_Ref to most subprograms.
30515         Use this new parameter to store project nodes in the designated project
30516         node tree.
30517         (Project_Node_Tree_Ref): New type to designate a project node tree
30518         (Tree_Private_Part): Change table to dynamic table and hash tables to
30519         dynamic hash tables.
30520
30521         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
30522         the project tree to most subprograms. Adapt to changes in project
30523         manager using project tree In_Tree.
30524
30525         * makegpr.adb (Project_Tree): New constant needed to use project
30526         manager.
30527
30528 2005-03-15  Olivier Hainque  <hainque@adacore.com>
30529
30530         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
30531         for sigactions with SA_SIGINFO set. Call
30532         __gnat_adjust_context_for_raise before raising, to perform the
30533         potentially required adjustments to the machine context for the GCC
30534         unwinder.
30535
30536         * raise.h (__gnat_adjust_context_for_raise): New prototype.
30537
30538         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
30539         Adjust PC by one in the provided machine context.
30540         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
30541         so that the handler is passed the context structure to adjust prior to
30542         the raise.
30543         (__gnat_error_handler) HPUX: Adjust the signature to match what an
30544         SA_SIGINFO sigaction should look like. Call
30545         __gnat_adjust_context_for_raise before actually raising.
30546         (__gnat_adjust_context_for_raise): Default noop to help PC
30547         adjustments before raise from signal handlers.
30548         (__gnat_error_handler): Indirectly call a predicate function to
30549         determine if a condition should be resignaled or not.
30550         (__gnat_set_resignal_predicate): User interface to modify the predicate.
30551         (__gnat_default_resignal_p): Default GNAT predicate.
30552
30553 2005-03-15  Doug Rupp  <rupp@adacore.com>
30554
30555         * adaint.c: Prefix #include of VMS system header files with vms/
30556         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
30557         Do not define a dummy function "convert_addresses" under Darwin,
30558         not needed.
30559
30560         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
30561         with vms/
30562
30563 2005-03-15  Nicolas Setton  <setton@adacore.com>
30564
30565         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
30566         PPC/AIX.
30567
30568 2005-03-15  Robert Dewar  <dewar@adacore.com>
30569
30570         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
30571         AI-386.
30572
30573         * a-retide.ads: Minor comment changes
30574
30575 2005-03-15  Robert Dewar  <dewar@adacore.com>
30576
30577         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
30578         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
30579         Realloc_For_Chunk to private part of package.
30580         New subprograms for AI-301
30581
30582         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
30583         Get_Line procedure.
30584         Avoid unnecessary use of Get/Set_Wide_String
30585
30586 2005-03-15  Robert Dewar  <dewar@adacore.com>
30587
30588         PR ada/13470
30589         * a-stunau.ads, a-stunau.adb:
30590         Change interface to allow efficient (and correct) implementation
30591         The previous changes to allow extra space in unbounded strings had
30592         left this interface a bit broken.
30593
30594         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
30595
30596         * g-spipat.ads, g-spipat.adb: New interface for Get_String
30597         Minor reformatting (function specs)
30598
30599         * g-spitbo.adb: New interface for Get_String
30600
30601         * g-spitbo.ads: Minor reformatting
30602
30603         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
30604
30605         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
30606
30607 2005-03-15  Javier Miranda  <miranda@adacore.com>
30608             Robert Dewar  <dewar@adacore.com>
30609             Thomas Quinot  <quinot@adacore.com>
30610             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30611
30612         * atree.ads, atree.adb: Add support for Elist24 field
30613
30614         * atree.h: Fix wrong definition of Field27
30615         Add support for Elist16 field
30616         Add support for Elist24 field
30617
30618         * einfo.ads, einfo.adb (Abstract_Interfaces,
30619         Set_Abstract_Interfaces): New subprograms.
30620         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
30621         subprograms.
30622         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
30623         entities rather than a single node.
30624         (Is_Interface, Set_Is_Interface): New subprogram
30625         (First_Tag_Component): New syntesized attribute
30626         (Next_Tag_Component): New synthesized attribute
30627         (Write_Entity_Flags): Upgraded to write Is_Interface
30628         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
30629         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
30630         (Task_Body_Procedure): New subprogram to read this attribute.
30631         (Set_Task_Body_Procedure): New subprogram to set this attribute.
30632         (Has_Controlled_Component): Now applies to all entities.
30633         This is only a documentation change, since it always worked to apply
30634         this to other than composite types (yielding false), but now this is
30635         official.
30636         Update documentation on Must_Be_Byte_Aligned for new spec
30637
30638         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
30639         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
30640         uses of the Access_Disp_Table attribute to reference the first dispatch
30641         table associated with a tagged type. As
30642         part of the implementation of abstract interface types,
30643         Access_Disp_Table has been redefined to contain a list of dispatch
30644         tables (rather than a single dispatch table).
30645         Similarly, upgrade all the references to Tag_Component by the
30646         new attribute First_Tag_Component.
30647         (Find_Inherited_TSS): Moved to exp_tss.
30648         Clean up test in Expand_N_Object_Declaration for cases
30649         where we need to do a separate assignment of the initial value.
30650         (Expand_N_Object_Declaration): If the expression in the
30651         declaration of a tagged type is an aggregate, no need to generate an
30652         additional tag assignment.
30653         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
30654         is to be deleted.
30655         Bit packed array ops are only called if operands are known to be
30656         aligned.
30657         (Component_Equality): When returning an N_Raise_Program_Error statement,
30658         ensure that its Etype is set to Empty to avoid confusing GIGI (which
30659         expects that only expressions have a bona fide type).
30660         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
30661         determine the amount of data to be copied.
30662
30663         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
30664         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
30665             INTERFACE_TYPE_DEFINITION ::=
30666               [limited | task | protected | synchronized] interface
30667                 [AND interface_list]
30668
30669         * par-ch3.adb (P_Type_Declaration): Modified to give support to
30670         interfaces.
30671         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
30672         interfaces.
30673         (P_Interface_Type_Definition): New subprogram that parses the new
30674         syntax rule of Ada 2005 interfaces
30675         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
30676         messages by the correct RENAMES (quotes removed).
30677
30678         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
30679         attribute First_Tag_Component.
30680
30681         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
30682         (Interface_List, Set_Interface_List): New subprograms.
30683         (Interface_Present, Set_Interface_Present): New subprograms.
30684         (Limited_Present, Set_Limited_Present): Available also in derived
30685         type definition nodes.
30686         (Protected_Present, Set_Protected_Present): Available also in
30687         record type definition and
30688         derived type definition nodes.
30689         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
30690         (Task_Present, Set_Task_Present): New subprogram.
30691         (Task_Body_Procedure): Removed.
30692         (Set_Task_Body_Procedure): Removed.
30693         These subprogram have been removed because the attribute
30694         Task_Body_Procedure has been moved to the corresponding task type
30695         or task subtype entity to leave a field free to store the list
30696         of interfaces implemented by a task (for AI-345)
30697         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
30698         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
30699         expression flag Do_Range_Check
30700         (Exception_Junk): Change to Flag7 to accomodate above change
30701         (Box_Present, Default_Name, Specification, Set_Box_Present,
30702         Set_Default_Name, Set_Specification): Expand the expression
30703         "X in N_Formal_Subprogram_Declaration" into the corresponding
30704         two comparisons. Required to use the csinfo tool.
30705
30706         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
30707         "with string" given.
30708
30709         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
30710         expression given.
30711
30712         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
30713         in 2005 mode
30714
30715         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
30716         attribute Task_Body_Procedure rather than the old semantic field that
30717         was available in the task_type_declaration node.
30718
30719         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
30720         interface type definitions.
30721         (P_Formal_Derived_Type_Definition): Modified to handle the list of
30722         interfaces.
30723
30724         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
30725         task type declaration.
30726         (P_Protected): Modified to handle the list of interfaces in a
30727         protected type declaration.
30728
30729 2005-03-15  Doug Rupp  <rupp@adacore.com>
30730             Vincent Celier  <celier@adacore.com>
30731
30732         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
30733         (Gen_Output_File_C): Likewise.
30734         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
30735
30736 2005-03-15  Thomas Quinot  <quinot@adacore.com>
30737
30738         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
30739         is an N_Raise_Constraint_Error node, create a new copy of it without
30740         going through a call to Duplicate_Subexpr.
30741
30742 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30743             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30744             Nicolas Setton  <setton@adacore.com>
30745             Ed Schonberg  <schonberg@adacore.com>
30746
30747         PR ada/19900
30748         PR ada/19408
30749         PR ada/19140
30750         PR ada/20255
30751         * decl.c (gnat_to_gnu_field): Reject aliased components with a
30752         representation clause that prescribes a size not equal to the rounded
30753         size of their types.
30754         (gnat_to_gnu_entity, case E_Component): Always look at
30755         Original_Record_Component if Present and not the entity.
30756         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
30757         of tagged extension types by not making field for components that are
30758         inside the parent.
30759         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
30760         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
30761         expression to the type of the object when the object is constant.
30762         Reverse defer_debug_incomplete_list before traversing it, so that trees
30763         are processed in the order at which they were added to the list. This
30764         order is important when using the stabs debug format.
30765         If we are deferring the output of debug information, also defer this
30766         output for a function return type.
30767         When adding fields to a record, prevent emitting debug information
30768         for incomplete records, emit the information only when the record is
30769         complete.
30770         (components_to_record): New parameter defer_debug.
30771         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
30772         (gnat_to_gnu_field_decl): New function.
30773         (substitution_list, annotate_rep): Call it.
30774         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
30775         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
30776         No longer update discriminants to not be a COMPONENT_REF.
30777         (copy_alias_set): Strip padding from input type; also handle
30778         unconstrained arrays properly.
30779
30780         * gigi.h (write_record_type_debug_info): New function.
30781         Convert to use ANSI-style prototypes. Remove unused
30782         declarations for emit_stack_check, elab_all_gnat and
30783         set_second_error_entity.
30784         (gnat_to_gnu_field_decl): New decl.
30785
30786         * utils.c (write_record_type_debug_info): New function.
30787         (finish_record_type): Delegate generation of debug information to
30788         write_record_type_debug_info.
30789         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
30790         (update_pointer_to): Fix pasto.
30791         (convert) <UNION_TYPE>: Accept slight type variations when
30792         converting to an unchecked union type.
30793
30794         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
30795         replace the N_Freeze_Entity with a null statement.
30796
30797         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
30798         within a constrained subcomponent of an enclosing record, place the
30799         freeze nodes in the scope stack entry for the enclosing record.
30800         (Undelay_Type): New Subprogram.
30801         (Set_Small_Size): Pass T, the type to modify; all callers changed.
30802         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
30803         within records; allow them to have freeze nodes if their base types
30804         aren't frozen yet.
30805
30806         * exp_util.adb (Remove_Side_Effects): Properly test for
30807         Expansion_Delayed and handle case when it's inside an
30808         N_Qualified_Expression.
30809
30810         * sem_ch3.adb (Derived_Type_Declaration): New predicate
30811         Comes_From_Generic, to recognize accurately that the parent type in a
30812         derived type declaration can be traced back to a formal type, because
30813         it is one or is derived from one, or because its completion is derived
30814         from one.
30815         (Constrain_Component_Type): If component comes from source and has no
30816         explicit constraint, no need to constrain in in a subtype of the
30817         enclosing record.
30818         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
30819         Minor change to propagate Is_Ada_2005 flag
30820
30821         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
30822         Expansion_Delayed is False.
30823         (assoc_to_constructor): Ignore fields that have a
30824         Corresponding_Discriminant.
30825         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
30826         function returns "by target", dereference the target pointer using the
30827         type of the actual return value.
30828         <all>: Be prepared for a null gnu_result.
30829         (processed_inline_subprograms): Check flag_really_no_inline
30830         instead of flag_no_inline.
30831         (set_second_error_entity): Remove unused function.
30832         (gnat_to_gnu, case N_Selected_Component): Call
30833         gnat_to_gnu_field_decl.
30834         (assoc_to_constructor): Likewise.
30835
30836 2005-03-15  Robert Dewar  <dewar@adacore.com>
30837             Ed Schonberg  <schonberg@adacore.com>
30838             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30839
30840         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
30841         Must_Be_Byte_Aligned for cases where we do not need to use a
30842         System.Pack_nn unit.
30843
30844         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
30845         as procedures.
30846         Needed now that we do some processing for IN parameters as well. This
30847         may well fix some unrelated errors.
30848         (Expand_Call): Handle case of unaligned objects (in particular those
30849         that come from packed arrays).
30850         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
30851         renamed entity is an inherited operation, re-expand the call using the
30852         original operation, which is the one to call.
30853         Detect attempt to inline parameterless recursive subprogram.
30854         (Represented_As_Scalar): Fix to work properly with private types
30855         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
30856         accurate estimate. Yields True in far fewer cases than before,
30857         improving the quality of code that depends on this test.
30858
30859         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
30860         over both visible and private declarations to remove them from tree,
30861         and mark subprograms declared in package as eliminated, to prevent
30862         spurious use in subsequent compilation of generic units in the context.
30863
30864         * exp_util.ads: Minor cleanup in variable names
30865
30866         * sem_eval.ads, sem_eval.adb: Minor reformatting
30867         (Compile_Time_Known_Bounds): New function
30868
30869 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30870
30871         * exp_ch7.adb (Convert_View): Use base types of underlying types when
30872         determining whether an unchecked conversion is needed for the argument
30873         of an initialization call.
30874
30875 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30876
30877         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
30878         that appears in the instantiation rather than the internal subtype
30879         generated in the wrapper package, to avoid anomalies in gigi when the
30880         target is derived from a private type whose full view is an access type.
30881
30882 2005-03-15  Robert Dewar  <dewar@adacore.com>
30883
30884         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
30885         not needed.
30886         Add documentation to replace the use of this flag
30887         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
30888         the x86_64.
30889
30890 2005-03-15  Thomas Quinot  <quinot@adacore.com>
30891
30892         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
30893         here from exp_attr so it can be shared between exp_attr and exp_dist.
30894         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
30895         all TSS names, not a subset thereof, and the previous name introduced
30896         an unnecessarily confusion that a distinction might exist between
30897         "OK" TSS names and some "not OK" TSS names.
30898
30899 2005-03-15  Doug Rupp  <rupp@adacore.com>
30900
30901         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
30902         Command_Name.
30903
30904 2005-03-15  Pascal Obry  <obry@adacore.com>
30905             Eric Botcazou  <ebotcazou@adacore.com>
30906
30907         PR ada/20226
30908         PR ada/20344
30909         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
30910         when IN_RTS. This is to work around a bootstrap path problem.
30911
30912         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
30913         table and pass it to __gnat_install_SEH_handler().
30914         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
30915
30916         * lang.opt: Fix specification of -fRTS=.
30917
30918 2005-03-15  Doug Rupp  <rupp@adacore.com>
30919             Bernard Banner  <banner@adacore.com>
30920             Vincent Celier  <celier@adacore.com>
30921             Arnaud Charlet  <charlet@adacore.com>
30922
30923         PR ada/6852
30924         This change works fine when gnatlib is built from the gcc directory,
30925         but does not work when using the libada Makefile, since GCC_FOR_TARGET
30926         is not passed to ada/Makefile.in, so more work is needed by a
30927         Makefile/configure expert.
30928
30929         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
30930         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
30931         Setup gnatlink switch -M for x86_64 linux, as it is already setup
30932         for Linux x86.
30933         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
30934         Run ranlib on libgccprefix.a
30935         Define PREFIX_OBJS for Darwin, to build libgccprefix.
30936         (ADA_INCLUDE_SRCS): Split Ada packages.
30937
30938 2005-03-15  Robert Dewar  <dewar@adacore.com>
30939
30940         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
30941
30942         * impunit.adb: Add GNAT.UTF_32
30943
30944         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
30945
30946         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
30947         now uses GNAT.UTF_32).
30948
30949         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
30950         capabilities for categorizing characters using Unicode categories
30951
30952 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30953
30954         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
30955         instantiation that has been rewritten as a package body, retrieve spec
30956         to generate proper name for implicit_with_clause.
30957         (Install_Parents): Recognize a parent that is an instantiation but has
30958         been rewritten as a package declaration during analysis.
30959
30960 2005-03-15  Javier Miranda  <miranda@adacore.com>
30961             Ed Schonberg  <schonberg@adacore.com>
30962
30963         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
30964         parameter reported some error we immediately return. This improves the
30965         behaviour of the frontend in case of errors.
30966         (Install_Parent, Remove_Parent): Introduce new flag
30967         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
30968         ancestor of a generic child unit, when the child is being instantiated.
30969         (Inline_Instance_Body): If we are compiling the private
30970         part or the body of a child unit, restore the proper visibility of the
30971         parents after compiling the instance body.
30972
30973 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30974             Javier Miranda  <miranda@adacore.com>
30975
30976         PR ada/15608
30977         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
30978         of a private type, in which case it is underlying_type that denotes
30979         the proper task. Also modified to use the new entity attribute
30980         that is directly available in the task type and task subtype entities
30981         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
30982         arrays when other dimensions than the first are constrained by
30983         discriminants of an enclosing record.
30984         (Insert_Explicit_Dereference): If the prefix is an indexed component or
30985         a combination of indexed and selected components, find ultimate entity
30986         and generate the appropriate reference for it, to suppress spurious
30987         warnings.
30988         (Note_Possible_Modification): If an entity name has no entity, return.
30989         (Is_Variable): A function call never denotes a variable.
30990         (Requires_Transient_Scope): For record types, recurse only on
30991         components, not on internal subtypes that may have been generated for
30992         constrained components.
30993
30994 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30995
30996         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
30997         Eliminated as candidates for resolution. Both efficient, and avoids
30998         anomalies with operators declared in deleted code.
30999         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
31000         expansion is disabled (as when compiling a generic) to prevent spurious
31001         warnings on prefixes of selected components.
31002
31003 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
31004
31005         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
31006         attached to a list before checking whether it appears in the private
31007         declarations of the current package.
31008         (Make_Inequality_Operator): Insert declaration in proper declarative
31009         list rather than just setting the Parent field, so that
31010         Is_Private_Declaration can handle it properly.
31011
31012 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
31013
31014         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
31015         a renaming a body, check that the renamed subprogram in not intrinsic.
31016         (Find_Direct_Name): If several use_visible entities hide
31017         each other, and the context is a predefined file compiled through
31018         rtsfind, keep only the entity that comes from a predefined file.
31019
31020 2005-03-15  Geert Bosch  <bosch@adacore.com>
31021
31022         * s-fatgen.adb (Valid): Extend special exceptions to account for long
31023         long float padding to also cover AMD64 and IA64.
31024
31025 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
31026
31027         * s-imgwch.adb: Add with and use of Interfaces.
31028         (Img_Wide_Character): Change type of Val to Unsigned_16.
31029         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
31030
31031 2005-03-15  Matthew Gingell  <gingell@adacore.com>
31032
31033         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
31034
31035 2005-03-15  Robert Dewar  <dewar@adacore.com>
31036
31037         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
31038
31039         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
31040
31041         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
31042
31043 2005-03-15  Robert Dewar  <dewar@adacore.com>
31044
31045         * s-bitops.adb, s-bitops.ads,
31046         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
31047         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
31048         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
31049         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
31050         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
31051         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
31052         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
31053         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
31054         reformatting.
31055
31056 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
31057
31058         * utils2.c (build_binary_op): Fix typo.
31059
31060 2005-03-15  Doug Rupp  <rupp@adacore.com>
31061
31062         * s-crtl.ads (popen,pclose): New imports.
31063
31064 2005-03-15  Cyrille Comar  <comar@adacore.com>
31065
31066         * comperr.adb (Compiler_Abort): remove references to obsolete
31067         procedures in the bug boxes for various GNAT builds.
31068
31069 2005-03-15  Vincent Celier  <celier@adacore.com>
31070
31071         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
31072
31073 2005-03-15  Geert Bosch  <bosch@adacore.com>
31074             Arnaud Charlet  <charlet@adacore.com>
31075             Robert Dewar  <dewar@adacore.com>
31076             Cyrille Comar  <comar@adacore.com>
31077             Sergey Rybin  <rybin@adacore.com>
31078
31079         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
31080         too specific and long-winded to be appropriate for the GNAT User's
31081         Guide.
31082         Warn about use of GCC switches not documented in the GNAT User's Guide,
31083         as these may cause generated code to not conform to Ada semantics.
31084         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
31085         Add documentation for -gnat95 and -gnat05 switches
31086         Remove paragraph documenting obsolete way to refer to third party
31087         libraries.
31088         Add a few references to Ada_05 that were missing.
31089         Update documentation on -gnatZ/-gnatL.
31090         Document limitation when using -m64 under Solaris.
31091         Change the "Name Casing" subsection of the pretty-printer section
31092         according to the changes in the dictionary processing.
31093
31094         * gnat_rm.texi: Document the Ada_05 pragma.
31095         Section on record representation clauses describes the new more
31096         relaxed rules about placement of large packed bit array components.
31097         Add documentation of GNAT.UTF_32
31098
31099 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
31100
31101         * misc.c (gnat_post_options): Turn off structural
31102         aliasing for now.
31103
31104 2005-03-08  Laurent Guerby  <laurent@guerby.net>
31105
31106         * system-linux-sparc.ads: Fix typo in previous commit.
31107
31108 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
31109             Laurent Guerby  <laurent@guerby.net>
31110
31111         PR ada/20035
31112         * system-linux-sparc.ads: New.
31113         * Makefile.in: Add sparc linux entry.
31114
31115 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
31116
31117         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
31118         parameters as unused.
31119
31120 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
31121         Partial merge from libada-gnattools-branch:
31122
31123         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
31124         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
31125         into code in gnattools/Makefile.in.  Remove direct dependencies on
31126         stamp-tools by tools clauses.
31127         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
31128         * config-lang.in: Add gnattools to $lang_dirs.
31129
31130 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
31131
31132         PR ada/19942
31133         * utils.c (gnat_type_for_mode): Return null instead of ICE because
31134         we asked for an unknown mode.
31135
31136 2005-02-12  Richard Henderson  <rth@redhat.com>
31137
31138         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
31139         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
31140
31141 2005-02-10  Andreas Jaeger  <aj@suse.de>
31142
31143         * init.c (__gnat_initialize): Mark parameter as unused.
31144
31145 2005-02-09  Doug Rupp  <rupp@adacore.com>
31146
31147         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
31148         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
31149
31150 2005-02-09  Doug Rupp  <rupp@adacore.com>
31151
31152         * gnatchop.adb (dup, dup2),
31153         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
31154
31155         * gnatlbr.adb (mkdir),
31156         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
31157
31158         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
31159
31160 2005-02-09  Doug Rupp  <rupp@adacore.com>
31161
31162         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
31163
31164 2005-02-09  Robert Dewar  <dewar@adacore.com>
31165             Thomas Quinot  <quinot@adacore.com>
31166             Javier Miranda  <miranda@adacore.com>
31167             Pascal Obry  <obry@adacore.com>
31168             Ed Schonberg  <schonberg@adacore.com>
31169             Doug Rupp  <rupp@adacore.com>
31170             Gary Dismukes  <dismukes@adacore.com>
31171             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31172
31173         * g-zstspl.ads: New file.
31174
31175         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
31176
31177         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
31178         Ada 95 mode
31179         Add definition of Wide_Wide_Space for AI-285
31180
31181         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
31182         interface (to support Ada 95 and Ada 2005 units).
31183         Add Unbounded_IO files
31184         Add entries for Wide_Wide packages for AI-285
31185         Add list of containers packages to Ada 2005 unit list
31186
31187         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
31188         support new Unbounded_IO package cleanly.
31189
31190         * g-utf_32.ads, g-utf_32.adb: New files.
31191
31192         * Makefile.rtl: Add entry for g-utf_32
31193         Add new files for Unbounded_IO
31194         Adjust make file for new AI-285 wide wide packages
31195         Add AI-302 containers to the run time.
31196
31197         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
31198         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
31199         subprograms for AI-301.
31200
31201         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
31202
31203         * a-stunau.ads: Minor comment correction
31204
31205         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
31206         etc.
31207         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
31208         (Check_RPC): Update to match changes in expanded code.
31209         Clean up unused entity.
31210
31211         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
31212         was not taken into account.
31213         This includes proper initialization with Normalize_Scalars.
31214         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
31215         normalize scalars cases (particularly the latter) to do a better job
31216         of finding invalid representations.
31217
31218         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
31219
31220         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
31221         used
31222
31223         * exp_dist.adb: Add support for wide wide character type
31224         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
31225         private part, generate stub bodies at the end of the private part,
31226         not the visible part.
31227         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
31228         PolyORB support.
31229         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
31230         generic wrapper to execute final processing after completing the
31231         expansion of the RPC receiver for an RACW.
31232
31233         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
31234         packages and attributes.
31235         (Preset_Names): Addition of the new reserved words of Ada 2005,
31236         that is interface, overriding and synchronized.
31237         (Get_Pragma_Id): Give support to the use of the new reserved word
31238         "interface" as a pragma name.
31239         (Is_Pragma_Name): Give support to the use of the new reserved word
31240         "interface" as a pragma name.
31241         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
31242         attribute implementation.
31243
31244         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
31245         checks to entities that are output parameters of Asm operations.
31246         Handle the Stream_Size attribute.
31247         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
31248
31249         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
31250
31251         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
31252         for second parameter being 0.0.
31253         Add support for wide wide character type.
31254         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
31255
31256         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
31257         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
31258         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
31259         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
31260         for wide wide character cases.
31261
31262         * cstand.adb: Create entities for Wide_Wide_Character and
31263         Wide_Wide_String.
31264
31265         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
31266         accordance with AI-258.
31267         Add new declarations for 16/32 bit C character types (Part of AI285)
31268
31269         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
31270         (Obsolescent_Warning): New field
31271         (Rep_Clause): New local subprogram used to share code. Returns the rep
31272         clause for which the name is given in parameter.
31273         (Has_Stream_Size_Clause): New routine.
31274         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
31275         (Address_Clause): Implementation is now using Rep_Clause.
31276         (Alignment_Clause): Idem.
31277         (Size_Clause): Idem.
31278
31279         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
31280         entity in non-Ada 2005 mode and generate warning.
31281
31282         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
31283         (Prag): Code cleanup. Remove old gnat pragma "overriding"
31284
31285         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
31286         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
31287         on the named unit if the pragma is not in the current compilation unit,
31288         so that elaboration calls in the current unit can set up an elaboration
31289         dependency on the named unit, as needed.
31290         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
31291         subprogram as well as for subprograms declared within a package.
31292         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
31293         pragma overriding.
31294
31295         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
31296         to z) to avoid some instances of duplication for Wide_Wide packages.
31297
31298         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
31299         characters.
31300
31301         * scn.adb: Char_Literal_Value field is now a Uint
31302
31303         * scng.adb: Significant rewrite to handle new Ada 2005 features
31304         allowing wide and wide wide characters in program text, e.g. for
31305         identifiers, as described in AI-285.
31306         (Set_Reserved): New procedure, makes setting up keywords cleaner.
31307         (Initialize_Scanner): Register the new reserved words of Ada 2005.
31308         (Scan): Give support to the new reserved words.
31309
31310         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
31311         warning notifying that interface, overriding, and synchronized are
31312         new reserved words.
31313         (P_Pragma): Allow the use of the new reserved word "interface" as
31314         a pragma name.
31315
31316         * gnatls.adb, gnatbind.adb,
31317         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
31318         identifiers named "interface" to "SAL_Interface".
31319
31320         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
31321         (Structured Exception handling).
31322         (Gen_Main_C): Idem.
31323
31324         * bindgen.adb:
31325         (Gen_Main_Ada): Set the default exit code if specified.
31326         (Gen_Main_C): Likewise.
31327         Part of *DC20-006.
31328         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
31329         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
31330
31331         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
31332         new -Xnnn switch.
31333
31334         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
31335         has a collision with the new Ada 2005 "interface" reserved word.
31336
31337         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
31338         generate a warning notifying that interface, overriding, and
31339         synchronized are new reserved words.
31340
31341         * scans.ads (Token_Type): Addition of the tokens corresponding to the
31342         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
31343         and Tok_Synchronized.
31344
31345         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
31346         "dispatching" rather than "primitive" operations, since dispatching
31347         calls are now allowed to abstract formal subprograms (which are not
31348         primitive).
31349         Char_Literal_Value field is now a Uint
31350         (Resolve_Slice): If the prefix is an access to an unconstrained array,
31351         compute the actual subtype of the designated object to impose the proper
31352         index constraints.
31353         (Resolve_Selected_Component): Do not insert an access check if the
31354         prefix is an access type: such a node is expanded into an explicit
31355         dereference, on which the access check is performed anyway. Removes
31356         expensive duplicate checks.
31357         (Resolve_Call): Use new flag Is_Obsolescent and field
31358         Obsolescent_Warning so that pragma Obsolescent works on library
31359         subprograms.
31360         Add support for wide wide character type
31361         (Resolve_Allocator): Replace the error message on wrong null-exclusion
31362         value by a warning message.
31363         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
31364         as fixed-point, and one of the operands is non-static and universal, it
31365         can only be an illegal exponentiation operation, in which case there is
31366         no real value to retrieve.
31367
31368         * exp_strm.adb: Add support for wide wide character type
31369         (Build_Elementary_Input_Call): Compute the size of the stream element by
31370         querying the rep chain to find the Stream_Attribute attribute value.
31371         (Build_Elementary_Write_Call): Ditto.
31372
31373         * sem_aggr.adb: Char_Literal_Value field is now a Uint
31374         Add support for wide wide character type
31375         Replace the error messages on wrong null-exclusion value by warnings
31376         as described in Ada 2005.
31377         (Resolve_Extension_Aggregate): Document the fact that the error
31378         message on class-wide expressions in extensions aggregates.
31379
31380         * sem_case.adb: Add support for wide wide character type
31381
31382         * sem_ch13.adb: Add support for wide wide character type
31383         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
31384
31385         * sem_ch3.adb: Add support for wide wide character type
31386         (Process_Subtype): If constraint is illegal for the type, set Ekind of
31387         now-useless Itype, to prevent cascaded errors on a compiler built
31388         without -gnatp.
31389
31390         * sem_ch8.adb: Add with and use of Sem_Disp.
31391         (Analyze_Subprogram_Renaming): Replace unclean uses of
31392         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
31393         of Corresponding_Spec to Empty).
31394         (Attribute_Renaming): Replace use of Corresponding_Spec with
31395         Corresponding_ Formal_Spec and simplify condition.
31396         (Use_One_Package): Check that scope of homonym of identifier is defined,
31397         before checking whether it is a wrapper package.
31398         Add support for wide wide character type
31399
31400         * sem_eval.adb: Add support for wide wide character type.
31401         (Eval_Arithmetic_Op): Check for compile time known signed integer
31402         overflow in the non-static case.
31403         (Subtypes_Statically_Match): A formal scalar type and its base type do
31404         not statically match.
31405
31406         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
31407         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
31408         subtype).
31409         (Unit_Declaration_Node): Ditto.
31410         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
31411         has a packed array type, the prefix has been rewritten into a type
31412         conversion. Determine variable-ness from the converted expression.
31413         Handle wide wide character cases.
31414
31415         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
31416
31417         * stringt.ads, stringt.adb: Handle full UTF-32 range.
31418         Remove ["0A"] from comment, since it can look like a line terminator.
31419         Currently we don't permit this, but this is under discussion by the
31420         ARG, and it is easy enough to use a different example.
31421
31422         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
31423         handling UTF-32 encoding for wide wide character.
31424         Implement new brackets coding ["hhhhhhhh"]
31425         Add UTF-8 encodings for full UTF-32 range
31426
31427         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
31428
31429         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
31430         bit range Add full UTF-32 support.
31431         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
31432         notify that constraint error will be raised at run-time
31433         because a null value is assigned to a null-excluding object.
31434         Remove some obsolete declarations and make Char_Code
31435         unsigned.
31436
31437         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
31438         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
31439         Rcheck subprograms.
31440
31441         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
31442         wrong null-exclusion value by a warning message.
31443         (Enable_Range_Check): Do range check if the prefix is an
31444         explicit dereference whose designated object is an unconstrained array.
31445         Current algorithm for removing duplicate checks is over-eager in this
31446         case.
31447
31448         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
31449         null-exclusion value by a warning message
31450
31451         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
31452         completely. Add support for Uint2 field
31453
31454         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
31455         exp_prag.adb: Char_Literal_Value field is now a Uint.
31456
31457         * exp_util.adb (Insert_Actions): Replace
31458         N_Formal_Subprogram_Declaration by
31459         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
31460         Char_Literal_Value field is now a Uint.
31461
31462         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
31463         defined for subprogram renaming declarations. When set, the field
31464         indicates the defining entity of a corresponding formal subprogram
31465         when the renaming corresponds to a formal subprogram association in an
31466         instantiation.
31467         (Set_Corresponding_Formal_Spec): New procedure to return
31468         Corresponding_Formal_Spec field.
31469         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
31470         (which is now a subtype).
31471         Char_Literal_Value field is now a Uint
31472
31473         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
31474         pointer to the base of the dispatch table.
31475         Minor changes to comments.
31476         (Controlling_Type): New function for determining the tagged type
31477         associated with a tagged primitive subprogram.
31478         (Expand_Dispatching_Call): Add support for a controlling actual that is
31479         directly a value of type Ada.Tag rather than a tagged object.
31480
31481         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
31482         describing the new layout.
31483         (Dispatch_Table): The expander computes the actual array size, allocates
31484         the Dispatch_Table record accordingly, and generates code that displaces
31485         the base of the record after the Typeinfo_Ptr component. The access to
31486         these components is done by means of local functions.
31487         (Offset_To_Top): New function.
31488         (Typeinfo_Ptr): New function.
31489         (Get_TSD): Modified to access the new position of the TSD.
31490         (Set_TSD): Modified to save the TSD in its new position.
31491
31492         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
31493         case of formal abstract subprograms. Add check and message for -gnat05.
31494         Update comments.
31495
31496         * sem_ch12.adb: Add with and use for Sem_Disp.
31497         (Analyze_Associations): Minor change from "=" to "in" for use of
31498         N_Formal_Subtype_Declaration (which is now a subtype).
31499         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
31500         N_Formal_Subtype_Declaration (which is now a subtype).
31501         (Analyze_Formal_Subprogram): Add handling for
31502         N_Formal_Abstract_Subprogram, marking the formal as abstract and
31503         dispatching, setting the controlling status of the formal parameters
31504         and result, and issuing an error if there is no controlling type for
31505         the formal subprogram.
31506         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
31507         which is an unclean use of that field, we set the new field
31508         Corresponding_Formal_Spec to make the formal subprogram available to
31509         processing in Analyze_Subprogram_Declaration.
31510         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
31511         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
31512         Constrained, so that it is is does not statically match its anonymous
31513         base type.
31514
31515         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
31516         abstract formal subprograms in error check for functions returning
31517         abstract types. Set scope of new designator for
31518         a parameterless subprogram, so that it is available when checking the
31519         body for nested subprograms, before full analysis of said body.
31520         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
31521         subprogram only if inner one comes from source.
31522         (Analyze_Function_Call): If the call is given in object notation, the
31523         analysis of the name rewrites the node and analyzes it with the proper
31524         argument list. After analyzing the name, if the call has been rewritten
31525         and the result type is set, no further analysis is needed.
31526         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
31527         mark in function specification, in a context where the formals are
31528         visible and hide outer homographs.
31529
31530         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
31531         as the tagged type for the cases of abstract formal subprograms and
31532         renamings of those.  Clean up spec comments.
31533         (Check_Dispatching_Context): Add error message to indicate "abstract
31534         procedure", covering the case of a call to a formal abstract procedure
31535         that has statically tagged operands.
31536         (Check_Dispatching_Call): Check for the case of an actual given by
31537         a tag-indeterminate function call whose type is an ancestor of the
31538         containing call's associated tagged type. This situation can occur
31539         for inherited primitives with function defaults. In this case we
31540         use the tagged type's tag directly as the controlling argument for
31541         the calls.
31542         (Expand_Call): Name change on call to Expand_Dispatch_Call.
31543
31544         * sprint.adb (Sprint_Node_Actual): Split
31545         N_Formal_Subprogram_Declaration into two alternatives for the new
31546         cases N_Formal_Abstract_Subprogram_Declaration and
31547         N_Formal_Concrete_Subprogram_Declaration.
31548         Char_Literal_Value field is now a Uint.
31549
31550         * trans.c: Get rid of junk Uint2 reference.
31551         Char_Literal_Value field is now a Uint.
31552         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
31553         (gigi): Correct third arg to gimplify_body.
31554
31555         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
31556         (TYPE_LANG_FLAG_0): Check for record or union.
31557
31558         * treepr.adb: Char_Literal_Value field is now a Uint
31559
31560         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
31561         UI_From_CC.
31562
31563         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
31564         Add full UTF-32 support
31565         Char_Code is now 32 bits
31566
31567         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
31568         wide character UTF_32 line terminators.
31569         Initialize Main_Source_File to avoid error when no main
31570         source is loaded.
31571
31572         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
31573         (Main_Source_File) when no main source has been loaded, to avoid
31574         potential crash.
31575
31576 2005-02-09  Robert Dewar  <dewar@adacore.com>
31577
31578         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
31579         Fix name of Set routine
31580
31581         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
31582         fixed packages.
31583
31584         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
31585         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
31586         fixed packages
31587
31588         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
31589         forms of Get_Line subprograms for AI-301.
31590
31591         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
31592         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
31593         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
31594         a-stwima.ads: Minor reformatting.
31595
31596 2005-02-09  Doug Rupp  <rupp@adacore.com>
31597             Thomas Quinot  <quinot@adacore.com>
31598
31599         * adaint.c, adaint.h
31600         [VMS] (to_ptr32): New function.
31601         (MAYBE_TO_PTR32): New macro.
31602         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
31603         for pointer size.
31604         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
31605         [VMS] (#define fork()): Remove since unneccessary.
31606         (__gnat_set_close_on_exec): New routine to support
31607         GNAT.OS_Lib.Set_Close_On_Exec.
31608
31609         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
31610         the parent side as close-on-exec so that they are not inherited by the
31611         child.
31612
31613         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
31614         set or clear the FD_CLOEXEC flag on a file descriptor.
31615
31616 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
31617             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31618
31619         PR ada/19386
31620         * decl.c:
31621         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
31622         on the field if Pragma Component_Alignment (Storage_Unit).
31623         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
31624         side-effects as if it were a constant; also make SAVE_EXPR to protect
31625         side-effects.
31626         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
31627         UNION_TYPE.
31628         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
31629         (components_to_record): Test it.
31630         Fix improper usage of REFERENCE_CLASS_P.
31631
31632         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
31633         RECORD_TYPE.
31634
31635         * utils2.c: Minor reformatting.
31636
31637         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
31638         handle other cases like RECORD_TYPE.
31639
31640         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
31641
31642 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31643
31644         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
31645         component of an array of arrays in an assignment context, and the
31646         aggregate has component associations that require sliding on
31647         assignment, force reanalysis of the aggregate to generate a temporary
31648         before the assignment.
31649         (Must_Slide): Make global to the package, for use in Gen_Assign.
31650
31651 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31652
31653         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
31654         unchecked union with no inferable discriminants, return a
31655         Raise_Program_Error node, rather than inserting it at the point the
31656         type is frozen.
31657         (Expand_Record_Equality, Component_Equality): Handle properly the case
31658         where some subcomponent is an unchecked union whose generated equality
31659         code raises program error.
31660
31661 2005-02-09  Doug Rupp  <rupp@adacore.com>
31662
31663         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
31664         [VMS] (#define exit hack): Remove.
31665
31666 2005-02-09  Pascal Obry  <obry@adacore.com>
31667             Arnaud Charlet  <charlet@adacore.com>
31668
31669         * init.c (__gnat_initialize): Add a new parameter eh which contains the
31670         address of the exception registration. The Win32 version of this
31671         routine calls __gnat_install_SEH_handler() to initialize the SEH
31672         (Structured Exception Handling) handler.
31673         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
31674         SEH (Structured Exception Handling) now.
31675         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
31676         (__gnat_initialize for ppc-vxworks): Adjust comments and the
31677         preprocessor condition protecting the call to the extra eh setup
31678         subprogram, which is only available for the ppc target.
31679         (__gnat_clear_exception_count): replaced reference to
31680         variable taskIdCurrent by call to taskIdSelf(), cleaner.
31681
31682         * seh_init.c: New file.
31683
31684         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
31685         (GNATBIND_OBJS): Idem.
31686
31687         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
31688         routine takes a new parameter (a pointer to the exception registration
31689         for the SEH (Structured Exception Handling) support.
31690
31691         * raise.h: (__gnat_install_SEH_handler): New prototype.
31692         Update copyright notice.
31693
31694         * s-tassta.adb (Task_Wrapper): Declare the exception registration
31695         record and initialize it by calling __gnat_install_SEH_handler.
31696
31697 2005-02-09  Vincent Celier  <celier@adacore.com>
31698
31699         * make.adb (Gnatmake): Do not fail when the main project has no object
31700         directory.
31701
31702 2005-02-09  Doug Rupp  <rupp@adacore.com>
31703
31704         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
31705         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
31706         [VMS]: Add translations for g-enblsp.adb.
31707
31708         * s-asthan-vms.adb: Removed.
31709         * s-asthan-vms-alpha.adb: Added.
31710
31711 2005-02-09  Pascal Obry  <obry@adacore.com>
31712
31713         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
31714         (LIBGNAT_OBJS): Add seh_init.o.
31715
31716 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31717
31718         PR ada/16592
31719         * Makefile.in: Link all gnat tools with -static-libgcc, since
31720         -shared-libgcc is now used by default on some systems (e.g. linux with
31721         recent binutils).
31722         Remove references to Makefile.prolog/generic, no longer used.
31723
31724 2005-02-09  Vincent Celier  <celier@adacore.com>
31725
31726         * prj-makr.adb (Process_Directory): Put file name in canonical case
31727         before matching against the patterns.
31728         If gnatname has been invoked as <prefix>-gnatname
31729         then invoke the compiler as <prefix>-gcc, not just "gcc".
31730
31731 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31732
31733         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
31734         with expansion disabled. The actual subtype is needed among other
31735         places when the selected component appears in the context of a loop
31736         bound, and denotes a packed array.
31737         (Operator_Check): Always use the first subtype in the
31738         error message, to avoid the appearance of internal base types.
31739         (Transform_Object_Operation): Copy each actual in full
31740         to the parameter associations of the constructed call, rather than
31741         using the shallow copy mechanism of New_Copy_List. This ensures that
31742         the chaining of named associations is done properly.
31743         (Complete_Object_Operation): Rewrite node, rather than
31744         replacing it, so that we can trace back to the original selected
31745         component.
31746
31747         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
31748         and calls that use object notation, if the called function is not
31749         declared  in a withed unit, place the elaboration constraint on the
31750         unit in the context that makes the function accessible.
31751         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
31752         imposes an elaboration constraint between two packages.
31753
31754 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31755
31756         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
31757         views of a private type after handling its private dependents, to
31758         maintain proper stack discipline between entry and exit from the
31759         package.
31760
31761 2005-02-09  Cyrille Comar  <comar@adacore.com>
31762
31763         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
31764         Minor reformatting.
31765
31766 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31767
31768         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
31769         fields for foreign threads.
31770
31771 2005-02-09  Doug Rupp  <rupp@adacore.com>
31772
31773         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
31774         recursion warnings when compiled with -gnatdm.
31775
31776 2005-02-09  Robert Dewar  <dewar@adacore.com>
31777
31778         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
31779         Slight fix to documentation of -gnaty with no parameters
31780
31781         * xr_tabls.ads: Add ??? comment for missing overall comment
31782
31783         * xsinfo.adb: Make default file name be sinfo.h, since this is what
31784         we now use by default.
31785
31786         * xsnames.adb: Adjust end of file test to look for five space followed
31787         by '#' instead of six spaces. The format of xsnames.adb was modified
31788         in the last update.
31789
31790         * a-numeri.ads: Add reference to AI-388 for greek letter pi
31791         identifier.
31792
31793         * clean.adb: Minor reformatting.
31794
31795         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
31796         gnatname.adb: Minor reformatting
31797         Add 2005 to copyright output when utility is run
31798
31799         * csets.adb: Eliminate obsolete comment
31800
31801         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
31802         Update comments.
31803
31804         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
31805
31806 2005-02-09  Sergey Rybin  <rybin@adacore.com>
31807
31808         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
31809         the difference between compact and incompact layout and add the record
31810         representation clause to the example illustrating different layouts.
31811         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
31812         component clauses").
31813
31814 2005-02-09  Florian Villoing  <villoing@adacore.com>
31815
31816         * gnat_ugn.texi: Fix typos.
31817         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
31818         @file.
31819         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
31820         in the generated documentation.
31821
31822 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31823
31824         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
31825         longer supported.
31826         Update linker wrapper when linking with non GNU C++.
31827
31828 2005-02-09  Pascal Obry  <obry@adacore.com>
31829
31830         * gnat_ugn.texi:
31831         Document the procedure to debug the DllMain routine on Windows.
31832         Add note about -funwind-tables and mixed Ada and C/C++ programming in
31833         ZCX mode.
31834         Document new BIND qualifer /RETURN_CODES=VMS.
31835
31836 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
31837
31838         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31839         Edited gnatmetric chapter
31840
31841 2005-02-09  Robert Dewar  <dewar@adacore.com>
31842
31843         * gnat_rm.texi:
31844         Changes to document new wide wide character support
31845         For AI-285
31846         Update documentation on Normalize_Scalars and Initialize_Scalars
31847
31848 2005-02-09  Pascal Obry  <obry@adacore.com>
31849
31850         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
31851
31852 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
31853
31854         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
31855         from the VxWorks kernel) that is needed for getting the active
31856         priority of the different tasks.
31857
31858         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
31859         Use a pragma Elaborate_Body in the spec file instead.
31860         Noticed by code reading.
31861
31862 2005-02-09  Thomas Quinot  <quinot@adacore.com>
31863
31864         * exp_util.ads: Minor correction in comment.
31865
31866 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31867
31868         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
31869         since this procedure is now too complex to be worth inlining.
31870
31871 2005-02-09  Richard Henderson  <rth@redhat.com>
31872
31873         * utils.c (gnat_define_builtin): Remove.
31874         (gnat_install_builtins): Use build_common_builtin_nodes.
31875
31876 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31877
31878         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
31879         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
31880         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
31881         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
31882         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
31883         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
31884         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
31885         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
31886         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
31887         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
31888         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
31889         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
31890         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
31891         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
31892         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
31893         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
31894         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
31895         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
31896         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
31897         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
31898         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
31899         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
31900         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
31901         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
31902         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
31903         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
31904         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
31905         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
31906         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
31907         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
31908         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
31909         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
31910         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
31911         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
31912         library.
31913
31914 2005-01-27  Laurent Guerby  <laurent@guerby.net>
31915
31916         * Makefile.in: Fix a-intnam.ads from previous commit,
31917         add 2005 to copyright.
31918         * a-intman-rtems.ads: Renamed to...
31919         * a-intnam-rtems.ads:
31920
31921 2005-01-27  Laurent Guerby  <laurent@guerby.net>
31922
31923         * Makefile.in: Rename GNAT RTEMS specific files.
31924         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
31925         5rosinte.ads, 5rparame.adb: Replaced by files below.
31926         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
31927         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
31928
31929 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
31930             Laurent Guerby  <laurent@guerby.net>
31931
31932         PR ada/19488
31933         * 5rosinte.ads: Add No_Key constant.
31934         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
31935         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
31936
31937 2005-01-26  Laurent Guerby  <laurent@guerby.net>
31938
31939         PR ada/19414
31940         * i-cobol.adb (Valid_Numeric): Handle zero length case.
31941
31942 2005-01-20  Richard Henderson  <rth@redhat.com>
31943
31944         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
31945         a-intnam-linux.ads and system-linux-alpha.ads.
31946         * a-intnam-linux-alpha.ads: Remove file.
31947         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
31948         * system-linux-alpha.ads: New file.
31949
31950 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
31951
31952         PR ada/13470
31953         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
31954         set to the new string.
31955
31956 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
31957
31958         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
31959         to True.
31960
31961 2005-01-18  Richard Henderson  <rth@redhat.com>
31962
31963         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
31964         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
31965         for alpha-linux.
31966         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
31967
31968 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
31969
31970         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
31971         (GCC_ZCX_Support): Likewise.
31972
31973 2005-01-11  Bastian Blank  <waldi@debian.org>
31974
31975         * system-linux-s390.ads: Define Preallocated_Stacks.
31976         * system-linux-s390x.ads: Likewise.
31977
31978 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
31979
31980         * gnat_ugn.texi: Fix texi errors with null variables.
31981
31982 2005-01-03  Thomas Quinot  <quinot@adacore.com>
31983
31984         * gen-soccon.c: New utility program to generate g-soccon.ads
31985         automatically.
31986
31987         * socket.c, gsocket.h: Split inclusion of system header files into a
31988         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
31989
31990         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
31991         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31992         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
31993         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
31994         should not be edited by hand anymore, but should be regenerated using
31995         gen-soccon.
31996
31997 2005-01-03  Robert Dewar  <dewar@adacore.com>
31998             Ed Schonberg  <schonberg@adacore.com>
31999             Vincent Celier  <celier@adacore.com>
32000
32001         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
32002         on/off, since this is an obsolescent feature, for which we now generate
32003         a warning.
32004
32005         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
32006         warning mode is set and obsolescent usage of this attribute occurs.
32007         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
32008         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
32009         predates, and partly motivates, the adoption of the AI.
32010         Implement new Ada 2005 attribute Mod
32011
32012         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
32013         attribute Mod.
32014
32015         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
32016
32017         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
32018         pragma restrictions.
32019         New entry for Ada 2005 attribute Mod.
32020
32021         * par-prag.adb:
32022         Add recognition of new pragma Restrictions No_Dependence
32023         Recognize restriction No_Obsolescent_Features at parse time
32024
32025         * bcheck.adb: Add circuitry for checking for consistency of
32026         No_Dependence restrictions.
32027
32028         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
32029         restrictions.
32030
32031         * restrict.ads, restrict.adb: Add subprograms to deal with
32032         No_Dependence restrictions.
32033
32034         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
32035         restrictions.
32036
32037         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
32038         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
32039
32040         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
32041         dummy parameter to scng instantiation.
32042         Needed for new restriction No_Obsolescent_Features
32043
32044         * scn.adb: (Obsolescent_Check): New procedure
32045         Needed for new restriction No_Obsolescent_Features
32046
32047         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
32048         specified by AI-285, needed for implementation of AI-388 (adding greek
32049         pi to Ada.Numerics).
32050         Add new generic formal to scng, needed for new restriction
32051         No_Obsolescent_Features.
32052
32053         * s-rident.ads: Add new restriction No_Obsolescent_Features.
32054
32055         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
32056         restrictions lines.
32057         (Scan_ALI): When finding an unexpected character on an R line, raise
32058         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
32059         Ignore_Errors is True, default restrictions are set and scanning of the
32060         ALI file continues with the next line. Also, when Bad_R_Line is raised
32061         and Ignore_Errors is True, skip to the end of le line.
32062
32063         * sem_ch10.adb: Check that explicit with's do not violate
32064         No_Dependence restrictions.
32065         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
32066         illegal context clauses containing child units of instance.
32067
32068         * sem_prag.adb: Processing and checking for new No_Dependence
32069         restrictions.
32070         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
32071         analyze and check the External argument.
32072
32073         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
32074
32075 2005-01-03  Robert Dewar  <dewar@adacore.com>
32076
32077         * atree.adb: Add a fifth component to entities
32078         This allows us to add 32 flags and four new fields
32079
32080         * atree.ads: Add a fifth component to entities
32081         This allows us to add 32 flags and four new fields
32082
32083         * einfo.ads, einfo.adb: Document new fields and new flags now available
32084         Add routines for printing new fields
32085
32086         * treepr.adb: Call routines to print out additional fields if present
32087
32088 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
32089
32090         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
32091         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
32092
32093         * Makefile.in: Add support to build shared Ada libraries on solaris x86
32094         Remove gpr2make, replaced by gprmake.
32095         Remove references to gnatmem and libaddr2line.
32096         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
32097         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
32098         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
32099         a-numaux-darwin.ads and a-numaux-darwin.adb
32100         Enable mlib-tgt-lynxos.adb on lynxos.
32101
32102         * Make-lang.in: Remove rules for gpr2make.
32103         When generating sdefault.adb, do not call Relocate_Path
32104         on S3 for function Target_Name, as it is not a path.
32105         Remove references to gnatmem and libaddr2line.
32106
32107         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
32108         files.
32109
32110 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
32111
32112         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
32113         address is incompatible with its base type alignment constraints when
32114         this can be decided statically.
32115
32116 2005-01-03  Olivier Hainque  <hainque@adacore.com>
32117
32118         * decl.c (compatible_signatures_p): New function. The intended purpose
32119         is to check if two function signatures for a call-site and a callee are
32120         compatible enough for the call to be valid. The underlying purpose is
32121         to check if a call to a mapped builtin is using the right interface.
32122         The current code actually does not check antyhing - this a placeholder
32123         for future refinements.
32124         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
32125         builtin calls for convention Intrinsic.
32126
32127         * gigi.h (builtin_decl_for): Declare (new function).
32128
32129         * utils.c (gnat_install_builtins): Install the target specific builtins.
32130         (builtin_decl_for): New function, provide a dummy body for now.
32131
32132 2005-01-03  Geert Bosch  <bosch@adacore.com>
32133
32134         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
32135         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
32136         (Pred): Implement in terms of Succ.
32137
32138         * trans.c (convert_with_check): Reimplement conversion of float to
32139         integer.
32140
32141 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
32142             Vincent Celier  <celier@adacore.com>
32143
32144         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
32145         bounds can be negative, and must be declared Int, not Nat.
32146
32147         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
32148         array is checked after using the index in the array.
32149
32150         * makegpr.adb (Add_Switches): Check if there is a package for the
32151         processor. If there is no package, do not look for switches.
32152
32153 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
32154
32155         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
32156         generation of predefined stream operations (specs and bodies) should
32157         proceed. Under various restrictions these subprograms must not be
32158         generated.
32159
32160 2005-01-03  Thomas Quinot  <quinot@adacore.com>
32161
32162         * exp_dist.adb:
32163         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
32164         amount of PCS-specific code in RACW stubs generation.
32165         (Copy_Specification): Set Etype on copied formal parameter entities, as
32166         this information is needed for PolyORB stubs generation.
32167         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
32168         variable Dynamic_Async.
32169         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
32170         (Build_RPC_Receiver_Specification): Make generic again, as recent
32171         changes have allowed RPC receivers to have the same profile for both
32172         variants of the PCS.
32173         Reorganise RPC receiver generation to reduce differences between the
32174         structure of GARLIC and PolyORB RPC receivers.
32175         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
32176         PCS-specific.
32177         Simplify elaboration code for RCI packages.
32178
32179         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
32180         generation to reduce differences between the structure of GARLIC and
32181         PolyORB RPC receivers.
32182
32183         * s-stratt.adb: Fix typo in comment.
32184
32185 2005-01-03  Thomas Quinot  <quinot@adacore.com>
32186
32187         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
32188         copied from Make_Init_Call).
32189
32190         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
32191         reads and assignments on a temporary variable declared with appropriate
32192         discriminants.
32193
32194 2005-01-03  Robert Dewar  <dewar@adacore.com>
32195
32196         * i-c.adb (To_C): Raise CE if string is null and Append_Null
32197
32198 2005-01-03  Robert Dewar  <dewar@adacore.com>
32199
32200         * i-cstrin.adb (Update): Do not append a null in form called with a
32201         String. This avoids unintended behavior.
32202
32203 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
32204
32205         PR ada/17527
32206         * init.c: Fix warnings on Free BSD section.
32207
32208 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
32209
32210         PR ada/16949
32211         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
32212         xsinfo.adb).
32213
32214 2005-01-03  Vincent Celier  <celier@adacore.com>
32215
32216         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
32217         libraries when Unique_Compile is True (-u switch).
32218         (Gnatmake): ditto.
32219
32220 2005-01-03  Robert Dewar  <dewar@adacore.com>
32221
32222         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
32223         upper case letter or underscore after W, as allowed by spec.
32224
32225 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
32226
32227         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
32228         darwin port by using proper type definitions from header files.
32229         Use SIGTERM instead of SIGABRT for SIGADAABORT.
32230
32231 2005-01-03  Robert Dewar  <dewar@adacore.com>
32232
32233         * par.adb: Enhance error message handling for configuration file
32234         pragmas.
32235
32236 2005-01-03  Robert Dewar  <dewar@adacore.com>
32237
32238         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
32239         removed during the previous update (test properly for case of dividing
32240         largest negative number by -1, which generates overflow).
32241
32242 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
32243             Sergey Rybin  <rybin@adacore.com>
32244
32245         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
32246         to use as the defining identifier for a formal package.
32247         (Remove_Parent): If the instance takes place within (an instance of)
32248         a sibling, preserve private declarations of common parent.
32249
32250 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
32251
32252         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
32253         to determine whether one of the operands is a fixed-point type for
32254         which a user-defined multiplication or division operation might be
32255         defined.
32256
32257         * sem_res.adb (Valid_Conversion): The legality rules for conversions
32258         of access types are symmetric in Ada 2005: either designated type can
32259         be unconstrained.
32260
32261 2005-01-03  Vincent Celier  <celier@adacore.com>
32262
32263         * s-fileio.adb (Temp_File_Record): Change length of string component
32264         Name from L_tmpnam + 1 to max_path_len + 1.
32265
32266 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
32267
32268         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
32269         Self_Id.Deferral_Level = 0.
32270         (Do_Pending_Action): Move this function to the spec.
32271
32272         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
32273         Do_Pending_Action explicitely when needed, in case we're using
32274         No_Abort restrictions.
32275
32276         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
32277         deferral level since it will not get changed by the generated code.
32278         Keeping a default value of 1 would prevent some operations (e.g.
32279         select or delay) to proceed successfully.
32280
32281 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
32282             Robert Dewar  <dewar@adacore.com>
32283             Cyrille Comar  <comar@adacore.com>
32284
32285         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
32286         porting guide chapter (vms version).
32287         Revised doc title (removed "for native platforms") and subtitle.
32288         Add discussion on warning flag for obsolescent features. First we
32289         note that it applies to obsolete GNAT features, which was previously
32290         omitted. Second we contrast the behavior with that of the new
32291         Ada 2005 AI-368 restriction No_Obsolescent_Features.
32292         Preliminary rewriting of GNAT & libraries chapter in order to take
32293         into account default project locations & new project manager
32294         capabilities.
32295
32296 2005-01-03  Robert Dewar  <dewar@adacore.com>
32297
32298         * cstand.adb (Create_Operators): Clean up format and documentation of
32299         unary and binary operator result tables. No change in code, just
32300         reformatting and addition of comments.
32301
32302         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
32303         sem_ch2.adb: Minor reformatting
32304
32305         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
32306         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
32307         comments for Tree_Read and Tree_Write.
32308
32309 2005-01-03  Pascal Obry  <obry@adacore.com>
32310
32311         * exp_attr.ads: Minor reformatting.
32312
32313 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
32314
32315         * comperr.adb (Compiler_Abort): Add specialized message for GAP
32316         versions.
32317
32318 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
32319
32320         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
32321         whether the ancestor type is private, as may be the case with nested
32322         instantiations.
32323
32324 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
32325
32326         PR ada/19128
32327         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
32328
32329 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
32330
32331         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
32332         * utils2.c (build_unary_op): Likewise.
32333
32334 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32335
32336         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
32337
32338 2004-12-19  Richard Henderson  <rth@redhat.com>
32339
32340         * trans.c (gigi): Update gimplify_body call.
32341
32342 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
32343
32344         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
32345
32346 2004-12-07  Ed Falis  <falis@adacore.com>
32347
32348         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
32349         current task being suspended.
32350
32351         * init.c (__gnat_clear_exception): added to reset VxWorks exception
32352         count.
32353         (__gnat_map_signal): removed test for current task being suspended.
32354
32355 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
32356
32357         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
32358         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
32359         targets (such as AAMP).
32360
32361 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
32362
32363         * atree.adb (Visit_Itype): Create a new name for the generated itype,
32364         because the back-end may otherwise treat it as a redefinition of the
32365         old symbol.
32366
32367 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
32368
32369         * back_end.adb (Scan_Back_End_Switches): Accept --param.
32370
32371         * lang-specs.h: Accept --param.
32372
32373 2004-12-07  Vincent Celier  <celier@adacore.com>
32374
32375         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
32376         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
32377         Current_Body_Suffix => Ada_Body_Suffix).
32378         Take into account Externally_Built attribute.
32379
32380         * clean.adb (In_Extension_Chain): Always return False when one of the
32381         parameter is No_Project.
32382         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
32383         Ada_Language_Index).
32384         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
32385         Process_Languages for procedure Parse).
32386
32387         * gnatcmd.adb (Carg_Switches): New table.
32388         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
32389         Adapt to name changes in package Prj (Current_Spec_Suffix =>
32390         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
32391
32392         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
32393         Header_Num and function Hash are now declared in package Prj,
32394         not Prj.Com.
32395
32396         * prj.adb (Suffix_Of): New function.
32397         (Set (Suffix)): New procedure.
32398         (Hash): One function moved from Prj.Com
32399         (Is_Present, Language_Processing_Data_Of): New functions
32400         (Set): Two new procedures
32401         (Add_Language_Name, Display_Language_Name): New procedures
32402
32403         * prj.ads: (Suffix_Of): New function
32404         (Set (Suffix)): New procedure
32405         Add several types and tables for multi-language support.
32406         (Header_Num): Type moved from Prj.Com
32407         (Hash): Two functions moved from Prj.Com
32408         (Is_Present, Language_Processing_Data_Of): New functions
32409         (Set): Two new procedures
32410         (Add_Language_Name, Display_Language_Name): New procedures
32411         (Naming): Component name changes:
32412         Current_Spec_Suffix => Ada_Spec_Suffix,
32413         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
32414         Impl_Suffixes, Supp_Suffixes.
32415         (Project_Data): New components: Externally_Built, Supp_Languages,
32416         First_Language_Processing, Supp_Language_Processing, Default_Linker,
32417         Default_Linker_Path.
32418
32419         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
32420         new package Language_Processing with its attributes (Compiler_Driver,
32421         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
32422         Binder_Driver, Default_Linker).
32423
32424         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
32425         (Header_Num): Type moved to package Prj
32426
32427         * prj-env.adb: Adapt to name changes in package Prj
32428         (Current_Spec_Suffix => Ada_Spec_Suffix,
32429         Current_Body_Suffix => Ada_Body_Suffix).
32430
32431         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
32432         default to the project path, except the "-" is one of the directories
32433         in env var ADA_PROJECT_PATH.
32434         (Current_Project_Path): Global variable, replacing Project_Path
32435         that was in the body of Prj.Part.
32436         (Project_Path): New function
32437         (Set_Project_Path): New procedure
32438         Initialize Current_Project_Path during elaboration of the package
32439         Remove dependency on Prj.Com, no longer needed
32440
32441         * prj-ext.ads (Project_Path): New function
32442         (Set_Project_Path): New procedure
32443
32444         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
32445         suffix is defined for language <lang>.
32446         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
32447         accessing directly the components of Naming.
32448         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
32449         Reorganise of this package.
32450         Break procedure Check in several procedures.
32451
32452         * prj-nmsc.ads: Replace all procedures (Ada_Check,
32453         Other_Languages_Check and Language_Independent_Check) with a single
32454         procedure Check.
32455
32456         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
32457         Process_Languages, no longer needed.
32458
32459         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
32460         Current_Project_Path.
32461         Remove elaboration code, moved to the body of Prj.Ext
32462         Use new function Prj.Ext.Project_Path instead of old variable
32463         Project_Path.
32464         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
32465         When comparing with project paths on the stack, first put the resolved
32466         path in canonical case.
32467         (Parse_Single_Project): Set the path name of the project file in the
32468         tree to the normalized path.
32469
32470         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
32471         parameter Process_Languages, no longer needed.
32472         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
32473         Other_Languages_Check.
32474
32475         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
32476         to store the resolved canonical path of the project file.
32477         Remove dependency to Prj.Com, no longer needed
32478
32479         * prj-util.adb: Adapt to name changes in package Prj
32480         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
32481         Ada_Body_Suffix).
32482
32483         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
32484         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
32485         Externally_Built, Include_Option, Language_Processing.
32486
32487         * makegpr.adb: Numerous changes due to changes in packages
32488         Prj and Prj.Nmsc.
32489
32490         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
32491         default to the project path, except whe "-" is one of the directories
32492         in env var ADA_PROJECT_PATH.
32493         (Gnatls): In verbose mode, add the new section "Project Search Path:"
32494
32495 2004-12-07  Robert Dewar  <dewar@adacore.com>
32496
32497         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
32498
32499         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
32500         set -gnatR3m mode.
32501
32502         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
32503         flag. No longer needed now that we handle this in gnat1drv.adb.
32504
32505         * repinfo.ads: Minor reformatting
32506
32507 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32508             Olivier Hainque  <hainque@adacore.com>
32509             Eric Botcazou  <ebotcazou@adacore.com>
32510
32511         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
32512         TYPE_SIZE_UNIT of result type if SIZE is not specified.
32513         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
32514         of a bitfield, which we know is useless and causes trouble because of
32515         alignment implications.
32516
32517         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
32518         BSS sections.
32519         (process_attributes): Clear DECL_COMMON again when a section attribute
32520         is present.
32521         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
32522         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
32523         (create_field_decl): Special case ADDRESSABLE negative to mean
32524         "no bitfield creation", to be used by make_aligning_type. Don't
32525         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
32526         fields claimed addressable still have to be bitfields. Use
32527         value_factor_p instead of a raw binop construction to check for the
32528         position's alignment.
32529
32530 2004-12-07  Geert Bosch  <bosch@adacore.com>
32531
32532         * eval_fat.adb: Revert previous change.
32533
32534 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32535             Ed Schonberg  <schonberg@adacore.com>
32536
32537         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
32538         with an implicit dereference as its prefix, use
32539         Insert_Explicit_Dereference instead of merely rewriting the prefix into
32540         an explicit dereference. This ensures that a reference to the original
32541         prefix is generated, if appropriate.
32542
32543         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
32544         dereference is rewritten to an explicit one, generate a reference to
32545         the entity denoted by its prefix using the original prefix node, so
32546         the dereference can be properly recorded as a read of the denoted
32547         access value, if appropriate.
32548
32549         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
32550         emitting 'assigned but never read' warning on a variable on the basis
32551         that it has an access type.
32552         (Check_References): Emit unreferenced warning when the scope is a
32553         subprogram body.
32554
32555 2004-12-07  Robert Dewar  <dewar@adacore.com>
32556             Ed Schonberg  <schonberg@adacore.com>
32557
32558         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
32559         intrinsic
32560
32561         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
32562         leaving call unchanged.
32563         This deals with the case where the pragma Import specified
32564         an external name, to be handled by the back end.
32565
32566         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
32567         subprogram which is Imported with convention Intrinsic if an
32568         External_Name argument is specified.
32569         (Process_Import_Or_Interface): Properly diagnose link name argument.
32570         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
32571         with Sem_Ch6.Cannot_Inline.
32572         (Process_Inline): Provide separate warning for inapplicable inline
32573         pragma.
32574         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
32575         treatment is uniform on different targets.
32576
32577 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
32578
32579         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
32580         construct is rewritten, preserve end label to permit source navigation.
32581
32582 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32583
32584         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
32585         Specific_Build_Stub_Target): New subprograms.
32586         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
32587         the PCS implementation used, using the above PCS-customized subprograms.
32588         Minor reformatting.
32589         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
32590         for generation of DSA code targeted to the PolyORB PCS.
32591         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
32592         implementation of the partition communication subsystem in ancillary
32593         subprograms.
32594         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
32595         PolyORB_Support.Build_Stub_Type): New subrograms containing the
32596         PCS-specific part of Add_Stub_Type.
32597         (Insert_Partition_Check): Use runtime library function to perform
32598         E.4(19) check.
32599
32600         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
32601         (RE_Same_Partition): New entity, from s-parint.
32602
32603         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
32604
32605 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
32606
32607         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
32608         Output the copyright message on a separate line from the version
32609         message.
32610
32611 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
32612
32613         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
32614         compile-time warning.
32615
32616 2004-12-07  Robert Dewar  <dewar@adacore.com>
32617
32618         * g-regpat.adb: (Match): Change a misuse of or to or else
32619
32620 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
32621
32622         * lib-xref.adb:
32623         (Generate_Reference): Handle properly a reference to an entry formal,
32624          when an accept statement has a pragma Unreferenced for it.
32625
32626         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
32627         and the Has_Pragma_Unreferenced flag for each formal before analyzing
32628         the body, to ensure that warnings are properly emitted for each accept
32629         statement of a given task entry.
32630
32631 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
32632
32633         * Makefile.in: Add support for foreign threads on VMS.
32634
32635 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32636
32637         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
32638         Remove.
32639         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
32640
32641         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
32642
32643         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
32644         exception.
32645         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
32646
32647 2004-12-07  Robert Dewar  <dewar@adacore.com>
32648
32649         * nlists.adb (Prepend_Debug): Remove parameters and nest within
32650         Prepend.
32651         (Remove_Next_Debug): Same fix
32652
32653         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
32654         maintain back pointers now, though we did not used to, and comments
32655         were out of date).
32656         (Prepend): Remove pragma Inline.
32657         (Remove_Next): Same cleanup
32658
32659 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32660
32661         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
32662         used to record an implicit dereference as a read operation on its
32663         prefix when operating under -gnatc. Necessary to avoid spurious
32664         'variable assigned but never read' warnings in that mode.
32665         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
32666         is a non-overloaded implicit dereference, call the above subprogram to
32667         ensure proper recording of references.
32668
32669 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
32670
32671         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
32672         to be resolved later as part of Analyze_Iteration_Scheme's call to
32673         Make_Index.
32674
32675 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
32676
32677         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
32678         prefix is not a scalar type, place error message on prefix, not on
32679         type entity.
32680
32681 2004-12-07  Bernard Banner  <banner@adacore.com>
32682
32683         * vxaddr2line.adb: Add support for x86 vxworks
32684
32685 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32686
32687         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
32688         documentation of the behaviour of these functions when passed an IP
32689         address that has no record in the system hosts database and no reverse
32690         record in the DNS.
32691
32692         * cstand.adb, a-tags.ads: Fix typos in comment.
32693
32694 2004-12-07  Robert Dewar  <dewar@adacore.com>
32695
32696         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
32697         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
32698         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
32699         s-poosiz.ads: Minor reformatting
32700
32701         * make.adb: Minor reformatting
32702         Add some ??? comments asking for more comments
32703
32704         * s-poosiz.adb: Minor reformatting
32705         Add comments on alignment requirement
32706
32707         * sinfo.ads: Remove obsolete comment and fix typo.
32708
32709 2004-12-07  Vincent Celier  <celier@adacore.com>
32710             Sergey Rybin  <rybin@adacore.com>
32711
32712         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
32713         Files" with the new tool and package names.
32714         Reformatting to suppress most of the warnings for line too long
32715         Document the new section "Project Search Path:" in the output of
32716         gnatls -v.
32717         Add gnatmetric section
32718
32719 2004-12-07  Vincent Celier  <celier@adacore.com>
32720
32721         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
32722         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
32723         and -eit to -ept. Added qualifier
32724         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
32725
32726 2004-11-27  Andreas Schwab  <schwab@suse.de>
32727
32728         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
32729
32730 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
32731
32732         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
32733         internal implementation unit GNAT.Sockets.Thin,
32734         as their usage for sockets is non-portable (using the read and write
32735         functions from the system runtime library is fine on UNIX but won't
32736         work under Windows).
32737
32738         * mingw32.h: Update copyright notice.
32739
32740 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
32741
32742         * ada-tree.h: Minor reformatting of previous change to avoid lines
32743         longer than 79 characters.
32744
32745 2004-11-25  Olivier Hainque  <hainque@adacore.com>
32746
32747         * tb-gcc.c: GCC infrastructure based implementation of
32748         __gnat_backtrace.
32749
32750 2004-11-24  Steven Bosscher  <stevenb@suse.de>
32751
32752         * misc.c (gnat_post_options): Don't clear
32753         flag_inline_functions.
32754
32755 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
32756
32757         PR ada/17986
32758         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
32759         tree.
32760
32761 2004-11-21  Andreas Jaeger  <aj@suse.de>
32762
32763         * stylesw.adb: Change Style_Check_Subprogram_Order to
32764         Style_Check_Order_Subprograms.
32765
32766 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
32767
32768         * adaint.h, adaint.c
32769         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
32770         to avoid warnings.
32771         Add also a cast to kill another warning.
32772         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
32773         parameter with the priority class of the parent process instead of
32774         always using the NORMAL_PRIORITY_CLASS.
32775         (__gnat_dup): New function.
32776         (__gnat_dup2): New function.
32777         (__gnat_is_symbolic_link): Enable the effective body of this
32778         function when __APPLE__ is defined.
32779
32780         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
32781         Update comments.
32782
32783 2004-11-18  Olivier Hainque  <hainque@adacore.com>
32784
32785         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
32786         address of which may be used to represent "others" and "all others"
32787         choices in exception tables, instead of the current harcoded
32788         (void *)0 and (void *)1.
32789         (Setup_Exception): Do nothing in the GNAT SJLJ case.
32790
32791         * gigi.h (others_decl, all_others_decl): New decls representing the
32792         new Others_Value and All_Others_Value objects.
32793         (struct attrib): Rename "arg" component as "args", since GCC expects a
32794         list of arguments in there.
32795
32796         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
32797         corresponding objects exported by a-exexpr, instead of hardcoded dummy
32798         addresses.
32799
32800         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
32801         others_decl and all_others_decl instead of hardcoded dummy addresses
32802         to represent "others" and "all others" choices, which is cleaner and
32803         more flexible with respect to the possible eh pointer encoding policies.
32804
32805         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
32806         (process_attributes): Account for the naming change of the "args"
32807         attribute list entry component.
32808
32809         * decl.c (build_attr_list): Rename into prepend_attributes to allow
32810         cumulating attributes for different entities into a single list.
32811         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
32812         attributes for the current entity and propagate first subtype
32813         attributes to other subtypes.
32814         <E_Procedure>: Attribute arguments are attr->args and not
32815         attr->arg any more.
32816         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
32817         argument provided, as this is what GCC expects. Use NULL_TREE instead
32818         of 0 for trees.
32819
32820 2004-11-18  Robert Dewar  <dewar@adacore.com>
32821
32822         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
32823         Minor reformatting througout (including new function specs)
32824         Add ??? comments asking for clarification.
32825
32826 2004-11-18  Thomas Quinot  <quinot@adacore.com>
32827
32828         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
32829         incomplete duplicate implementation of this subprogram from butil.
32830
32831 2004-11-18  Thomas Quinot  <quinot@adacore.com>
32832
32833         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
32834         procedures factors the common processing for building an RPC receiver
32835         for an RCI package or an RACW type.
32836         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
32837         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
32838         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
32839         in use.
32840         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
32841         Add_RACW_Features.
32842         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
32843         Add_RAST_Features.
32844         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
32845         distribution subprogram identifiers that are either subprogram numbers
32846         or strings.
32847         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
32848         string distribution identifiers assigned to a given subprogram.
32849         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
32850         (Add_RAS_Dereference_TSS): Add comments.
32851         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
32852         is not referenced yet because it will be used by the PolyORB DSA
32853         implementation.
32854         (Insert_Partition_Check): Remove fossile code.
32855         (First_RCI_Subprogram_Id): Document this constant.
32856         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
32857         RAS_Access TSS.
32858         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
32859         replaced with calls to Get_Library_Unit_Name_String. Previously there
32860         were several instances of the same code in different locations in the
32861         compiler; this checkin completes the replacement of all of these
32862         instances with calls to a common subprogram.
32863         Minor reformatting.
32864
32865         * sem_dist.adb: Remove comment noting that RPC receiver generation
32866         should be disabled for RACWs that implement RASs.
32867         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
32868
32869         * sem_util.ads, sem_util.adb (Has_Stream): New function
32870         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
32871         qualified name of a library unit into the name buffer.
32872         (Note_Possible_Modification): Generate a reference only
32873         if the context comes from source.
32874
32875         * snames.ads (PCS_Names): New subtype corresponding to names of
32876         supported implementations of the Partition Communication Subsystem
32877         (PCS) (i.e. the runtime library support modules for the distributed
32878         systems annex).
32879
32880 2004-11-18  Robert Dewar  <dewar@adacore.com>
32881             Ed Schonberg  <schonberg@adacore.com>
32882
32883         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
32884         (Has_Rep_Pragma): New function
32885         (Has_Attribute_Definition_Clause): New function
32886         (Record_Rep_Pragma): Moved here from sem_ch13.adb
32887         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
32888
32889         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
32890
32891         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
32892         (Expand_Pragma_Psect_Object): New procedure
32893         These procedures contain the revised and cleaned up processing for
32894         these two pragmas. This processing was formerly in Sem_Prag, but
32895         is more appropriately moved here. The cleanup involves making sure
32896         that the pragmas are properly attached to the tree, and that no
32897         nodes are improperly shared.
32898
32899         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
32900         pragmas to Exp_Prag, which is more appropriate.
32901         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
32902         check for duplicates Remove use of Is_Psected flag, no longer needed.
32903         Use new Make_String_Literal function with string.
32904
32905         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
32906         that are functions return universal values, that have to be converted
32907         to the context type.
32908         Use new Make_String_Literal function with string.
32909         (Get_Stream_Convert_Pragma): New function, replaces the use of
32910         Get_Rep_Pragma, which had to be kludged to work in this case.
32911
32912         * freeze.adb: Use new Has_Rep_Pragma function
32913
32914         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
32915         function with string.
32916         Use new Has_Rep_Pragma function.
32917
32918         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
32919         string argument.
32920
32921 2004-11-18  Robert Dewar  <dewar@adacore.com>
32922
32923         * errout.ads, errout.adb: (First_Sloc): New function
32924
32925         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
32926         check (-gnatyx) instead of being included as a redundant construct
32927         warning.
32928
32929         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
32930         Style_Check_Order_Subprograms.
32931
32932         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
32933         stylesw.adb: Add Style_Check_Xtra_Parens
32934
32935         * usage.adb: Add line for -gnatyx (check extra parens)
32936
32937         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
32938
32939 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
32940             Robert Dewar  <dewar@adacore.com>
32941
32942         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
32943         discriminant of a constrained subtype, analyze the copy of the
32944         corresponding constraint, because in some cases it may be only
32945         partially analyzed.
32946         Removes long-lived ??? comments.
32947
32948         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
32949         handled controlled or secondary-stack expressions within the
32950         iteration_scheme of a loop.
32951
32952         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
32953         bounds that may contain functions calls, to prevent memory leaks when
32954         the bound contains a call to a function that uses the secondary stack.
32955         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
32956         generate temporaries for loop bounds that might contain function calls
32957         that require secondary stack and/or finalization actions.
32958
32959         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
32960         selected component and the selector is overloadable (not just a
32961         function) treat as function call, Analyze_Call will disambiguate if
32962         necessary.
32963         (Analyze_Selected_Component): Do not generate an actual subtype for the
32964         selected component if expansion is disabled. The actual subtype is only
32965         needed for constraint checks.
32966         (Analyze_Allocator): If restriction No_Streams is set, then do
32967         not permit objects to be declared of a stream type, or of a
32968         composite type containing a stream.
32969
32970         * restrict.ads: Remove the a-stream entry from Unit_Array, since
32971         No_Streams no longer prohibits with'ing this package.
32972
32973         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
32974         discriminants, but the parent base has unknown discriminants, there is
32975         no discriminant constraint to inherit. Such a discrepancy can arise
32976         when the actual for a formal type with unknown discriminants is a
32977         similar private type whose full view has discriminants.
32978         (Analyze_Object_Declaration): If restriction No_Streams is set, then
32979         do not permit objects to be declared of a stream type, or of a
32980         composite type containing a stream.
32981
32982 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
32983
32984         * exp_dbug.ads: Update documentation to reflect simpler encoding for
32985         protected operations.
32986
32987         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
32988         generated name, it complicates decoding in gdb and hinders debugging
32989         of protected operations.
32990         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
32991         flag for the protected entry barrier function.
32992         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
32993         flag for the protected entry function.
32994
32995 2004-11-18  Nicolas Setton  <setton@adacore.com>
32996
32997         * expect.c: Define __unix__ when __APPLE__ is defined.
32998
32999         * Makefile.in: Inform the value of the variable GMEM_LIB in the
33000         Darwin-specific section.
33001
33002         * lang-specs.h: Change the placement of the %1 marker.
33003         Works around the fact that gcc adds -fPIC by default under Darwin.
33004
33005 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
33006
33007         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
33008         type of the object with the packed array type, set the Analyzed flag
33009         on the object if it is an entity or simple indexed component, to avoid
33010         spurious type errors.
33011
33012 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
33013
33014         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
33015         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
33016         separate line from the version message.
33017
33018 2004-11-18  Ed Falis  <falis@adacore.com>
33019
33020         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
33021         vthreads.
33022         (init_float): Eliminate initialization of floating point status for
33023         AE653. The instructions have no effect for vThreads.
33024
33025 2004-11-18  Vincent Celier  <celier@adacore.com>
33026
33027         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
33028         gnatbind is invoked with -shared.
33029
33030 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
33031
33032         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
33033         for Detect_Blocking which is redundant with the check done within the
33034         procedure Protected_Single_Entry_Call.
33035         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
33036         Detect_Blocking which is redundant with the check done within the
33037         procedure Protected_Single_Entry_Call.
33038
33039 2004-11-18  Vincent Celier  <celier@adacore.com>
33040
33041         * makegpr.adb (Compile): Put the compiling switches (in package
33042         Compiler and on the command line) immediately after "-c", instead of
33043         at the end of the command line invocation of the compiler, when
33044         compiling a non-Ada file.
33045         (Build_Global_Archive): When there is no need to rebuild the archive,
33046         set Global_Archive_Exists, so that the archive is passed to the linker
33047         if one is needed.
33048
33049 2004-11-18  Robert Dewar  <dewar@adacore.com>
33050             Sergey Rybin  <rybin@adacore.com>
33051
33052         * gnat_ugn.texi:
33053         Remove extra paren check from list of checks for redundant constructs
33054         Add documentation of new -gnatyx style check (check extra parens)
33055         Remove paragraph about gnatelim debug options.
33056
33057         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
33058         objects rather than forbidding dependencies on the package Ada.Streams.
33059
33060         * sinfo.ads: Add ??? note that we should document pragmas passed to
33061         back end.
33062
33063         * g-expect.ads: Fix a few typos in the comments.
33064
33065 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
33066
33067         * misc.c (gnat_handle_option): Use %< and %> for quoting in
33068         warning message.
33069
33070 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33071
33072         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
33073
33074 2004-11-07  Andreas Schwab  <schwab@suse.de>
33075
33076         * Makefile.in (install-gnatlib): Remove spurious hyphen.
33077
33078 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
33079
33080         PR ada/18228
33081         * Makefile.in (darwin): Set soext to .dylib.
33082
33083 2004-10-26  Vincent Celier  <celier@gnat.com>
33084             Thomas Quinot   <quinot@act-europe.fr>
33085
33086         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
33087         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
33088         there is no use of GNAT.Sockets.Constants.
33089         Remove remaining pragma Import for C_Write
33090         Remove C_Read and C_Write from internal implementation unit
33091         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
33092         the read and write functions from the system runtime library is fine
33093         on UNIX but won't work under Windows).
33094
33095         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
33096         (Check_Selector): Use C_Recv instead of C_Read.
33097         Selectors are the GNAT.Sockets abstraction to perform a select()
33098         call on a set of descriptors. To allow abortion of an ongoing
33099         select operation, some data is written to a dedicated socket that
33100         is always monitored.
33101         Under Windows, the write and read library functions cannot operate
33102         on sockets, so we need to use send and recv instead, which is portable
33103         across all supported platforms.
33104
33105         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
33106         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
33107         (using the read and write functions from the system runtime library is
33108         fine on UNIX but won't work under Windows).
33109
33110 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
33111
33112         * mlib-tgt-darwin.adb: New file.
33113
33114         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33115         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33116         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
33117         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
33118         subprogram body.
33119
33120         * Makefile.in: Add support for building shared libraries under Darwin.
33121         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
33122         the low level EH init subprogram to be called from __gnat_initialize.
33123
33124         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
33125         indicates which options to pass to the archive indexer.
33126
33127         * mlib-utl.adb: Add support for calling ranlib with additional
33128         options. This is needed for instance under Mac OS X.
33129         (Ranlib_Options): New global variable, used to store the potential
33130         options to pass to ranlib.
33131         (Ar): Use Ranlib_Options when spawning ranlib.
33132         (Initialize): Set the value of ranlib option.
33133
33134 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
33135
33136         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
33137         instead of 8K, to reflect the real potential needs for stack-checking
33138         in the ZCX case.
33139
33140 2004-10-26  Pascal Obry  <obry@gnat.com>
33141
33142         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
33143
33144         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
33145         Windows only the initial thread stack size can be set so it is good to
33146         start we a low stack size.
33147         The OS will adjust the size as needed.
33148
33149 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
33150             Nicolas Setton  <setton@act-europe.fr>
33151
33152         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
33153         "__unix__" instead of "unix".
33154         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
33155         sections were just mistakenly ignored. The former is
33156         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
33157         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
33158         of hpux. This prevents an unwanted definition of the symbol
33159         convert_addresses in adaint.o.
33160
33161 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
33162
33163         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
33164         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
33165
33166 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
33167
33168         * a-filico.ads, a-filico.adb: fix incorrect header.
33169
33170 2004-10-26  Javier Miranda  <miranda@gnat.com>
33171
33172         * a-ststio.ads: Fix typo in identifier
33173
33174 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
33175
33176         * sem_ch4.adb: Minor reformatting.
33177
33178 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33179
33180         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
33181         enabled, check the result of unary and binary operations when the
33182         expression is the right-hand side of an assignment.
33183
33184 2004-10-26  Vincent Celier  <celier@gnat.com>
33185
33186         * clean.adb (Delete): Do not output warnings when in quiet output and
33187         not in verbose mode.
33188         (Force_Deletions): New Boolean flag, defaulted to False
33189         (Delete): Only delete a file if it is writable, and when
33190         Force_Deletions is True.
33191         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
33192         (Usage): Line for new switch -f
33193         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
33194         own.
33195
33196 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
33197
33198         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
33199         JM type only if its size matches that of the wrapper.  When a size is
33200         prescribed and the field is not aliased, remove the wrapper of a JM
33201         type only if the size is not greater than that of the packed array.
33202         (gnat_to_gnu_entity): Change the extension of packed array wrappers
33203         from LJM to JM.
33204
33205 2004-10-26  Geert Bosch  <bosch@gnat.com>
33206
33207         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
33208         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
33209         (Pred): Implement in terms of Succ.
33210
33211 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33212
33213         * exp_aggr.adb (Safe_Component): An aggregate component that is an
33214         unchecked conversion is safe for in-place use if the expression of the
33215         conversion is safe.
33216         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
33217         be expandable in place even if the aggregate does not come from source.
33218         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
33219         designated object of an allocator in place, rather than building it
33220         first on the stack. The previous scheme forces a full copy of the array,
33221         and may be altogether unsusable if the size of the array is too large
33222         for stack allocation.
33223
33224 2004-10-26  Robert Dewar  <dewar@gnat.com>
33225
33226         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
33227         compares if the component is atomic.
33228
33229         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
33230         array assignment if the component type is atomic.
33231
33232 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33233             Eric Botcazou  <ebotcazou@act-europe.fr>
33234
33235         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
33236         is aliased and is a by_reference type, do not pass by copy.
33237         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
33238         detect whether the call is in the right side of an assignment or
33239         the expression of an object declaration.  Recurse on component
33240         association within aggregates.
33241         Call it in the condition that determines whether the temporary is
33242         necessary for correct stack-checking.
33243
33244 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
33245
33246         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
33247         RACW_Type, used in the PolyORB version.
33248         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
33249         version and the GARLIC version.
33250
33251         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
33252         Rename RCI_Info to RCI_Locator for better consistency between the
33253         GARLIC and PolyORB versions of the distributed systems annex.
33254         (DSA_Implementation_Name): This enumeration lists the possible
33255         implementations of the Partition Communication Subsystem for the
33256         Distributed Systems Annex (DSA). The three available implementations
33257         are the dummy stub implementation (No_DSA), and two versions based on
33258         two different distribution runtime libraries: GARLIC and PolyORB. Both
33259         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
33260         technology.
33261         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
33262         that organization.
33263
33264         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
33265         between the GARLIC and PolyORB versions of the distributed systems
33266         annex.
33267         Remove RE_Unbounded_Reclaim_Pool since it is unused.
33268
33269 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
33270
33271         * gnat1drv.adb: Suppress calling the back end when
33272         Frontend_Layout_On_Target is true.
33273
33274 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
33275
33276         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
33277         Set_Read_Only): New subprograms.
33278         These new routines allow the user to set or unset the Owner execute
33279         and Owner write permission flags on a file.
33280
33281         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
33282         GNAT.OS_Lib.Set_Executable instead of rolling our own.
33283
33284 2004-10-26  Matthew Gingell  <gingell@gnat.com>
33285
33286         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
33287
33288 2004-10-26  Pascal Obry  <obry@gnat.com>
33289
33290         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
33291         memory before the faulting page we properly test the process read
33292         access for this address using appropriate Win32 routine.
33293         (HPUX sections): guard with "__hpux__" instead of "hpux".
33294
33295 2004-10-26  Robert Dewar  <dewar@gnat.com>
33296
33297         * lib-xref.adb (Generate_Reference): Don't complain about reference to
33298         entry parameter if pragma Unreferenced set, since we do not properly
33299         handle the case of multiple parameters.
33300
33301 2004-10-26  Vincent Celier  <celier@gnat.com>
33302
33303         * prj-env.adb: (Contains_ALI_Files): New Boolean function
33304         (Ada_Objects_Path.Add): For a library project, add to the object path
33305         the library directory only if there is no object directory or if the
33306         library directory contains ALI files.
33307         (Set_Ada_Paths.Add.Recursive_Add): Ditto
33308
33309 2004-10-26  Vincent Celier  <celier@gnat.com>
33310
33311         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
33312         extension of library projects.
33313
33314         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
33315         path defaults to ".:<prefix>/lib/gnat".
33316         (Parse): For an extending all project, allow direct import of a project
33317         that is virtually extended.
33318
33319         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
33320         the specified name is directly imported, return its ID. Otherwise, if
33321         an extension of this project is imported, return the ID of the
33322         extension.
33323
33324 2004-10-26  Robert Dewar  <dewar@gnat.com>
33325
33326         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
33327         (Sub3): New procedure, used by Scaled_Divide
33328         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
33329         correct more than one instance of failure to propagate carries
33330         correctly.
33331         (Double_Divide): Handle overflow case of largest negative number
33332         divided by minus one.
33333
33334         * s-arit64.ads (Double_Divide): Document that overflow can occur in
33335         the case of a quotient value out of range.
33336         Fix comments.
33337
33338 2004-10-26  Robert Dewar  <dewar@gnat.com>
33339
33340         * s-bitops.adb (Bit_Eq): Remove redundant check.
33341
33342         * s-bitops.ads: Minor comment updates
33343         Change some occurrences of Address to System.Address
33344
33345         * s-carsi8.ads: Fix minor cut-and-paste error in comments
33346
33347 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33348
33349         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
33350         accessibility check to prefix that is a protected operation.
33351
33352 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33353
33354         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
33355         empty, post message on stub.
33356
33357 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33358             Javier Miranda  <miranda@gnat.com>
33359
33360         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
33361         current instance appears within a unit that is directly in the context
33362         of the main unit.
33363         Used to determine whether the body of the instance should be analyzed
33364         immediately after its spec, to make its subprogram bodies available
33365         for front-end inlining.
33366         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
33367         constraint is not allowed on the component type (AARM 12.5.3(3))
33368
33369 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
33370
33371         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
33372         'Storage_Pool): enhance, document & limit detection of non-sharable
33373         internal pools.
33374
33375         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
33376
33377         * s-pooglo.ads: Add more documentation now that this pool is properly
33378         documented.
33379
33380 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33381
33382         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
33383         or protected type with discriminants, do not constrain the
33384         corresponding record type if the subtype declaration has no
33385         discriminant constraints. This can be the case in source code, or in
33386         the subtype declaration created to rename an actual type within an
33387         instantiation.
33388
33389 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33390
33391         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
33392         different kind of stub (possibly wrong name for file), do not check
33393         for conformance.
33394         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
33395         includes call to some function that returns an unconstrained type, do
33396         not inline.
33397
33398 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33399
33400         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
33401         appear in the code for the main unit. Dependencies among units in the
33402         context of the main unit are established when those other units are
33403         compiled. Otherwise spurious elaboration constraints can generate
33404         incorrect elaboration circularities.
33405
33406 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
33407             Ed Schonberg   <schonberg@gnat.com>
33408
33409         * sem_util.adb (Is_Aliased_View): Defend against the case where this
33410         subprogram is called with a parameter that is not an object name. This
33411         situation arises for some cases of illegal code, which is diagnosed
33412         later, and in this case it is wrong to call Is_Aliased, as that might
33413         cause a compiler crash.
33414         (Explain_Limited_Type): Refine previous fix to include
33415         inherited components of derived types, to provide complete information.
33416
33417         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
33418         is the prival for a protected object.
33419         It is necessary to mark this entity as a variable, in addition to
33420         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
33421         modified to avoid checking the Aliased flag on entities that are not
33422         objects. (Checking that flag for non-objects is erroneous and could
33423         lead to a compiler crash).
33424
33425 2004-10-26  Robert Dewar  <dewar@gnat.com>
33426
33427         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
33428         X_Frac = 0.5, then we know that the number X must be positive.
33429         (Succ): Remove the same redundant test, and also fix the primary test
33430         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
33431         Minor reformatting
33432         (Decompose): Add fuller comments to spec
33433
33434 2004-10-26  Pascal Obry  <obry@gnat.com>
33435
33436         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
33437         validity (process must have read access). Set to 0 in all other cases.
33438         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
33439         violation on Win32.
33440         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
33441         segmentation violation.
33442
33443 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
33444
33445         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
33446         whose type is a constructed subtype of an aliased object with an
33447         unconstrained nominal subtype, convert the actual to the constructed
33448         subtype before taking its address.
33449
33450 2004-10-26  Vincent Celier  <celier@gnat.com>
33451
33452         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
33453         (Is_Path_Name_Case_Sensitive): New function
33454
33455         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
33456         (Base_Name, Simple_Name, Current_Directory, Compose,
33457         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
33458         the result.
33459
33460 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
33461             Vasiliy Fofanov  <fofanov@act-europe.fr>
33462             Vincent Celier   <celier@gnat.com>
33463
33464         * gnat_ugn.texi: Generalize "finding memory problems" section into a
33465         "memory management issues" section and document some of the useful
33466         memory pools provided as part of the GNAT library.
33467         Remove "virtual" from declaration of A::method2 in
33468         the simple example of Ada/C++ mixed system.
33469         Library Projects may be virtually extended: their virtual extensions
33470         are not Library Projects.
33471         Added section on extending project hierarchies.
33472
33473 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
33474
33475         * adaint.c (__gnat_get_libraries_from_registry): Cast value
33476         to LPBYTE.
33477         (__gnat_portable_spawn): Remove const.
33478
33479         * mingw32.h (MAXPATHLEN): Check for previous definition.
33480
33481 2004-10-17  Matthias Klose  <doko@debian.org>
33482
33483         * gnatvsn.ads: Set gnat library version to 4.0.
33484
33485 2004-10-05  Vincent Celier  <celier@gnat.com>
33486
33487         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
33488
33489 2004-10-04  Laurent Guerby  <laurent@guerby.net>
33490
33491         PR ada/15156
33492         * Makefile.in: Define and use RANLIB_FLAGS.
33493
33494 2004-10-04  Pascal Obry  <obry@gnat.com>
33495
33496         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
33497         other x86 platforms).
33498
33499 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
33500
33501         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
33502         in general and triggers stack alignment adjustment for thread entry
33503         points on targets where this is necessary.
33504
33505 2004-10-04  Bernard Banner  <banner@gnat.com>
33506
33507         PR ada/13897
33508         * Makefile.in: Add section for powerpc linux
33509         Add variant i-vxwork-x86.ads
33510
33511         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
33512
33513 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
33514
33515         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
33516         table registration calls when need be. Ensures no reference to the crt
33517         ctors symbol are issued in the SJLJ case, which avoids possible
33518         undefined symbol errors in the case of modules to be statically linked
33519         with the kernel.
33520
33521 2004-10-04  Javier Miranda  <miranda@gnat.com>
33522
33523         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
33524         in-line the code corresponding to subprogram Analyze_Actuals. In
33525         addition, analyze the actuals only in case of subprogram call.
33526
33527 2004-10-04  Ed Falis  <falis@gnat.com>
33528
33529         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
33530
33531 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
33532
33533         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
33534         in the documentation.
33535
33536 2004-10-04  Robert Dewar  <dewar@gnat.com>
33537
33538         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
33539         IF and CASE.
33540         (Analyze_Block_Statement): Add circuitry to detect following dead code
33541         (Check_Unreachable_Code): Handle case of block exit
33542
33543 2004-10-04  Robert Dewar  <dewar@gnat.com>
33544
33545         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
33546         (XMatchD): Avoid warning for Logic_Error call
33547
33548 2004-10-04  Robert Dewar  <dewar@gnat.com>
33549
33550         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
33551         consider expressions buried within a procedure actual to be an actual.
33552         This caused some blowups with uses of packed slices within a procedure
33553         actual.
33554
33555 2004-10-04  Robert Dewar  <dewar@gnat.com>
33556
33557         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
33558         longer need to be initialized to zero.
33559         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
33560         initialized to zero.
33561
33562         * checks.adb (Expr_Known_Valid): Packed arrays are now always
33563         considered valid, even if the representation is modular. That's correct
33564         now that we no longer initialize packed modular arrays to zero.
33565
33566         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
33567         suffixes. These are now documented as the only cases in which the
33568         debugger ignores outer records.
33569         Previously, the spec allowed arbitrary suffixes for this purpose.
33570         Change name of LJM to JM for packed array pad records
33571         Create separate section on packed array handling, and add a whole new
33572         set of comments to this section describing the situation with packed
33573         modular types and justification requirements depending on endianness.
33574
33575 2004-10-04  Robert Dewar  <dewar@gnat.com>
33576
33577         * a-except.adb: Add a comment for last change
33578
33579         * einfo.ads: Minor spelling correction in comment
33580
33581         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
33582
33583         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
33584         messages.
33585
33586         * sem_util.ads: Minor comment update
33587
33588 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33589
33590         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
33591         Inline_Always when in Configurable_Run_Time mode.
33592
33593         * sem_prag.adb (Process_Convention): If entity is an inherited
33594         subprogram, apply convention to parent subprogram if in same scope.
33595         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
33596         when in Configurable_Run_Time mode.
33597
33598 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33599
33600         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
33601         class_wide type after component list has been inherited.
33602
33603 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33604
33605         * sem_ch12.adb (Check_Generic_Actuals): New predicate
33606         Denotes_Previous_Actual, to handle properly the case of a private
33607         actual that is also the component type of a subsequent array actual.
33608         The visibility status of the first actual is not affected when the
33609         second is installed.
33610         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
33611         make fully recursive the treatment of formals of packages declared
33612         with a box.
33613         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
33614         the above on exit from an instantiation.
33615         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
33616         current instantiation which is now complete.
33617         (Analyze_Package_Instantiation): No instantiated body is needed if the
33618         main unit is generic. Efficient, and avoid anomalies when a instance
33619         appears in a package accessed through rtsfind.
33620
33621 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33622
33623         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
33624         do not generate a declaration for a temporary if the call is part of a
33625         library-level instantiation.
33626
33627 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33628
33629         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
33630         searching for a limited component to flag.
33631
33632         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
33633         expansion of Input, to account for the fact that the implicit call
33634         generated by the attribute reference must freeze the user-defined
33635         stream subprogram. This is only relevant to 'Input, because it can
33636         appear in an object declaration, prior to the body of the subprogram.
33637
33638         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
33639         expansion can proceed and further errors uncovered.
33640         (Minor clean up): Fix cases of using | instead of \ for continuation
33641         messages.
33642
33643 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33644
33645         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
33646
33647         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
33648         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
33649         Use gcc_assert and gcc_unreachable.
33650
33651         * decl.c (gnat_to_gnu_entity, case object): Check and process a
33652         specified alignment before validating size.
33653         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
33654         stripped-down declaration for the type of the inner field when making
33655         a JM type.
33656
33657         * utils.c (finish_record_type): Do not compute the size in units
33658         incrementally. Instead compute it once for the rep clause case.
33659         Use gcc_assert and gcc_unreachable.
33660
33661 2004-10-04  Vincent Celier  <celier@gnat.com>
33662
33663         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
33664         in file name.
33665         (Is_Valid_Path_Name): Take '/' as a directory separator.
33666
33667 2004-10-04  Vincent Celier  <celier@gnat.com>
33668
33669         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
33670         (Extended_Project) only if Extended_Project is defined, to avoid
33671         assertion error.
33672         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
33673         resolved path.
33674         (Parse_Single_Project): Ditto.
33675
33676         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
33677         Add_To_Project_Path for virtual projects.
33678
33679 2004-10-04  Vincent Celier  <celier@gnat.com>
33680
33681         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33682         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33683         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
33684         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
33685         parameter Options_2.
33686
33687         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
33688         Build_Dynamic_Library with an empty Options_2.
33689
33690         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
33691         default anymore.
33692
33693         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
33694         directory separator, if any.
33695         (Gprmake): Do not allow mains on the command line for library projects.
33696         Do not attempt to link when the project is a library project.
33697         (Library_Opts): New table to store Library_Options.
33698         (Build_Library): If Library_Options is specified, pass these options
33699         when building a shared library.
33700
33701 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
33702
33703         * s-tposen.adb (Service_Entry): The object must be always unlocked at
33704         the end of this procedure now that the unlock operation was inserted
33705         by the expander.
33706
33707 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
33708
33709         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
33710         corresponding to the Preallocated_Stacks flags in System.
33711         (Get_Target_Parameters): Including the processing for
33712         Preallocated_Stacks.
33713
33714         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
33715         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
33716         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33717         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
33718         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
33719         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
33720         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
33721         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
33722         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
33723         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
33724         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
33725         used to signal whether the compiler creates the required stacks and
33726         descriptors for the different tasks (when True) or it is done by the
33727         underlying operating system at run time (when False).
33728         It is initially set to False in all targets.
33729
33730         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
33731         if it is supported by the target.
33732         (Make_Task_Create_Call): Pass the stack address if it has been
33733         previously created. Otherwise pass a Null_Address.
33734
33735         * snames.adb: Add _stack.
33736
33737         * snames.ads: Add Name_uStack. Required to allow the expander to
33738         statically allocated task stacks.
33739
33740         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
33741         Stack_Address argument.
33742         Check that its value is equal to Null_Address because this target does
33743         not support the static stack allocation.
33744
33745 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
33746
33747         * usage.adb: Change "pragma inline" to "pragma Inline" in information
33748         and error messages
33749
33750 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
33751
33752         * exp_dist.adb: Split declaration of asynchronous flag out of
33753         Add_RACW_Read_Attribute.
33754         Minor reformatting for better alignment with PolyORB version.
33755         Store the entity for the asynchronous flag of an RACW, rather than the
33756         expression, in the asynchronous flags table. This will allow this flag
33757         to be used in other subprograms beside Add_RACW_Read_Attribute.
33758
33759 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
33760
33761         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
33762         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
33763         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
33764         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
33765         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
33766         sockets constant MSG_NOSIGNAL (Linux-specific).
33767         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
33768         all Send operations.
33769         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
33770         from trigerring SIGPIPE.
33771         Rename components to avoid clash with Ada 2005 possible reserved
33772         word 'interface'.
33773         (Check_Selector): When the select system call returns with an error
33774         condition, propagate Socket_Error to the caller.
33775
33776 2004-10-01  Jan Hubicka  <jh@suse.cz>
33777
33778         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
33779
33780 2004-09-23  Robert Dewar  <dewar@gnat.com>
33781
33782         PR ada/17540
33783         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
33784         instead do this at freeze time (we won't do it if there is an address
33785         clause).
33786         Change "pragma inline" to "pragma Inline" in information and error
33787         messages.
33788         Minor reformatting.
33789
33790         * freeze.adb (Check_Address_Clause): Remove previous change, not the
33791         right way of doing things after all.
33792         (Freeze_Entity): For object, set Is_Public for imported entities
33793         unless there is an address clause present.
33794
33795 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
33796
33797         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
33798         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
33799         ensures proper handling of types with rep clauses, which might have
33800         their TYPE_SIZE set already.
33801
33802 2004-09-21  Robert Dewar  <dewar@gnat.com>
33803
33804         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
33805         packed array types in both little- and big-endian cases. This change
33806         ensures that we no longer count on the unused bits being initialized
33807         for such types (and in particular ensures that equality testing will
33808         only read the relevant bits).
33809         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33810         These changes mean that we no longer need to initialize small packed
33811         arrays.
33812         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
33813         optimization to an LJM field as to its parent field.
33814
33815         * ada-tree.h, trans.c, utils.c, utils2.c:
33816         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33817
33818 2004-09-20  Jan Hubicka  <jh@suse.cz>
33819
33820         * utils.c (gnat_finalize): Remove.
33821         (end_subprog_body): Directly call cgraph_finalize_function;
33822         do not lower the nested functions.
33823
33824 2004-09-20  Robert Dewar  <dewar@gnat.com>
33825
33826         PR ada/17540
33827         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
33828         if an address clause is present, since that means that the Import
33829         should be ignored.
33830
33831 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
33832
33833         * 5tsystem.ads: Removed, no longer used.
33834
33835 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
33836             Zack Weinberg  <zack@codesourcery.com>
33837
33838         * ada-tree.def: Use tree_code_class enumeration constants
33839         instead of code letters.
33840         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
33841         Update for new tree-class enumeration constants.
33842
33843 2004-09-17  Vincent Celier  <celier@gnat.com>
33844
33845         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
33846         capabilities of the general project manager.
33847
33848 2004-09-09  Vincent Celier  <celier@gnat.com>
33849
33850         * a-direct.ads: Add pragma Ada_05
33851         (Directory_Entry_Type): Give default value to component Kind to avoid
33852         not initialized warnings.
33853
33854         * a-direct.adb (Current_Directory): Remove directory separator at the
33855         end.
33856         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
33857         an existing directory.
33858         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
33859         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
33860         Convert the result to File_Size.
33861
33862         * prj.ads: (Project_Error): New exception
33863
33864         * prj-attr.adb: Except in procedure Initialize, Fail comes from
33865         Prj.Com, not from Osint.
33866         (Attrs, Package_Attributes): Tables moved to private part of spec
33867         (Add_Attribute, Add_Unknown_Package): Moved to new child package
33868         Prj.Attr.PM.
33869         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
33870         Prj.Project_Error after call to Fail.
33871         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
33872         Fail. Check that package name is not already in use.
33873
33874         * prj-attr.ads: Comment updates to indicate that all subprograms may be
33875         used by tools, not only by the project manager, and to indicate that
33876         exception Prj.Prj_Error may be raised in case of problem.
33877         (Add_Unknown_Package, Add_Attribute): Moved to new child package
33878         Prj.Attr.PM.
33879         (Attrs, Package_Attributes): Table instantiations moved from the body to
33880         the private part to be accessible from Prj.Attr.PM body.
33881
33882         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
33883         from new package Prj.Attr.PM.
33884         (Parse_Attribute_Declaration): Call Add_Attribute from new package
33885         Prj.Attr.PM.
33886
33887         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
33888
33889         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
33890         instead of Elaboration_Checks).
33891
33892         * a-calend.adb: Minor reformatting
33893
33894 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33895
33896         * gigi.h (maybe_pad_type): New declaration.
33897         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
33898
33899         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
33900
33901         * cuintp.c: Convert to use buildN.
33902
33903         * decl.c (maybe_pad_type): No longer static.
33904         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
33905         target pointer.
33906         Convert to use buildN.
33907
33908         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
33909         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
33910         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
33911         RHS.
33912         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
33913         (gnat_gimplify_expr, case ADDR_EXPR): New case.
33914         Convert to use buildN.
33915
33916         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
33917         TREE_READONLY for const.
33918         Convert to use buildN.
33919
33920         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
33921         (create_var_decl): Refine when TREE_STATIC is set.
33922         Convert to use buildN.
33923
33924 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
33925
33926         * gnat_ugn.texi: Delete text relating to checking of ali and object
33927         consistency.
33928
33929         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
33930         routines.
33931
33932 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
33933
33934         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
33935         pragmas recognized by GNAT.
33936
33937         * gnat_rm.texi: Document pragma Detect_Blocking.
33938
33939         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
33940         raise Program_Error if called from a protected operation.
33941
33942         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
33943         the protected action nesting level.
33944         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
33945         protected action nesting level.
33946         (Unlock): When pragma Detect_Blocking is active decrease the protected
33947         action nesting level.
33948
33949         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
33950         Protected_Action_Nesting.
33951
33952         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
33953         Common_ATCB record. It contains the dynamic level of protected action
33954         nesting for each task. It is needed for checking whether potentially
33955         blocking operations are called from protected operations.
33956         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
33957         Detect_Blocking is active or not in the partition.
33958
33959         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
33960         raise Program_Error if called from a protected operation.
33961         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
33962         Program_Error if called from a protected operation.
33963         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
33964         Program_Error if called from a protected operation.
33965
33966         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
33967         raise Program_Error if called from a protected operation.
33968
33969         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
33970         raise Program_Error if called from a protected operation, and increase
33971         the protected action nesting level.
33972         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
33973         Program_Error if called from a protected operation, and increase the
33974         protected action nesting level.
33975         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
33976         protected action nesting level.
33977
33978         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
33979         raise Program_Error if called from a protected operation, and increase
33980         the protected action nesting level.
33981         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
33982         Program_Error if called from a protected operation, and increase the
33983         protected action nesting level.
33984         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
33985         raise Program_Error if called from a protected operation.
33986         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
33987         active, raise Program_Error if called from a protected operation.
33988         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
33989         protected action nesting level.
33990
33991         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
33992         insertion of the statement raising Program_Error. The run time
33993         contains the required machinery for handling that.
33994
33995         * sem_util.ads: Change comment associated to procedure
33996         Check_Potentially_Blocking_Operation.
33997         This procedure does not insert a call for raising the exception because
33998         that is currently done by the run time.
33999
34000         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
34001
34002         * init.c: Add the global variable __gl_detect_blocking that indicates
34003         whether pragma Detect_Blocking is active (1) or not (0). Needed for
34004         making the pragma available at run time.
34005         (__gnat_set_globals): Pass and update the detect_blocking parameter.
34006
34007         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
34008         pragma Detect_Blocking is active.
34009
34010         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
34011
34012         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
34013         DB is found in the ali file. Any unit compiled with pragma
34014         Detect_Blocking active forces its effect in the whole partition.
34015
34016         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
34017         Detect_Blocking is active and delay is called from a protected
34018         operation.
34019
34020         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
34021         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
34022         Detect_Blocking is active (0 otherwise).
34023         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
34024         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
34025         otherwise).
34026
34027 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
34028
34029         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
34030         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
34031         package.
34032
34033         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
34034         (Register_Receiving_Stub): Add Subp_Info formal parameter.
34035         Update API in placeholder implemetation of s-parint to reflect changes
34036         in distribution runtime library.
34037
34038         * sem_ch3.adb (Expand_Derived_Record): Rename to
34039         Expand_Record_Extension.
34040
34041         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
34042         primitive operations of potentially distributed object types that have
34043         non-controlling anonymous access formals.
34044
34045         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
34046         subprogram.
34047         New implementation of expansion for remote access-to-subprogram types,
34048         based on the RACW infrastructure.
34049         This version of sem_dist is compatible with PolyORB/DSA as well as
34050         GLADE.
34051
34052         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
34053         Asynchrronous that applies to a remote access-to-subprogram type, mark
34054         the underlying RACW type as asynchronous.
34055
34056         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
34057          __gnat_using_gnu_linker to 1.
34058
34059         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
34060         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
34061         GNAT.Perfect_Hash_Generators, and remove the empty
34062         GNAT.Perfect_Hash package.
34063
34064         * atree.adb: Minor reformatting
34065
34066         * exp_ch3.adb (Expand_Derived_Record): Rename to
34067         Expand_Record_Extension.
34068         (Build_Record_Init_Proc.Build_Assignment): The default expression in
34069         a component declaration must remain attached at that point in the
34070         tree so New_Copy_Tree copies it if the enclosing record type is derived.
34071         It is therefore necessary to take a copy of the expression when building
34072         the corresponding assignment statement in the init proc.
34073         As a side effect, in the case of a derived record type, we now see the
34074         original expression, without any rewriting that could have occurred
34075         during expansion of the ancestor type's init proc, and we do not need
34076         to go back to Original_Node.
34077
34078         * exp_ch3.ads (Expand_Derived_Record): Rename to
34079         Expand_Record_Extension.
34080
34081         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
34082         Returns the RACW type used to implement a remote access-to-subprogram
34083         type.
34084         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
34085         New subprograms. Used to create a proxy tagged object for a remote
34086         subprogram. The proxy object is used as the designated object
34087         for RAS values on the same partition (unless All_Calls_Remote applies).
34088         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
34089         System.Partition_Interface.Get_Unique_Remote_Pointer.
34090         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
34091         Renamed from Add_RAS_*_Attribute.
34092         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
34093         subprograms.
34094         New implementation of expansion for remote access-to-subprogram types,
34095         based on the RACW infrastructure.
34096
34097         * exp_dist.ads (Copy_Specification): Update comment to note that this
34098         function can copy the specification from either a subprogram
34099         specification or an access-to-subprogram type definition.
34100
34101 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
34102
34103         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
34104         in an instance, between an explicit subprogram an one inherited from a
34105         type derived from an actual.
34106
34107         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
34108         add a polling call if the subprogram is to be inlined by the back-end,
34109         to avoid repeated calls with multiple inlinings.
34110
34111         * checks.adb (Apply_Alignment_Check): If the expression in the address
34112         clause is a call whose name is not a static entity (e.g. a dispatching
34113         call), treat as dynamic.
34114
34115 2004-09-09  Robert Dewar  <dewar@gnat.com>
34116
34117         * g-trasym.ads: Minor reformatting
34118
34119         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
34120         packed arrays, since unused bits are expected to be zero for a
34121         comparison.
34122
34123 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
34124
34125         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
34126         comment.
34127
34128 2004-09-09  Pascal Obry  <obry@gnat.com>
34129
34130         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
34131         enable map file generation. Add the right option to generate the map
34132         file if Map_File is set to True.
34133
34134         * gnatdll.adb (Gen_Map_File): New variable.
34135         (Syntax): Add info about new -m (Map_File) option.
34136         (Parse_Command_Line): Add support for -m option.
34137         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
34138         Minor reformatting.
34139
34140 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
34141
34142         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
34143         new gnatdist implementation.
34144         Define a subpackage isolating the output routines specific to this
34145         verbose mode.
34146
34147 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
34148
34149         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
34150
34151         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
34152
34153 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
34154
34155         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
34156         internal unit.
34157
34158         * opt.ads: Add Ada_Version_Runtime constant used to decide which
34159         version of the language is used to compile the run time.
34160
34161 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
34162
34163         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
34164         of variable length temporaries for function return now that the
34165         back-end and gigi support it.
34166
34167 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34168
34169         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
34170
34171         * trans.c (struct stmt_group): Delete field GLOBAL.
34172         (gnat_init_stmt_group): Do not initialize it.
34173         (call_to_gnu): Use save_expr, not protect_multiple_eval.
34174         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
34175         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
34176         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
34177         (start_stmt_group): Likewise.
34178         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
34179
34180         * utils2.c (ggc.h): Include.
34181         (build_call_raise): Call build_int_cst, not build_int_2.
34182
34183         * utils.c (gnat_init_decl_processing): Fix arg to
34184         build_common_tree_nodes.
34185         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
34186         (gnat_define_builtin): Set built_in_decls.
34187         (init_gigi_decls): Call build_int_cst, not build_int_2.
34188
34189         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
34190         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
34191         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
34192         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
34193         SET_TYPE_MODULE): Use them.
34194         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
34195         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
34196         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
34197         SET_TYPE_ADA_SIZE): Likewise.
34198         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
34199         (DECL_CONST_CORRESPONDING_VAR,
34200         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
34201         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
34202         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
34203         (TYPE_RM_SIZE_NUM): New macro.
34204         (TYPE_RM_SIZE): Modified to use above.
34205
34206         * cuintp.c: (build_cst_from_int): New function.
34207         (UI_To_gnu): Use it.
34208
34209         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
34210         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
34211         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
34212         MIN_EXPR for the size, copy it into new.
34213
34214 2004-09-01  Robert Dewar  <dewar@gnat.com>
34215
34216         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
34217         packed indexed component where array is an IN OUT formal. This
34218         generated garbage code previously.
34219
34220         * gnat_ugn.texi: Document -fverbose-asm
34221
34222         * gnat-style.texi: Minor updates (note that boolean constants and
34223         variables are joined with AND/OR rather than short circuit forms).
34224
34225 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
34226
34227         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
34228         it is an upward conversion of an untagged type with no representation
34229         change.
34230
34231 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
34232
34233         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
34234         System.Partition_Interface.
34235
34236         * checks.adb (Apply_Access_Checks): Do not generate checks when
34237         expander is not active (but check for unset reference to prefix of
34238         dereference).
34239
34240         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
34241         pragma Debug as an if statement with a constant condition, for
34242         consistent treatment of entity references contained within the
34243         enclosed procedure call.
34244
34245 2004-09-01  Vincent Celier  <celier@gnat.com>
34246
34247         * bindgen.adb: (Set_EA_Last): New procedure
34248         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
34249         Set_EA_Last.
34250         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
34251         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
34252         linked without errors.
34253         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
34254         ST and EA.
34255         (Gen_Exception_Table_C): Correct same bugs
34256
34257         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
34258
34259         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
34260         on Windows, make sure that the drive letter is in upper case.
34261
34262         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
34263         Windows, when the drive letter is added and Case_Sensitive is True, the
34264         drive letter is forced to upper case.
34265
34266         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
34267         to Options_2 for the call to MLib.Utl.Gcc.
34268
34269         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
34270         directory separator when defining BASE_DIR.
34271
34272 2004-09-01  Pascal Obry  <obry@gnat.com>
34273
34274         * gprcmd.adb (Extend): Do not output trailing directory separator. This
34275         is not needed and it confuses Windows GNU/make which does not report
34276         directory terminated by a slash as a directory.
34277         (gprcmd): Idem for "pwd" internal command.
34278
34279         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
34280         target names rewrite to fix regressions with recent version of
34281         GNU/make. Starting with GNU/make 3.80 the pipe character was not
34282         handled properly anymore.
34283
34284 2004-09-01  Andreas Schwab  <schwab@suse.de>
34285
34286         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
34287         * raise.c [!IN_RTS]: Undef abort.
34288
34289 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
34290
34291         * utils2.c (build_allocator): Use ssize_int.
34292
34293         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
34294
34295 2004-08-27  Andreas Schwab  <schwab@suse.de>
34296
34297         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
34298
34299 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
34300             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34301
34302         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
34303
34304 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
34305
34306         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
34307         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34308         * utils.c (init_gigi_decls): Likewise.
34309         * utils2.c (build_call_raise, build_allocator): Likewise.
34310
34311 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
34312
34313         * utils.c (gnat_init_decl_processing): Adjust
34314         build_common_tree_nodes call.
34315
34316 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
34317
34318         * utils2.c (build_allocator): Use build_int_cst for negative
34319         size types.
34320
34321 2004-08-18  Richard Henderson  <rth@redhat.com>
34322
34323         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
34324
34325 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
34326
34327         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
34328         call.s
34329         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
34330         (gnat_to_gnu): Likewise.
34331
34332 2004-08-16  Pascal Obry  <obry@gnat.com>
34333
34334         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
34335         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
34336         option and not mdll anymore. Update comment.
34337
34338 2004-08-16  Pascal Obry  <obry@gnat.com>
34339
34340         * bld.adb (Put_Include_Project): Properly handle directory separators
34341         on Windows.
34342
34343 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
34344
34345         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
34346         decreasing the number of allocated junk nodes while searching for the
34347         appropriate subprogram.
34348
34349 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
34350
34351         * cuintp.c (UI_To_gnu): Use build_int_cst..
34352         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34353         * utils.c (init_gigi_decls): Likewise.
34354         * utils2.c (build_call_raise): Likewise.
34355
34356 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
34357
34358         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
34359         for a global aliased object with a variable size and an unconstrained
34360         nominal subtype, pretend there is no initializer if the one we have is
34361         incomplete, and avoid referencing an inexistant component in there. The
34362         part we have will be rebuilt anyway and the reference may confuse
34363         further operations.
34364
34365 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
34366
34367         * einfo.ads: Minor reformatting
34368
34369         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
34370         restrictions in the ALI if we only want to warn about violations.
34371
34372 2004-08-13  Vincent Celier  <celier@gnat.com>
34373
34374         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
34375         when creating a new Unit_Record in table Units.
34376
34377         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
34378         that are violated, if any.
34379
34380         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
34381         add directory separator if path already ends with a directory separator.
34382
34383 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
34384
34385         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
34386         unit, this is an attempt to inline a construct that is not available in
34387         the current restricted mode, so abort rather than trying to continue.
34388
34389         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
34390         discriminants that rename those of the parent, recover names of
34391         original discriminants for the constraint on the full view of the
34392         parent.
34393         (Complete_Private_Subtype): Do not create a subtype declaration if the
34394         subtype is an itype.
34395
34396         * gnat_rm.texi: Added section on implementation of discriminated
34397         records with default values for discriminants.
34398
34399 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
34400
34401         PR ada/15601
34402         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
34403         the second operand is overloaded.
34404
34405 2004-08-10  Richard Henderson  <rth@redhat.com>
34406
34407         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
34408         add __builtin_alloca.
34409
34410 2004-08-10  Richard Henderson  <rth@redhat.com>
34411
34412         * config-lang.in (boot_language): Yes.
34413
34414 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
34415
34416         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
34417         from complaining on potential uninitialized reference.
34418         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
34419         new specification and test explicitly for non-zero return value.
34420
34421         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
34422         returning C.int, to avoid using a derived boolean type.
34423
34424         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
34425         Duplicate_Subexpr_No_Checks in preference to direct use of
34426         Remove_Side_Effects and New_Copy_Tree.
34427         Clear Comes_From_Source on prefix of 'Size attribute reference.
34428
34429         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
34430         g-socthi-vxworks.adb: Change calls to
34431         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
34432         and test explicitly for non-zero return value.
34433
34434         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
34435         (Is_Socket_In_Set): Declare imported function as returning C.int, to
34436         avoid using a derived boolean type.
34437
34438 2004-08-09  Albert Lee  <lee@gnat.com>
34439
34440         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
34441
34442 2004-08-09  Pascal Obry  <obry@gnat.com>
34443
34444         * gnat_ugn.texi: Document new way to build DLLs on Windows using
34445         GCC's -shared option.
34446
34447         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
34448         Options_2 parameter (options put after object files).
34449
34450 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
34451
34452         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
34453         ignore overflows on low and high bounds of an index to also account for
34454         differences in signedness between sizetype and gnu_index_subtype.
34455         These are as legitimate as the ones caused by a lower TYPE_PRECISION
34456         on sizetype.
34457
34458 2004-08-09  Robert Dewar  <dewar@gnat.com>
34459
34460         * s-solita.ads, s-solita.adb: Minor reformatting
34461
34462         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
34463         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
34464         obsolescent section
34465         Add note that No_Implicit_Conditionals does not suppress
34466         run time constraint checks.
34467
34468         * vms_conv.ads: Minor reformatting
34469
34470         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
34471         and necessary for following change).
34472         (Mark): Return new format Mark_Id containing sec stack address
34473         (Release): Use sec stack address from Mark_Id avoiding Self call
34474
34475         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
34476         pointer (cleanup and necessary for following change).
34477         Define Mark_Id as record containing address of secondary stack, that way
34478         Release does not need to find the stack again, decreasing the number of
34479         calls to Self and improving efficiency.
34480
34481         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
34482
34483         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
34484         case variable into the individual case branches when possible.
34485
34486         * sem_ch11.adb: Minor reformatting
34487
34488         * prj.ads: Correct spelling of suffixs
34489
34490         * prj-nmsc.adb: Minor reformatting
34491         Correct spelling suffixs throughout (also in identifiers)
34492
34493         * freeze.adb: Minor spelling correction
34494
34495         * exp_ch2.adb: Cleanups to handling of Current_Value
34496         (no functional effect).
34497
34498         * bld.adb: Correct spelling of suffixs
34499
34500         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
34501
34502 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
34503
34504         PR ada/15408
34505         * sem_ch7.adb (Install_Private_Declarations): In the body of the
34506         package or of a child, private entities are both immediately_visible
34507         and not hidden.
34508
34509 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
34510
34511         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
34512         there are no range checks on the value of the literal.
34513
34514         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
34515         wrapped is the triggering alternative of an asynchronous select, action
34516         statements mustbe inserted before the select itself.
34517
34518         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
34519         case where the prefix is a protected function call.
34520         (Resolve_Attribute, case 'Access): The attribute reference on a
34521         subprogram is legal in a generic body if the subprogram is declared
34522         elsewhere.
34523
34524 2004-08-09  Vincent Celier  <celier@gnat.com>
34525
34526         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
34527         languages, otherwise building the library may fail with unresolved
34528         symbols.
34529         (Compile_Sources): Do not build libraries if -c switch is used
34530
34531         * gnatlink.adb (Process_Args): New switches -M and -Mmap
34532         (Write_Usage): If map file creation is supported, output new switches
34533         -M and -Mmap.
34534         (Gnatlink): When -M is specified, add the necessary switch(es) to the
34535         gcc call, when supported.
34536
34537         * Makefile.in: Added indepsw.o to the object list for gnatlink
34538         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
34539
34540         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
34541         indepsw.adb, indepsw.ads: New files.
34542
34543 2004-08-09  Bernard Banner  <banner@gnat.com>
34544
34545         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
34546
34547         * Makefile.in: add section for vxworks x86
34548
34549 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
34550
34551         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
34552         per-object constrained components where the discriminant is of an
34553         Access type.
34554         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
34555         the parent initialization procedure for derived Unchecked_Unions.
34556         Instead, derived Unchecked_Unions build their own initialization
34557         procedure.
34558         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
34559         Check the body of the subprogram for details.
34560         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
34561         functions for derived Unchecked_Union types by introducing a condition.
34562         Allow the creation of TSS equality functions for Unchecked_Unions.
34563         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
34564         Add formal parameter Discr to function signature. Discr is used to
34565         control the generated case statement for Unchecked_Union types.
34566         (Make_Eq_If): Rename formal parameter Node to E in function signature.
34567
34568         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
34569         Unchecked_Unions.
34570         Check the body of the subprogram for details.
34571         (Expand_Composite_Equality): Augment composite type equality to include
34572         correct handling of Unchecked_Union components.
34573         (Expand_N_In): Add condition to detect illegal membership tests when the
34574         subtype mark is a constrained Unchecked_Union and the expression lacks
34575         inferable discriminants, and build a Raise_Program_Error node.
34576         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
34577         to detect types that contain components of unconstrained Unchecked_Union
34578         subtype. Add condition to detect equality between types that have an
34579         unconstrained Unchecked_Union component, and build a Raise_Program_Error
34580         node. Add condition to detect equality between Unchecked_Union types
34581         that lack inferable discriminants, and build a Raise_Program_Error node.
34582         Otherwise build a TSS equality function call.
34583         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
34584         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
34585         with the operand lacking inferable discriminants, and build a Raise_
34586         Program_Error node.
34587         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
34588         composite equality.
34589         (Has_Inferable_Discriminants): Implement new predicate for objects and
34590         expressions of Unchecked_Union type. Check the body of subprogram for
34591         details.
34592         (Has_Unconstrained_UU_Components): Add function
34593         Component_Is_Unconstrained_UU. It is used to detect whether a single
34594         component is of an unconstrained Unchecked_Union subtype. Add function
34595         Variant_Is_Unconstrained_UU. It is used to detect whether a single
34596         component inside a variant is of an unconstrained Unchecked_Union type.
34597
34598         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
34599         inferred discriminant values. Add condition to generate a case
34600         statement with an inferred discriminant as the switch.
34601         (Make_Component_List_Assign): Introduce a Boolean flag that determines
34602         the behaviour of the subprogram in the presence of an Unchecked_Union.
34603         Add condition to trigger the usage of the inferred discriminant value
34604         as the generated case statement switch.
34605         (Make_Field_Assign): Introduce a Boolean flag that determines the
34606         behaviour of the subprogram in the presence of an Unchecked_Union. Add
34607         condition to trigger the usage of the inferred discriminant value as
34608         the right-hand side of the generated assignment.
34609
34610         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
34611         parameter generation when dealing with Unchecked_Unions.
34612
34613         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
34614         checks for Unchecked_Unions.
34615
34616         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
34617
34618         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
34619         Raise_Program_Error nodes for the execution of Read and Write
34620         attributes of Unchecked_Union types and the execution of Input and
34621         Output attributes of Unchecked_Union types that lack default
34622         discriminant values.
34623
34624         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
34625         Unchecked_Union. Add procedure Check_Component. It is used to inspect
34626         per-object constrained components of Unchecked_Unions for being
34627         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
34628         check individual components withing a variant.
34629
34630         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
34631         comparison of Unchecked_Unions.
34632         (Resolve_Equality_OP): Remove guard that prevents equality between
34633         Unchecked_Unions.
34634
34635         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
34636         of component subtypes for Unchecked_Union components.
34637         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
34638         since it is the actual subtype.
34639
34640         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
34641         pass of Unchecked_Union subtypes as generic actuals to formal types
34642         that lack known_discriminant_parts or that are derived Unchecked_Union
34643         types, and do nothing. In any other case, produce an error message.
34644
34645         * sem_ch3.adb (Analyze_Component_Declaration): Add function
34646         Contains_POC. It determines whether a constraint uses the discriminant
34647         of an enclosing record type.
34648         Add condition to detect per-object constrained component and set the
34649         appropriate flag.
34650         (Derived_Type_Declaration): Remove guard that prevents derivation from
34651         Unchecked_Union types.
34652         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
34653         Union subtypes.
34654
34655         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
34656         references to Unchecked_Union discriminants.
34657
34658         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
34659         formal generation when dealing with Unchecked_Unions.
34660         (Set_Actual_Subtypes): Add condition to prevent generation of actual
34661         subtypes for Unchecked_Unions.
34662
34663         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
34664         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
34665         completions of discriminated partial views by Unchecked_Unions and
34666         produce an error message.
34667
34668 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34669
34670         * trans.c (struct stmt_group): New field, GLOBAL.
34671         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
34672         (struct elab_info): New struct.
34673         (elab_info_list, gnu_elab_proc_stack): New variables.
34674         (Compilation_Unit_to_gnu): New procedure.
34675         (gigi): Call it and also handle elaboration procs we've saved.
34676         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
34677         global field from parent.
34678         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
34679         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
34680         (start_stmt_group): Initialize global field from parent.
34681         (add_decl_expr): Set to global for current statement group.
34682         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
34683         post.
34684
34685         * utils.c (global_bindings_p): True when no current_function_decl; no
34686         longer check current_binding_level.
34687
34688 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
34689
34690         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
34691         choice.
34692
34693         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
34694
34695 2004-08-06  Andreas Schwab  <schwab@suse.de>
34696
34697         * utils.c (gnat_define_builtin): Remove second parameter of
34698         make_decl_rtl.
34699         (begin_subprog_body): Likewise.
34700
34701 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
34702
34703         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
34704         optimization, not supported by the tree-ssa back-end.
34705
34706 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
34707
34708         * s-mastop-irix.adb: Update comments.
34709
34710         * a-except.adb (Exception_Information): Raise Constraint_Error if
34711         exception Id is Null_Id.
34712         This is required behavior, which is more reliably and clearly checked
34713         at the top level interface level.
34714
34715 2004-07-26  Javier Miranda  <miranda@gnat.com>
34716
34717         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
34718         call if a component has no default_expression and the box is used.
34719
34720         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
34721         default_expression and you use box, it behaves as if you had declared a
34722         stand-alone object.
34723         (Resolve_Record_Aggregate): If a component has no default_expression and
34724         you use box, it behaves as if you had declared a stand-alone object.
34725
34726         * sem_ch10.adb (Install_Siblings): Do not make visible the private
34727         entities of private-with siblings.
34728
34729 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
34730
34731         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
34732         for a component of an itype, set the parent pointer for analysis,
34733         there is no list in which to insert it.
34734
34735         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
34736         bona-fide renamings, not for inherited operations.
34737
34738         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
34739         actual for a formal that is an access parameter, create local
34740         finalization list even if the expression is not an aggregate.
34741
34742 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
34743
34744         PR ada/16213
34745         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
34746         Diagnose properly illegal subprogram renamings that are library units.
34747
34748 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
34749
34750         PR ada/15588
34751         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
34752         conversion rewritten as an unchecked conversion, check that original
34753         expression is a variable.
34754
34755         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
34756         unchecked_conversion, create new node rather than rewriting in place,
34757         to preserve original construct.
34758
34759 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34760
34761         * gigi.h (gnat_expand_body): Deleted.
34762
34763         * Make-lang.in: (trans.o): Depends on function.h.
34764
34765         * misc.c: (gnat_expand_body): Moved to here.
34766
34767         * trans.c (gnat_expand_body_1): Deleted.
34768         (gnat_expand_body): Moved from here.
34769         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
34770         (add_stmt): Check for marked visited with global_bindings_p.
34771         (gnat_gimplify_expr, case COMPONENT_REF): New case.
34772         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
34773
34774         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
34775         VIEW_CONVERT_EXPR if not operation type.
34776
34777         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
34778         fat pointer.
34779
34780         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
34781         changes: reformatting of negation operators, removing unneeded
34782         inequality comparison with zero, converting equality comparisons with
34783         zero to negations, changing int/0/1 to bool/false/true, replace calls
34784         to gigi_abort with abort, and various other similar changes.
34785
34786 2004-07-26  Vincent Celier  <celier@gnat.com>
34787
34788         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
34789         "setup".
34790
34791         * make.adb (Gnatmake): Fail when a library is not present and there is
34792         no object directory.
34793
34794         * mlib-prj.adb (Check_Library): No need to check if the library needs
34795         to be rebuilt if there is no object directory, hence no object files
34796         to build the library.
34797
34798         * opt.ads (Setup_Projects): New Boolean flag.
34799
34800         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
34801         Location.
34802         Create directory when Kind /= "" and in "gnat setup". Report error if
34803         directory cannot be created.
34804         (Ada_Check): Create library interface copy dir if it does not exist
34805         and we are in "gnat setup".
34806         (Find_Sources): No error if in "gnat setup" and no Ada sources were
34807         found.
34808         (Language_Independent_Check): Create object directory, exec directory
34809         and/or library directory if they do not exist and we are in
34810         "gnat setup".
34811
34812         * vms_conv.ads: (Command_Type): New command Setup.
34813
34814         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
34815
34816         * vms_data.ads: Add qualifiers/switches for new built-in command
34817         "setup".
34818
34819 2004-07-25  Richard Henderson  <rth@redhat.com>
34820
34821         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
34822         DECL_IGNORED_P on RESULT_DECL.
34823
34824 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
34825
34826         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
34827         allocation and potentially overflowing update with
34828         Tailored_Exception_Information. Use the sec-stack free procedural
34829         interface to output Exception_Information instead.
34830
34831         * a-except.adb (To_Stderr): New subprogram for character, and string
34832         version moved from a-exextr to be visible from other separate units.
34833         (Tailored_Exception_Information): Remove the procedural version,
34834         previously used by the default Last_Chance_Handler and not any more.
34835         Adjust various comments.
34836
34837         * a-exexda.adb: Generalize the exception information procedural
34838         interface, to minimize the use of secondary stack and the need for
34839         local buffers when the info is to be output to stderr:
34840         (Address_Image): Removed.
34841         (Append_Info_Character): New subprogram, checking for overflows and
34842         outputing to stderr if buffer to fill is of length 0.
34843         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
34844         (Append_Info_Address, Append_Info_Exception_Name,
34845         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
34846         Append_Info_Basic_Exception_Traceback,
34847         Append_Info_Exception_Information): New subprograms.
34848         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
34849         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
34850         Exception_Info_Maxlength, Exception_Name_Length,
34851         Exception_Message_Length): New subprograms.
34852         (Exception_Information): Use Append_Info_Exception_Information.
34853         (Tailored_Exception_Information): Use
34854         Append_Info_Basic_Exception_Information.
34855         Export services for the default Last_Chance_Handler.
34856
34857         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
34858         other separate units.
34859
34860 2004-07-20  Vincent Celier  <celier@gnat.com>
34861
34862         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
34863
34864 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
34865
34866         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
34867         emit itype references for the designated types of component types that
34868         are declared outside of the full record declaration, and that may
34869         denote a partial view of that record type.
34870
34871 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
34872
34873         PR ada/15607
34874         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
34875         which is the designated type in an access component declaration, to the
34876         list of incomplete dependents of the parent type, to avoid elaboration
34877         issues with out-of-scope subtypes.
34878         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
34879         full view of the parent.
34880
34881 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
34882
34883         PR ada/15610
34884         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
34885         entities that are hidden, such as references to generic actuals
34886         outside an instance.
34887
34888 2004-07-20  Javier Miranda  <miranda@gnat.com>
34889
34890         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
34891         support to the new notation.
34892         (Analyze_Selected_Component): Add call to Try_Object_Operation.
34893
34894 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
34895
34896         * s-taprob.adb: Adding the elaboration code required for initializing
34897         the tasking soft links that are common to the full and the restricted
34898         run times.
34899
34900         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
34901         restricted run time has been moved to the package
34902         System.Soft_Links.Tasking.
34903
34904         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
34905         restricted run time has been moved to the package
34906         System.Soft_Links.Tasking.
34907
34908         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
34909
34910         * s-solita.ads, s-solita.adb: New files.
34911
34912 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34913
34914         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
34915         Case_Statement_to_gnu): Split off from gnat_to_gnu.
34916         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
34917         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
34918         Exception_Handler_to_gnu_zcx): Likewise.
34919
34920 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
34921
34922         * gigi.h (builtin_function): Declare.
34923
34924 2004-07-15  Robert Dewar  <dewar@gnat.com>
34925
34926         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
34927         reformatting
34928
34929         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
34930         access values as an example of a warning.
34931
34932         * gnat_rm.texi: Document new attribute Has_Access_Values
34933
34934         * gnat-style.texi: Document that box comments belong on nested
34935         subprograms
34936
34937         * sem_util.ads (Has_Access_Values): Improved documentation
34938
34939         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
34940
34941         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
34942         (Process_Interface_Name): Call to this new procedure
34943         (Set_Extended_Import_Export_External_Name): Call to this new procedure
34944
34945         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
34946
34947         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
34948
34949         * einfo.ads: Minor comment typo fixed
34950
34951 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
34952
34953         * snames.adb: Add _atcb.
34954
34955         * snames.ads: Add Name_uATCB.
34956
34957         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
34958         (in the expanded code) when using the restricted run time.
34959
34960         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
34961         a in parameter in order to allow ATCBs to be preallocated (in the
34962         expanded code).
34963
34964         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
34965         order to allow ATCBs to be preallocated. In case of error, the ATCB is
34966         deallocated in System.Tasking.Stages.
34967
34968         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
34969         order to allow ATCBs to be preallocated.
34970
34971         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
34972         here. It was previously done in Initialize_ATCB.
34973
34974         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
34975
34976         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
34977         Restricted run time.
34978
34979         * exp_ch3.adb: When using the Restricted run time, pass the
34980         preallocated Ada_Task_Control_Block when creating a task.
34981
34982 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
34983
34984         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
34985         function call that is itself an actual in an enclosing call, diagnose
34986         problem here rather than assuming that resolution will catch it.
34987
34988         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
34989         the local copy of a generic unit for a formal package, and the generic
34990         is a child unit, install private part of ancestors before compiling
34991         private part of spec.
34992
34993         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
34994         use scope entities rather than tree structures, to handle properly
34995         parent units that are instances rewritten as bodies for inlining
34996         purposes.
34997
34998         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
34999         Remove_Parents): Handle properly a parent unit that is an
35000         instantiation, when the unit has been rewritten as a body for inlining
35001         purposes.
35002
35003         * par.adb (Goto_List): Global variable to collect goto statements in a
35004         given unit, for use in detecting natural loops.
35005
35006         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
35007         use in detecting natural loops.
35008
35009         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
35010         backwards goto's, and rewrite as a infinite loop, to improve locality
35011         of temporaries.
35012
35013         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
35014         subcomponent that includes an indexed reference, to prevent the
35015         generation of copies that would miscompile the desired assignment
35016         statement.
35017         (Build_Task_Image_Decls): Add a numeric suffix to
35018         generated name for string variable, to avoid spurious conflicts with
35019         the name of the type of a single protected object.
35020
35021         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
35022         loop with an explicit exit statement, to avoid generating an
35023         out-of-range value with 'Succ leading to spurious constraint_errors
35024         when compiling with -gnatVo.
35025
35026 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
35027
35028         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
35029         might not be analyzed yet, even if its Etype is already set (case of an
35030         unchecked conversion built using Unchecked_Convert_To, for example).
35031         If the prefix has already been analyzed, this will be a nop anyway.
35032
35033         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
35034         controller type, or an assignment of a record type with controlled
35035         components, copy only user data, and leave the finalization chain
35036         pointers untouched.
35037
35038 2004-07-15  Vincent Celier  <celier@gnat.com>
35039
35040         * make.adb (Collect_Arguments): Improve error message when attempting
35041         to compile a source not part of any project, when -x is not used.
35042
35043         * prj.ads: (Defined_Variable_Kind): New subtype
35044
35045         * prj-attr.adb (Register_New_Package): Two new procedures to register
35046         a package with or without its attributes.
35047         (Register_New_Attribute): Mew procedure to register a new attribute in a
35048         package.
35049         New attribute oriented subprograms: Attribute_Node_Id_Of,
35050         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35051         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35052         Next_Attribute.
35053         New package oriented subprograms: Package_Node_Id_Of,
35054         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35055
35056         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
35057         type.
35058         (Package_Node_Id): Now a private, self initialized type
35059         (Register_New_Package): New procedure to register a package with its
35060         attributes.
35061         New attribute oriented subprograms: Attribute_Node_Id_Of,
35062         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35063         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35064         Next_Attribute.
35065         New package oriented subprograms: Package_Node_Id_Of,
35066         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35067
35068         * prj-dect.adb (Parse_Attribute_Declaration,
35069         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
35070
35071         * prj-makr.adb (Make): Parse existing project file before creating
35072         other files. Fail if there was an error during parsing.
35073
35074         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
35075         new spec of Prj.Attr.
35076
35077         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
35078         to new spec of Prj.Attr.
35079
35080 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35081
35082         * utils2.c: Fix typo in comment.
35083
35084 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35085
35086         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
35087         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
35088
35089 2004-07-14  Andreas Schwab  <schwab@suse.de>
35090
35091         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
35092
35093 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35094
35095         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
35096         object type.
35097         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
35098         TYPE_STUB_DECL.
35099
35100         * misc.c (gnat_types_compatible_p): New function.
35101         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
35102         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
35103
35104         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
35105         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
35106         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
35107         (mark_visited): Don't mark dummy type.
35108         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
35109         parameter, we must remove any LJM building from GNU_NAME.
35110         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
35111         (pos_to_constructor): Use int_const_binop.
35112         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
35113         PARM_DECL.
35114
35115         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
35116         (gnat_pushlevel): Set TREE_USE on BLOCK node.
35117         (gnat_install_builtins): Add __builtin_memset.
35118
35119 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
35120
35121         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
35122         for a renaming, stabilize the initialization expression if we are at a
35123         local level.  At the local level, uses of the renaming may be performed
35124         by a direct dereference of the initializing expression, and we don't
35125         want possible variables there to be evaluated for every use.
35126
35127         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
35128         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
35129         them on the way.  Account for the fact that we may introduce side
35130         effects in the process.
35131
35132 2004-07-13  Richard Henderson  <rth@redhat.com>
35133
35134         * misc.c (default_pass_by_ref): Use pass_by_reference.
35135
35136 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
35137
35138         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
35139         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
35140
35141 2004-07-08  Richard Henderson  <rth@redhat.com>
35142
35143         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
35144         commentary.
35145
35146 2004-07-06  Vincent Celier  <celier@gnat.com>
35147
35148         * vms_conv.ads: Minor reformatting.
35149         Alphabetical order for enumerated values of type Command_Type, to have
35150         the command in alphabetical order for the usage.
35151
35152         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
35153         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
35154
35155         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
35156
35157         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
35158         (Add_Archive_Path): Only add the global archive if there is one.
35159         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
35160         or not any object file to put in the global archive, and don't build
35161         a global archive if there is none.
35162         (X_Switches): New table
35163         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
35164         in the X_Switches table, if any.
35165         (Initialize): Make sure the X_Switches table is empty
35166         (Scan_Arg): Record -X switches in table X_Switches
35167
35168         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
35169
35170         * make.adb: Minor comment fix
35171
35172         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
35173         invoked with directory information, add the directory in front of the
35174         path.
35175
35176         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
35177         invoked with directory information, add the directory in front of the
35178         path.
35179
35180         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
35181         when Keep_Temporary_Files is False.
35182         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
35183         directory information, add the directory in front of the path.
35184         When not on VMS, handle new switch -dn before the command to set
35185         Keep_Temporary_Files to True.
35186         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
35187         everywhere.
35188
35189         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
35190         invoked with directory information, add the directory in front of the
35191         path.
35192
35193 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
35194
35195         * snames.ads, snames.adb (Name_Stub): New name for the distributed
35196         systems annex.
35197
35198         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
35199         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
35200
35201         * g-socket.adb (To_Timeval): Fix incorrect conversion of
35202         Selector_Duration to Timeval for the case of 0.0.
35203
35204         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
35205         documentation from Evolve_And_Then.
35206
35207 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
35208
35209         * s-taprop-tru64.adb, s-taprop-os2.adb,
35210         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
35211
35212 2004-07-06  Robert Dewar  <dewar@gnat.com>
35213
35214         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
35215         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
35216         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
35217         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
35218         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
35219         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
35220         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
35221         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
35222         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
35223         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
35224         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
35225         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
35226         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
35227         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
35228         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
35229         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
35230         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
35231         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
35232         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
35233         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
35234         vms_data.ads: Minor reformatting,
35235         Fix bad box comment format.
35236
35237         * gnat_rm.texi: Fix minor grammatical error
35238
35239         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
35240
35241         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
35242         more cases of discriminated records to be recognized as not needing a
35243         secondary stack.
35244         (Has_Access_Values): New function.
35245
35246         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
35247
35248         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
35249         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
35250         with LRM terminology).
35251         Change terminology in comments primitive type => elementary type.
35252
35253 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
35254
35255         PR ada/15602
35256         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
35257         parameters do not impose any requirements on the presence of a body.
35258
35259 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
35260
35261         PR ada/15593
35262         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
35263         compilation unit and is in an open scope at the point of instantiation,
35264         assume that a body may be present later.
35265
35266 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
35267
35268         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
35269         Improve error message when specified size is not supported.
35270
35271         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
35272         is never a primitive operation.
35273
35274 2004-07-05  Andreas Schwab  <schwab@suse.de>
35275
35276         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
35277         RECORD_OR_UNION_CHECK.
35278         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
35279
35280 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
35281
35282         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
35283         dependency on xgnatugn, instead build it via a submake.
35284         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
35285
35286 2004-07-04  Richard Henderson  <rth@redhat.com>
35287
35288         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
35289
35290 2004-07-01  Richard Henderson  <rth@redhat.com>
35291
35292         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
35293         * utils.c (max_size): Likewise.
35294
35295 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35296
35297         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
35298         and rest_of_type_compilation; add arg to create_*_decl.
35299         (annotate_decl_with_node): Deleted.
35300         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
35301         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
35302         (get_current_block_context, gnat_pushdecl): New declarations.
35303         (gnat_init_stmt_group): Likewise.
35304         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
35305         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
35306         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
35307         (gnat_init): Call gnat_init_stmt_group.
35308         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
35309         (gnu_pending_elaboration_list): Deleted.
35310         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
35311         (gigi): Rearrange initialization calls and move some to last above.
35312         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
35313         Delete calls to add_decl_expr; add arg to create_*_decl.
35314         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
35315         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
35316         begin_subprog_body and call it.
35317         Don't push and pop ggc context.
35318         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
35319         (add_stmt): Remove handling of DECL_EXPR from here.
35320         If not in function, mark visited.
35321         (add_decl_expr): Put global at top level.
35322         Check for cases of DECL_INITIAL we have to handle here.
35323         (process_type): Add extra arg to create_type_decl.
35324         (build_unit_elab): Rework to just gimplify.
35325         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
35326         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
35327         (get_pending_elaborations, pending_elaborations_p): Likewise.
35328         (push_pending_elaborations, pop_pending_elaborations): Likewise.
35329         (get_elaboration_location, insert_elaboration_list): Likewise.
35330         (gnat_binding_level): Renamed from ada_binding_level.
35331         (init_gnat_to_gnu): Don't clear pending_elaborations.
35332         (global_bindings_p): Treat as global if no current_binding_level.
35333         (set_current_block_context): New function.
35334         (gnat_pushdecl): Renamed from pushdecl; major rework.
35335         All callers changed.
35336         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
35337         (finish_record_type): Call call pushdecl for stub decl.
35338         (function_nesting_depth): Deleted.
35339         (begin_subprog_body): Delete obsolete code.
35340         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
35341
35342 2004-06-28  Robert Dewar  <dewar@gnat.com>
35343
35344         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35345         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
35346         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
35347         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
35348         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
35349
35350         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
35351         deal with problem of inefficient slices on machines with strict
35352         alignment, when the slice is a component of a composite.
35353
35354         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
35355         machines, we need the check there as well.
35356
35357 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
35358
35359         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
35360         determine safe copying direction for overlapping slice assignments
35361         when component is controlled.
35362
35363         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
35364         formal derived type in the actual for a formal package are visible in
35365         the enclosing instance.
35366
35367 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
35368
35369         PR ada/15600
35370         * sem_util.adb (Trace_Components): Diagnose properly an illegal
35371         circularity involving a private type whose completion includes a
35372         self-referential component.
35373         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
35374         renaming or an instantiation from an implicit derived operation.
35375
35376 2004-06-28  Pascal Obry  <obry@gnat.com>
35377
35378         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
35379         DLL.
35380         (Library_File_Name_For): Idem.
35381
35382 2004-06-28  Matthew Gingell  <gingell@gnat.com>
35383
35384         * g-traceb.ads: Add explanatory note on the format of addresses
35385         expected by addr2line.
35386
35387 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
35388
35389         * Makefile.in: Force debugging information on s-tasdeb.adb,
35390         a-except.adb and s-assert.adb needed by the debugger.
35391
35392 2004-06-28  Vincent Celier  <celier@gnat.com>
35393
35394         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
35395         Need_To_Build_Lib.
35396         (Gnatmake): Ditto.
35397
35398         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
35399
35400         * prj.adb: Minor reformatting
35401         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
35402
35403         * prj.ads: Comment updates
35404         Minor reformatting
35405         (Project_Data): Change Flag1 to Need_To_Build_Lib.
35406         Remove Flag2: not used.
35407
35408         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
35409         declaration.
35410
35411         * gnat_ugn.texi: Put a "null;" declaration in one project file example
35412
35413         * gnat_rm.texi: Document Empty declarations "null;".
35414
35415         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
35416         front of the linker options.
35417         (Link_Foreign): Put the global archives and the libraries in front of
35418         the linker options.
35419
35420 2004-06-28  Javier Miranda  <miranda@gnat.com>
35421
35422         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
35423         (RTU_Loaded): Code cleanup
35424         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
35425         withed predefined units.
35426
35427         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
35428         explicitly withed predefined units.
35429         Fix typo in comment
35430
35431         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
35432         explicitly withed predefined units.
35433
35434 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35435
35436         * ada-tree.def (DECL_STMT): Deleted.
35437         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
35438         (DECL_STMT_VAR): Deleted.
35439         * decl.c: add_decl_stmt now add_decl_expr.
35440         * gigi.h: Likewise.
35441         * trans.c: Likewise.
35442         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35443         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
35444         (add_stmt): Only handle padded type here.
35445         (add_stmt_with_node): Allow gnat_node to not be present.
35446         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
35447         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
35448         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
35449         make a SAVE_EXPR for the entire fat pointer.
35450         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
35451         (create_index_type): Make a DECL_EXPR.
35452         (end_subprog_body): Don't call allocate_struct_function here but
35453         do clear cfun.
35454
35455 2004-06-25  Pascal Obry  <obry@gnat.com>
35456
35457         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
35458         Relocatable from Build_Dynamic_Library call.
35459
35460         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
35461         Relocatable are now synonym.
35462
35463         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
35464
35465         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
35466         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
35467         call.
35468
35469         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
35470         Lib_Address and Relocatable.
35471         (Default_DLL_Address): Removed.
35472
35473         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35474         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
35475         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
35476         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
35477         (Default_DLL_Address): Removed.
35478
35479         * mlib-tgt-mingw.adb: Ditto.
35480         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
35481
35482         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
35483         the initial thread stack size.
35484
35485         * a-strmap.ads: Move package L to private part as it is not used in
35486         the spec. Found while reading code.
35487
35488 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
35489
35490         * tracebak.c: Introduce support for a GCC infrastructure based
35491         implementation of __gnat_backtrace.
35492
35493         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
35494         any more. Use accessors instead. This eases maintenance and relaxes
35495         some alignment constraints.
35496         (_GNAT_Exception structure): Remove the Ada specific fields
35497         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
35498         a-exexpr.adb.
35499         (is_handled_by, __gnat_eh_personality): Replace component references to
35500         exception structure by use of the new accessors.
35501
35502         * init.c (__gnat_initialize): Adjust comments to match the just
35503         reverted meaning of the -static link-time option.
35504
35505         * adaint.c (convert_addresses): Arrange not to define a stub for
35506         mips-irix any more, as we now want to rely on a real version from a
35507         recent libaddr2line.
35508
35509         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
35510         the personality routine can use them and not have to rely on a C
35511         counterpart of the record anymore. This simplifies maintenance and
35512         relaxes the constraint of having Standard'Maximum_Alignment match
35513         BIGGEST_ALIGNMENT.
35514         Update comments, and add a section on the common header alignment issue.
35515
35516 2004-06-25  Geert Bosch  <bosch@gnat.com>
35517
35518         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
35519         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
35520
35521 2004-06-25  Robert Dewar  <dewar@gnat.com>
35522
35523         * gnat_rm.texi: Fix section on component clauses to indicate that the
35524         restriction on byte boundary placement still applies for bit packed
35525         arrays.
35526         Add comment on stack usage from Initialize_Scalars
35527
35528         * gnat_ugn.texi: Add documentation for -gnatyLnnn
35529
35530         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
35531         limiting nesting level.
35532
35533         * usage.adb: Add line for -gnatyLnnn switch
35534
35535         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
35536         sem_ch13.adb, exp_aggr.adb: Minor reformatting
35537
35538         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
35539         type as well as on the subtype. This corrects a problem in freeze in
35540         setting alignments of atomic types.
35541
35542         * sem_eval.ads: Minor comment typo fixed
35543
35544         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
35545         level.  Minor reformatting.
35546
35547         * fname.adb (Is_Predefined_File_Name): Require a letter after the
35548         minus sign. This means that file names like a--b.adb will not be
35549         considered predefined.
35550
35551         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
35552         record Test new flag and give diagnostic for bad component clause.
35553         (Freeze_Entity): Set alignment of array from component alignment in
35554         cases where this is safe to do.
35555
35556         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
35557         arrays.
35558
35559         * cstand.adb: (Create_Standard): Set alignment of String to 1
35560
35561         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
35562
35563         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
35564         code in the common constrained array cases.
35565
35566         * a-storio.adb: Change implementation to avoid possible alignment
35567         problems on machines requiring strict alignment (data should be moved
35568         as type Buffer, not type Elmt).
35569
35570         * checks.adb (Apply_Array_Size_Check): Improve these checks by
35571         killing the overflow checks which we really do not need (64-bits is
35572         enough).
35573
35574 2004-06-25  Vincent Celier  <celier@gnat.com>
35575
35576         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
35577         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
35578         inconditionally for the main project.
35579         (Recursive_Add_Archives.Add_Archive_Path): New procedure
35580         (Link_Executables.Check_Time_Stamps): New procedure
35581         (Link_Executables.Link_Foreign): New procedure
35582         Changes made to reduce nesting level of this package
35583         (Check): New procedure
35584         (Add_Switches): When not in quiet output, check that a switch is not
35585         the concatenation of several valid switches. If it is, issue a warning.
35586         (Build_Global_Archive): If the global archive is rebuilt, linking need
35587         to be done.
35588         (Compile_Sources): Rebuilding a library archive does not imply
35589         rebuilding the global archive.
35590         (Build_Global_Archive): New procedure
35591         (Build_Library): New name for Build_Archive, now only for library
35592         project
35593         (Check_Archive_Builder): New procedure
35594         (Create_Global_Archive_Dependency_File): New procedure
35595         (Gprmake): Call Build_Global_Archive before linking
35596         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
35597         throughout.
35598         (Scan_Arg): Display the Copyright notice when -v is used
35599
35600         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
35601         for gnatls.
35602
35603         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
35604         COMPILE.
35605         Add new GNAT LIST qualifier /FILES=
35606         Added qualifier /DIRECTORY= to GNAT METRIC
35607         Added qualifier /FILES= to GNAT METRIC
35608         Added qualifier /FILES to GNAT PRETTY
35609
35610         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
35611         to take into account both versions of the switch.
35612
35613         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
35614         always be the last switch to the gcc driver. Disable switch storing so
35615         that switches automatically added by the gcc driver are not put in the
35616         ALI file.
35617
35618         * prj.adb (Project_Empty): Take into account changes in components of
35619         Project_Data.
35620
35621         * prj.ads (Languages_Processed): New enumaration value All_Languages.
35622
35623         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
35624         used. Split Boolean component Ada_Sources_Present in two Boolean
35625         components Ada_Sources_Present and Other_Sources_Present.
35626         Minor reformatting
35627
35628         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
35629         instead of Sources_Present.
35630         (Set_Ada_Paths.Add.Recursive_Add): Ditto
35631
35632         * prj-nmsc.adb: Minor reformatting
35633         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
35634         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
35635         Check_Ada_Naming_Scheme.
35636         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
35637         throughout.
35638
35639         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
35640         In_Limited.
35641         Make sure that all cycles where there is at least one "limited with"
35642         are detected.
35643         (Parse_Single_Project): New Boolean parameter In_Limited
35644
35645         * prj-proc.adb (Recursive_Check): When Process_Languages is
35646         All_Languages, call first Prj.Nmsc.Ada_Check, then
35647         Prj.Nmsc.Other_Languages_Check.
35648
35649         * prj-proc.adb (Process): Use Ada_Sources_Present or
35650         Other_Sources_Present (instead of Sources_Present) depending on
35651         Process_Languages.
35652
35653         * lang-specs.h: Keep -g and -m switches in the same order, and as the
35654         last switches.
35655
35656         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
35657         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
35658         False.
35659         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
35660         False.
35661
35662         * lib.ads (Disable_Switch_Storing): New procedure.
35663
35664         * make.adb: Modifications to reduce nesting level of this package.
35665         (Check_Standard_Library): New procedure
35666         (Gnatmake.Check_Mains): New procedure
35667         (Gnatmake.Create_Binder_Mapping_File): New procedure
35668         (Compile_Sources.Compile): Add switch -gnatez as the last option
35669         (Display): Never display -gnatez
35670
35671         * Makefile.generic:
35672         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
35673
35674         * gnatcmd.adb (Check_Project): New function
35675         (Process_Link): New procedure to reduce nesting depth
35676         (Check_Files): New procedure to reduce the nesting depth.
35677         For GNAT METRIC, include the inherited sources in extending projects.
35678         (GNATCmd): When GNAT LS is invoked with a project file and no files,
35679         add the list of files from the sources of the project file. If this list
35680         is too long, put it in a temp text files and use switch -files=
35681         (Delete_Temp_Config_Files): Delete the temp text file that contains
35682         a list of source for gnatpp or gnatmetric, if one has been created.
35683         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
35684         in the project file is too large, create a temporary text file that
35685         list them and pass it to the tool with "-files=<temp text file>".
35686         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
35687
35688         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
35689         generated file is in not in Ada.
35690
35691         * gnatls.adb: Remove all parameters And_Save that are no longer used.
35692         (Scan_Ls_Arg): Add processing for -files=
35693         (Usage): Add line for -files=
35694
35695         * g-os_lib.adb (On_Windows): New global constant Boolean flag
35696         (Normalize_Pathname): When on Windows and the path starts with a
35697         directory separator, make sure that the resulting path will start with
35698         a drive letter.
35699
35700         * clean.adb (Clean_Archive): New procedure
35701         (Clean_Project): When there is non-Ada code, delete the global archive,
35702         the archive dependency files, the object files and their dependency
35703         files, if they exist.
35704         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
35705
35706 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
35707
35708         * sinfo.ads: Fix typo in comment.
35709
35710         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
35711         the TSS for remote access-to-subprogram types, since these TSS are
35712         always present once the type has been analyzed.
35713         (RAS_E_Dereference): Same.
35714
35715         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
35716         reference raises Bad_Attribute, mark the reference as analyzed so the
35717         node (and any children resulting from rewrites that could have occurred
35718         during the analysis that ultimately failed) is not analyzed again.
35719
35720         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
35721
35722         * exp_dist.adb: Minor comment fix.
35723
35724         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
35725         type is an anonymous access type, no unchecked deallocation of the
35726         allocated object can occur. If the object is controlled, attach it with
35727         a count of 1. This allows attachment to the Global_Final_List, if
35728         no other relevant list is available.
35729         (Get_Allocator_Final_List): For an anonymous access type that is
35730         the type of a discriminant or record component, the corresponding
35731         finalisation list is the one of the scope of the type.
35732
35733 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
35734
35735         * sem_ch3.adb (Replace_Type): When computing the signature of an
35736         inherited subprogram, use the first subtype if the derived type
35737         declaration has no constraint.
35738
35739         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
35740         before applying previous optimization. Minor code cleanup.
35741
35742         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
35743         placed at the beginning of an unpacked record without explicit
35744         alignment, a slice of it will be aligned and does not need a copy when
35745         used as an actual.
35746
35747 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
35748
35749         PR ada/15591
35750         PR ada/15592
35751         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
35752         reference is written with expressions mimicking parameters.
35753
35754 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
35755
35756         PR ada/15589
35757         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
35758         STEP 2a. The constraints of a full type declaration of a derived record
35759         type are checked for conformance with those declared in the
35760         corresponding private extension declaration. The message
35761         "not conformant with previous declaration" is emitted if an error is
35762         detected.
35763
35764 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35765
35766         * g-traceb.ads: Document the need for -E binder switch in the spec.
35767
35768         * g-trasym.ads: Document the need for -E binder switch in the spec.
35769
35770 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
35771
35772         * sem_prag.adb: Add handling of pragma Detect_Blocking.
35773
35774         * snames.h, snames.ads, snames.adb: Add entry for pragma
35775         Detect_Blocking.
35776
35777         * s-rident.ads: Change reference to pragma Detect_Blocking.
35778
35779         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
35780         system.ads.
35781
35782         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
35783         to indicate whether pragma Detect_Blocking is active.
35784
35785         * par-prag.adb: Add entry for pragma Detect_Blocking.
35786
35787         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
35788         of not handling WITH.
35789         Note that this replaces the previous update which was incorrect.
35790
35791 2004-06-25  Javier Miranda  <miranda@gnat.com>
35792
35793         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
35794         use-clauses to have a clean environment.
35795
35796         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
35797         the installation of the use-clauses to stablish a clean environment in
35798         case of compilation of a separate unit; otherwise the call to
35799         use_one_package is protected by the barrier Applicable_Use.
35800
35801         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
35802         the installation of the use-clauses to stablish a clean environment in
35803         case of compilation of a separate unit.
35804         (End_Use_Clauses): Minor comment cleanup.
35805
35806 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
35807
35808         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
35809
35810 2004-06-23  Richard Henderson  <rth@redhat.com>
35811
35812         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
35813
35814 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35815
35816         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
35817         now bool instead of int.
35818         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
35819         * trans.c (gnu_switch_label_stack): New function.
35820         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
35821         elaboration of renamed entity returns.
35822         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
35823         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
35824         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
35825         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
35826         DECL_SIZE_UNIT and simplify variable-sized case.
35827         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35828         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
35829         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
35830         (build_unit_elab): Disable for now.
35831         * utils.c (mark_visited): New function.
35832         (pushdecl): Walk tree to call it for global decl.
35833         (update_pointer_to): Update all variants of pointer and ref types.
35834         Add arg to COMPONENT_REF.
35835         (convert): Likewise.
35836         Move check for converting between variants lower down.
35837         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
35838         (build_allocator): Don't force type of MODIFY_EXPR.
35839         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
35840         put_var_into_stack.
35841
35842 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35843
35844         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
35845         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
35846         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
35847         subprograms.
35848         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
35849         all callers changed.
35850         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
35851         the way that EXIT_STMT finds the loop label.
35852         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
35853         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
35854         (add_stmt): Use annotate_with_locus insted of setting directly.
35855         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
35856         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
35857         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
35858         (build_vms_descriptor): Add extra args to ARRAY_REF.
35859         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
35860         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
35861         New cases.
35862         (build_binary_op): Don't make explicit CONVERT_EXPR.
35863         Add extra rgs to ARRAY_REF.
35864
35865 2004-06-14  Pascal Obry  <obry@gnat.com>
35866
35867         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
35868         Windows.  Fix minor typo.
35869
35870         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
35871         which is now supported on Windows. With this implementation using the
35872         Library Project feature is no different on Windows than on UNIX.
35873
35874 2004-06-14  Vincent Celier  <celier@gnat.com>
35875
35876         * makegpr.adb (Compile_Sources): Nothing to do when there are no
35877         non-Ada sources.
35878
35879         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
35880
35881         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
35882         found, show the project name and the path of the previously parsed
35883         project file.
35884
35885 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
35886
35887         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
35888         array, avoid copying the actual before the call.
35889
35890 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
35891
35892         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
35893         Instead, allocate memory on worst-case alignment assumptions, and then
35894         return an aligned address within the allocated zone.
35895
35896 2004-06-14  Robert Dewar  <dewar@gnat.com>
35897
35898         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
35899         elab entities in predefined units in No_Run_Time_Mode.
35900         (Gen_Adainit_C): Same fix
35901         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
35902         units in No_Run_Time_Mode
35903         (Gen_Elab_Calls_C): Same fix
35904
35905         * symbols-vms-alpha.adb: Minor reformatting
35906
35907         * g-debpoo.ads: Minor reformatting
35908
35909         * lib.adb (In_Same_Extended_Unit): Version working on node id's
35910
35911         * lib.ads (In_Same_Extended_Unit): Version working on node id's
35912
35913         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
35914         working on nodes.
35915
35916         * make.adb: Minor reformatting
35917
35918         * par-ch12.adb: Minor reformatting
35919
35920         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
35921
35922         * prj-strt.adb: Minor reformatting
35923
35924         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
35925         be more general.
35926
35927         * sem_attr.adb: Minor reformatting
35928
35929         * sem_ch7.adb: Minor reformatting
35930
35931         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
35932         for type in the same unit as the object declaration.
35933
35934         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
35935         static string expressions and not just string literals.
35936         Minor reformatting
35937         (Set_Warning): Reset restriction warning flag for restriction pragma
35938         Implement pragma Profile_Warnings
35939         Implement pragma Profile (Restricted)
35940         Give obolescent messages for old restrictions and pragmas
35941
35942         * snames.h, snames.ads, snames.adb: Add new entry for pragma
35943         Profile_Warnings.
35944
35945         * s-rident.ads: Add declarations for restrictions required by profile
35946         Restricted and profile Ravenscar.
35947
35948         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
35949
35950         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
35951         configuration pragmas.
35952
35953 2004-06-11  Vincent Celier  <celier@gnat.com>
35954
35955         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
35956         gnatsym, when symbol policy is Restricted.
35957
35958         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
35959         gnatsym, when symbol policy is Restricted.
35960
35961         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
35962         read the symbol file.
35963         (Finalize): Fail in symbol policy Restricted if a symbol in the original
35964         symbol file is not in the object files. Do not create a new symbol file
35965         when symbol policy is Restricted.
35966
35967         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
35968         in Scng.
35969
35970         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
35971         Restricted.
35972         (Usage): Line for new switch -R
35973
35974         * make.adb (Initialize): When the platform is not VMS, add the
35975         directory where gnatmake is invoked in the front of the path, if
35976         gnatmake is invoked with directory information.  Change the Scan_Args
35977         while loop to a for loop.
35978         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
35979         if Depth is equal or greater than the proposed depth, there is nothing
35980         to do.
35981         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
35982         instead of 0.
35983
35984         * prj.ads: Add new symbol policy Restricted.
35985
35986         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
35987         with the new parameters Check_All_Labels and Case_Location.
35988
35989         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
35990         (Library_Symbol_File needs to be defined).
35991
35992         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
35993         and Case_Location If Check_All_Labels is True, check that all values of
35994         the string type are used, and output warning(s) if they are not.
35995
35996         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
35997         and Case_Location.
35998
35999         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
36000
36001         * gnat_ugn.texi: Update documentation about the library directory in
36002         Library Projects.
36003
36004         * makegpr.adb (Display_Command): In verbose mode, also display the
36005         value of the CPATH env var, when the compiler is gcc.
36006         (Initialize): Change the Scan_Args while loop to a for loop
36007         (Compile_Individual_Sources): Change directory to object directory
36008         before compilations.
36009
36010         * symbols.ads: New symbol policy Restricted.
36011
36012 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
36013
36014         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
36015         is now taken care of internally in the Exception_Propagation package
36016         and does not require clients assistance any more.
36017
36018         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
36019         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
36020         functions. Helpers to maintain a predicate required in the handling of
36021         occurrence transfer between tasks.
36022         This is now handled internally and does not require clients assistance
36023         for the setup/propagate separation anymore.
36024         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
36025         allocation strategy, handle the Setup_And_Not_Propagated predicate and
36026         document.
36027
36028         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
36029         raise_after_setup, now that everything is handled internally within the
36030         setup/propagation engine.
36031
36032 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
36033
36034         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
36035         Add additional conditions for the case of an actual being a simple
36036         name or literal. Improve inlining by preventing the generation
36037         of temporaries with a short lifetime (one use).
36038
36039 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
36040
36041         PR ada/15587
36042         * einfo.ads: Minor comment updates for Has_Completion and
36043         E_Constant list of flags.
36044
36045         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
36046         and constant redeclarations now set the Has_Completion flag of their
36047         defining identifiers.
36048
36049         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
36050         Inspect_Deferred_Constant_Completion.
36051         Used to detect private deferred constants that have not been completed
36052         either by a constant redeclaration or pragma Import. Emits error message
36053         "constant declaration requires initialization expression".
36054
36055         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
36056         completes a deferred constant.
36057
36058 2004-06-11  Geert Bosch  <bosch@gnat.com>
36059
36060         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
36061
36062         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
36063         calculating exponent for scaling denormal numbers.
36064         (Leading_Part): Properly raise Constraint_Error for zero or negative
36065         Adjustment.
36066         (Remainder): Properly raise Constraint_Error for zero divisor.
36067
36068 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
36069
36070         * sem_util.adb: Minor reformatting.
36071
36072         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
36073         dereference when accessing the entry parameter record.
36074         (Check_Array_Type): Always check for possible implicit dereference.
36075         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36076         Abort if a pointer is still present (denoting that an implicit
36077         dereference was left in the tree by the front-end).
36078
36079         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
36080         dereference when accessing the entry parameter record.
36081         (Check_Array_Type): Always check for possible implicit dereference.
36082         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36083         Abort if a pointer is still present (denoting that an implicit
36084         dereference was left in the tree by the front-end).
36085
36086 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
36087
36088         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
36089         message, like the compiler itself does. Easier to parse the output.
36090
36091         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
36092
36093         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
36094         be base names, and not includes directories.
36095
36096 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
36097
36098         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
36099         so that dependencies are properly taken into account by make.
36100
36101 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
36102
36103         PR ada/15622
36104         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
36105         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
36106
36107 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
36108
36109         * Makefile.in (install-gnatlib): install target-specific run-time files.
36110
36111         * Make-lang.in: Remove obsolete targets.
36112
36113 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
36114
36115         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
36116         specification, to catch misuses of program unit names.
36117
36118         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
36119         superfluous conversions in an instance.
36120
36121 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
36122
36123         PR ada/15403
36124         * sem_ch12.adb (Save_References): If operator node has been folded to
36125         enumeration literal, associated_node must be discarded.
36126
36127 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
36128
36129         * s-stchop-vxworks.adb: Add required pragma Convention to
36130         Task_Descriptor because it is updated by a C function.
36131
36132 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
36133
36134         PR ada/15568
36135         * Makefile.in: Remove target specific SO_OPT on IRIX
36136
36137 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36138
36139         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
36140         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
36141         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
36142         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
36143         (STMT_STMT, USE_STMT): New statement codes.
36144         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
36145         * ada-tree.h: Reflect above changes.
36146         (struct tree_loop_id): Deleted.
36147         (union lang_tree_node, struct lang_decl, struct lang_type):
36148         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
36149         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
36150         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
36151         (IS_ADA_STMT): New macro.
36152         * decl.c (annotate_decl_with_node): New function.
36153         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
36154         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
36155         Call add_stmt_with_node to do needed assignments.
36156         Add call to update setjmp buffer directly, not via EXPR_STMT.
36157         (maybe_variable): Argment GNAT_NODE deleted.
36158         * gigi.h (maybe_variable): Likewise.
36159         (make_transform, add_stmt_with_node, set_block_for_group): New.
36160         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
36161         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
36162         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
36163         (set_lineno, set_lineno_from_sloc): Likewise.
36164         (record_code_position, insert_code_for): Likewise.
36165         (gnat_poplevel): Now returns void.
36166         (end_subprog_body): Now takes argument.
36167         * misc.c (cgraph.h, tree-inline.h): New includes.
36168         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
36169         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
36170         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
36171         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
36172         (gnat_parse_file): Don't set immediate_size_expand.
36173         Call cgraph functions.
36174         (gnat_expand_expr): Remove most cases.
36175         (record_code_position, insert_code_for): Remove from here.
36176         * trans.c (toplev.h, tree-gimple.h): Now included.
36177         (discard_file_names): Deleted.
36178         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
36179         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
36180         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
36181         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
36182         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
36183         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
36184         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
36185         (set_block_for_group, add_stmt_list): Likewise.
36186         (start_stmt_group): Renamed from start_block_stmt.
36187         (end_stmt_group): Likewise, from end_block_stmt.
36188         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
36189         (gigi): Don't set discard_file_names or call set_lineno.
36190         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
36191         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
36192         Numerous changes throughout to reflect new names and complete
36193         function-at-a-time implementation.
36194         (gnat_expand_stmt): Delete or comment out all cases.
36195         (process_inlined_subprograms): Use add_stmt.
36196         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
36197         call set_lineno; also remove unneeded block handling.
36198         (process_type): Remove unneeded block handling.
36199         (build_unit_elab): Remove calls to deleted functions.
36200         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
36201         (tree-dump.h): Likewise.
36202         (struct ada_binding_level): Add field jmpbuf_decl.
36203         (gnat_define_builtin, gnat_install_builtins): New.
36204         (gnat_gimplify_function, gnat_finalize): Likewise.
36205         (gnat_poplevel): No longer return BLOCK, set it instead.
36206         Remove code dealing with nested functions.
36207         (gnat_init_decl_processing): Also set size_type_node.
36208         Call gnat_install_builtins.
36209         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
36210         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
36211         Remove special-case for "main".
36212         (end_subprog_body): Add arg and rework for tree-ssa.
36213         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
36214         Add case for BOOLEAN_TYPE.
36215         * utils2.c (rtl.h): Now include.
36216         (build_call_raise): Test Debug_Flag_NN directly.
36217         (build_call_alloc_dealloc): Don't use local stack allocation for now.
36218         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
36219         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
36220
36221 2004-06-07  Robert Dewar  <dewar@gnat.com>
36222
36223         * a-direct.ads, einfo.ads: Minor comment updates
36224
36225         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
36226         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36227         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
36228         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
36229         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
36230
36231         * s-interr-sigaction.adb: Remove unreferenced variable
36232         (Attached_Interrupts).  Minor reformatting.
36233         Avoid use of variable I (replace by J).
36234
36235         * par-ch10.adb: Fix text of one error message
36236
36237         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
36238         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
36239         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
36240         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
36241         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
36242         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
36243         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
36244         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
36245         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
36246         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
36247         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
36248         2005 support.
36249
36250 2004-06-07  Doug Rupp  <rupp@gnat.com>
36251
36252         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
36253
36254         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
36255
36256         * mlib-tgt-vms-ia64.adb: New file.
36257
36258         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
36259         Add mlib-tgt-vms-ia64.adb
36260         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
36261         Move to alpha specific ifeq section.
36262         Add VMS specific versions of symbols.adb
36263         Renaming of 5q vms files.
36264
36265         * 5qsystem.ads renamed to system-vms_64.ads.
36266
36267 2004-06-07  Vincent Celier  <celier@gnat.com>
36268
36269         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
36270         explain that when a time of day corresponding to the non existing hour
36271         on the day switching to DST is specified, Split may return a different
36272         value for Seconds.
36273
36274         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
36275         to GNAT PRETTY.
36276
36277         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
36278         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
36279
36280         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
36281         to False.
36282         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
36283         the linking options.
36284         (Build_Library.Check_Libs): On VMS, if there is a dependency on
36285         g-trasym.ads, set Gtrasymobj_Needed to True.
36286
36287         * prj-attr.adb: Add new package Metrics for gnatmetric
36288
36289         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
36290         canonical case to take into account files with upper case characters on
36291         Windows.
36292         (Ada_Check): Load the reference symbol file name in the name buffer to
36293         check it, not the symbol file name.
36294
36295         * snames.ads, snames.adb: Add standard name Metrics (name of project
36296         file package for gnatmetric).
36297
36298         * vms_conv.ads: Add Metric to Comment_Type
36299
36300         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
36301
36302         * vms_data.ads: Add qualifiers for GNAT METRIC
36303
36304         * makegpr.adb (Link_Executables): Take into account the switches
36305         specified in package Linker of the main project.
36306
36307 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
36308
36309         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
36310         the index of the last element is Units.Last, not Units.Table'Last
36311         (which is usually not a valid index within the actually allocated
36312         storage for the table).
36313
36314         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
36315         determines whether to generate a call to a checked storage pool
36316         Dereference action.
36317         Generate such a call only for a dereference that either comes from
36318         source, or is the result of rewriting a dereference that comes from
36319         source.
36320
36321 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
36322
36323         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
36324
36325 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
36326
36327         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
36328         file level, elaborate the stride for inner dimensions in alignment
36329         units, not bytes.
36330
36331         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
36332         in a comment.
36333
36334 2004-06-07  Javier Miranda  <miranda@gnat.com>
36335
36336         * exp_ch6.adb: Correct wrong modification in previous patch
36337
36338 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
36339
36340         * g-trasym.ads: Corrected comment to properly reflect level of support
36341         on VMS.
36342
36343 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
36344
36345         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
36346         includes case of a variable referenced on the left hand side of an
36347         assignment, therefore remove redundant code. Variables and prefixes of
36348         indexed or selected components are now marked as referenced on left
36349         hand side. Warnings are now properly emitted when variables or prefixes
36350         are assigned but not read.
36351
36352         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
36353         left hand side referenced variables. Private access types do not
36354         produce the warning "variable ... is assigned but never read".
36355         Add also additional checks to left hand side referenced variables.
36356         Aliased, renamed objects and access types do not produce the warning
36357         "variable ... is assigned but never read" since other entities may read
36358         the memory location.
36359
36360 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
36361
36362         * Makefile.in: In the powerpc/vxworks-specific section, restore
36363         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
36364         by mistake).
36365
36366 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
36367
36368         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
36369         predefined operators.
36370         Removes spurious type errors from g-trasym-vms.adb.
36371
36372         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
36373         distinct from the operator appearing in the source, call appropriate
36374         routine to insert conversions when needed, and complete resolution of
36375         node.
36376         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
36377         interpretations for rewritten right operand.
36378         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
36379         the other operand is overloaded and the context is a type conversion.
36380
36381 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36382
36383         * ada-tree.def (BLOCK_STMT): Now has two operands.
36384         (BREAK_STMT): New.
36385
36386         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
36387
36388         * gigi.h: (gnat_poplevel): Now returns a tree.
36389
36390         * trans.c (end_block_stmt): Add arg; all callers changed.
36391         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
36392         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
36393         (add_stmt): Set TREE_TYPE.
36394         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
36395         (gnat_expand_stmt, case BREAK_STMT): New case.
36396
36397         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
36398
36399 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
36400
36401         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
36402         procedure Set_Stack_Size that is not needed.
36403
36404 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
36405
36406         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
36407         used for gnatpp input file and for the files upon which it depends
36408
36409 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
36410
36411         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
36412
36413 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
36414
36415         * gnatvsn.ads: Bump version numbers appropriately.
36416         Add new build type.
36417
36418 2004-06-07  Pascal Obry  <obry@gnat.com>
36419
36420         * gnat_ugn.texi: Improve comments about imported names and link names
36421         on Windows. Add a note about the requirement to use -k gnatdll's option
36422         when working with a DLL which has stripped stdcall symbols (no @nn
36423         suffix).
36424
36425 2004-05-27  Vincent Celier  <celier@gnat.com>
36426
36427         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
36428         COMMENTS_LAYOUT=UNTOUCHED
36429
36430         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
36431         symbols-vms-alpha.adb
36432
36433 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
36434
36435         * sem.ads: Clarify documentation on checks suppression.
36436
36437         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
36438
36439 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
36440
36441         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
36442         the case of multiple derivations.
36443         (Is_Object_Reference): For a selected component, verify that the prefix
36444         is itself an object and not a value.
36445
36446         * sem_ch12.adb (Same_Instantiated_Constant): New name for
36447         Same_Instantiated_Entity.
36448         (Same_Instantiated_Variable): Subsidiary to
36449         Check_Formal_Package_Instance, to recognize actuals for in-out generic
36450         formals that are obtained from a previous formal package.
36451         (Instantiate_Subprogram_Body): Emit proper error when
36452         generating code and the proper body of a stub is missing.
36453
36454         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
36455         has a universal interpretation, do the disambiguation here.
36456
36457         * exp_ch4.adb (Expand_N_Type_Conversion,
36458         Expand_N_Unchecked_Type_Conversion): Special handling when target type
36459         is Address, to avoid typing anomalies when Address is a visible integer
36460         type.
36461
36462         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
36463         to determine whether a subprogram should not be marked Pure, even when
36464         declared in a pure package.
36465
36466 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
36467
36468         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
36469
36470         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
36471         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
36472         Update the documentation about the Ravenscar profile, following the
36473         definition found in AI-249.
36474
36475         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
36476         setting the Profile (Ravenscar). This must be done in addition to
36477         setting the required restrictions.
36478
36479         * rtsfind.ads: Add the set of operations defined in package
36480         Ada.Interrupts.
36481
36482         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
36483         restriction.
36484
36485 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
36486
36487         lang-specs.h: Always require -c or -S and always redirect to /dev/null
36488         if -gnatc or -gnats is passed.
36489
36490 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
36491
36492         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
36493         a significant reference. Warnings are now properly emitted when a
36494         discriminated type is not referenced.
36495
36496         * lib-xref.adb (Generate_Reference): A deferred constant completion,
36497         record representation clause or record type discriminant does not
36498         produce a reference to its corresponding entity. Warnings are now
36499         properly emitted when deferred constants and record types are not
36500         referenced.
36501
36502 2004-05-27  Geert Bosch  <bosch@gnat.com>
36503
36504         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
36505         Fixes ACATS Annex G tests.
36506
36507 2004-05-27  Robert Dewar  <dewar@gnat.com>
36508
36509         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
36510         handling WITH
36511
36512 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
36513
36514         * s-interr.adb (Server_Task): Take into account case of early return
36515         from sigwait under e.g. linux.
36516
36517 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
36518
36519         * gnat_ugn.texi: Add description for the new gnatpp options:
36520          -rnb - replace the original source without creating its backup copy
36521          -c0 - do not format comments
36522
36523 2004-05-24  Geert Bosch  <bosch@gnat.com>
36524
36525         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
36526         with 192 bits of precision, sufficient to reduce a double-extended
36527         arguments X with a maximum relative error of T'Machine_Epsilon, for X
36528         in -2.0**32 .. 2.0**32.
36529         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
36530         reduction by the processor, which only uses a 68-bit approximation of
36531         Pi.
36532         (Tan): Always reduce arguments and compute function either using
36533         the processor's fptan instruction, or by dividing sin and cos as needed.
36534
36535 2004-05-24  Doug Rupp  <rupp@gnat.com>
36536
36537         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
36538         gcc error on 32/64 bit VMS.
36539
36540 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
36541
36542         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
36543         since this is what we get for stack overflows although not documented
36544         as such.
36545         Document the issues which may require adjustments to our signal
36546         handlers.
36547
36548 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
36549
36550         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
36551         enclosing dynamic scope if the instantiation is within a generic unit.
36552
36553 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
36554
36555         * exp_dbug.ads: Fix typo.
36556
36557         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
36558         Rename it to its proper name: system-linux-ia64.ads
36559         (stamp-gnatlib1): Remove extra target specific run time files when
36560         setting up the rts directory.
36561
36562 2004-05-24  Javier Miranda  <miranda@gnat.com>
36563
36564         * einfo.ads, einfo.adb (Limited_Views): Removed.
36565         (Limited_View): New attribute that replaces the previous one. It is
36566         now a bona fide package with the limited-view list through the
36567         first_entity and first_private attributes.
36568
36569         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
36570         limited-private-with clause.
36571         (Install_Limited_Withed_Unit): Install the private declarations of a
36572         limited-private-withed package. Update the installation of the shadow
36573         entities according to the new structure (see Build_Limited_Views)
36574         (Build_Limited_Views): Replace the previous implementation of the
36575         limited view by a package entity that references the first shadow
36576         entity plus the first shadow private entity (required for limited-
36577         private-with clause)
36578         (New_Internal_Shadow_Entity): Code cleanup.
36579         (Remove_Limited_With_Clause): Update the implementation to undo the
36580         new work carried out by Build_Limited_Views.
36581         (Build_Chain): Complete documentation.
36582         Replace Ada0Y by Ada 0Y in comments
36583         Minor reformating
36584
36585         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
36586         types the level of accessibility depends on the enclosing type
36587         declaration.
36588
36589         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
36590         entities. Complete documentation of previous change.
36591
36592 2004-05-24  Robert Dewar  <dewar@gnat.com>
36593
36594         * namet.adb: Minor reformatting
36595         Avoid use of name I (replace by J)
36596         Minor code restructuring
36597
36598         * sem_ch6.adb: Minor reformatting
36599
36600         * lib-writ.adb: Do not set restriction as active if this is a
36601         Restriction_Warning case.
36602
36603         * sem_prag.adb: Reset restriction warning flag if real pragma
36604         restriction encountered.
36605
36606         * s-htable.adb: Minor reformatting
36607         Change rotate count to 3 in Hash (improves hash for small strings)
36608
36609         * 5qsystem.ads: Add comments for type Address (no literals allowed).
36610
36611         * gnat_ugn.texi: Add new section of documentation "Code Generation
36612         Control", which describes the use of -m switches.
36613
36614 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
36615
36616         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
36617         through the DECL_INITIAL for renamed variables.
36618
36619 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
36620
36621         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
36622
36623 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
36624
36625         * exp_dbug.ads: Correct comments concerning handling of overloading,
36626         since we no longer use $ anymore.
36627
36628 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
36629
36630         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
36631         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
36632         with illegal subunits.
36633
36634 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
36635
36636         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
36637         body with front-end inlining enabled, check whether an inline pragma
36638         appears immediately after the body and applies to it.
36639
36640         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
36641         enabled and the pragma appears after the body of the subprogram.
36642
36643 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36644
36645         Part of function-at-a-time conversion
36646
36647         * misc.c (adjust_decl_rtl): Deleted.
36648         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
36649         Define.
36650
36651         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
36652         (add_decl_stmt, add_stmt, block_has_vars): New functions.
36653         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
36654
36655         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
36656         when making a decl.
36657         (gnat_to_gnu_entity): Likewise.
36658         Use add_stmt to update setjmp buffer.
36659         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
36660         flush_addressof.
36661         No longer call adjust_decl_rtl.
36662         (DECL_INIT_BY_ASSIGN_P): New macro.
36663         (DECL_STMT_VAR): Likewise.
36664
36665         * trans.c (gigi): Call start_block_stmt to make the outermost
36666         BLOCK_STMT.
36667         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
36668         Call start_block_stmt and end_block_stmt temporarily.
36669         Use gnat_expand_stmt instead of expand_expr_stmt.
36670         (add_decl_stmt): New function.
36671         (tree_transform): Call it.
36672         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
36673         (end_block_stmt): Set type and NULL_STMT.
36674         (gnat_expand_stmt): Make recursize call instead of calling
36675         expand_expr_stmt.
36676         (gnat_expand_stmt, case DECL_STMT): New case.
36677         (set_lineno_from_sloc): Do nothing if global.
36678         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
36679         (start_block_stmt, add_stmt, end_block_stmt): New functions.
36680         (build_block_stmt): Call them.
36681         (gnat_to_code): Don't expand NULL_STMT.
36682         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
36683         args.
36684         (tree_transform): Likewise.
36685         (tree_transform, case N_Null_Statement): Return NULL_STMT.
36686         (gnat_expand_stmt, case NULL_STMT): New case.
36687         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
36688         IF_STMT_TRUE.
36689
36690         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
36691         TREE_ADDRESSABLE.
36692
36693         * utils.c (create_var_decl): Do not call expand_decl or
36694         expand_decl_init.
36695         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
36696         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
36697         here.
36698         (struct e_stack): Add chain_next to GTY.
36699         (struct binding_level): Deleted.
36700         (struct ada_binding_level): New struct.
36701         (free_block_chain): New.
36702         (global_binding_level, clear_binding_level): Deleted.
36703         (global_bindings_p): Rework to see if no chain.
36704         (kept_level_p, set_block): Deleted.
36705         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
36706         new data structure and work directly on BLOCK node.
36707         (gnat_poplevel): Similarly.
36708         (get_decls): Look at BLOCK_VARS.
36709         (insert_block): Work directly on BLOCK node.
36710         (block_has_var): New function.
36711         (pushdecl): Rework for new binding structures.
36712         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
36713         poplevel.
36714         (build_subprog_body): Likewise.
36715         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
36716
36717         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
36718
36719         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
36720         (DECL_STMT_VAR): Likewise.
36721
36722 2004-05-17  Robert Dewar  <dewar@gnat.com>
36723
36724         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
36725         procedure
36726
36727         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
36728         of restriction synonyums by using
36729         Restrict.Process_Restriction_Synonyms.
36730
36731         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
36732
36733         * s-restri.ads (Tasking_Allowed): Correct missing comment
36734
36735         * s-rident.ads: Add entries for restriction synonyms
36736
36737         * ali.adb: Fix some problems with badly formatted ALI files that can
36738         result in infinite loops.
36739
36740         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
36741         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
36742         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36743         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
36744         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
36745         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
36746         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
36747         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
36748         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
36749         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
36750         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
36751         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
36752         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
36753         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
36754         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36755         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36756         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36757         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36758         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
36759         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
36760         to Task_Id (minor cleanup).
36761
36762 2004-05-17  Vincent Celier  <celier@gnat.com>
36763
36764         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
36765         directory separator.
36766
36767         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
36768         project being extended, if Languages is not declared in extending
36769         project.
36770
36771 2004-05-17  Javier Miranda  <miranda@gnat.com>
36772
36773         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
36774         limited view of a visible sibling.
36775
36776 2004-05-14  Robert Dewar  <dewar@gnat.com>
36777
36778         * gnat_ugn.texi: Minor change to -gnatS documentation
36779
36780         * sprint.adb: Remove some instances of Assert (False) and for this
36781         purpose replace them by output of a ??? string.
36782
36783         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
36784         Assert (False).
36785
36786         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
36787         flag processing. This was suppressing required dependencies in
36788         No_Run_Time mode and is not needed since the binder does not generate
36789         references for things in libgnat anyway.
36790
36791         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
36792         warning.
36793
36794 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
36795
36796         * gnat_ugn.texi: Document AIX-specific issue with initialization of
36797         resolver library.
36798
36799         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
36800         action for the case of an actual parameter in an init proc call.
36801
36802 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
36803
36804         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
36805         subtype, check visible entities in base type.
36806
36807         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
36808         actions if the object is a renaming.
36809
36810         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
36811         Check_Formal_Package_Instance, to determine more precisely when the
36812         formal and the actual denote the same entity.
36813
36814 2004-05-14  Javier Miranda  <miranda@gnat.com>
36815
36816         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
36817
36818         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
36819         corresponding to a private_with must be removed from visibility; it
36820         will be made visible later, just before we analyze the private part of
36821         the package.
36822         (Check_Private_Child_Unit): Allow private_with clauses in public
36823         siblings.
36824         (Install_Siblings): Make visible the private entities of private-withed
36825         siblings.
36826         (Install_Withed_Unit): Do not install the private withed unit if we
36827         are compiling a package declaration and the Private_With_OK flag was
36828         not set by the caller. These declarations will be installed later,
36829         just before we analyze the private part of the package.
36830
36831         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
36832         during the evaluation of the expression that initializes the object,
36833         decorate it with the expected type to avoid cascade errors.
36834         Code cleanup.
36835
36836         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
36837         subprogram we have to install the private_with clauses after its
36838         specification has been analyzed (as documented in AI-262.TXT).
36839
36840         * sem_ch8.adb (Has_Private_With): New function. Determines if the
36841         current compilation unit has a private with on a given entity.
36842         (Find_Direct_Name): Detect the Beaujolais problem described in
36843         AI-262.TXT
36844
36845         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
36846         provides the functionality of the function Is_Ancestor that was
36847         previously available in sem_ch10. It has been renamed to avoid
36848         overloading.
36849
36850         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
36851
36852 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36853
36854         * utils.c (build_vms_descriptor): Use SImode pointers.
36855
36856 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
36857
36858         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
36859
36860 2004-05-14  GNAT Script  <nobody@gnat.com>
36861
36862         * Make-lang.in: Makefile automatically updated
36863
36864 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
36865
36866         Renaming of target specific files for clarity
36867
36868         * Makefile.in: Rename GNAT target specific files.
36869
36870         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
36871         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
36872         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
36873         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
36874         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
36875         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
36876         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
36877         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
36878         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
36879         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
36880         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
36881         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
36882         51osinte.adb, 51osinte.ads, 51system.ads,
36883         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36884         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
36885         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
36886         56tpopsp.adb, 57system.ads, 58system.ads,
36887         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
36888         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36889         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
36890         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
36891         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
36892         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36893         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
36894         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
36895         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
36896         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
36897         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
36898         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
36899         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
36900         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
36901         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
36902         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36903         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36904         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36905         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
36906         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
36907         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
36908         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
36909         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
36910         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36911         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
36912         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
36913         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36914         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
36915         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36916         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
36917         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
36918         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
36919         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
36920         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
36921         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
36922         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
36923         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
36924         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
36925         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
36926         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
36927
36928         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
36929         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
36930         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
36931         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
36932         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
36933         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
36934         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
36935         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
36936         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
36937         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
36938         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
36939         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
36940         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
36941         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
36942         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
36943         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
36944         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
36945         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
36946         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
36947         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
36948         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
36949         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
36950         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
36951         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
36952         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
36953         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
36954         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
36955         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
36956         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
36957         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
36958         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
36959         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
36960         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
36961         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
36962         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
36963         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
36964         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
36965         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
36966         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
36967         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
36968         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
36969         s-osinte-vms.ads, s-osinte-vxworks.adb,
36970         s-osinte-vxworks.ads, s-osprim-mingw.adb,
36971         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
36972         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
36973         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
36974         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
36975         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
36976         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
36977         s-stchop-vxworks.adb, s-taprop-dummy.adb,
36978         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
36979         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
36980         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
36981         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
36982         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
36983         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
36984         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
36985         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
36986         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
36987         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
36988         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
36989         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
36990         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
36991         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
36992         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
36993         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
36994         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
36995         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
36996         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
36997         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
36998         system-irix-o32.ads, system-linux-x86_64.ads,
36999         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
37000         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
37001         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
37002         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
37003         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
37004         system-vxworks-mips.ads, system-vxworks-ppc.ads,
37005         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
37006         above.
37007
37008 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
37009
37010         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
37011
37012 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
37013
37014         Merge from tree-ssa-20020619-branch.
37015
37016         * config-lang.in (boot_language, build_by_default): Set
37017         to no.
37018         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
37019         (max_size): Add static chain op for call_expr.
37020
37021 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
37022
37023         PR target/15331
37024         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
37025
37026 2004-05-11  Roger Sayle  <roger@eyesopen.com>
37027
37028         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
37029         COND_EXPR.
37030
37031 2004-05-10  Doug Rupp  <rupp@gnat.com>
37032
37033         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
37034         system.aux_dec.
37035
37036         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
37037
37038         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
37039
37040         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
37041         Fixes undefined symbols in IA64 gnatlib.
37042
37043         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
37044
37045         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
37046         Short_Address). This will be moved to system.auxdec.
37047
37048 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
37049
37050         * sem_util.adb: Replace test for presence of a node that is always
37051         present with a call to Discard_Node.
37052
37053         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
37054         Analyze on the library unit node after generation of distribution stub
37055         constructs.  The call was a no-op because Unit_Node has already been
37056         Analyzed, and the tree fragments for the distribution stubs are
37057         analyzed as they are inserted in Exp_Dist.
37058         Update comment regarding to distribution stubs to reflect that we
37059         do not generate stub in separate files anymore.
37060
37061         * einfo.ads: Clarify the fact that a tagged private type has the
37062         E_Record_Type_With_Private Ekind.
37063
37064         * erroutc.adb: Minor reformatting
37065
37066         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
37067         values if line length is increased using -gnatyM (noticed during code
37068         reading).
37069
37070         * eval_fat.adb: Minor reformatting
37071         Put spaces around exponentiation operator
37072
37073 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
37074
37075         PR ada/15005
37076         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
37077         has been rewritten as an explicit dereference, retrieve type of
37078         original node to check for possibly unconstrained record type.
37079
37080 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
37081
37082         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
37083         overriding, use the operation of the parent unconditionally.
37084
37085         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
37086         operation when either operand is a literal, to avoid further
37087         ambiguities.
37088
37089         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
37090         overridden by a previous explicit declaration, mark the previous entity
37091         as overriding.
37092
37093         * sem_disp.adb (Check_Dispatching_Operation): New predicate
37094         Is_Visibly_Controlled, to determine whether a declaration of a
37095         primitive control operation for a derived type overrides an inherited
37096         one. Add warning if the explicit declaration does not override.
37097
37098 2004-05-10  Vincent Celier  <celier@gnat.com>
37099
37100         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
37101         some cases when the sources are no longer present.
37102
37103         * make.adb (Collect_Arguments): Fail if an external source, not part
37104         of any project need to be compiled, when switch -x has not been
37105         specified.
37106
37107         * makeusg.adb: Document new switch -x
37108
37109         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
37110         defaulted to False.
37111
37112         * switch-m.adb (Scan_Make_Switches): New switch -x
37113
37114         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
37115         gnatmake switch -x.
37116
37117         * gnat_ugn.texi: Document new gnatmake switch -x
37118
37119 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
37120
37121         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
37122
37123         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
37124         (process_attributes): Likewise.
37125
37126 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
37127
37128         * s-inmaop.ads: Fix spelling mistake in one of the comments.
37129
37130 2004-05-10  Robert Dewar  <dewar@gnat.com>
37131
37132         * gnat_ugn.texi: Document that for config pragma files, the maximum
37133         line length is always 32767.
37134
37135         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
37136         literals is now allowed.
37137
37138         * gnat-style.texi: Remove statement about splitting long lines before
37139         an operator rather than after, since we do not follow this rule at all.
37140         Clarify rule (really lack of rule) for spaces around exponentiation
37141
37142         * sem_elim.adb: Allow concatenation of string literals as well as a
37143         single string literal for pragma arguments.
37144
37145         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
37146
37147         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
37148         written for append case.
37149
37150         * frontend.adb: Changes to avoid checking max line length in config
37151         pragma files.
37152
37153         * g-os_lib.ads: Minor reformatting
37154
37155         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
37156         wrong in any case. Instead use standard value. Noticed during code
37157         reading.
37158
37159         * opt.ads (Max_Line_Length): New field, used to implement removal of
37160         limitation on length of lines when scanning config pragma files.
37161
37162         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
37163         makeutl.ads, makeutl.adb: Minor reformatting
37164
37165         * scn.adb: Do not check line length while scanning config pragma files
37166         Do not check line length while scanning out license information
37167
37168         * scng.adb: Changes to avoid line length checks while parsing config
37169         pragma files.
37170
37171 2004-05-10  GNAT Script  <nobody@gnat.com>
37172
37173         * Make-lang.in: Makefile automatically updated
37174
37175 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
37176
37177         * osint.adb (Find_Program_Name): Fix handling of VMS version
37178         number.
37179
37180 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
37181
37182         * g-os_lib.ads (Invalid_Time): New constant
37183
37184         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
37185         return OS_Time instead of time_t to match what is imported by Ada.
37186         Now return -1 if the file doesn't exist, instead of a random value
37187
37188 2004-05-05  Robert Dewar  <dewar@gnat.com>
37189
37190         * usage.adb: Add line for -gnatR?s switch
37191
37192         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
37193
37194         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
37195         and for Match (Data_First, Data_last)
37196
37197         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
37198         written when we are dealing with multi-unit files.
37199
37200 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
37201
37202         * Makefile.in: Remove unused targets and variables.
37203
37204 2004-05-05  Vincent Celier  <celier@gnat.com>
37205
37206         * switch-m.adb: New gnatmake switch -eI
37207
37208         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
37209         of new gnatmake switch -eInnn.
37210
37211         * makegpr.adb: Take into account new parameters Index and Src_Index in
37212         Prj.Util.
37213
37214         * clean.adb: Implement support for multi-unit sources, including new
37215         switch -i.
37216
37217         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
37218         Src_Index.
37219
37220         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
37221         (Extract_From_Q): New out parameter Index
37222         (Mark, Is_Marked): Subprograms moved to Makeutl
37223         (Switches_Of): New parameter Source_Index
37224         (Add_Switch): New parameter Index
37225         (Check): New parameter Source_Index
37226         (Collect_Arguments): New parameter Source_Index
37227         (Collect_Arguments_And_Compile): New parameter Source_Index
37228         (Compile): New parameter Source_Index
37229         Put subprograms in alphabetical order
37230         Add support for multi-source sources, including in project files.
37231
37232         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
37233         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
37234         Make.
37235
37236         * makeusg.adb: New gnatmake switch -eInnn
37237
37238         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
37239         Prj.Util.Value_Of.
37240
37241         * opt.ads (Main_Index): New variable, defaulted to 0.
37242
37243         * osint.ads, osinte.adb (Add_File): New parameter Index
37244         (Current_Source_Index): New function
37245
37246         * prj.adb: Take into account new components Index and Src_Index
37247
37248         * prj.ads (String_Element): New component Index
37249         (Variable_Value): New component Index
37250         (Array_Element): New component Src_Index
37251
37252         * prj-attr.adb: Indicate that optional index may be specified for
37253         attributes Main, Executable, Spec, Body and some of Switches.
37254
37255         * prj-attr.ads (Attribute_Kind): New values for optional indexes
37256         (Attribute_Record): New component Optional_Index
37257
37258         * prj-com.ads (File_Name_Data): New component Index
37259
37260         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
37261
37262         * prj-env.adb (Put): Output optional index
37263
37264         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
37265         attributes Spec and Body.
37266
37267         * prj-nmsc.adb: Process optional indexes
37268
37269         * prj-pp.adb: Ouput "at" for optional indexes
37270
37271         * prj-proc.adb: Take into account optional indexes
37272
37273         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
37274         Optional_Index. For string literal,
37275         process optional index when Optional_Index is True.
37276         (Parse_Expresion): New Boolean parameter Optional_Index
37277
37278         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
37279         (Set_Source_Index_Of): New procedure
37280
37281         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
37282         index.
37283
37284         * prj-util.ads (Executable_Of): New parameter Index
37285         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
37286         New parameter Src_Index, defaulted to 0.
37287
37288 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
37289
37290         PR ada/15257
37291         * sem_ch3.adb (Access_Definition): If this is an access parameter
37292         whose designated type is imported through a limited_with clause, do
37293         not add the enclosing subprogram to the list of private dependents of
37294         the type.
37295
37296 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
37297
37298         PR ada/15258
37299         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
37300         a limited_with clause, and the other is its non-limited view.
37301
37302 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
37303
37304         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
37305
37306         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
37307         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
37308         Stand.Boolean_Literals to produce references to entities
37309         Standard_False and Standard_True from compile-time computed boolean
37310         values.
37311
37312         * stand.ads (Boolean_Literals): New variable, provides the entity
37313         values for False and True, for use by the expander.
37314
37315 2004-05-05  Doug Rupp  <rupp@gnat.com>
37316
37317         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
37318         5vinmaop.adb: Unchecked convert Short_Address vice Address
37319
37320         * adaint.c, raise.c: Caste CRTL function return value
37321         to avoid gcc error on 32/64 bit IVMS.
37322
37323         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
37324         target = IA64/VMS.
37325
37326         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
37327
37328         * 5qsystem.ads (Address): Declare as Long_Integer
37329         (Short_Address): Declare as 32 bit subtype of Address
37330         Declare  abstract address operations to avoid gratuitous ambiguities.
37331
37332 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
37333
37334         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
37335         instead of the old Boolean_Entry_Barriers.
37336         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
37337
37338 2004-05-05  GNAT Script  <nobody@gnat.com>
37339
37340         * Make-lang.in: Makefile automatically updated
37341
37342 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
37343
37344         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
37345
37346 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
37347
37348         PR ada/15152
37349         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
37350         alone. Replacing object references by literals is inappropriate in a
37351         so low level context.
37352
37353 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
37354
37355         * a-exexpr.adb: Add comments
37356
37357 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
37358
37359         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
37360         declare the Ancestor_Tags array in Type_Specific_Data with a small size
37361         without risking a bounds check error when accessing one of its
37362         components.
37363         (Type_Specific_Data): Define Ancestor_Tags as a small array.
37364         This prevents us from hitting a limitation during the debug info
37365         generation when using stabs.
37366
37367         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
37368         small array.
37369         This prevents us from hitting a limitation during the debug info
37370         generation when using stabs.
37371
37372 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
37373
37374         lang-specs.h: Remove -gnatz* from specs.
37375
37376 2004-05-03  Vincent Celier  <celier@gnat.com>
37377
37378         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
37379
37380         * Make-lang.in, Makefile.in: Add gprmake
37381
37382 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
37383
37384         * sem_aggr.adb: Fix typo in comment.
37385
37386 2004-05-03  Robert Dewar  <dewar@gnat.com>
37387
37388         * make.adb: Minor reformatting
37389
37390         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
37391
37392         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
37393         so that it works when address is not a private type.
37394
37395         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
37396         properly with rewritten unchecked conversions. This prevents
37397         order-of-elaboration issues that can otherwise arise.
37398         (Minimum_Size): Don't check size of access types under VMS
37399
37400         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
37401         interpretations of integer literals as type System.Address.
37402
37403         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
37404         (Is_Descendent_Of): New function
37405
37406 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
37407
37408         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37409         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
37410         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
37411
37412         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
37413         of the old Max_Entry_Queue_Depth.
37414
37415         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37416         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
37417         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
37418
37419         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
37420         New entry for proper handling of Max_Entry_Queue_Depth.
37421         New entry for proper handling of No_Dynamic_Interrupts.
37422
37423         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
37424         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37425         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
37426         the GNAT specific restriction Max_Entry_Queue_Depth.
37427         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
37428         the GNAT specific restriction No_Dynamic_Interrupts.
37429
37430         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
37431         instead of the old Boolean_Entry_Barriers.
37432         Use the new restriction No_Dynamic_Attachment instead of the old
37433         No_Dynamic_Interrupts.
37434
37435         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
37436         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37437
37438         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
37439         of the old Max_Entry_Queue_Depth.
37440
37441 2004-05-03  GNAT Script  <nobody@gnat.com>
37442
37443         * Make-lang.in: Makefile automatically updated
37444
37445 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
37446
37447         * checks.adb (Enable_Range_Check): If the prefix of an index component
37448         is an access to an unconstrained array, perform check unconditionally.
37449
37450 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37451
37452         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
37453         Component_Clause.
37454
37455 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
37456
37457         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
37458         alternate stack setting. There was no support for the tasking cases
37459         and the changes eventually caused a number of side-effect failures in
37460         the non-tasking case too.
37461
37462 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
37463
37464         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
37465         -gnats is passed.
37466
37467 2004-04-29  Vincent Celier  <celier@gnat.com>
37468
37469         * make.adb (Gnatmake): Increase max size of argument array for
37470         gnatbind for the potential addition of -F.
37471         If there are Stand-Alone Library projects, invoke gnatbind with -F to
37472         be sure that elaboration flags will be checked.
37473
37474         * switch-c.adb: Correct call to Scan_Pos for -gnateI
37475
37476 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
37477
37478         * sem_warn.adb (Check_References): Move '<access-variable> may be
37479         null' warning out of under Warn_On_No_Value_Assigned.
37480
37481 2004-04-29  Ed Falis  <falis@gnat.com>
37482
37483         * gnat_ugn.texi: Fixed texi error
37484
37485 2004-04-29  Robert Dewar  <dewar@gnat.com>
37486
37487         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
37488         abstract operations if they come from predefined files.
37489
37490         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
37491         Dynamic, not RM).
37492
37493         * s-addope.adb: Correct obvious error in mod function
37494
37495 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
37496
37497         * Makefile.in: Add target pairs for powerpc darwin*
37498         tasking support.
37499
37500         * a-intnam-darwin.ads, s-osinte-darwin.adb,
37501         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
37502
37503 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
37504
37505         * Makefile.in: Add target macro definitions for s390*-linux*.
37506         * system-linux-s390.ads: New file.
37507         * system-linux-s390x.ads: New file.
37508
37509 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
37510
37511         * gnat_ugn.texi: Correct argument to @setfilename.
37512
37513 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
37514
37515         * a-exexpr.adb (Unwind_Word): New data type.
37516         (Unwind_Exception): Use it as type of Private1 and Private2.
37517
37518         * raise.c (db_action_for): Fix debug printf.
37519
37520 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
37521
37522         * a-wtmoio.ads: Formal type must be a modular type, not a signed
37523         integer type.
37524
37525 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37526
37527         * decl.c (gnat_to_gnu_entity, case object): Call
37528         __builtin_update_setjmp_buf.
37529
37530         * gigi.h (update_setjmp_buf): Deleted.
37531         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
37532
37533         * misc.c: (update_setjmp_buf): Deleted.
37534
37535         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
37536         around block of RTL.
37537
37538         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
37539
37540 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
37541
37542         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
37543         subprogram for which no pragma All_Calls_Remote applies, store the
37544         address of the real subprogram in the underlying record type, so local
37545         dereferences do not go through the PCS.
37546
37547 2004-04-26  Robert Dewar  <dewar@gnat.com>
37548
37549         * i-c.ads: Add some type qualifications to avoid ambiguities when
37550         compiling with s-auxdec.ads and a non-private address type.
37551
37552 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
37553
37554         * Makefile.rtl: Fix error in previous check-in:
37555         Add s-addope.o to non tasking object list (rather than tasking object
37556         list).
37557
37558 2004-04-26  Javier Miranda  <miranda@gnat.com>
37559
37560         * sem_aggr.adb: Fix typo in comments
37561         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
37562         Required to check the null-exclusion attribute.
37563
37564         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
37565         case of anonymous access types in record and array components. For a
37566         component definition the level is the same of the enclosing composite
37567         type.
37568
37569         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
37570         that are anonymous access types the level of accessibility depends on
37571         the enclosing type declaration. In order to have this information, set
37572         the scope of the anonymous access type to the enclosing record type
37573         declaration.
37574         (Array_Type_Declaration): In case of components that are anonymous
37575         access types the level of accessibility depends on the enclosing type
37576         declaration. In order to have this information, set the scope of the
37577         anonymous access type to the enclosing array type declaration.
37578
37579         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
37580         access type.
37581
37582         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
37583         renaming of anonymous access-to-constant types allowed if and only if
37584         the renamed object is access-to-constant.
37585
37586         * sem_util.adb (Type_Access_Level): In case of anonymous access types
37587         that are component_definition or discriminants of a nonlimited type,
37588         the level is the same as that of the enclosing component type.
37589
37590 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
37591
37592         * sem_elim.adb: Some minor code reorganization from code reading. Fix
37593         misprint in the function name (File_Name_Match).
37594
37595 2004-04-23  Laurent Guerby  <laurent@guerby.net>
37596
37597         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
37598         install.
37599
37600 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37601
37602         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
37603
37604 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
37605
37606         * adaint.c (__gnat_try_lock): No longer requires that the parent
37607         directory be writable, the directory itself is enough.
37608         (gnat_is_absolute_path): Change profile, so that the call from
37609         GNAT.OS_Lib can be made more efficient.
37610
37611         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
37612         from GNAT.OS_Lib can be made more efficient.
37613
37614         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
37615         one copy of the file name. Found by code reading.
37616
37617 2004-04-23  Vincent Celier  <celier@gnat.com>
37618
37619         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
37620         Correct documentation on gnatmake switches transmitted to the compiler
37621
37622         * ali.ads: Minor comment fix
37623
37624 2004-04-23  Javier Miranda  <miranda@gnat.com>
37625
37626         * sem_ch6.adb: (Confirming Types): Code cleanup
37627
37628         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
37629         subprogram types: E_Anonymous_Access_Subprogram_Type and
37630         E_Anonymous_Access_Protected_Subprogram_Type.
37631
37632 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
37633
37634         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37635         whether a pragma All_Calls_Remote applies to the subprogram on which
37636         'Access is taken.
37637         No functional change is introduced by this revision; the new parameter
37638         will be used to allow calls to local RCI subprograms to be optimized
37639         to not use the PCS in the case where no pragma All_Calls_Remote applies,
37640         as is already done in the PolyORB implementation of the DSA.
37641
37642         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37643         whether a pragma All_Calls_Remote applies to the subprogram on which
37644         'Access is taken.
37645         No functional change is introduced by this revision; the new parameter
37646         will be used to allow calls to local RCI subprograms to be optimized
37647         to not use the PCS in the case where no pragma All_Calls_Remote applies,
37648         as is already done in the PolyORB implementation of the DSA.
37649
37650 2004-04-23  Robert Dewar  <dewar@gnat.com>
37651
37652         * Makefile.rtl: Add entry for s-addope.o in run time library list
37653         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
37654         * s-addope.ads, s-addope.adb: New files.
37655
37656         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
37657         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
37658         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
37659         System.Address to be non-private and signed.
37660
37661         * sem_elim.adb: Minor reformatting (fairly extensive)
37662         Some minor code reorganization from code reading
37663         Add a couple of ??? comments
37664
37665 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37666
37667         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
37668         (tree_transform, case N_If_Statement): Remove non-determinism.
37669
37670         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
37671
37672 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
37673
37674         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
37675         Eliminate' section.
37676
37677         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
37678         no longer used as a parameter name for Eliminate pragma).
37679
37680 2004-04-22  Laurent Guerby  <laurent@guerby.net>
37681
37682         PR optimization/14984
37683         PR optimization/14985
37684         * trans.c (gigi): Fix non determinism leading to bootstrap
37685         comparison failures.
37686
37687 2004-04-21  Pascal Obry  <obry@gnat.com>
37688
37689         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
37690         passed to spawnvp() to properly handle program pathname with spaces on
37691         Win32.
37692
37693 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
37694
37695         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
37696         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
37697         unlocked in case of exceptions.
37698
37699 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
37700
37701         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
37702         This function does not exist anymore.
37703
37704 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
37705
37706         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
37707
37708         * link.c: Move variables to the __gnat name space.
37709
37710         * Makefile.in: list link.o explicitly when needed.
37711
37712         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
37713
37714 2004-04-21  Javier Miranda  <miranda@gnat.com>
37715
37716         * einfo.adb (Original_Access_Type): New subprogram
37717         (Set_Original_Access_Type): New subprogram
37718         (Write_Field21_Name): Write the name of the new field
37719
37720         * einfo.ads (Original_Access_Type): New field present in access to
37721         subprogram types.
37722         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
37723         E_Anonymous_Access_Protected_Subprogram_Type.
37724
37725         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
37726         subprogram types.
37727
37728         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
37729         to anonymous access to subprogram types.
37730
37731         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
37732         to subprogram types.
37733
37734         * sem_ch3.adb (Access_Definition): Complete decoration of entities
37735         corresponding to anonymous access to subprogram types.
37736         (Analyze_Component_Declaration): Add new actual to the call to
37737         subprogram replace_anonymous_access_to_protected_subprogram.
37738         (Array_Type_Declaration): Add new actual to the call to subprogram
37739         replace_anonymous_access_to_protected_subprogram.
37740         (Process_Discriminants): Add new actual to the call to subprogram
37741         replace_anonymous_access_to_protected_subprogram.
37742         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
37743
37744         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37745         formal.
37746
37747         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
37748         access to subprogram types.
37749
37750         * sem_util.adb (Has_Declarations): Addition of package_specification
37751         nodes.
37752
37753 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
37754
37755         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
37756         inlined flags to renamed entity only if in current unit.
37757
37758 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
37759
37760         * s-parint.ads: Add DSA implementation marker.
37761
37762         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
37763         value of System.Partition_Interface.DSA_Implementation to determine
37764         what version of the distributed systems annex is available (no
37765         implementation, GLADE, or PolyORB).
37766
37767 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
37768
37769         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
37770
37771 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37772
37773         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
37774         with new type if alias sets differ.
37775         Fixes ACATS c41103b.
37776
37777 2004-04-21  Vincent Celier  <celier@gnat.com>
37778
37779         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
37780         Add array Lang_Args for the language specific compiling argument
37781         switches.
37782
37783         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
37784
37785 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
37786
37787         * gnat_rm.texi: Update the descripton of the Eliminate pragma
37788         according to the recent changes in the format of the parameters of the
37789         pragma (replacing Homonym_Number with Source_Location).
37790
37791 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
37792
37793         * 5isystem.ads: Removed, unused.
37794
37795         * gnat_rm.texi: Redo 1.13 change.
37796
37797 2004-04-19  Robert Dewar  <dewar@gnat.com>
37798
37799         * s-stoele.ads: Clean up definition of Storage_Offset (the new
37800         definition is cleaner, avoids the kludge of explicit Standard operator
37801         references, and also is consistent with a visible System.Address with
37802         no visible operations.
37803
37804         * s-geveop.adb: Add declarations to avoid assumption of visible
37805         operations on type System.Address (since these might not be available
37806         if Address is a non-private type for which the operations
37807         are made abstract).
37808
37809         * sem_eval.adb: Minor reformatting
37810
37811         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
37812         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
37813         reformatting (new function spec format).
37814
37815         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
37816         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
37817         s-caun64.adb: Add declarations to avoid assumption of visible
37818         operations on type System.Address (since these might not be available
37819         if Address is a non-private type for which the operations are made
37820         abstract).
37821
37822         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
37823
37824         * exp_intr.adb: Minor comment update
37825
37826         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
37827
37828         * 5omastop.adb: Add declarations to avoid assumption of visible
37829         operations on type System.Address (since these might not be available
37830         if Address is a non-private type for which the operations
37831         are made abstract).
37832
37833 2004-04-19  Vincent Celier  <celier@gnat.com>
37834
37835         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
37836
37837         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
37838         defaulted to Ada.
37839
37840         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
37841         defaulted to Ada.
37842         Call Check with Process_Languages.
37843         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
37844         with Process_Languages.
37845         (Recursive_Check): New Boolean parameter Process_Languages. Call
37846         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
37847         Process_Languages.
37848
37849         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
37850
37851         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
37852         parameter Ada_Main, defaulted to True.
37853         Check for Ada specific characteristics only when Ada_Main is True.
37854
37855         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
37856
37857         * prj.adb: (Project_Empty): Add new Project_Data components.
37858
37859         * prj.ads: New types and tables for non Ada languages.
37860         (Project_Data): New components Languages, Impl_Suffixes,
37861         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
37862         Include_Path, Include_Data_Set.
37863
37864         * prj-env.ads, prj-env.adb: Minor reformatting
37865
37866         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
37867         Put subprograms in alphabetical order
37868
37869         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
37870         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
37871         Opt.Follow_Links.
37872
37873         * mlib-prj.adb: Back out modification in last version, as they are
37874         incorrect.
37875         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
37876
37877         * make.adb: (Mains): Moved to package Makeutl
37878         (Linker_Opts): Moved to package Makeutl
37879         (Is_External_Assignment): Moved to package Makeutl
37880         (Test_If_Relative_Path): Moved to package Makeutl
37881         (Gnatmake): Move sorting of linker options to function
37882         Makeutl.Linker_Options_Switches.
37883
37884         * makeutl.ads, makeutl.adb: New files.
37885
37886         * Makefile.in: Add makeutl.o to the object files for gnatmake
37887
37888         * makeusg.adb: Add line for new switch -eL.
37889
37890         * gnatls.adb (Image): New function.
37891         (Output_Unit): If in verbose mode, output the list of restrictions
37892         specified by pragmas Restrictions.
37893
37894         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
37895         Text_IO.
37896
37897         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
37898         needed, to put it in the range 1970 (included) - 2026 (excluded).
37899         (Time_Of): Do not shift Unix_Min_Year (1970).
37900         Shift the date by multiple of 56 years, if needed, to put it in the
37901         range 1970 (included) - 2026 (excluded).
37902
37903         * adaint.h, adaint.c (__gnat_set_executable): New function.
37904
37905 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37906
37907         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
37908         and pop GC context.
37909         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
37910         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
37911         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
37912         (tree_transform, case N_Code_Statement): Likewise.
37913         (gnat_expand_stmt, case LABEL_STMT): Don't look at
37914         LABEL_STMT_FIRST_IN_EH.
37915         (gnat_expand_stmt, case ASM_STMT): New case.
37916
37917         * utils2.c (build_unary_op): Properly set TREE_READONLY of
37918         UNCONSTRAINED_ARRAY_REF.
37919
37920         * utils.c (poplevel): Temporarily push/pop GC context around inline
37921         function expansion.
37922
37923         * decl.c (maybe_variable): Properly set TREE_READONLY of
37924         UNCONSTRAINED_ARRAY_REF.
37925         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
37926
37927         * ada-tree.def: (ASM_STMT): New.
37928
37929         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
37930         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
37931         ASM_STMT_INPUT): New.
37932         (ASM_STMT_CLOBBER): Likewise.
37933
37934 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
37935
37936         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
37937         general rcheck mechanism to raise Program_Error for E.4(18), instead
37938         of a custom raiser in System.Partition_Interface.
37939         Part of general cleanup work before PolyORB integration.
37940
37941         * snames.ads, snames.adb: Add new runtime library entities and names
37942         for PolyORB DSA.
37943
37944         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37945         exp_dist.
37946         (Build_Subprogram_Id): New subprogram provided by exp_dist
37947         Code reorganisation in preparation for PolyORB integration.
37948
37949         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37950         exp_dist.
37951         (Build_Subprogram_Id): New subprogram provided by exp_dist
37952
37953         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
37954         actual parameter types for call to dereference of an
37955         access-to-subprogram type.
37956
37957         * rtsfind.ads: Add new runtime library entities and names for PolyORB
37958         DSA.
37959
37960         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
37961         instead, which has the same behaviour here since we never pass it a
37962         NULL pointer.
37963
37964         * link.c (run_path_option, Solaris case): Use -Wl, as for other
37965         platforms.
37966
37967         * Makefile.in: adjust object file lists for gnatlink and gnatmake
37968         to account for new dependency upon Interfaces.C.Strings + link.o
37969         For x86 FreeBSD, use 86numaux.
37970
37971         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
37972         from Mlib.Tgt to Mlib.
37973
37974         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
37975         target-independent.
37976
37977         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
37978         target-specific versions of this subprogram, now implemented as a
37979         target-independent function in Mlib.
37980
37981         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
37982         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
37983         (Linker_Library_Path_Option): Remove target-specific versions of this
37984         subprogram, now implemented as a target-independent function in Mlib.
37985
37986         * atree.adb: (Allocate_Initialize_Node): New subprogram.
37987         Factors out node table slots allocation.
37988         (Fix_Parents): New subprogram.
37989         Encapsulate the pattern of fixing up parent pointers for syntactic
37990         children of a rewritten node.
37991         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
37992         (Rewrite): Use New_Copy when creating saved copy of original node.
37993         (Replace): Use Copy_Node to copy nodes.
37994
37995 2004-04-19  Javier Miranda  <miranda@gnat.com>
37996
37997         * sprint.adb (Sprint_Node_Actual): Give support to the new
37998         Access_To_Subprogram node available in Access_Definition nodes. In
37999         addition, give support to the AI-231 node fields: null-exclusion,
38000         all-present, constant-present.
38001
38002         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
38003
38004         * sinfo.ads, sinfo.adb:
38005         New field Access_To_Subprogram_Definition in Access_Definition nodes
38006
38007         * sem_ch6.adb (Process_Formals): Move here the code that creates and
38008         decorates internal subtype declaration corresponding to the
38009         null-excluding formal. This code was previously in Set_Actual_Subtypes.
38010         In addition, carry out some code cleanup on this code. In case of
38011         access to protected subprogram call
38012         Replace_Anonymous_Access_To_Protected_Subprogram.
38013         (Set_Actual_Subtypes): Code cleanup.
38014
38015         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
38016         Find_Type in case of anonymous access renamings. Add warning in case of
38017         null-excluding attribute used in anonymous access renaming.
38018
38019         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
38020         subprogram
38021
38022         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
38023         subprogram.
38024         (Access_Definition): In case of anonymous access to subprograms call
38025         the corresponding semantic routine to decorate the node.
38026         (Access_Subprogram_Declaration): Addition of some comments indicating
38027         some code that probably should be added here. Detected by comparison
38028         with the access_definition subprogram.
38029         (Analyze_Component_Declaration): In case of access to protected
38030         subprogram call Replace_Anonymous_Access_To_Protected.
38031         (Array_Type_Declaration): In case of access to protected subprogram call
38032         Replace_Anonymous_Access_To_Protected_Subprogram.
38033         (Process_Discriminants): In case of access to protected subprogram call
38034         Replace_Anonymous_Access_To_Protected_Subprogram.
38035
38036         * par.adb (P_Access_Definition): New formal that indicates if the
38037         null-exclusion part was present.
38038         (P_Access_Type_Definition): New formal that indicates if the caller has
38039         already parsed the null-excluding part.
38040
38041         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
38042         (P_Identifier_Declarations): Code cleanup and give support to renamings
38043         of anonymous access to subprogram types.
38044         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
38045         (P_Array_Type_Definition): Give support to AI-254.
38046         (P_Component_Items): Give support to AI-254.
38047         (P_Access_Definition): New formal that indicates if the header was
38048         already parsed by the caller.
38049         (P_Access_Type_Definition): New formal that indicates if the caller has
38050         already parsed the null-excluding part.
38051
38052         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
38053         call to P_Access_Definition.
38054
38055 2004-04-19  Geert Bosch  <bosch@gnat.com>
38056
38057         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
38058         the delicate semantics of floating-point to integer conversion.
38059         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
38060
38061         * eval_fat.adb (Machine_Mantissa): Moved to spec.
38062         (Machine_Radix): New function.
38063
38064         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
38065         conversion checks.
38066         (Machine_Radix): New function also for use in conversion checks.
38067
38068 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
38069
38070         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
38071
38072         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
38073         to decorate the access-to-protected subprogram and the equivalent type.
38074
38075         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
38076         to anonymous access to subprogram types.
38077
38078         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
38079         constant-folding, for legality checks in contexts that require an RM
38080         static expression.
38081
38082         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
38083         temporary but stack checking is not enabled, increment serial number
38084         to so that symbol generation is consistent with and without stack
38085         checking.
38086
38087         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
38088         independent on whether stack checking is enabled, caller must check
38089         the corresponding flag.
38090
38091         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
38092         range checks.
38093         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
38094         parent if it has discriminants.
38095         (Build_Derived_Private_Type): Constructed full view does
38096         not come from source.
38097         (Process_Discriminants): Default discriminants on a tagged type are
38098         legal if this is the internal completion of a private untagged
38099         derivation.
38100
38101         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
38102         no constraint checks, because it corresponds to an existing object.
38103
38104         * sem_prag.adb (Process_Convention): Pragma applies
38105         only to subprograms in the same declarative part, i.e. the same unit,
38106         not the same scope.
38107
38108         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
38109         ignore type mismatch on a numeric conversion if expression comes from
38110         expansion.
38111
38112 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
38113
38114         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
38115         Homonym_Number parameter, add processing for Source_Location parameter
38116         corresponding.
38117         (Check_Eliminated): Remove the check for homonym numbers, add the check
38118         for source location traces.
38119
38120         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
38121         with Arg_Source_Location corresponding to the changes in the format of
38122         the pragma.
38123
38124         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
38125         Eliminate pragma corresponding to the changes in the format of the
38126         pragma: Homonym_Number is replaced with Source_Location, two ways of
38127         distinguishing homonyms are mutially-exclusive.
38128
38129 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
38130
38131         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
38132
38133         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
38134         No_Dollar_In_Label, no longer necessary, as it is always True.
38135         (Strip_Suffixes): Likewise.
38136
38137 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
38138
38139         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
38140         modulus for compatibility with size clause on targets with 16-bit
38141         Integer.
38142
38143         * layout.adb (Discrimify): In the case of private types, set Vtyp to
38144         full type to fix type mismatches on calls to size functions for
38145         discriminant-dependent array components.
38146
38147 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
38148
38149         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
38150         lib.
38151
38152 2004-04-19  Pascal Obry  <obry@gnat.com>
38153
38154         * mdll-utl.adb (Locate): New version is idempotent.
38155
38156 2004-04-17  Laurent Guerby  <laurent@guerby.net>
38157
38158         PR ada/14988 (partial)
38159         * impunit.adb: Fix typo.
38160
38161 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
38162
38163         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
38164         and install-rts-cert targets.  Remove all gnatlib and gnattools
38165         targets and all other rts-* targets (moved to libada).  Remove (now)
38166         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
38167         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
38168
38169 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38170
38171         * trans.c (tree_transform): Shortcut returning error_mark_node for
38172         statements in annotate_only_mode.
38173         (tree_transform, case N_Label, case N_Return_Statement,
38174         N_Goto_Statement): Make statement tree instead of generating code.
38175         (tree_transform, case N_Assignment_Statement): No longer check
38176         type_annotate_only.
38177         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
38178         RETURN_STMT): New.
38179         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
38180         New fcns.
38181         (gnat_to_gnu): Collect any RTL generated and deal with it.
38182         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
38183         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
38184         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
38185
38186         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
38187
38188         * ada-tree.def (EXPR_STMT): Fix typo in name.
38189         (BLOCK_STMT, IF_STMT): New nodes.
38190
38191         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
38192         LABEL_STMT_FIRST_IN_EH): New macros.
38193         (RETURN_STMT_EXPR): Likewise.
38194
38195         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
38196         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
38197
38198 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
38199
38200         * atree.ads: Correct documentation on extended nodes.
38201
38202         * link.c: Set run_path_option for FreeBSD.
38203
38204 2004-04-08  Vincent Celier  <celier@gnat.com>
38205
38206         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
38207         one of the ALI file, do not link with DEC lib.
38208
38209         * par.adb Remove the last two characters ("%s" or "%b") when checking
38210         if a language defined unit may be recompiled.
38211
38212 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
38213
38214         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
38215         removal of abstract operation leaves no possible interpretation for
38216         expression.
38217
38218         * sem_eval.adb (Eval_Qualified_Expression): Use
38219         Set_Raises_Constraint_Error on node when needed, so that it does not
38220         get optimized away by subsequent optimizations.
38221
38222         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
38223         operands even when they are not wrapped in a type conversion.
38224
38225 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
38226
38227         * sem_prag.adb (Set_Exported): Warn about making static as result of
38228         export only when the export is coming from source. This may be not
38229         be true e.g. on VMS where we expand export pragmas for exception codes
38230         together with imported or exported exceptions, and we don't want the
38231         user to be warned about something he didn't write.
38232
38233 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
38234
38235         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
38236         duplication between normal entities and those declared as renamings.
38237         No functional change.
38238
38239         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
38240         inline functions returning an unconstrained result.
38241
38242 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
38243
38244         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
38245         conform to what other front-ends do.
38246
38247 2004-04-08  Doug Rupp  <rupp@gnat.com>
38248
38249         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
38250         libraries.
38251
38252 2004-04-06  Pascal Obry  <obry@gnat.com>
38253
38254         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
38255
38256         * osint.adb (Program_Name): Do not look past a directory separator.
38257
38258 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
38259
38260         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
38261
38262         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
38263         requirement for preserving a copy of the original assignment node.
38264
38265         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
38266
38267 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
38268
38269         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
38270         when supported.
38271
38272 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
38273
38274         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
38275         operator calls in functional notation, and apply
38276         Universal_Interpretation to operands, not to their type.
38277
38278 2004-04-06  Robert Dewar  <dewar@gnat.com>
38279
38280         * 5wdirval.adb: Minor reformatting
38281
38282 2004-04-06  Ed Falis  <falis@gnat.com>
38283
38284         * gnat_rm.texi: Improve a reference to the GCC manual
38285
38286 2004-04-05  Vincent Celier  <celier@gnat.com>
38287
38288         * adaint.h, adaint.c: Add function __gnat_named_file_length
38289
38290         * impunit.adb: Add Ada.Directories to the list
38291
38292         * Makefile.in: Add VMS and Windows versions of
38293         Ada.Directories.Validity package body.
38294
38295         * Makefile.rtl: Add a-direct and a-dirval
38296
38297         * mlib-tgt.ads: Minor comment update.
38298
38299         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
38300         a-direct.ads, a-direct.adb: New files.
38301
38302 2004-04-05  Vincent Celier  <celier@gnat.com>
38303
38304         PR ada/13620
38305         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
38306         just to the compiler.
38307
38308 2004-04-05  Robert Dewar  <dewar@gnat.com>
38309
38310         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
38311         returned string is 1.
38312
38313         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
38314
38315         * eval_fat.ads: Minor reformatting
38316
38317         * g-curexc.ads: Document that lower bound of returned string values
38318         is always one.
38319
38320         * gnatlink.adb: Add ??? comment for previous change
38321         (need to document why this is VMS specific)
38322
38323         * s-stoele.ads: Minor reformatting
38324
38325         * tbuild.ads: Minor reformatting throughout (new function specs)
38326
38327         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
38328         after WITH.
38329
38330         * scng.adb: Minor reformatting
38331
38332 2004-04-05  Geert Bosch  <bosch@gnat.com>
38333
38334         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
38335         (Leading_Part): Still perform truncation to machine number if the
38336         specified radix_digits is greater or equal to machine_mantissa.
38337
38338 2004-04-05  Javier Miranda  <miranda@gnat.com>
38339
38340         * par-ch3.adb: Complete documentation of previous change
38341         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
38342         (aliased must appear before constant).
38343
38344         * par-ch4.adb: Complete documentation of previous change.
38345
38346         * par-ch6.adb: Complete documentation of previous change.
38347
38348         * sinfo.ads: Fix typo in commment.
38349
38350 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
38351
38352         * sem_ch3.adb (Inherit_Components): If derived type is private and has
38353         stored discriminants, use its discriminants to constrain parent type,
38354         as is done for non-private derived record types.
38355
38356         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
38357         Ada 2005 AI-310: an abstract non-dispatching operation is not a
38358         candidate interpretation in an overloaded call.
38359
38360         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
38361         expression is Null and target type is not an access type (e.g. a
38362         non-private address type).
38363
38364 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
38365
38366         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
38367         statement whose right-hand side is an inlined call, save a copy of the
38368         original assignment subtree to preserve enough consistency for
38369         Analyze_Assignment to proceed.
38370
38371         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
38372         complete assignment subtree which is now unnecessary, as the expansion
38373         of inlined call has been improved to preserve a consistent assignment
38374         tree.  Note_Possible_Modification must be called only
38375         after checks have been applied, or else unnecessary checks will
38376         be generated.
38377
38378         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
38379         of explicit dereferences that do not Come_From_Source:
38380          - be selective on cases where we must go back to the dereferenced
38381            pointer (an assignment to an implicit dereference must not be
38382            recorded as modifying the pointer);
38383          - do not rely on Original_Node being present (Analyze_Assignment
38384            calls Note_Possible_Modification on a copied tree).
38385
38386         * sem_warn.adb (Check_References): When an unset reference to a pointer
38387         that is never assigned is encountered, prefer '<pointer> may be null'
38388         warning over '<pointer> is never assigned a value'.
38389
38390 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
38391
38392         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
38393         the ABI.
38394
38395 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
38396
38397         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
38398         libexc. We currently don't reference anything in this library and
38399         linking it in triggers linker warnings we don't want to see.
38400
38401         * init.c: Update comments.
38402
38403 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38404
38405         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
38406         * utils.c (create_field_decl): Likewise.
38407         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
38408
38409 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
38410
38411         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
38412         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
38413         Add info directory entry and category.
38414
38415 2004-04-02  Jan Hubicka  <jh@suse.cz>
38416
38417         * utils.c: Include function.h
38418         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
38419
38420 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
38421
38422         PR ada/14150
38423         * Make-lang.in: Clean up generation of documentation
38424
38425         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
38426
38427         * xgnatug.adb: Removed, replaced by xgnatugn.adb
38428
38429         * xgnatugn.adb: Replaces xgnatug.adb
38430
38431         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
38432
38433         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
38434
38435         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38436         gnat_ug_wnt.texi: Removed.
38437
38438 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
38439
38440         * utils2.c: Update copyright notice.
38441
38442 2004-04-01  Robert Dewar  <dewar@gnat.com>
38443
38444         * checks.adb: Minor reformatting throughout
38445         Note that prev checkin added RM reference to alignment warning
38446
38447 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
38448
38449         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
38450         non-static when building aggregate for bit-packed array.
38451
38452         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
38453         function call that is itself the actual in a procedure call, build
38454         temporary for it.
38455
38456         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
38457         a string literal, create a temporary for it, constant folding only
38458         handles scalars here.
38459
38460 2004-04-01  Vincent Celier  <celier@gnat.com>
38461
38462         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
38463         Error_Msg_SP): New empty procedures to instantiate the Scanner.
38464         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
38465         tokens.
38466         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
38467         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
38468         and get the checksum.
38469
38470         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
38471         already in the Q.
38472         Increase the Marking_Label at the end of the Multiple_Main_Loop,
38473         instead of at the beginning.
38474
38475         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
38476         directly.
38477         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
38478         on VMS.
38479
38480         * osint.ads (Multi_Unit_Index_Character): New Character global variable
38481
38482         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
38483         not '~' directly.
38484
38485         * par.adb: Remove test on file name to detect language defined units.
38486         Add test on unit name, after parsing, to detect language defined units
38487         that are not compiled with -gnatg (except System.RPC and its children)
38488
38489         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
38490         following units without style checking.
38491
38492         * switch-c.adb: Change -gnatC to -gnateI
38493
38494         * usage.adb: Document new switch -gnateInnn
38495
38496         * scng.adb (Accumulate_Token_Checksum): New procedure
38497         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
38498         word or literal number.
38499         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
38500         numbers.
38501
38502 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
38503
38504         * a-tasatt.adb,
38505         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
38506         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
38507         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
38508         5vtpopde.adb: Add missing 'constant' keywords.
38509
38510 2004-04-01  Javier Miranda  <miranda@gnat.com>
38511
38512         * par-ch4.adb: (P_Allocator): Code cleanup
38513
38514         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
38515         attribute.
38516
38517         * sinfo.ads: Complete documentation of previous change
38518
38519 2004-04-01  Pascal Obry  <obry@gnat.com>
38520
38521         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
38522         only on VMS.  This special handling was done because an old GNU/ld bug
38523         on Windows which has been fixed.
38524
38525 2004-04-01  GNAT Script  <nobody@gnat.com>
38526
38527         * Make-lang.in: Makefile automatically updated
38528
38529 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38530
38531         * decl.c (gnat_to_gnu_entity, make_type_from_size):
38532         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
38533         * trans.c (tree_transform, convert_with_check): Likewise.
38534         * utils.c (gnat_signed_or_unsigned_type): Likewise.
38535         (build_vms_descriptor, unchecked_convert): Likewise.
38536         * utils2.c (nonbinary_modular_operation): Likewise.
38537
38538 2004-03-29  Javier Miranda  <miranda@gnat.com>
38539
38540         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
38541         (Install_Null_Excluding_Check): Local subprogram that determines whether
38542         an access node requires a runtime access check and if so inserts the
38543         appropriate run-time check.
38544         (Apply_Access_Check): Call Install_Null_Excluding check if required
38545         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
38546
38547         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
38548
38549         * einfo.ads: Fix typo in comment
38550
38551         * exp_ch3.adb (Build_Assignment): Generate conversion to the
38552         null-excluding type to force the corresponding run-time check.
38553         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
38554         type to force the corresponding run-time check.
38555
38556         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
38557         the null-excluding type to force the corresponding run-time check.
38558
38559         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
38560         case of access types unless they have the null-excluding attribute.
38561
38562         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
38563         part.
38564
38565         * exp_util.ads: Fix typo in comment
38566
38567         * par.adb (P_Null_Exclusion): New subprogram
38568         (P_Subtype_Indication): New formal that indicates if the null-excluding
38569         part has been scanned-out and it was present
38570
38571         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
38572
38573         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
38574         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
38575         type to force the corresponding run-time check
38576         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
38577         components
38578         (Resolve_Array_Aggregate): Carry out some static checks
38579         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
38580
38581         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
38582         attribute must be set only if specified by means of the null-excluding
38583         part. In addition, we must also propagate the access-constant attribute
38584         if present.
38585         (Access_Subprogram_Declaration, Access_Type_Declaration,
38586         Analyze_Component_Declaration, Analyze_Object_Declaration,
38587         Array_Type_Declaration, Process_Discriminants,
38588         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
38589         and carry out some static checks.
38590         (Build_Derived_Access_Type): Set the null-excluding attribute
38591         (Derived_Type_Declaration, Process_Subtype): Carry out some static
38592         checks.
38593
38594         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
38595
38596         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
38597
38598         * sem_ch6.adb (Process_Formals): Carry out some static checks.
38599         (Set_Actual_Subtypes): Generate null-excluding subtype if the
38600         null-excluding part was present; it is not required to be done here in
38601         case of anonymous access types.
38602         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
38603         value.
38604
38605         * sem_res.adb (Resolve_Actuals): Carry out some static check
38606         (Resolve_Null): Allow null in anonymous access
38607
38608         * sinfo.adb: New subprogram Null_Exclusion_Present
38609         All_Present and Constant_Present available on access_definition nodes
38610
38611         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
38612         object_declaration, derived_type_definition, component_definition,
38613         discriminant_specification, access_to_object_definition,
38614         access_function_definition, allocator, access_procedure_definition,
38615         access_definition, parameter_specification, All_Present and
38616         Constant_Present flags available on access_definition nodes.
38617
38618 2004-03-29  Robert Dewar  <dewar@gnat.com>
38619
38620         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
38621         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
38622         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
38623         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
38624         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
38625         sem_prag.adb: Updates to handle multiple units/file
38626
38627         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
38628
38629         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
38630         sem_util.adb: Minor reformatting
38631
38632         * sem_ch12.adb: Add comment for previous change
38633
38634 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
38635
38636         * osint.adb (Executable_Prefix): Set Exec_Name to the current
38637         executable name when not initialized. Otherwise, use its current value.
38638
38639         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
38640         initialize it to another executable name than the current one. This
38641         allows to configure paths for an executable name (gnatmake) different
38642         from the current one (gnatdist).
38643
38644 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
38645
38646         * exp_ch6.adb (Expand_Call): A call to a function declared in the
38647         current unit cannot be inlined if it appears in the body of a withed
38648         unit, to avoid order of elaboration problems in gigi.
38649
38650         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
38651         information for protected (wrapper) operation as well, to simplify gdb
38652         use.
38653
38654         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
38655         protected body, indicate that the entity for the generated spec comes
38656         from source, to ensure that references are properly generated for it.
38657         (Build_Body_To_Inline): Do not inline a function that returns a
38658         controlled type.
38659
38660         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
38661         apply convention to homonyms that are declared explicitly.
38662
38663         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
38664         that renames an equality operator and the operands are overloaded,
38665         resolve them with the declared formal types, before rewriting as an
38666         operator.
38667
38668 2004-03-29  GNAT Script  <nobody@gnat.com>
38669
38670         * Make-lang.in: Makefile automatically updated
38671
38672 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
38673
38674         * memtrack.adb: Log realloc calls, which are treated as free followed
38675         by alloc.
38676
38677 2004-03-25  Vincent Celier  <celier@gnat.com>
38678
38679         * prj-makr.adb (Process_Directories): Detect when a file contains
38680         several units. Do not include such files in the config pragmas or
38681         in the naming scheme.
38682
38683         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
38684         Resolve links only when not in Trusted_Mode.
38685         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
38686         Do not resolve links for the display names.
38687
38688         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
38689         resolve links when computing the display names.
38690
38691 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
38692
38693         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
38694         attribute reference does not denote a subtype, it can be any
38695         expression that has a classwide type, potentially after an implicit
38696         dereference.  In particular, the prefix can be a view conversion for
38697         a classwide type (for which Is_Object_Reference holds), but it can
38698         also be a value conversion for an access-to-classwide type. In the
38699         latter case, there is an implicit dereference, and the original node
38700         for the prefix does not verify Is_Object_Reference.
38701
38702         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
38703         conversion of a discriminant-dependent component of a mutable object
38704         is one itself.
38705
38706 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
38707
38708         * freeze.adb (Freeze_Entity): When an inherited subprogram is
38709         inherited, has convention C, and has unconstrained array parameters,
38710         place the corresponding warning on the derived type declaration rather
38711         than the original subprogram.
38712
38713         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
38714         indication on renaming declaration, if formal has a box and actual
38715         is absent.
38716
38717         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
38718         determine whether to generate an implicit or explicit reference to
38719         the renamed entity.
38720
38721         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
38722         subprogram renaming comes from a defaulted formal subprogram in an
38723         instance.
38724
38725 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
38726
38727         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
38728         value expressions to ensure that calls within a component definition
38729         will be checked (since those are evaluated during the record type's
38730         elaboration).
38731
38732 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
38733
38734         * s-tpobop.adb: Code clean up:
38735         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
38736         code.
38737         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
38738
38739 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
38740
38741         * Makefile.in: Clean up in the ravenscar run time.
38742
38743 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38744
38745         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
38746         of No_Strict_Aliasing to build_pointer_type_for_mode.
38747         * utils.c (update_pointer_to): Walk pointer and ref chains.
38748
38749 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
38750
38751         * ali.ads: Fix Comment about Dynamic_Elab.
38752
38753         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
38754         Has_RACW, Is_Generic, etc.)
38755         (Output_Object, Gnatls): Take into account ALI files not attached to
38756         an object.
38757
38758 2004-03-22  Vincent Celier  <celier@gnat.com>
38759
38760         * gprep.adb: Change all String_Access to Name_Id
38761         (Is_ASCII_Letter): new function
38762         (Double_File_Name_Buffer): New procedure
38763         (Preprocess_Infile_Name): New procedure
38764         (Process_Files): New procedure
38765         (Gnatprep): Check if output and input are existing directories.
38766         Call Process_Files to do the real job.
38767
38768 2004-03-22  Robert Dewar  <dewar@gnat.com>
38769
38770         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
38771         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
38772
38773 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
38774
38775         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
38776         case when the source contains only comments.
38777
38778 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
38779
38780         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
38781         declaration for a child subprogram body that acts as a spec, indicate
38782         that the entity in the declaration needs debugging information.
38783
38784         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
38785         full view if the subtype is created for a constrained record component;
38786         gigi has enough information to construct the record, and there is no
38787         place in the tree for the declaration.
38788
38789         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
38790         serial number for the dummy body that is built for analysis, to avoid
38791         inconsistencies in the generation of internal names when compiling
38792         with -gnatN.
38793
38794 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
38795
38796         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
38797         object.
38798
38799 2004-03-22  GNAT Script  <nobody@gnat.com>
38800
38801         * Make-lang.in: Makefile automatically updated
38802
38803 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38804
38805         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38806         * trans.c (tree_transform, emit_index_check): Likewise.
38807         * utils.c (build_template): Likewise.
38808         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
38809         (maybe_unconstrained_array, unchecked_convert): Likewise.
38810         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
38811         (build_unary_op): Likewise.
38812         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38813         (fill_vms_descriptor): Likewise.
38814         (build_call_alloc_dealloc): Likewise.
38815         ALIGN is unsigned.
38816         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
38817
38818 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38819
38820         PR other/14630
38821         * gnat_ug.texi: Add info directory category and entry.
38822         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38823         gnat_ug_wnt.texi: Regenerate.
38824
38825 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
38826
38827         * ada-tree.h: Update copyright notice.
38828         Minor reformatting.
38829
38830 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
38831
38832         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
38833         as regular exception objects and not as mere integers representing the
38834         condition code.  The latter approach required some dynamics to mask off
38835         severity bits, which did not fit well into the GCC table based model.
38836         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
38837         exception data objects. We don't it and it would conflict with the other
38838         external symbol we have to generate for such exceptions.
38839
38840         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
38841         the special code for VMS exceptions, since these are now represented
38842         as regular exceptions objects.
38843
38844 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38845
38846         * decl.c (debug_no_type_hash): Remove.
38847         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
38848         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
38849
38850 2004-03-19  Laurent Guerby  <laurent@guerby.net>
38851
38852         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
38853         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
38854
38855 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38856
38857         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
38858         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
38859         (TYPE_RM_SIZE_INT): Directly use type.values.
38860         (TREE_LOOP_ID): Clean up check.
38861         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
38862         TYPE_VALUES, not TYPE_FIELDS.
38863         * trans.c (convert_with_check): Delay access of bounds of basetype
38864         until sure is numeric.
38865
38866 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
38867
38868         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
38869
38870         Code clean up:
38871         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
38872         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
38873         Specific.Set instead of direct call to e.g pthread_setspecific.
38874
38875 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
38876
38877         * adaint.c: Update comments.
38878
38879         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
38880         GNATLIB_SHARED for FreeBSD.
38881
38882 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
38883
38884         * init.c [VxWorks]: Do not fix the stack size for the environment task.
38885         When needed (stack checking) the stack size is retrieved
38886         from the VxWorks kernel.
38887
38888         * Makefile.in: Flag -nostdinc is required when building the run time
38889         for avoiding looking for files in the base compiler.
38890         Add the VxWorks specific version of the package body for
38891         System.Stack_checking.Operations (5zstchop.adb).
38892
38893         * Make-lang.in: Add the object file for
38894         System.Stack_Checking.Operations.
38895
38896         * Makefile.rtl: Add object file for the package
38897         System.Stack_Checking.Operations.
38898
38899         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
38900
38901         * s-stache.ads, s-stache.adb: Move the operations related to stack
38902         checking from this package to package System.Stack_Checking.Operations.
38903         This way, stack checking operations are only linked in the final
38904         executable when using the -fstack-check flag.
38905
38906 2004-03-18  Doug Rupp  <rupp@gnat.com>
38907
38908         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
38909         Reorganize ifeq's.
38910
38911         * 5qsystem.ads, 5xcrtl.ads: New files.
38912
38913 2004-03-18  Vincent Celier  <celier@gnat.com>
38914
38915         * prj.adb (Reset): Reset hash table Files_Htable
38916
38917         * prj-env.adb (Source_Paths, Object_Paths): New tables.
38918         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
38919         the procedures Add_To_Path_File.
38920         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
38921         making sure that each directory is present only once and, for object
38922         dirs, when a directory already present is added, the duplicate is
38923         removed and the directory is always put as the last in the table.
38924         Write the path files at the end of these accumulations.
38925
38926         * prj-nmsc.adb (Record_Source): Add source file name in hash table
38927         Files_Htable for all sources.
38928
38929         * prj-proc.adb (Process): Remove restrictions between not directly
38930         related extending projects.
38931
38932 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
38933
38934         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
38935         (Find_Sources): Minor speed optimization.
38936
38937         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
38938         parameter Trusted_Mode.
38939
38940 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
38941
38942         * scn.adb (Determine_License): Take into account a degenerated case
38943         when the source contains only comments.
38944
38945 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
38946
38947         * sem_warn.adb (Check_References): For a warning on a selected
38948         component that does not come from source, locate an uninitialized
38949         component of the record type to produce a more precise error message.
38950
38951 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
38952
38953         * 3zsoccon.ads: Fix multicast options.
38954
38955         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
38956         in the spec.
38957
38958 2004-03-15  Robert Dewar  <dewar@gnat.com>
38959
38960         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
38961         pragma used for a private type.
38962
38963         * lib-xref.adb (Generate_Reference): Do not generate warning if
38964         reference is in a different unit from the pragma Unreferenced.
38965
38966         * 5vtpopde.adb: Minor reformatting
38967         Fix casing of To_Task_ID
38968
38969         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
38970         flag if we have an unchecked conversion to an access type in the same
38971         unit.
38972
38973 2004-03-15  Geert Bosch  <bosch@gnat.com>
38974
38975         * a-ngcoty.adb (Modulus): In alternate formula for large real or
38976         imaginary parts, use Double precision throughout.
38977
38978         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
38979         we want to be able to compile run-time with -gnata for testing, but
38980         this may also be instantiated in user code that is compiled with -gnata.
38981
38982 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
38983
38984         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
38985         codes. Having a separate type for this is useful to enforce consistency
38986         throughout the various run-time units.
38987         (Exception_Data): Use Exception_Code for Import_Code.
38988
38989         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
38990         Natural and Integer in various places.
38991         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
38992         with the severity bits masked off.
38993         (Register_VMS_Exception): Handle the additional exception data pointer
38994         argument.
38995
38996         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
38997         component, now reflected by an exported accessor.
38998         (is_handled_by): New routine to compute whether the propagated
38999         occurrence matches some handler choice specification. Extracted out of
39000         get_action_description_for, and expanded to take care of the VMS
39001         specifities.
39002         (get_action_description_for): Use is_handled_by instead of an explicit
39003         complex condition to decide if the current choice at hand catches the
39004         propagated occurrence.
39005
39006         * raise.h (Exception_Code): New type for C.
39007
39008         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
39009         System.Standard_Library.Exception_Code, to allow references from the
39010         pragma import/export expander.
39011
39012         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
39013         New accessors to allow easy access to GNAT exception data
39014         characteristics.
39015         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
39016         redundant Handled_By_Others component, helper for the personality
39017         routine which will now be able to call the appropriate exception data
39018         accessor instead.
39019
39020         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
39021         component of Standard_Exception_Type to be the closest possible to
39022         Exception_Code in System.Standard_Library, that we cannot get at this
39023         point. Expand a ??? comment to notify that this type node should
39024         probably be rewritten later on.
39025
39026         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
39027         registration call to include a pointer to the exception object in the
39028         arguments.
39029
39030         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
39031         instead of int and explicit bitmasks.
39032
39033 2004-03-15  Vincent Celier  <celier@gnat.com>
39034
39035         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
39036         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
39037
39038         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
39039         longer needed now that it is in the spec of
39040         System.Tasking.Task_Attributes.
39041
39042         * adaint.h, adaint.c: (__gnat_create_output_file): New function
39043
39044         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
39045
39046         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
39047
39048         * make.adb (Gnatmake): Do not check the executable suffix; it is being
39049         taken care of in Scan_Make_Arg.
39050         (Scan_Make_Arg): Add the executable suffix only if the argument
39051         following -o, in canonical case, does not end with the executable
39052         suffix.  When in verbose mode and executable file name does not end
39053         with executable suffix, output the executable name, in canonical case.
39054
39055         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
39056         to avoid warnings when instantiating Ada.Task_Attributes.
39057         Minor reformating.
39058
39059         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
39060         in the correct order.
39061
39062         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
39063         redirect standard output and error to a file for the invocation of the
39064         compiler, then read the file.
39065
39066         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
39067         directory, instead of the Value.
39068         (Find_Source_Dirs): Remove useless code & comments.
39069
39070 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
39071
39072         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
39073         tagged type is inherited, and the parent operation is not frozen yet,
39074         force generation of a freeze node for the inherited operation, so the
39075         corresponding dispatch entry is properly initialized.
39076         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
39077         when looking for user-defined equality operation.
39078
39079         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
39080         boolean when locating primitive equality of tagged component.
39081
39082         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
39083         bit-aligned field and the right-hand side a string literal, introduce
39084         a temporary before expanding assignment into a loop.
39085
39086         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
39087         priority in full, to ensure that any expanded subepxressions of it are
39088         elaborated in the scope of the init_proc.
39089
39090         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
39091         after object declaration, skipping over code that may have been
39092         generated for validity checks.
39093
39094         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
39095         discriminants, ignore the known discriminants of its full view, if
39096         any, to check legality.
39097
39098         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
39099         component if type has unknown discriminants.
39100         (Analyze_Private_Extension_Declaration): Discriminant constraint is
39101         null if type has unknown discriminants.
39102
39103         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
39104         for end label when present.
39105
39106         * s-fileio.adb (Open): When called with a C_Stream, use given name for
39107         temporary file, rather than an empty string.
39108
39109 2004-03-15  Ed Falis  <falis@gnat.com>
39110
39111         * s-thread.adb: Removed, no longer used.
39112
39113 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39114
39115         * decl.c (target.h): Now include.
39116         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
39117         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
39118         (validate_size): For POINTER_TYPE, get smallest size permitted on
39119         machine.
39120
39121         * fe.h: Sort Einfo decls and add Set_Mechanism.
39122
39123         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
39124         (ada/decl.o): Depends on target.h.
39125
39126         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
39127         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
39128
39129 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
39130
39131         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
39132
39133         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
39134         Insert_Dereference_Action when rewriting an implicit dereference into
39135         an explicit one, this will be taken care of during expansion of the
39136         explicit dereference.
39137         (Expand_N_Slice): Same. Always do the rewriting, even for the case
39138         of non-packed slices, since the dereference action generated by
39139         expansion of the explicit dereference is needed in any case.
39140         (Expand_N_Selected_Component): When rewriting an implicit dereference,
39141         analyze and resolve the rewritten explicit dereference so it is seen
39142         by the expander.
39143         (Insert_Dereference_Action): This procedure is now called only for the
39144         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
39145         dereferences that do not come from source (including explicit
39146         dereferences resulting from rewriting implicit ones), but do not
39147         recursively insert a check for the dereference nodes contained within
39148         the check.
39149         (Insert_Dereference_Action): Clarify and correct comment.
39150
39151 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
39152
39153         PR ada/14131
39154         Move language detection to the top level.
39155         * config-lang.in: Build by default.
39156
39157 2004-03-05  Robert Dewar  <dewar@gnat.com>
39158
39159         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
39160
39161         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
39162         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
39163         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
39164         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
39165         unchecked conversion to spec to avoid warnings.
39166
39167         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
39168         to Task_ID
39169
39170         * 7stpopsp.adb: Correct casing in To_Task_ID call
39171
39172         * a-strsea.ads, a-strsea.adb: Minor reformatting
39173
39174         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
39175
39176         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
39177         Adjust Max_Msg_Length to be clearly large enough.
39178
39179         * fe.h: Define In_Same_Source_Unit
39180
39181         * osint.adb: Add pragma Warnings Off to suppress warnings
39182         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
39183         aliasing warnings.
39184
39185         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
39186
39187         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
39188
39189         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
39190
39191         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
39192
39193         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
39194
39195         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
39196         node. We now do generate them for gcc back end.
39197
39198         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
39199         warning.
39200
39201         * sinput-c.adb: Fix bad name in header.
39202         Add pragma Warnings Off to suppress aliasing warning.
39203
39204         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
39205
39206         * snames.h, snames.ads, snames.adb: Add entry for pragma
39207         No_Strict_Aliasing.
39208
39209 2004-03-05  Vincent Celier  <celier@gnat.com>
39210
39211         * prj-com.ads: Add hash table Files_Htable to check when a file name
39212         is already a source of another project.
39213
39214         * prj-nmsc.adb (Record_Source): Before recording a new source, check
39215         if its file name is not already a source of another project. Report an
39216         error if it is.
39217
39218         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
39219         source file name, call gnatpp with all the sources of the main project.
39220
39221         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
39222         of file names.
39223
39224         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
39225         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
39226         /RUNTIME_SYSTEM=, converted to --RTS=
39227         /NOTABS, converted to -notabs
39228
39229 2004-03-05  Pascal Obry  <obry@gnat.com>
39230
39231         * make.adb: Minor reformatting.
39232
39233 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
39234
39235         Part of implemention of AI-262.
39236         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
39237
39238         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
39239         procedure.
39240
39241         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
39242         when component type is a partially constrained class-wide subtype.
39243         (Constrain_Discriminated_Type): If parent type has unknown
39244         discriminants, a constraint is illegal, even if full view has
39245         discriminants.
39246         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
39247         with unknown discriminants whose full view is a discriminated record.
39248
39249         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
39250         flag, to handle properly derivations of tagged types with unknown
39251         discriminants.
39252         (Analyze_Package_Spec, Analyze_Package_Body): Install
39253         Private_With_Clauses before analyzing private part or body.
39254
39255         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
39256         Has_Discriminants can be true for a given type (documentation).
39257
39258 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
39259
39260         * s-restri.ads: Fix license (GPL->GMGPL).
39261
39262         * s-tassta.adb: Minor reformatting.
39263
39264         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39265         by calls to Exit_One_ATC_Level, since additional clean up is performed
39266         by this function.
39267
39268         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39269         by calls to Exit_One_ATC_Level, since additional clean up is performed
39270         by this function.
39271
39272 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39273
39274         * trans.c: Reflect GCC changes to fix bootstrap problem.
39275         Add warning for suspicious aliasing unchecked conversion.
39276
39277 2004-03-05  GNAT Script  <nobody@gnat.com>
39278
39279         * Make-lang.in: Makefile automatically updated
39280
39281 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
39282
39283         * ali.adb (Read_Instantiation_Instance): Do not modify the
39284         current_file_num when reading information about instantiations, since
39285         this corrupts files in later references.
39286
39287 2004-03-02  Vincent Celier  <celier@gnat.com>
39288
39289         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
39290         before checking if it is read-only.
39291
39292         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
39293         of SRC_DIRS and eliminate duplicates.
39294
39295         * gprcmd.adb: Replace command "path" with command "path_sep" to return
39296         the path separator.
39297         (Usage): Document path_sep
39298
39299         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
39300         C++ compiler. No need for a script.
39301         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
39302         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
39303         subst.
39304
39305         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
39306         where there are Ada sources.
39307         (Set_Ada_Paths): Only add to the include path the source dirs of project
39308         with Ada sources.
39309         (Add_To_Path): Add the Display_Values of the directories, not their
39310         Values.
39311
39312         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
39313         data.
39314
39315         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
39316         is not No_Name.
39317         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
39318         Value is canonicalized.
39319         (Language_Independent_Check): Do not copy Value to Display_Value when
39320         canonicalizing Value.
39321
39322         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
39323         path to find limited with cycles.
39324         (Parse_Single_Project): Use canonical cased path to find the end of a
39325         with cycle.
39326
39327 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
39328
39329         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
39330         and not a child unit.
39331
39332         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
39333         appear in a with_clause.
39334
39335         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
39336         only happen in type_annotate mode, do not try to elaborate it.
39337
39338         * exp_util.adb (Force_Evaluation): If expression is a selected
39339         component on the left of an assignment, use a renaming rather than a
39340         temporary to remove side effects.
39341
39342         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
39343         inlined instance body, which is analyzed before the end of the
39344         enclosing scope.
39345
39346 2004-03-02  Robert Dewar  <dewar@gnat.com>
39347
39348         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
39349         sem_ch4.adb: Use new feature for substitution of keywords in VMS
39350
39351         * errout.ads, errout.adb: Implement new circuit for substitution of
39352         keywords in VMS.
39353
39354         * sem_case.adb (Analyze_Choices): Place message properly when case is
39355         a subtype reference rather than an explicit range.
39356
39357         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
39358
39359 2004-03-02  Doug Rupp  <rupp@gnat.com>
39360
39361         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
39362
39363 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
39364
39365         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
39366
39367 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39368
39369         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
39370         BLKmode bitfield.
39371
39372 2004-02-25  Robert Dewar  <dewar@gnat.com>
39373
39374         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
39375         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
39376         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
39377         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
39378         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
39379         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
39380         the defining instance of the type to avoid aliasing problems.
39381         Fix copyright header.  Fix bad comments in package header.
39382
39383         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
39384
39385 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
39386
39387         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
39388         rewritten as references when aliased through an address clause.
39389
39390         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
39391         whether call can be interpreted as an indirect call to the result of a
39392         parameterless function call returning an access subprogram.
39393
39394 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
39395
39396         Code clean up:
39397         * exp_ch7.adb (Make_Clean): Remove generation of calls to
39398         Unlock[_Entries], since this is now done by Service_Entries directly.
39399
39400         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
39401
39402         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
39403         Requeue_Call for better code readability. Change spec and update calls:
39404         PO_Service_Entries now unlock the PO on exit.
39405         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
39406         PO_Service_Entries.
39407
39408         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
39409
39410         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
39411
39412 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
39413
39414         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
39415         protected subprogram call and analyzing the result of such expanding
39416         in case when the called protected subprogram is eliminated.
39417
39418         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
39419         names.
39420
39421 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
39422
39423         * Makefile.in: Clean ups.
39424
39425 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
39426
39427         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
39428         protected operations if original subprogram is flagged as eliminated.
39429         (Expand_N_Subprogram_Body): For a protected operation, create
39430         discriminals for next operation before checking whether the operation
39431         is eliminated.
39432
39433         * exp_ch9.adb (Expand_N_Protected_Body,
39434         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
39435         for internal protected operations if the original subprogram is
39436         eliminated.
39437
39438         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
39439         declared in a single protected object.
39440
39441 2004-02-23  Vincent Celier  <celier@gnat.com>
39442
39443         * prj-attr.adb: Make attribute Builder'Executable an associative array,
39444         case insensitive if file names are case insensitive, instead of a
39445         standard associative array.
39446
39447         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
39448         them as case insensitive on platforms where the file names are case
39449         sensitive.
39450
39451         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
39452         project file has already been parsed that canonical path are compared.
39453
39454 2004-02-23  Robert Dewar  <dewar@gnat.com>
39455
39456         * sinput-c.ads: Correct bad unit title in header
39457
39458         * freeze.adb: Minor reformatting
39459
39460 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39461
39462         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
39463         nonaddressable COMPONENT_REF that is removing padding that we are
39464         taking the address of, take the address of the padded record instead
39465         if item is variable size.
39466
39467 2004-02-20  Robert Dewar  <dewar@gnat.com>
39468
39469         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
39470
39471 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
39472
39473         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
39474         itype references for the constrained designated type of a component
39475         whose base type is already frozen.
39476
39477 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
39478
39479         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
39480         avoid GCC warnings.
39481
39482 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
39483
39484         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
39485         identifier for a phantom package that rewrites the formal package
39486         declaration with a box. The Add semantic decorations for the defining
39487         identifier from the original node (that represents the formal package).
39488
39489 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
39490
39491         * Make-lang.in (ada/stamp-sdefault): Use the top level
39492         move-if-change.
39493
39494 2004-02-19  Richard Henderson  <rth@redhat.com>
39495
39496         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
39497
39498 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
39499
39500         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
39501         Scan_ALI can be used for multiple ALI files without reinitializing
39502         between calls.
39503
39504 2004-02-18  Robert Dewar  <dewar@gnat.com>
39505
39506         * debug.adb: Minor reformatting.
39507
39508 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39509
39510         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
39511         to zero if there is an address clause.
39512
39513 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
39514
39515         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
39516
39517 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
39518
39519         * layout.adb (Layout_Component_List): Revise generation of call to
39520         discriminant-checking function to pass selections of all of the type's
39521         discriminants rather than just the variant-controlling discriminant.
39522
39523 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
39524
39525         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
39526         fail in the current setup and triggers spurious system error messages.
39527         Pretend it occurred and failed instead.
39528
39529 2004-02-18  Vincent Celier  <celier@gnat.com>
39530
39531         * bld.adb: Mark FLDFLAGS as saved
39532         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
39533         it is not the root project.  Put each directory to be
39534         extended between double quotes to prevent it to be expanded on Windows.
39535         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
39536         the project file. Set them back to their initial values if they have not
39537         been set in the project file.
39538
39539         * gprcmd.adb: (Gprdebug, Debug): New global variables
39540         (Display_Command): New procedure
39541         (Usage): Document new command "linkopts"
39542         Call Display_Command when env var GPRDEBUG has the value "TRUE"
39543         Implement new command "linkopts"
39544         Remove quotes that may be around arguments for "extend"
39545         Always call Normalize_Pathname with arguments formatted for the platform
39546
39547         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
39548         Change @echo to @$(display) in target clean to be able to clean silently
39549
39550         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
39551
39552         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
39553         canonical case.
39554
39555         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
39556         = Extending_All when current project is an extending all project.
39557
39558         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
39559         set to True only for LINK command, after Unix switch -o.
39560         (Process_Arguments): Set Output_File_Expected to True for LINK command
39561         after Unix switch -o. When Output_File_Expected is True, never add an
39562         extension to a file name.
39563
39564         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
39565         option file name, only to the --for-linker= switch.
39566         (Option_File_Name): If option file name do not end with ".opt", append
39567         "/OPTIONS".
39568
39569 2004-02-18  GNAT Script  <nobody@gnat.com>
39570
39571         * Make-lang.in: Makefile automatically updated
39572
39573 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
39574
39575         * Make-lang.in (stamp-sdefault): Do not depend on
39576         move-if-change.
39577
39578 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
39579
39580         * config-lang.in: Disable Ada by default until probe logic for
39581         a bootstrap Ada compiler can be moved to the top level configure
39582         script.
39583
39584 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
39585
39586         * decl.c (components_to_record): Don't claim that the internal fields
39587         we make to hold the variant parts are semantically addressable, because
39588         they are not.
39589
39590         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
39591         adjust the comment describing the modular type form when we can use it.
39592         (Install_PAT): Account for the Esiz renaming.
39593
39594         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
39595         sc_onstack context indication before raising the exception to which
39596         the signal is mapped. Allows better handling of later signals possibly
39597         triggered by the resumed user code if the exception is handled.
39598
39599 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
39600
39601         * 5zinit.adb: Removed, no longer used.
39602
39603 2004-02-12  Robert Dewar  <dewar@gnat.com>
39604
39605         * ali.adb: Remove separating space between parameters on R line. Makes
39606         format consistent with format used by the binder for Set_Globals call.
39607
39608         * atree.ads, atree.adb: Minor reformatting (new function header format)
39609
39610         * bindgen.adb: Add Run-Time Globals documentation section containing
39611         detailed documentation of the globals passed from the binder file to
39612         the run time.
39613
39614         * gnatls.adb: Minor reformatting
39615
39616         * init.c (__gnat_set_globals): Add note pointing to documentation in
39617         bindgen.
39618
39619         * lib-writ.ads, lib-writ.adb: Remove separating space between
39620         parameters on R line.
39621         Makes format consistent with format used by the binder for Set_Globals
39622         call.
39623
39624         * osint.ads: Add 2004 to copyright notice
39625         Minor reformatting
39626
39627         * snames.ads: Correct capitalization of FIFO_Within_Priorities
39628         Noticed during code reading, documentation issue only
39629
39630         * usage.adb: Remove junk line for obsolete C switch
39631         Noticed during code reading
39632
39633 2004-02-12  Vincent Celier  <celier@gnat.com>
39634
39635         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
39636         extend for each directory, so that multiple /** directories are
39637         extended individually.
39638         (Recursive_Process): Set the default for LANGUAGES to ada
39639
39640         * gprcmd.adb: Define new command "ignore", to do nothing.
39641         Implement new comment "path".
39642
39643         * Makefile.generic: Suppress output when SILENT is set
39644         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
39645         used, so that the correct compiler is invoked.
39646         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
39647         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
39648
39649 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
39650
39651         * Makefile.in: Clean ups and remove obsolete targets.
39652
39653 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
39654
39655         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
39656         predicate declared in exp_util.
39657
39658         * exp_util.adb: Add comments.
39659
39660         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
39661         visibility before compiling context of the subunit.
39662
39663         * sem_res.adb (Check_Parameterless_Call): If the context expects a
39664         value but the name is a procedure, do not attempt to analyze as a call,
39665         in order to obtain more telling diagnostics.
39666
39667         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
39668         'Access on parameterless function calls.
39669         (Normalize_Actuals): For a parameterless function call with missing
39670         actuals, defer diagnostic until resolution of enclosing call.
39671
39672         * sem_util.adb (Wrong_Type): If the context type is an access to
39673         subprogram and the expression is a procedure name, suggest a missing
39674         'attribute.
39675
39676 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
39677             Nathanael Nerode  <neroden@gcc.gnu.org>
39678
39679         PR ada/6637
39680         PR ada/5911
39681         Merge with libada-branch:
39682         * config-lang.in: Build libada only when ada is built.
39683
39684 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
39685
39686         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
39687         for a tagged type, verify that both formals have the same type.
39688
39689         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
39690         temporary when the formal is an in-parameter and the actual a possibly
39691         unaligned slice.
39692
39693         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
39694         when expansion is disabled, to ensure proper name capture with
39695         overloaded literals.  Condition can be of any boolean type, resolve
39696         accordingly.
39697
39698         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
39699         renaming is for a formal subprogram with a default operator name, and
39700         there is a usable operator that is visible at the point of
39701         instantiation.
39702
39703 2004-02-09  Robert Dewar  <dewar@gnat.com>
39704
39705         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
39706         rewrite to ignore errors in ali files, intended to allow tools downward
39707         compatibility with new versions of ali files.
39708
39709         * ali.ads: Add new parameter Ignore_Errors
39710
39711         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
39712         duplicating the error message giving the file with restrictions.
39713
39714         * debug.adb: Add debug flag I for gnatbind
39715
39716         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
39717         operators for the case where the operator is a defining operator.
39718
39719         * exp_ch3.adb: Minor reformatting (new function spec format).
39720
39721         * exp_ch4.adb: Add comment for previous change, and make minor
39722         adjustment to loop to always check for improper loop termination.
39723         Minor reformatting throughout (new function spec format).
39724
39725         * gnatbind.adb: Implement -di debug flag for gnatbind
39726
39727         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
39728
39729         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
39730
39731         * lib-load.adb: Fix bad assertion.
39732         Found by testing and code reading.
39733         Minor reformatting.
39734
39735         * lib-load.ads: Minor reformatting.
39736
39737         * lib-writ.adb: There is only one R line now.
39738
39739         * lib-writ.ads: Add documentation on making downward compatible changes
39740         to ali files so old tools work with new ali files.
39741         There is only one R line now.
39742         Add documentation on format incompatibilities (with special GPS note)
39743
39744         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
39745
39746         * par-load.adb: Minor reformatting
39747
39748         * sem_ch8.adb: Fix to error message from last update
39749         Minor reformatting and restructuring of code from last update
39750
39751         * par-prag.adb, snames.adb, snames.ads, snames.h,
39752         sem_prag.adb: Implement pragma Profile.
39753
39754         * stylesw.adb: Implement -gnatyN switch to turn off all style check
39755         options.
39756
39757         * usage.adb: Add line for -gnatyN switch
39758
39759         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
39760
39761 2004-02-09  Albert Lee  <lee@gnat.com>
39762
39763         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
39764
39765 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
39766
39767         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
39768         slices.
39769
39770         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
39771         is nested in an instance that is not frozen yet, to avoid
39772         order-of-elaboration problems in gigi.
39773
39774         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
39775         body the attribute is legal.
39776
39777 2004-02-09  Robert Dewar  <dewar@gnat.com>
39778
39779         * s-rident.ads: Minor comment correction
39780
39781         * targparm.adb: Remove dependence on uintp completely. There was
39782         always a bug in Make in that it called Targparm before initializing
39783         the Uint package. The old code appeared to get away with this, but
39784         the new code did not! This caused an assertion error in gnatmake.
39785
39786         * targparm.ads: Fix bad comment, restriction pragmas with parameters
39787         are indeed fully supported.
39788
39789 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
39790
39791         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
39792
39793 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
39794
39795         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
39796         with targetm.calls.promote_prototypes.
39797
39798 2004-02-04  Robert Dewar  <dewar@gnat.com>
39799
39800         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
39801         ali.ads, gprcmd.adb: Minor reformatting
39802
39803         * bindgen.adb: Output restrictions string for new style restrictions
39804         handling
39805
39806         * impunit.adb: Add s-rident.ads (System.Rident) and
39807         s-restri (System.Restrictions)
39808
39809         * lib-writ.adb: Fix bug in writing restrictions string (last few
39810         entries wrong)
39811
39812         * s-restri.ads, s-restri.adb: Change name Restrictions to
39813         Run_Time_Restrictions to avoid conflict with package name.
39814         Add circuit to read and acquire run time restrictions.
39815
39816 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
39817
39818         * restrict.ads, restrict.adb: Use the new restriction
39819         No_Task_Attributes_Package instead of the old No_Task_Attributes.
39820
39821         * sem_prag.adb: No_Task_Attributes is a synonym of
39822         No_Task_Attributes_Package.
39823
39824         * snames.ads, snames.adb: New entry for proper handling of
39825         No_Task_Attributes.
39826
39827         * s-rident.ads: Adding restriction No_Task_Attributes_Package
39828         (AI-00249) that supersedes the GNAT specific restriction
39829         No_Task_Attributes.
39830
39831 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
39832
39833         * sem_prag.adb:
39834         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
39835          body, an identifier may be wrapped in an unchecked conversion.
39836
39837 2004-02-04  Vincent Celier  <celier@gnat.com>
39838
39839         * lib-writ.ads: Comment update for the W lines
39840
39841         * bld.adb: (Expression): An empty string list is static
39842
39843         * fname-uf.adb: Minor comment update
39844
39845         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
39846
39847         * gnatbind.adb: Initialize Cumulative_Restrictions with the
39848         restrictions on the target.
39849
39850 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
39851
39852         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
39853         gen_rtx.
39854
39855 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
39856
39857         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
39858
39859 2004-02-02  Vincent Celier  <celier@gnat.com>
39860
39861         * gprcmd.adb (Check_Args): If condition is false, print the invoked
39862         comment before the usage.
39863         Gprcmd: Fail when command is not recognized.
39864         (Usage): Document command "prefix"
39865
39866         * g-md5.adb (Digest): Process last block.
39867         (Update): Do not process last block. Store remaining characters and
39868         length in Context.
39869
39870         * g-md5.ads (Update): Document that several call to update are
39871         equivalent to one call with the concatenated string.
39872         (Context): Add fields to allow new Update behaviour.
39873
39874         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
39875         defaulted to False.
39876         When May_Fail is True and no existing file can be found, return No_File.
39877
39878         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
39879         functions.
39880
39881         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
39882         spec file name instead on the W line.
39883
39884 2004-02-02  Robert Dewar  <dewar@gnat.com>
39885
39886         * ali.adb: Read and acquire info from new format restrictions lines
39887
39888         * bcheck.adb: Add circuits for checking restrictions with parameters
39889
39890         * bindgen.adb: Output dummy restrictions data
39891         To be changed later
39892
39893         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39894         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
39895         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
39896         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
39897         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
39898
39899         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
39900         the warning message on access to possibly uninitialized variable S)
39901         Minor changes for new restrictions handling.
39902
39903         * gnatbind.adb: Minor reformatting
39904         Minor changes for new restrictions handling
39905         Move circuit for -r processing here from bcheck (cleaner)
39906
39907         * gnatcmd.adb, gnatlink.adb: Minor reformatting
39908
39909         * lib-writ.adb: Output new format restrictions lines
39910
39911         * lib-writ.ads: Document new R format lines for new restrictions
39912         handling.
39913
39914         * s-restri.ads/adb: New files
39915
39916         * Makefile.rtl: Add entry for s-restri.ads/adb
39917
39918         * par-ch3.adb: Fix bad error messages starting with upper case letter
39919         Minor reformatting
39920
39921         * restrict.adb: Major rewrite throughout for new restrictions handling
39922         Major point is to handle restrictions with parameters
39923
39924         * restrict.ads: Major changes in interface to handle restrictions with
39925         parameters. Also generally simplifies setting of restrictions.
39926
39927         * snames.ads/adb: New entry for proper handling of No_Requeue
39928
39929         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
39930         restriction counting.
39931         Other minor changes for new restrictions handling
39932
39933         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
39934         Restriction_Warnings now allows full parameter notation
39935         Major rewrite of Restrictions for new restrictions handling
39936
39937 2004-02-02  Javier Miranda  <miranda@gnat.com>
39938
39939         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
39940         syntax rule for object renaming declarations.
39941         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
39942         component definitions.
39943
39944         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
39945         components.
39946         (Array_Type_Declaration): Give support to access components. In addition
39947         it was also modified to reflect the name of the object in anonymous
39948         array types. The old code did not take into account that it is possible
39949         to have an unconstrained anonymous array with an initial value.
39950         (Check_Or_Process_Discriminants): Allow access discriminant in
39951         non-limited types.
39952         (Process_Discriminants): Allow access discriminant in non-limited types
39953         Initialize the new Access_Definition field in N_Object_Renaming_Decl
39954         node.  Change Ada0Y to Ada 0Y in comments
39955
39956         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
39957         equality operators.
39958         Change Ada0Y to Ada 0Y in comments
39959
39960         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
39961         renamings Change Ada0Y to Ada 0Y in comments
39962
39963         * sem_type.adb (Find_Unique_Type): Give support to the equality
39964         operators for universal access types
39965         Change Ada0Y to Ada 0Y in comments
39966
39967         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
39968
39969         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
39970         field.
39971         (N_Object_Renaming_Declaration): Addition of Access_Definition field
39972         Change Ada0Y to Ada 0Y in comments
39973
39974         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
39975         component definition and object renaming nodes
39976         Change Ada0Y to Ada 0Y in comments
39977
39978 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
39979
39980         * restrict.adb: Use the new restriction identifier
39981         No_Requeue_Statements instead of the old No_Requeue for defining the
39982         restricted profile.
39983
39984         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
39985         No_Requeue_Statements.
39986
39987         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
39988         that supersedes the GNAT specific restriction No_Requeue. The later is
39989         kept for backward compatibility.
39990
39991 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
39992
39993         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
39994         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
39995         pragma and fix incorrect ones.
39996
39997         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
39998         warning if the pragma is redundant.
39999
40000 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
40001
40002         * 5staprop.adb: Add missing 'constant' keywords.
40003
40004         * Makefile.in: use consistent value for SYMLIB on
40005         platforms where libaddr2line is supported.
40006
40007 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40008
40009         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
40010         annotating types.
40011
40012 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
40013
40014         * init.c (__gnat_install_handler): Setup an alternate stack for signal
40015         handlers in the environment thread. This allows proper propagation of
40016         an exception on stack overflows in this thread even when the builtin
40017         ABI stack-checking scheme is used without support for a stack reserve
40018         region.
40019
40020         * utils.c (create_field_decl): Augment the head comment about bitfield
40021         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
40022         here, because the former is not accurate enough at this point.
40023         Let finish_record_type decide instead.
40024         Don't make a bitfield if the field is to be addressable.
40025         Always set a size for the field if the record is packed, to ensure the
40026         checks for bitfield creation are triggered.
40027         (finish_record_type): During last pass over the fields, clear
40028         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
40029         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
40030         from DECL_BIT_FIELD.
40031
40032 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
40033
40034         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
40035         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
40036         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
40037
40038 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40039
40040         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
40041
40042         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
40043         (ZCX_By_Default): Likewise.
40044         (Front_End_ZCX_Support): Likewise.
40045
40046         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
40047         (Initialize_Lock): Mark Level unreferenced.
40048         (Sleep): Mark Reason unreferenced.
40049         (Timed_Sleep): Likewise.
40050         (Wakeup): Likewise.
40051         (Exit_Task): Use Result.
40052         (Check_No_Locks): Mark Self_ID unreferenced.
40053
40054         * 5gtasinf.adb (New_Sproc): Make Attr constant.
40055         (Bound_Thread_Attributes): Make Sproc constant.
40056         (New_Bound_Thread_Attributes): Likewise.
40057
40058 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
40059
40060         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
40061         one-dimensional array an slice assignments, when component type is
40062         controlled.
40063
40064         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
40065         component type is controlled, and control_actions are in effect, use
40066         TSS procedure rather than generating inline code.
40067
40068         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
40069         arrays with controlled components.
40070
40071 2004-01-26  Vincent Celier  <celier@gnat.com>
40072
40073         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
40074         command line for the non VMS case.
40075
40076         * gnatlink.adb (Process_Binder_File): When building object file, if
40077         GNU linker is used, put all object paths between quotes, to prevent ld
40078         error when there are unusual characters (such as '!') in the paths.
40079
40080         * Makefile.generic: When there are sources in Ada and the main is in
40081         C/C++, invoke gnatmake with -B, instead of -z.
40082
40083         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
40084         from VMS_Conversion.
40085         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
40086         specification of argument file on the command line.
40087
40088 2004-01-26  Bernard Banner  <banner@gnat.com>
40089
40090         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
40091
40092 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
40093
40094         * snames.adb: Update copyright notice.
40095         Add info on slice assignment for controlled arrays.
40096
40097 2004-01-23  Robert Dewar  <dewar@gnat.com>
40098
40099         * exp_aggr.adb: Minor reformatting
40100
40101         * exp_ch9.adb: Minor code clean up
40102         Minor reformatting
40103         Fix bad character in comment
40104
40105         PR ada/13471
40106         * targparm.adb (Get_Target_Parameters): Give clean abort error on
40107         unexpected end of file, along with more detailed message.
40108
40109 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40110
40111         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
40112         PAT.
40113
40114         * decl.c (copy_alias_set): New function.
40115         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
40116
40117 2004-01-23  Doug Rupp  <rupp@gnat.com>
40118
40119         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
40120         lib$${file} in case subsequent character is not a separator.
40121
40122 2004-01-23  Vincent Celier  <celier@gnat.com>
40123
40124         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
40125         when the GCC version is at least 3.
40126
40127         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
40128         Remove all "Opt.", to prepare for opt split
40129
40130         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
40131         Extends_All. Set to True when the project parsed is an extending all
40132         project. Fails for importing an extending all project only when the
40133         imported project is an extending all project.
40134         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
40135         depending on the value of Extends_All returned.
40136
40137         * prj-proc.adb (Process): Check that no project shares its object
40138         directory with a project that extends it, directly or indirectly,
40139         including a virtual project.
40140         Check that no project extended by another project shares its object
40141         directory with another also extended project.
40142
40143         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
40144         Kind = N_With_Clause
40145
40146         * prj-tree.ads: Minor reformatting
40147         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
40148
40149 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
40150
40151         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
40152         applies to a type with an incomplete view, use full view in Name of
40153         clause, for consistency with uses of Get_Attribute_Definition_Clause.
40154
40155 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
40156
40157         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
40158         SCHED_RR, since other values are not supported by this policy.
40159         (Initialize): Move initialization of mutex attribute to package
40160         elaboration, to prevent early access to this variable.
40161
40162         * Makefile.in: Remove mention of Makefile.adalib, unused.
40163
40164         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40165         1ssecsta.ads: Removed, unused.
40166
40167 2004-01-21  Javier Miranda  <miranda@gnat.com>
40168
40169         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
40170         entity if already built in the current scope.
40171
40172         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
40173         reminder in internal scopes. Required for nested limited aggregates.
40174
40175 2004-01-21  Doug Rupp  <rupp@gnat.com>
40176
40177         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
40178         VMS. Replace all occurences of libgnat- and libgnarl- with
40179         libgnat$(hyphen) and libgnarl$(hyphen).
40180         Fixed shared library build problem on VMS.
40181
40182 2004-01-21  Robert Dewar  <dewar@gnat.com>
40183
40184         * mlib-prj.adb: Minor reformatting
40185
40186 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
40187
40188         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
40189         'constant' keywords for declaration of pointers that are not modified.
40190
40191         * exp_pakd.adb: Fix English in comment.
40192
40193 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
40194
40195         PR ada/10889
40196         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
40197         copy all attributes of the parent, including the foreign language
40198         convention.
40199
40200 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
40201
40202         PR ada/10565
40203         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
40204         for 'delay until' statement.
40205
40206 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
40207
40208         * Make-lang.in: Replace $(docdir) with doc.
40209         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
40210         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
40211         to use consistent MAKEINFO rule.
40212         (ada.man, ada.srcman): Dummy entry.
40213         (ADA_INFOFILES): Define.
40214         (ada.info, ada.srcinfo): New rules.
40215
40216 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
40217
40218         * utils.c: Update copyright notice, missed in previous change.
40219
40220 2004-01-19  Vincent Celier  <celier@gnat.com>
40221
40222         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
40223         args if Bind is True. Set First_ALI, if not already done.
40224         (Build_Library): For Stand Alone Libraries, extract from one ALI file
40225         an eventual --RTS switch, for gnatbind, and all backend switches +
40226         --RTS, for linking.
40227
40228 2004-01-19  Robert Dewar  <dewar@gnat.com>
40229
40230         * sem_attr.adb, memtrack.adb: Minor reformatting
40231
40232 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
40233
40234         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
40235         that rename enumeration literals. This is properly done in sem_eval.
40236
40237         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
40238         to functions that rename enumeration literals.
40239
40240         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
40241         functions that rename enumeration literals.
40242
40243 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
40244
40245         * Make-lang.in (utils.o): Depend on target.h.
40246         * utils.c: Include target.h.
40247         (process_attributes): Use targetm.have_named_sections instead
40248         of ASM_OUTPUT_SECTION_NAME.
40249
40250 2004-01-16  Andreas Jaeger  <aj@suse.de>
40251
40252         * Makefile.in: Add $(DESTDIR).
40253
40254 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
40255
40256         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
40257         also when not defining if a Size clause applies. That information is
40258         not to be ignored.
40259
40260 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
40261
40262         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
40263         symbolic links for the shared gnat run time when needed.
40264
40265 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
40266
40267         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
40268         for writing, and terminate with an error message if not.
40269
40270 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
40271
40272         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
40273         warning on an access to subprogram in an instance, when the target
40274         type is declared in the same generic unit.
40275         (Eval_Attribute): If 'access is known to fail accessibility check,
40276         rewrite as a raise statement.
40277
40278 2004-01-15  GNAT Script  <nobody@gnat.com>
40279
40280         * Make-lang.in: Makefile automatically updated
40281
40282 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
40283
40284         * Make-lang.in (ada.srcextra): Dummy entry.
40285
40286 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
40287
40288         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
40289
40290 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
40291
40292         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
40293         components that are initialized with aggregates.
40294
40295 2004-01-13  Vincent Celier  <celier@gnat.com>
40296
40297         * gnatlink.adb (Process_Binder_File): To find directory of shared
40298         libgcc, if "gcc-lib" is not a subdirectory, look for the last
40299         subdirectory "lib" in the path of the shared libgnat or libgnarl.
40300
40301         * make.adb (Gnatmake): If GCC version is at least 3, link with
40302         -shared-libgcc, when there is at least one shared library project.
40303
40304         * opt.ads (GCC_Version): New integer constant.
40305
40306         * adaint.c (get_gcc_version): New function.
40307
40308 2004-01-13  Robert Dewar  <dewar@gnat.com>
40309
40310         * sem_dist.adb, sem_res.adb, sem_util.adb,
40311         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
40312         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
40313
40314 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
40315
40316         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
40317         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
40318         declarations.
40319
40320 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
40321
40322         * misc.c: Remove trailing spaces.
40323         Update copyright notice missed in previous change.
40324
40325         PR ada/13572
40326         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
40327         prefix/share/make
40328
40329         * Makefile.generic: Update copyright.
40330         Add license notice.
40331
40332         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
40333         of prefix/share/make.
40334
40335         * Makefile.prolog: Update copyright.
40336         Add license notice.
40337
40338 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
40339
40340         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
40341         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
40342         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
40343         instead of String.
40344
40345         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
40346         signature.
40347
40348 2004-01-12  Javier Miranda  <miranda@gnat.com>
40349
40350         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
40351         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
40352         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
40353         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
40354         Component_Definition node.
40355
40356 2004-01-12  Ed Falis  <falis@gnat.com>
40357
40358         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
40359
40360 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
40361
40362         * link.c: Change default libgnat kind to STATIC for FreeBSD.
40363
40364 2004-01-12  Bernard Banner  <banner@gnat.com>
40365
40366         * Makefile.in: map 86numaux to a-numaux for x86_64
40367
40368 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
40369
40370         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
40371         generated to rename a generic actual, go to the actual itself, the
40372         subtype is not a user-visible entity.
40373
40374         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
40375         part is a private subtype, reset the visibility of its full view, if
40376         any, to be consistent.
40377
40378         PR ada/13417
40379         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
40380         to use a generic package G as a formal package for another generic
40381         declared within G.
40382
40383 2004-01-12  Robert Dewar  <dewar@gnat.com>
40384
40385         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
40386
40387         * usage.adb: Remove mention of obsolete -gnatwb switch
40388         Noticed during code reading
40389
40390 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
40391
40392         * 1ssecsta.adb: Minor changes for -gnatwa warnings
40393
40394 2004-01-12  GNAT Script  <nobody@gnat.com>
40395
40396         * Make-lang.in: Makefile automatically updated
40397
40398 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
40399
40400         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
40401
40402 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40403
40404         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
40405
40406 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
40407
40408         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
40409         Update comment and copyright date.
40410         * stamp-xgnatug: Delete.
40411
40412 2004-01-05  Robert Dewar  <dewar@gnat.com>
40413
40414         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
40415         be modified by the binder generated main program if the -D switch is
40416         used.
40417
40418         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
40419         imported functions (since now we expect this to be done for imported
40420         functions)
40421
40422         * 5vtaprop.adb: Add several ??? for sections requiring more comments
40423         Minor reformatting throughout
40424
40425         * 5zinit.adb: Minor reformatting
40426         Add 2004 to copyright date
40427         Minor changes to avoid -gnatwa warnings
40428         Correct some instances of using OR instead of OR ELSE (noted while
40429         doing reformatting)
40430
40431         * sprint.adb: Minor updates to avoid -gnatwa warnings
40432
40433         * s-secsta.ads, s-secsta.adb:
40434         (SS_Get_Max): New function to obtain high water mark for ss stack
40435         Default_Secondary_Stack is not a constant since it may be modified by
40436         the binder generated main program if the -D switch is used.
40437
40438         * switch-b.adb: New -Dnnn switch for binder
40439
40440         * switch-c.adb:
40441         Make -gnatg imply all warnings currently in -gnatwa
40442
40443         * vms_conv.adb: Minor reformatting
40444         Add 2004 to copyright notice
40445         Add 2004 to printed copyright notice
40446
40447         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
40448         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
40449         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
40450         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
40451         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
40452         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
40453         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
40454         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
40455         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
40456         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
40457         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
40458         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
40459         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
40460         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
40461         checks.adb, clean.adb, cstand.adb, einfo.ads,
40462         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
40463         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
40464         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
40465         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
40466         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
40467         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
40468         Minor reformatting and code clean ups.
40469         Minor changes to prevent -gnatwa warnings
40470
40471         * ali.adb: Minor reformatting and cleanup of code
40472         Acquire new SS indication of secondary stack use from ali files
40473
40474         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
40475         (since now we expect this to be done for imported functions)
40476
40477         * bindgen.adb: Generate call to modify default secondary stack size if
40478         -Dnnn switch given
40479
40480         * bindusg.adb: Add line for new -D switch
40481
40482         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
40483         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
40484         Add circuitry for both records and arrays to avoid gigi
40485         processing if the type involved has non-bit-aligned components
40486
40487         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
40488         N_String_Literal node always references an E_String_Literal_Subtype
40489         entity. This may not be true in the future.
40490         (Possible_Bit_Aligned_Component): Move processing of
40491         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
40492
40493         * exp_ch6.adb (Expand_Thread_Body): Pick up
40494         Default_Secondary_Stack_Size as variable so that we get value modified
40495         by possible -Dnnn binder parameter.
40496
40497         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
40498         (Type_May_Have_Bit_Aligned_Components): New function.
40499
40500         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
40501         (Type_May_Have_Bit_Aligned_Components): New function.
40502
40503         * fe.h: (Set_Identifier_Casing): Fix prototype.
40504         Add declaration for Sem_Elim.Eliminate_Error_Msg.
40505         Minor reformatting.
40506
40507         * freeze.adb (Freeze_Entity): Add RM reference to error message about
40508         importing constant atomic/volatile objects.
40509         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
40510         unless explicit Pure_Function pragma given, to avoid insidious bug of
40511         call to non-pure imported function getting eliminated.
40512
40513         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
40514         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
40515         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
40516         Add 2004 to printed copyright notice
40517
40518         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
40519         stack used.
40520
40521         * Makefile.rtl: Add entry for g-sestin.o
40522         g-sestin.ads: New file.
40523
40524         * mdll.adb: Minor changes to avoid -gnatwa warnings
40525
40526         * mlib-tgt.adb: Minor reformatting
40527
40528         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
40529         New switch Sec_Stack_Used (GNAT, GNATBIND)
40530         Make Default_Secondary_Stack_Size a variable instead of a constant,
40531         so that it can be modified by the new -Dnnn bind switch.
40532
40533         * rtsfind.adb (Load_Fail): Give full error message in configurable
40534         run-time mode if all_errors mode is set. This was not done in the case
40535         of a file not found, which was an oversight.
40536         Note if secondary stack unit is used by compiler.
40537
40538         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
40539         ineffective elaborate all pragmas on non-visible packages (this
40540         happened when a renamed subprogram was called). Now the elaborate all
40541         always goes on the package containing the renaming rather than the one
40542         containing the renamed subprogram.
40543
40544         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
40545         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
40546
40547         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
40548         has an Etype that references an E_String_Literal.
40549         (Eval_String_Literal): Avoid assumption that N_String_Literal node
40550         always references an E_String_Literal_Subtype entity. This may not
40551         be true in the future.
40552
40553         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
40554         pragma location.
40555
40556         * sem_res.adb (Resolve): Specialize msg for function name used in proc
40557         call.
40558
40559 2004-01-05  Ed Falis  <falis@gnat.com>
40560
40561         * g-debuti.adb: Replaced direct boolean operator with short-circuit
40562         form.
40563
40564 2004-01-05  Vincent Celier  <celier@gnat.com>
40565
40566         * bld.adb: Minor comment updates
40567         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
40568         of Item_Name).
40569
40570         * make.adb (Gnatmake): Special process for files to compile/check when
40571         -B is specified. Fail when there are only foreign mains in attribute
40572         Main of the project file and -B is not specified. Do not skip bind/link
40573         steps when -B is specified.
40574
40575         * makeusg.adb: Document new switch -B
40576
40577         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
40578
40579         * switch-m.adb: (Scan_Make_Switches): Process -B switch
40580
40581         * vms_data.ads: Add new GNAT PRETTY qualifier
40582         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
40583
40584 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40585
40586         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
40587         case.
40588
40589         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
40590         Set_Identifier_Casing.
40591
40592         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
40593         has size that overflows.
40594
40595 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
40596
40597         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
40598         -gnatwa warning on static condition.
40599
40600 2004-01-05  Doug Rupp  <rupp@gnat.com>
40601
40602         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
40603
40604 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
40605
40606         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
40607         all attributes, including read-only attribute.
40608
40609 2004-01-05  Pascal Obry  <obry@gnat.com>
40610
40611         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
40612         library naming scheme.
40613
40614         * mlib-prj.adb (Build_Library): Generate different names for the static
40615         or dynamic version of the GNAT runtime. This is needed to support the
40616         new shared library naming scheme.
40617         (Process_Binder_File): Add detection of shared library in binder file
40618         based on the new naming scheme.
40619
40620         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
40621         scheme for the shared runtime libraries.
40622
40623         * Makefile.in:
40624         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
40625         scheme.
40626         (install-gnatlib): Do not create symlinks for shared libraries.
40627         (gnatlib-shared-default): Idem.
40628         (gnatlib-shared-dual-win32): New target. Not used for now as the
40629         auto-import feature does not support arrays/records.
40630         (gnatlib-shared-win32): Do not create copy for the shared libraries.
40631         (gnatlib-shared-vms): Fix shared runtime libraries names.
40632
40633         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
40634         dependent runtime shared library name.
40635
40636 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
40637
40638         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
40639         than the object.
40640
40641 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
40642
40643         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
40644         protected objects when allocator has a subtype indication, not a
40645         qualified expression. Note that qualified expressions may have to be
40646         checked when limited aggregates are implemented.
40647
40648         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
40649         pure, emit warning.
40650         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
40651         subprogram is imported, remove warning.
40652
40653 2004-01-05  Geert Bosch  <bosch@gnat.com>
40654
40655         * s-poosiz.adb: Update copyright notice.
40656         (Allocate): Use Task_Lock to protect against concurrent access.
40657         (Deallocate): Likewise.
40658
40659 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
40660
40661         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
40662         comment.
40663
40664 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
40665
40666         * gnat_ug.texi: Force a CVS commit by updating copyright.
40667         * gnat_ug_vxw.texi: Regenerate.
40668         * gnat_ug_wnt.texi: Regenerate.
40669         * gnat_ug_vms.texi: Regenerate.
40670         * gnat_ug_unx.texi: Regenerate.
40671
40672 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
40673
40674         * trans.c: Remove uses of "register" specifier in
40675         declarations of local variables.
40676
40677 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
40678
40679         * stamp-xgnatug: New stamp file.
40680         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
40681         (ada/doctools/xgnatug): Add $(build_exeext).
40682         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
40683         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
40684
40685 2003-12-17  Ed Falis  <falis@gnat.com>
40686
40687         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
40688         eliminate warning.
40689
40690         * a-exextr.adb: Add context clause for
40691         Ada.Exceptions.Last_Chance_Handler.
40692
40693 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
40694
40695         * cstand.adb (Create_Standard): Change the way how the declaration of
40696         the Duration type is created (making it the same way as it is for all
40697         the other standard types).
40698
40699 2003-12-17  Robert Dewar  <dewar@gnat.com>
40700
40701         * s-crtl.ads: Fix header format
40702         Change Pure to Preelaborate
40703
40704 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
40705
40706         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
40707         the expression type only if it is declared in the current unit.
40708
40709         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
40710         are universal and already analyzed, as can occur in constrained
40711         subcomponents that depend on discriminants, when one constraint is a
40712         subtype mark.
40713
40714         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
40715         type Any_Fixed is legal as the argument of a conversion, if only one
40716         fixed-point type is in context.
40717
40718 2003-12-17  GNAT Script  <nobody@gnat.com>
40719
40720         * Make-lang.in: Makefile automatically updated
40721
40722 2003-12-15  Robert Dewar  <dewar@gnat.com>
40723
40724         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
40725         sec stack size.
40726
40727 2003-12-15  Vincent Celier  <celier@gnat.com>
40728
40729         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
40730         (Gnatchop): Do not set failure status when reporting the number of
40731         warnings.
40732
40733 2003-12-15  Doug Rupp  <rupp@gnat.com>
40734
40735         * s-ctrl.ads: New file.
40736
40737         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
40738
40739         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
40740         (GNATBIND_OBJS): Add ada/s-crtl.o.
40741
40742         * Makefile.in [VMS]: Clean up ifeq rules.
40743
40744         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
40745         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
40746         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
40747         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
40748         s-tasdeb.adb: Update copyright.
40749         Import System.CRTL.
40750         Make minor modifications to use System.CRTL declared functions instead
40751         of importing locally.
40752
40753 2003-12-15  GNAT Script  <nobody@gnat.com>
40754
40755         * Make-lang.in: Makefile automatically updated
40756
40757 2003-12-11  Ed Falis  <falis@gnat.com>
40758
40759         * 5zinit.adb: Clean up.
40760
40761         * 5zintman.adb (Notify_Exception): replaced case statement with a call
40762         to __gnat_map_signal, imported from init.c to support
40763         signal -> exception mappings that depend on the vxWorks version.
40764
40765         * init.c:
40766         Created and exported __gnat_map_signal to support signal -> exception
40767         mapping that is dependent on the VxWorks version.
40768         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
40769
40770 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
40771
40772         * 5wosinte.ads: Link with -mthreads switch.
40773
40774 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
40775
40776         * init.c (__gnat_install_handler [NetBSD]): Set
40777         __gnat_handler_installed, as done on all other platforms.
40778         Remove duplicated code.
40779
40780 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
40781
40782         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
40783
40784 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
40785
40786         * sinfo.ads: Fix inconsistent example code in comment.
40787
40788 2003-12-11  Robert Dewar  <dewar@gnat.com>
40789
40790         * a-tiinau.adb: Add a couple of comments
40791
40792         * sem_ch3.adb: Minor reformatting
40793
40794         * sem_prag.adb:
40795         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
40796         Minor reformatting throughout
40797
40798 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
40799
40800         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
40801         bounds of a loop, create a separate block in order to generate proper
40802         cleanup actions to prevent memory leaks.
40803
40804         * sem_res.adb (Resolve_Call): After a call to
40805         Establish_Transient_Scope, the call may be rewritten and relocated, in
40806         which case no further processing is needed.
40807
40808         * sem_util.adb: (Wrong_Type): Refine previous fix.
40809          Fixes ACATS regressions.
40810
40811         PR ada/13353
40812         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
40813         be inlined.
40814
40815 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
40816
40817         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
40818         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
40819         obsolete files.
40820
40821         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
40822         (rts-zfp): Ditto.
40823
40824 2003-12-08  Robert Dewar  <dewar@gnat.com>
40825
40826         * 7sintman.adb: Minor reformatting
40827
40828         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
40829         standard linker options to get standard libraries linked. We now plan
40830         to provide dummy versions of these libraries to match the appropriate
40831         configurable run-time (e.g. if a library is not needed at all, provide
40832         a dummy empty library).
40833
40834         * targparm.ads: Configurable_Run_Time mode no longer affects linker
40835         options (-L parameters and standard libraries). What we plan to do is
40836         to provide dummy libraries where the libraries are not required.
40837
40838         * gnatbind.adb: Minor comment improvement
40839
40840 2003-12-08  Javier Miranda  <miranda@gnat.com>
40841
40842         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
40843         aggregate in the parent. Otherwise constants with limited aggregates
40844         are not supported. Add new formal to pass the component type (Ctype).
40845         It is required to call the corresponding IP subprogram in case of
40846         default initialized components.
40847         (Gen_Assign): In case of default-initialized component, generate a
40848         call to the IP subprogram associated with the component.
40849         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
40850         of aggregate with default initialized components.
40851         (Has_Default_Init_Comps): Improve implementation to recursively check
40852         all the present expressions.
40853
40854         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
40855         to indicate that the initialization call corresponds to a
40856         default-initialized component of an aggregate.
40857         In case of default initialized aggregate with tasks this parameter is
40858         used to generate a null string (this is just a workaround that must be
40859         improved later). In case of discriminants, this parameter is used to
40860         generate a selected component node that gives access to the discriminant
40861         value.
40862
40863         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
40864         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
40865         allocated aggregates with default-initialized components.
40866
40867         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
40868         the box notation is used in positional aggregates.
40869
40870 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
40871
40872         * lib.ads: Fix typo in comment
40873
40874 2003-12-08  Vincent Celier  <celier@gnat.com>
40875
40876         * prj.adb (Project_Empty): New component Unkept_Comments
40877         (Scan): Remove procedure; moved to Prj.Err.
40878
40879         * prj.ads (Project_Data): New Boolean component Unkept_Comments
40880         (Scan): Remove procedure; moved to Prj.Err.
40881
40882         * prj-dect.adb: Manage comments for the different declarations.
40883
40884         * prj-part.adb (With_Record): New component Node
40885         (Parse): New Boolean parameter Store_Comments, defaulted to False.
40886         Set the scanner to return ends of line and comments as tokens, if
40887         Store_Comments is True.
40888         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
40889         comments are associated with these nodes. Store the node IDs in the
40890         With_Records.
40891         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
40892         With_Records.
40893         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
40894         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
40895         current project. Call Tree.Restore afterwards. Set the various nodes
40896         for comment storage (Next_End, End_Of_Line, Previous_Line,
40897         Previous_End).
40898
40899         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
40900         defaulted to False.
40901
40902         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
40903         to False. When Truncated is True, truncate the string, never go to the
40904         next line.
40905         (Write_End_Of_Line_Comment): New procedure
40906         (Print): Process comments for nodes N_With_Clause,
40907         N_Package_Declaration, N_String_Type_Declaration,
40908         N_Attribute_Declaration, N_Typed_Variable_Declaration,
40909         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
40910         Process nodes N_Comment.
40911
40912         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
40913         without comments and there are some comments, set the flag
40914         Unkept_Comments to True.
40915         (Scan): If there are comments, set the flag Unkept_Comments to True and
40916         clear the comments.
40917         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
40918         (Next_End_Nodes: New table
40919         (Comment_Zones_Of): New function
40920         (Scan): New procedure; moved from Prj. Accumulate comments in the
40921         Comments table and set end of line comments, comments after, after end
40922         and before end.
40923         (Add_Comments): New procedure
40924         (Save, Restore, Seset_State): New procedures
40925         (There_Are_Unkept_Comments): New function
40926         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
40927         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
40928         procedures.
40929         (First_Comment_After, First_Comment_After_End): New functions
40930         (First_Comment_Before, First_Comment_Before_End): New functions
40931         (Next_Comment): New function
40932         (End_Of_Line_Comment, Follows_Empty_Line,
40933         Is_Followed_By_Empty_Line): New functions
40934         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
40935         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
40936         (Set_Next_Comment): New procedure
40937         (Default_Project_Node): Associate comment before if the node can store
40938         comments.
40939
40940         * scans.ads (Token_Type): New enumeration value Tok_Comment
40941         (Comment_Id): New global variable
40942
40943         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
40944         defaulted to False.
40945         (Scan): Store position of start of comment. If comments are tokens, set
40946         Comment_Id and set Token to Tok_Comment when scanning a comment.
40947         (Set_Comment_As_Token): New procedure
40948
40949         * sinput-p.adb: Update Copyright notice
40950         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
40951         that no longer exists.
40952
40953 2003-12-08  Javier Miranda  <miranda@gnat.com>
40954
40955         * sem_aggr.adb: Add dependence on Exp_Tss package
40956         Correct typo in comment
40957         (Resolve_Aggregate): In case of array aggregates set the estimated
40958         type of the aggregate before calling resolve. This is needed to know
40959         the name of the corresponding IP in case of limited array aggregates.
40960         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
40961         in case of default initialized array components.
40962
40963         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
40964         types. Required to give support to limited aggregates in generic
40965         formals.
40966
40967 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
40968
40969         * sem_ch3.adb (Check_Initialization): For legality purposes, an
40970         inlined body functions like an instantiation.
40971         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
40972         until bounds are analyzed, to diagnose premature use of type.
40973
40974         * sem_util.adb (Wrong_Type): Improve error message when the type of
40975         the expression is used prematurely.
40976
40977 2003-12-08  GNAT Script  <nobody@gnat.com>
40978
40979         * Make-lang.in: Makefile automatically updated
40980
40981 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
40982
40983         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
40984         they are automatically generated by Make-lang.in and cause nothing but
40985         maintenance troubles.
40986
40987 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
40988
40989         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
40990         version of this unit).
40991
40992 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
40993
40994         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
40995         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
40996         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
40997         the body of System.Interrupt_Management common to several targets.
40998         Update copyright notice when appropriate.
40999
41000         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
41001         constant.
41002
41003         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
41004         to ensure that the kernel fills in the interrupted context structure
41005         before calling a signal handler, which is necessary to be able to
41006         unwind past it. Update the copyright notice.
41007
41008 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
41009
41010         * a-elchha.ads: New file.
41011
41012         * a-elchha.adb: New default last chance handler. Contents taken from
41013         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
41014
41015         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
41016         is moved to a-elchha.adb to provide a target-independent default last
41017         chance handler.
41018
41019         * Makefile.rtl: Add a-elchha.o
41020
41021         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
41022
41023 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
41024
41025         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
41026         declared in an instance, do not inline the call if the instance is not
41027         frozen yet, to prevent order of elaboration problems.
41028
41029         * sem_prag.adb: Add comments for previous fix.
41030
41031 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
41032
41033         * g-table.adb: Use the right variable in Set_Item.
41034         Update copyright notice.
41035
41036 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
41037
41038         * Makefile.in: Remove unused rules.
41039
41040 2003-12-05  Vincent Celier  <celier@gnat.com>
41041
41042         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
41043         -nostdlib. Not needed here after all.
41044
41045 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
41046
41047         PR ada/11724
41048         * adaint.h, adaint.c, g-os_lib.ads:
41049         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
41050         on some platforms (including FreeBSD), it is a 64 bit value.
41051         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
41052
41053 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
41054
41055         * gnatvsn.ads (Library_Version): Now contain only the relevant
41056         version info.
41057         (Verbose_Library_Version): New constant.
41058
41059         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
41060         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
41061         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
41062
41063         * gnatlbr.adb: Clean up: replace Library_Version by
41064         Verbose_Library_Version.
41065
41066         * make.adb, lib-writ.adb, exp_attr.adb:
41067         Clean up: replace Library_Version by Verbose_Library_Version.
41068
41069         * 5lintman.adb: Removed.
41070
41071         * Makefile.in:
41072         Update and simplify computation of LIBRARY_VERSION.
41073         Fix computation of GSMATCH_VERSION.
41074         5lintman.adb is no longer used: replaced by 7sintman.adb.
41075
41076 2003-12-03  Robert Dewar  <dewar@gnat.com>
41077
41078         * exp_ch5.adb:
41079         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
41080         name. Modified to consider small non-bit-packed arrays as troublesome
41081         and in need of component-by-component assigment expansion.
41082
41083 2003-12-03  Vincent Celier  <celier@gnat.com>
41084
41085         * lang-specs.h: Process nostdlib as nostdinc
41086
41087         * back_end.adb: Update Copyright notice
41088         (Scan_Compiler_Arguments): Process -nostdlib directly.
41089
41090 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
41091
41092         * Makefile.in:
41093         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
41094         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
41095         included in HIE_NONE_TARGET_PAIRS.
41096
41097 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
41098
41099         * sem_attr.adb:
41100         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
41101         is legal in an instance, because legality is cheched in the template.
41102
41103         * sem_prag.adb:
41104         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
41105         appplied to an unchecked conversion of a formal parameter.
41106
41107         * sem_warn.adb:
41108         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
41109         variables.
41110
41111 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
41112
41113         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
41114         routines. The second one is new functionality to deal with backtracing
41115         through signal handlers.
41116         (unwind): Split into the two separate subroutines above.
41117         Update the documentation, and deal properly with sizeof (REG) different
41118         from sizeof (void*).
41119
41120 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
41121
41122         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
41123         so that the debugger can reliably access the value of the parameter,
41124         and therefore is able to display the exception name when an exception
41125         breakpoint is reached.
41126
41127 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
41128
41129         * fmap.adb: Fix typo in warning message.
41130
41131         * g-socket.ads, g-socket.adb: Make Free a visible instance of
41132         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
41133
41134 2003-12-01  Vincent Celier  <celier@gnat.com>
41135
41136         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
41137         ther is no Afile.
41138         (Build_Library): Get the switches only if Default_Switches is declared
41139         in package Binder.
41140
41141 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
41142
41143         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
41144         actuals that are indexed components, reanalyze actual to ensure that
41145         packed array references are properly expanded.
41146
41147         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
41148         attempted assignment to a discriminant.
41149
41150 2003-12-01  Robert Dewar  <dewar@gnat.com>
41151
41152         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
41153         reformatting.
41154
41155         * switch-c.adb: Minor reformatting of comments
41156
41157 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
41158
41159         * Makefile.in: Clean ups.
41160
41161 2003-12-01  GNAT Script  <nobody@gnat.com>
41162
41163         * Make-lang.in: Makefile automatically updated
41164
41165 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
41166
41167         * 5wsystem.ads: Disable zero cost exception, not ready yet.
41168
41169 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
41170
41171         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
41172         to force serialization.
41173
41174 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
41175
41176         * g-socket.ads, g-socket.adb:
41177         Clarify documentation of function Stream. Introduce a Free procedure
41178         to release the returned Stream once it becomes unused.
41179
41180         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
41181
41182 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
41183
41184         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
41185         since NT 4 cannot handle timeout values that are too large,
41186         e.g. DWORD'Last - 1.
41187
41188 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
41189
41190         * exp_ch4.adb:
41191         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
41192         in procedure calls and whose expansion must be deferred.
41193
41194         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
41195         is in exp_ch4.
41196
41197         * sem_ch3.adb:
41198         (Build_Derived_Array_Type): Create operator for unconstrained type
41199         if ancestor is unconstrained.
41200
41201 2003-11-26  Vincent Celier  <celier@gnat.com>
41202
41203         * make.adb (Project_Object_Directory): New global variable
41204         (Change_To_Object_Directory): New procedure
41205         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
41206         of Change_Dir directly. Do not change working directory to object
41207         directory of main project after each compilation.
41208         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
41209         directly.
41210         Change to object directory of main project before binding step.
41211         (Initialize): Initialize Project_Object_Directory to No_Project
41212
41213         * mlib-prj.adb:
41214         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
41215         binding a Stand-Alone Library.
41216
41217         * output.adb: Update Copyright notice
41218         (Write_Char): Output buffer when full
41219
41220 2003-11-26  Robert Dewar  <dewar@gnat.com>
41221
41222         * sem_ch13.adb: (Check_Size): Reset size if size is too small
41223
41224         * sem_ch13.ads:
41225         (Check_Size): Fix documentation to include bit-packed array case
41226
41227         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
41228
41229         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
41230
41231         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
41232
41233 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
41234
41235         PR ada/13142
41236         * utils.c (init_gigi_decls): Change name of built-in setjmp to
41237         __builtin_setjmp, since this is apparently needed by recent
41238         non Ada changes.
41239
41240 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41241
41242         * adadecode.c: Only include ctype.h if not IN_GCC.
41243         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
41244
41245 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
41246
41247         * Makefile.in:
41248         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
41249         signals and interrupts.
41250
41251         * 5zintman.ads: New File.
41252
41253         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
41254         add exception signals to the set of unmasked signals.
41255
41256         * 5ztaprop.adb:
41257         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
41258         between signals and interrupts.
41259         Add to Unblocked_Signal_Mask the set of signals that are in
41260         Keep_Unmasked.
41261
41262         * 7sinmaop.adb:
41263         Adding a check to see whether the Interrupt_ID we want to unmask is in
41264         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
41265         reason is that the index type of the Keep_Unmasked array is not always
41266         Interrupt_ID; it may be a subtype of Interrupt_ID.
41267
41268 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
41269
41270         * exp_util.adb:
41271         (Remove_Side_Effects): Condition constantness of object created for a
41272          an unchecked type conversion on the constantness of the expression
41273          to ensure the correct value for 'Constrained when passing components
41274          of view-converted class-wide objects.
41275
41276 2003-11-24  Robert Dewar  <dewar@gnat.com>
41277
41278         * par-load.adb (Load): Improve handling of misspelled and missing units
41279         Removes several cases of compilation abandoned messages
41280
41281         * lib.adb: (Remove_Unit): New procedure
41282
41283         * lib.ads: (Remove_Unit): New procedure
41284
41285         * lib-load.adb: Minor reformatting
41286
41287 2003-11-24  Vincent Celier  <celier@gnat.com>
41288
41289         * make.adb:
41290         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
41291         (Marking_Label): Label to mark processed source files. Incremented for
41292         each executable.
41293         (Gnatmake): Increase Marking_Labet for each executable
41294         (Is_Marked): Compare against marking label
41295         (Mark): Mark with marking label
41296
41297 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
41298
41299         * s-thread.ads:
41300         Move the declaration of the TSD for System.Threads to System.Soft_Links.
41301         Add some comments.
41302
41303         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
41304         (rts-cert): build a single relocatable object for the run-time lib.
41305         Fix perms.
41306
41307 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
41308
41309         * Make-lang.in:
41310         Use gnatls rather than gcc to obtain the location of GNAT RTL for
41311         crosstools build.
41312
41313 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
41314
41315         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
41316         can not use it as before (that is, as a variable) when dumping it into
41317         the tree file. Add a local variable to store the result of this
41318         function and to be used as the string to be written into the tree.
41319
41320         * scn.adb (Initialize_Scanner): Add comments explaining the recent
41321         changes.
41322
41323         * sinput.adb (Source_First, Source_Last): In case of
41324         Internal_Source_File, replace returning attributes of
41325         Internal_Source_Ptr (which is wrong) with returning attributes of
41326         Internal_Source.
41327
41328 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
41329
41330         * sem_ch3.adb:
41331         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
41332         used for implicit concatenation operators.
41333         Code cleanup.
41334
41335         * sem_elab.adb:
41336         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
41337         task bodies that are in the scope of a Suppress pragma.
41338         (Check_A Call): Use the flag to prevent spurious elaboration checks.
41339
41340         * sinfo.ads, sinfo.adb:
41341         New flag No_Elaboration_Check on function/procedure calls, to properly
41342         suppress checks on calls in task bodies that are within a local suppress
41343         pragma.
41344
41345         * exp_ch4.adb:
41346         (Expand_Concatenate_Other): Use the proper integer type for the
41347         expression for the upper bound, to avoid universal_integer computations
41348         when possible.
41349
41350 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
41351
41352         * .cvsignore: Delete.
41353
41354 2003-11-21  Andreas Schwab  <schwab@suse.de>
41355
41356         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
41357
41358 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
41359
41360         * 5wsystem.ads: Enable zero cost exception.
41361
41362 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
41363
41364         * 5ztiitho.adb: Remove an unreferenced variable.
41365
41366 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
41367
41368         * adaint.c: For FreeBSD, use mkstemp.
41369
41370 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
41371
41372         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
41373
41374 2003-11-21  Robert Dewar  <dewar@gnat.com>
41375
41376         * bld.adb: Remove useless USE of gnatvsn
41377
41378         * gnatchop.adb: Minor reformatting
41379         Clean up version handling to be more consistent
41380
41381         * gnatxref.adb: Minor reformatting
41382
41383         * gprcmd.adb: Minor reformatting
41384         Fix output of copyright to be more consistent with other tools
41385
41386 2003-11-21  Vincent Celier  <celier@gnat.com>
41387
41388         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
41389
41390 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
41391
41392         * atree.adb (Initialize): Add initializations for global variables
41393         used in New_Copy_Tree.
41394
41395         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
41396         Internal_Source_File as the actual).
41397         Put the set of statements creating Any_Character before the set of
41398         statements creating Any_Array to have Any_Character fully initialized
41399         when it is used in creating Any_Array.
41400
41401         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
41402         not call Scan in case if the actual is Internal_Source_File
41403         Add 2003 to copyright note.
41404
41405         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
41406         processing Internal_Source_File.
41407
41408         * types.ads: Add the constant Internal_Source_File representing the
41409         source buffer for artificial source-code-like strings created within
41410         the compiler (the definition of Source_File_Index is changed).
41411
41412 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
41413
41414         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
41415         56system.ads: New file, FreeBSD version.
41416
41417 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
41418
41419         * Make-lang.in (ada.extraclean): Delete.
41420
41421 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
41422
41423         * gnatmem.adb: Clean up verbose output.
41424
41425         * gprcmd.adb: Change copyright to FSF.
41426
41427 2003-11-19  Vincent Celier  <celier@gnat.com>
41428
41429         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
41430         and Version (ignored).
41431
41432         * symbols.ads: (Policy): New type
41433         (Initialize): New parameter Reference, Symbol_Policy and
41434         Library_Version.
41435         Remove parameter Force.
41436         Minor reformatting.
41437
41438         * snames.ads, snames.adbadb: New standard names
41439         Library_Reference_Symbol_File and Library_Symbol_Policy
41440
41441         * mlib-prj.adb:
41442         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
41443         project.
41444
41445         * mlib-tgt.adb:
41446         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
41447
41448         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
41449
41450         * prj.adb: (Project_Empty): New component Symbol_Data
41451
41452         * prj.ads: (Policy, Symbol_Record): New types
41453         (Project_Data): New component Symbol_Data
41454
41455         * prj-attr.adb:
41456         New attributes Library_Symbol_File, Library_Symbol_Policy and
41457         Library_Reference_Symbol_File.
41458
41459         * prj-nmsc.adb:
41460         (Ada_Check): When project is a Stand-Alone library project, process
41461         attribute Library_Symbol_File, Library_Symbol_Policy and
41462         Library_Reference_Symbol_File.
41463
41464         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
41465         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
41466         5sml-tgt.adb (Build_Dynamic_Library): New parameter
41467         Symbol_Data (ignored).
41468
41469         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
41470         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
41471         functions Option_File_Name and Version_String. Set new options of
41472         gnatsym related to symbol file, symbol policy and reference symbol
41473         file.
41474
41475         * 5vsymbol.adb:
41476         Extensive modifications to take into account the reference symbol file,
41477         the symbol policy, the library version and to put in the symbol file the
41478         minor and major IDs.
41479
41480         * bld.adb (Process_Declarative_Items): Put second argument of
41481         gprcmd to_absolute between single quotes, to avoid problems with
41482         Windows.
41483
41484         * bld-io.adb: Update Copyright notice.
41485         (Flush): Remove last character of a line, if it is a back slash, to
41486         avoid make problems.
41487
41488         * gnatsym.adb:
41489         Implement new scheme with reference symbol file and symbol policy.
41490
41491         * g-os_lib.ads: (Is_Directory): Clarify comment
41492
41493 2003-11-19  Robert Dewar  <dewar@gnat.com>
41494
41495         * atree.adb: Move New_Copy_Tree global variables to head of package
41496
41497         * errout.adb: Minor reformatting
41498
41499 2003-11-19  Javier Miranda  <miranda@gnat.com>
41500
41501         * sem_ch4.adb: (Diagnose_Call): Improve error message.
41502         Add reference to Ada0Y (AI-50217)
41503
41504         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
41505         sem_util.adb: Add reference to AI-50217
41506
41507         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
41508
41509         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
41510
41511         * sem_aggr.adb: Complete documentation of AI-287 changes
41512
41513         * par-ch4.adb: Document previous changes.
41514
41515         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
41516         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
41517         Ada0Y (AI-50217)
41518
41519         * exp_aggr.adb: Add references to AI-287 in previous changes
41520
41521 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
41522
41523         * exp_ch6.adb:
41524         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
41525         in the rewriting is the result of an inlined call.
41526
41527         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
41528         parameter is a type conversion, use original node to construct the
41529         post-call assignment, because expression may have been rewritten, e.g.
41530         if it is a packed array.
41531
41532         * sem_attr.adb:
41533         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
41534         body, just as it is in an instance.
41535         Categorization routines
41536
41537         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
41538         Instantiate_Object): Set proper sloc reference for message on missing
41539         actual.
41540
41541 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
41542
41543         * Makefile.in: Add FreeBSD libgnat pairs.
41544
41545         * usage.adb: Fix typo in usage message.
41546
41547 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
41548
41549         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
41550         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
41551         pragma Thread_Body.
41552         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
41553
41554         * s-thread.adb: This file is now a dummy implementation of
41555         System.Thread.
41556
41557 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
41558
41559         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
41560
41561 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
41562
41563         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41564         instanciation references in the parent type description.
41565
41566 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41567
41568         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
41569
41570         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
41571         TYPE_PRECISION directly from esize.
41572
41573 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
41574
41575         * cstreams.c:
41576         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
41577
41578         * init.c: Initialization routines for FreeBSD
41579
41580         * link.c: Link info for FreeBSD
41581
41582         * sysdep.c: Add the case of FreeBSD
41583
41584 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
41585
41586         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
41587         already called in System.Threads.
41588
41589         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
41590         environment task, as it has been moved to System.Threads.Initialization.
41591
41592 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
41593
41594         * adaint.c (__gnatlib_install_locks): Only reference
41595         __gnat_install_locks on VMS, since other platforms can avoid using
41596         --enable-threads=gnat
41597
41598 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41599
41600         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
41601
41602         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
41603         TYPE_PACKED_ARRAY_TYPE_P.
41604         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
41605
41606         Part of PR ada/12806
41607         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
41608         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
41609
41610 2003-11-17  Vincent Celier  <celier@gnat.com>
41611
41612         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
41613         to False.
41614         Do not set exit status to Failure when Warning is True.
41615         (Gnatchop): Make errors "no compilation units found" and
41616         "no source files written" warnings only.
41617
41618         * make.adb (Gnatmake): When using a project file, set
41619         Look_In_Primary_Dir to False.
41620         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
41621         and Local_Configuration_Pragmas in the project where they are declared
41622         not an extending project which might have inherited them.
41623
41624         * osint.adb (Locate_File): If Name is already an absolute path, do not
41625         look for a directory.
41626
41627         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
41628         -gnats (Check_Syntax) is used, issue only a warning, not an error.
41629
41630         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
41631         in objects of type Variable_Value.
41632
41633         * prj.ads: (Variable_Value): New component Project
41634
41635         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
41636         is in a project extended by Project.
41637
41638         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
41639         Project of Variable_Values to this new parameter value.
41640         (Expression): Set component Project of Variable_Values.
41641         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
41642         Set the component Project in array elements.
41643
41644 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
41645
41646         * errout.adb: (Initialize): Add initialization for error nodes.
41647
41648         * sem_ch12.adb (Initialize): Add missing initializations for
41649         Exchanged_Views and Hidden_Entities.
41650
41651 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
41652
41653         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
41654         already instantiated tree for use in subsequent inlining.
41655         (Analyze_Associations, Instantiate_Formal_Subprogram,
41656         Instantiate_Object): improve error message for mismatch in
41657         instantiations.
41658
41659         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
41660         instantiations of subprograms declared in instances.
41661
41662 2003-11-17  Javier Miranda  <miranda@gnat.com>
41663
41664         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
41665         executed only under the Extensions_Allowed flag.
41666
41667 2003-11-17  Robert Dewar  <dewar@gnat.com>
41668
41669         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
41670         zeroes suppressed.
41671         (Address_Image): Fix bug of returning 0x instead of 0x0
41672         Minor reformatting (function specs).
41673
41674         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
41675         (missed case of 33-63)
41676
41677         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
41678
41679         * s-thread.adb: Add comments for pragma Restriction
41680
41681         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
41682         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
41683
41684 2003-11-17  Ed Falis  <falis@gnat.com>
41685
41686         * s-thread.adb: Added No_Tasking restriction for this implementation.
41687
41688 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
41689
41690         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41691         instanciation references in the parent type description.
41692
41693 2003-11-17  GNAT Script  <nobody@gnat.com>
41694
41695         * Make-lang.in: Makefile automatically updated
41696
41697 2003-11-16  Jason Merrill  <jason@redhat.com>
41698
41699         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
41700         and TAGS files that include them for each front end.
41701
41702 2003-11-14  Andreas Jaeger  <aj@suse.de>
41703
41704         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
41705         is the canonical version.
41706         * misc.c (gnat_handle_option): Likewise.
41707
41708         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
41709
41710         * 5nsystem.ads: New file for x86_64-linux-gnu.
41711
41712 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
41713
41714         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
41715
41716         * comperr.adb: Fix logic in previous change.
41717
41718 2003-11-13  Vincent Celier  <celier@gnat.com>
41719
41720         * 5bml-tgt.adb (Build_Dynamic_Library): Use
41721         Osint.Include_Dir_Default_Prefix instead of
41722         Sdefault.Include_Dir_Default_Name.
41723
41724         * gnatlbr.adb: Update Copyright notice
41725         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
41726         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
41727         instead of Sdefault.Object_Dir_Default_Name
41728
41729         * gnatlink.adb:
41730         (Process_Binder_File): Never suppress the option following -Xlinker
41731
41732         * mdll-utl.adb:
41733         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
41734         Sdefault.Object_Dir_Default_Name.
41735
41736         * osint.ads, osint.adb:
41737         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
41738         Minor reformatting.
41739
41740         * vms_conv.ads: Minor reformating
41741         Remove GNAT STANDARD and GNAT PSTA
41742
41743         * vms_conv.adb:
41744         Allow GNAT MAKE to have several files on the command line.
41745         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
41746         Sdefault.Object_Dir_Default_Name.
41747         Minor Reformating
41748         Remove data for GNAT STANDARD
41749
41750         * vms_data.ads:
41751         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
41752         Remove data for GNAT STANDARD
41753         Remove options and documentation for -gnatwb/-gnatwB: these warning
41754         options no longer exist.
41755
41756 2003-11-13  Ed Falis  <falis@gnat.com>
41757
41758         * 5zthrini.adb: (Init_RTS): Made visible
41759
41760         * 5zthrini.adb:
41761         (Register): Removed unnecessary call to taskVarGet that checked whether
41762          an ATSD was already set as a task var for the argument thread.
41763
41764         * s-thread.adb:
41765         Updated comment to reflect that this is a VxWorks version
41766         Added context clause for System.Threads.Initialization
41767         Added call to System.Threads.Initialization.Init_RTS
41768
41769 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
41770
41771         * 5zthrini.adb:
41772         (Init_RTS): New procedure, for the initialization of the run-time lib.
41773
41774         * s-thread.adb:
41775         Remove dependancy on System.Init, so that this file can be used in the
41776         AE653 sequential run-time lib.
41777
41778 2003-11-13  Robert Dewar  <dewar@gnat.com>
41779
41780         * bindgen.adb: Minor reformatting
41781
41782 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
41783
41784         * checks.adb:
41785         (Apply_Discriminant_Check): Do no apply check if target type is derived
41786         from source type with no applicable constraint.
41787
41788         * lib-writ.adb:
41789         (Ensure_System_Dependency): Do not apply the style checks that may have
41790         been specified for the main unit.
41791
41792         * sem_ch8.adb:
41793         (Find_Selected_Component): Further improvement in error message, with
41794         RM reference.
41795
41796         * sem_res.adb:
41797         (Resolve): Handle properly the case of an illegal overloaded protected
41798         procedure.
41799
41800 2003-11-13  Javier Miranda  <miranda@gnat.com>
41801
41802         * exp_aggr.adb:
41803         (Has_Default_Init_Comps): New function to check the presence of
41804         default initialization in an aggregate.
41805         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
41806         extension aggregate of a limited record. In addition, a new formal
41807         was added to do not initialize the record controller (if any) during
41808         this recursive expansion of ancestors.
41809         (Init_Controller): Add support for limited record components.
41810         (Expand_Record_Aggregate): In case of default initialized components
41811         convert the aggregate into a set of assignments.
41812
41813         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
41814         describing the new syntax.
41815         Nothing else needed to be done because this subprogram delegates part of
41816         its work to P_Precord_Or_Array_Component_Association.
41817         (P_Record_Or_Array_Component_Association): Give support to the new
41818         syntax for default initialization of components.
41819
41820         * sem_aggr.adb:
41821         (Resolve_Aggregate): Relax the strictness of the frontend in case of
41822         limited aggregates.
41823         (Resolve_Record_Aggregate): Give support to default initialized
41824         components.
41825         (Get_Value): In case of default initialized components, duplicate
41826         the corresponding default expression (from the record type
41827         declaration). In case of default initialization in the *others*
41828         choice, do not check that all components have the same type.
41829         (Resolve_Extension_Aggregate): Give support to limited extension
41830         aggregates.
41831
41832         * sem_ch3.adb:
41833         (Check_Initialization): Relax the strictness of the front-end in case
41834         of aggregate and extension aggregates. This test is now done in
41835         Get_Value in a per-component manner.
41836
41837         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
41838         expression corresponds to a limited aggregate. This test is now done
41839         in Get_Value.
41840
41841         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
41842         Box_Present flag.
41843
41844         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
41845         present in an N_Component_Association node
41846
41847 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
41848
41849         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
41850         type-conformant entry only if they are homographs.
41851
41852 2003-11-13  GNAT Script  <nobody@gnat.com>
41853
41854         * Make-lang.in: Makefile automatically updated
41855
41856 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41857
41858         * adadecode.c: Use <> form of include for ctype.h.
41859         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
41860
41861 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41862
41863         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
41864         Works around PR middle-end/6552.
41865
41866 2003-11-10  Ed Falis  <falis@gnat.com>
41867
41868         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
41869
41870         * 5zinit.adb: (Install_Handler): Moved back to spec
41871         (Install_Signal_Handlers): Deleted
41872
41873         * 5zthrini.adb: Added context clause for System.Storage_Elements
41874         (Register): Only handles creation of taskVar; initialization moved to
41875         Thread_Body_Enter.
41876         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
41877         Added declaration of environment task secondary stack and
41878         initialization.
41879
41880         * s-thread.adb: Implement bodies for thread body processing
41881
41882         * s-thread.ads:
41883         Added comment identifying supported targets for pragma Thread_Body.
41884
41885 2003-11-10  Pascal Obry  <obry@gnat.com>
41886
41887         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
41888         GNAT_MAX_PATH_LEN.
41889
41890         * s-fileio.adb:
41891         (Open): Properly check for string length before copying into the buffer.
41892         Raises Name_Error if buffer is too small. Note that this was a potential
41893         buffer overflow.
41894
41895 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
41896
41897         * bindgen.adb, comperr.adb: Code clean ups.
41898         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
41899
41900 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
41901
41902         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
41903
41904 2003-11-10  Vincent Celier  <celier@gnat.com>
41905
41906         * gprcmd.adb:
41907         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
41908         installation.
41909
41910         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
41911
41912         * prj.adb: (Project_Empty): Add new boolean component Virtual
41913
41914         * prj.ads: (Virtual_Prefix): New constant string
41915         (Project_Data): New boolean component Virtual
41916
41917         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
41918         a library project is extended by a virtual extending project.
41919
41920         * prj-part.adb:
41921         Modifications throughout to implement extending-all project, including:
41922         (Virtual_Hash, Processed_Hash): New hash tables
41923         (Create_Virtual_Extending_Project): New procedure
41924         (Look_For_Virtual_Projects_For): New procedure
41925
41926         * prj-proc.adb:
41927         (Process): After checking the projects, if main project is an
41928         extending-all project, set the object directory of all virtual extending
41929         project to the object directory of the main project.
41930         Adjust error message when a virtual extending project has the same
41931         object directory as an project being extended.
41932         (Recursive_Process): If name starts with the virtual prefix, set Virtual
41933         to True in the project data.
41934
41935         * prj-tree.adb:
41936         (Default_Project_Node): Add new boolean component Extending_All
41937         (Is_Extending_All): New function
41938         (Set_Is_Extending_All): New procedure
41939
41940         * prj-tree.ads: (Is_Extending_All): New function
41941         (Set_Is_Extending_All): New procedure
41942         (Project_Node_Record): New boolean component Extending_All
41943
41944         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
41945
41946         * vms_data.ads:
41947         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
41948
41949         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
41950         "gprcmd prefix" to define it.
41951
41952 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
41953
41954         * einfo.ads: Fix a typo and remove an extraneous word in comments.
41955
41956         * lib-load.adb:
41957         (Create_Dummy_Package_Unit): Set the scope of the entity for the
41958         created dummy package to Standard_Standard, not to itself, to
41959         defend other parts of the front-end against encoutering a cycle in
41960         the scope chain.
41961
41962         * sem_ch10.adb:
41963         (Analyze_With_Clause): When setting the entities for the successive
41964         N_Expanded_Names that constitute the name of a child unit, do not
41965         attempt to go further than Standard_Standard in the chain of scopes.
41966         This case arises from the placeholder units created by
41967         Create_Dummy_Package_Unit in the case of a with_clause for a
41968         nonexistent child unit.
41969
41970 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
41971
41972         * exp_ch6.adb:
41973         (Expand_Thread_Body): Place subprogram on scope stack, so that new
41974         declarations are given the proper scope.
41975
41976         * sem_ch13.adb:
41977         (Check_Expr_Constants): Reject an expression that contains a constant
41978         created during expansion, and that appears after the object to which
41979         the address clause applies.
41980
41981         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
41982         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
41983         that uses 'Range of a function call with controlled components, so
41984         that the function result can be finalized before starting the loop.
41985
41986         * sem_ch8.adb:
41987         (Find_Selected_Component): Improve error message when prefix is
41988         an implicit dereference of an incomplete type.
41989
41990 2003-11-10  Robert Dewar  <dewar@gnat.com>
41991
41992         * opt.ads: New Print_Standard flag for -gnatS switch
41993
41994         * sem_ch13.adb: Remove some additional checks for unaligned arrays
41995
41996         * cstand.adb (Create_Standard): Print out package standard if -gnatS
41997         switch set
41998
41999         * debug.adb: Update doc for -gnatds to discuss relationship with new
42000         -gnatS flag
42001
42002         * sinfo.adb: Add new field Entity_Or_Associated_Node
42003
42004         * sinfo.ads: Add new field Entity_Or_Associated_Node
42005         Update documentation for Associated_Node and Entity fields to clarify
42006         relationship and usage.
42007
42008         * sprint.adb:
42009         (Write_Id): Properly process Associated_Node field in generic template
42010
42011         * switch-c.adb:
42012         Recognize new -gnatS switch for printing package Standard
42013         This replaces gnatpsta
42014
42015         * usage.adb:
42016         Add line for  new -gnatS switch for printing package Standard
42017         This replaces gnatpsta
42018
42019 2003-11-10  Andreas Jaeger  <aj@suse.de>
42020
42021         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
42022         integer.
42023
42024 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
42025
42026         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
42027         by gnat1.
42028
42029 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
42030
42031         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
42032         no longer needed.
42033
42034         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
42035
42036         * sysdep.c: Add handling of cygwin.
42037
42038 2003-11-10  GNAT Script  <nobody@gnat.com>
42039
42040         * Make-lang.in: Makefile automatically updated
42041
42042 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
42043
42044         PR 12950
42045         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
42046         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
42047         Replace GNAT_ROOT by GCC_ROOT.
42048
42049         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
42050
42051 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
42052
42053         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
42054         and update for changed meaning of GET_MODE_BITSIZE.
42055
42056 2003-11-04  Doug Rupp  <rupp@gnat.com>
42057
42058         * sysdep.c: Problem discovered during IA64 VMS port.
42059         [VMS] #include <unixio.h> to get proper prototypes.
42060
42061         * adaint.c:
42062         Issues discovered/problems fixed during IA64 VMS port.
42063         [VMS] #define _POSIX_EXIT for proper semantics.
42064         [VMS] #include <unixio.h> for proper prototypes.
42065         [VMS] (fork): #define IA64 version.
42066         (__gnat_os_exit): Remove unnecessary VMS specific code.
42067
42068 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42069
42070         Part of PR ada/12806
42071         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
42072         tree, not integer.
42073
42074         * decl.c:
42075         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
42076         not integer.
42077
42078         * targtyps.c, decl.c, misc.c,
42079         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
42080         routines to work around change in FP sizing semantics in GCC.
42081
42082         * utils.c:
42083         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
42084
42085         * gigi.h: (enumerate_modes): New function.
42086
42087         * Make-lang.in: (ada/misc.o): Add real.h.
42088
42089         * misc.c: (enumerate_modes): New function.
42090
42091 2003-11-04  Robert Dewar  <dewar@gnat.com>
42092
42093         * 3vtrasym.adb: Minor reformatting
42094         Use terminology encoded/decoded name, rather than C++ specific notion
42095         of mangling (this is the terminology used throughout GNAT).
42096
42097         * einfo.h: Regenerated
42098
42099         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
42100
42101         * exp_ch6.adb:
42102         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
42103
42104         * par-prag.adb: Add dummy entry for Thread_Body pragma
42105
42106         * rtsfind.ads:
42107         Add entries for System.Threads entities for thread body processing
42108
42109         * sem_attr.adb:
42110         (Analyze_Pragma, Access attributes): Check these are not applied to a
42111         thread body, since this is not permitted
42112
42113         * sem_prag.adb: Add processing for Thread_Body pragma.
42114         Minor comment fix.
42115
42116         * sem_res.adb:
42117         (Resolve_Call): Check for incorrect attempt to call a thread body
42118          procedure with a direct call.
42119
42120         * snames.ads, snames.adb: Add entry for Thread_Body pragma
42121         Add names associated with thread body expansion
42122
42123         * snames.h: Add entry for Thread_Body pragma
42124
42125         * s-thread.adb: Add entries for thread body processing
42126         These are dummy bodies so far
42127
42128         * s-thread.ads: Add documentation on thread body handling.
42129         Add entries for thread body processing.
42130
42131 2003-11-04  Javier Miranda  <miranda@gnat.com>
42132
42133         * sem_ch10.adb:
42134         (Build_Limited_Views): Return after posting an error in case of limited
42135         with_clause on subprograms, generics, instances or generic renamings
42136         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
42137         on subprograms, generics, instances or generic renamings
42138
42139 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
42140
42141         * raise.c (setup_to_install): Correct mistake in last revision; two
42142         arguments out of order.
42143
42144         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
42145         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
42146         notice, missed in previous change.
42147         Remove trailing blanks and other style errors introduced in previous
42148         change.
42149
42150 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
42151
42152         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
42153         rid of the wrapper for a LJM type, ensuring we don't do that if the
42154         field is addressable.  This avoids potential low level type view
42155         mismatches later on, for instance in a by-reference argument passing
42156         process.
42157
42158 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42159
42160         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
42161         aligned at byte boundary.
42162
42163 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
42164
42165         * decl.c (components_to_record): Do not delete the empty variants from
42166         the end of the union type.
42167
42168 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
42169
42170         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
42171         operation for a derived type, an explicit declaration may use a local
42172         subtype of Boolean.
42173
42174 2003-11-04  Vincent Celier  <celier@gnat.com>
42175
42176         * make.adb (Gnatmake): Allow main sources on the command line with a
42177         library project when it is only for compilation (no binding or
42178         linking).
42179
42180 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
42181
42182         * Makefile.in: Remove many duplicate variables.
42183
42184 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
42185
42186         * Make-lang.in (dvi): Move targets to $(docobjdir).
42187         (gnat_ug_vms.dvi): Simplify rule and adjust target.
42188         (gnat_ug_wnt.dvi): Likewise.
42189         (gnat_ug_unx.dvi): Likewise.
42190         (gnat_ug_vxw.dvi): Likewise.
42191         (gnat_rm.dvi): Likewise.
42192         (gnat-style.dvi): Likewise.
42193
42194 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
42195
42196         * gigi.h: Missed commit from update for C90.
42197
42198 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
42199
42200         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
42201
42202 2003-10-31  Andreas Schwab  <schwab@suse.de>
42203
42204         * raise.c (get_action_description_for): Fix typo in last change.
42205
42206 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
42207
42208         PR ada/12761
42209         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
42210         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
42211
42212 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
42213
42214         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
42215         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
42216         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
42217         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
42218         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
42219
42220 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
42221
42222         * 3vtrasym.adb:
42223         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
42224         numbers when symbol name is too long.
42225
42226 2003-10-30  Ed Falis  <falis@gnat.com>
42227
42228         * g-signal.ads, g-signal.adb: New files
42229
42230         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
42231
42232         * Makefile.rtl: Introduce GNAT.Signals
42233
42234 2003-10-30  Robert Dewar  <dewar@gnat.com>
42235
42236         * freeze.adb: Minor reformatting
42237
42238         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
42239
42240         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
42241         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
42242         New handling of Id_Check parameter to improve recognition of keywords
42243         used as identifiers.
42244         Update copyright notice to include 2003
42245
42246 2003-10-29  Robert Dewar  <dewar@gnat.com>
42247
42248         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
42249         sem_ch10.adb: Minor reformatting
42250
42251         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
42252         (Expand_Assign_Record): Test right hand side for bit unaligned as well
42253
42254 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
42255
42256         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
42257         Support for TBK$SYMBOLIZE-based symbolic traceback.
42258
42259 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
42260
42261         * exp_disp.adb:
42262         Revert previous change, that did not work well when pragma No_Run_Time
42263         was used in conjunction with a run-time other than ZFP.
42264
42265 2003-10-29  Vincent Celier  <celier@gnat.com>
42266
42267         * make.adb:
42268         (Gnatmake): When there are no Ada mains in attribute Main, disable the
42269          bind and link steps only is switch -z is not used.
42270
42271 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
42272
42273         * Makefile.generic: Remove duplicated setting of CC.
42274
42275         * Makefile.prolog: Set CC to gcc by default, to override make's
42276         default (cc).
42277
42278         * einfo.h: Regenerated.
42279
42280 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
42281
42282         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
42283         current body, after compiling subunit.
42284
42285         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
42286         when in deleted code, because gigi needs properly ordered freeze
42287         actions to annotate types.
42288
42289         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
42290         prevent the premature freezing of record type that contains
42291         subcomponents with a private type that does not yet have a completion.
42292
42293 2003-10-29  Javier Miranda  <miranda@gnat.com>
42294
42295         * sem_ch12.adb:
42296         (Analyze_Package_Instantiation): Check that instances can not be used in
42297         limited with_clauses.
42298
42299         * sem_ch8.adb:
42300         (Analyze_Package_Renaming): Check that limited withed packages cannot
42301         be renamed. Improve text on error messages related to limited
42302         with_clauses.
42303
42304         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
42305
42306         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
42307         Update copyright notice.
42308
42309         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
42310         (Install_Limited_Context_Clauses): New subprogram that isolates all the
42311         checks required for limited context_clauses and installs the limited
42312         view.
42313         (Install_Limited_Withed_Unit): Complete its documentation.
42314         (Analyze_Context): Check that limited with_clauses are only allowed in
42315         package specs.
42316         (Install_Context): Call Install_Limited_Context_Clauses after the
42317         parents have been installed.
42318         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
42319         package as 'From_With_Type'; this mark indicates that the limited view
42320         is installed. Used to check bad usages of limited with_clauses.
42321         (Build_Limited_Views): Do not add shadow entities to the scope's list
42322         of entities. Do not add real entities to the Non_Limited_Views chain.
42323         Improve error notification.
42324         (Remove_Context_Clauses): Remove context clauses in two phases:
42325         limited views first and regular views later (to maintain the
42326         stack model).
42327         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
42328         its visible entities.
42329
42330 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
42331
42332         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
42333         with any type that Is_Fixed_Point_Type.
42334
42335         * sinfo.ads: Fix documentation for Associated_Node attribute.
42336
42337 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
42338
42339         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
42340         both '-gnatc' and '-gnatt' are specified.
42341
42342         * atree.adb (Initialize): Add initialization for Node_Count (set to
42343         zero).
42344
42345 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42346
42347         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
42348         do not consider as Pure.
42349
42350         Part of implementation of function-at-a-time:
42351
42352         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
42353         (tree_transform): Add new argument to build_component_ref.
42354         (tree_transform, case N_Assignment_Statement): Make and return an
42355         EXPR_STMT.
42356         (tree_transform): If result IS_STMT, set flags and return it.
42357         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42358
42359         * utils2.c (build_simple_component_ref, build_component_ref): Add new
42360         arg, NO_FOLD_P.
42361         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
42362         (build_allocator): Likewise.
42363
42364         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
42365         Add new arg to build_component_ref.
42366         (maybe_unconstrained_array, unchecked_convert): Likewise.
42367
42368         * ada-tree.def (EXPR_STMT): New code.
42369
42370         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
42371
42372         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
42373         build_component_ref calls.
42374
42375         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
42376
42377         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42378         (build_component_ref): Add new argument, NO_FOLD_P.
42379
42380 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
42381
42382         * Makefile.generic: Add missing substitution on object_deps handling.
42383
42384         PR ada/5909
42385         * Make-lang.in (check-ada): Enable ACATS test suite.
42386
42387 2003-10-27  Robert Dewar  <dewar@gnat.com>
42388
42389         * exp_ch3.adb:
42390         (Freeze_Array_Type): We do not need an initialization routine for types
42391         derived from String or Wide_String. They should be treated the same
42392         as String and Wide_String themselves. This caused problems with the
42393         use of Initialize_Scalars.
42394
42395         * exp_ch5.adb:
42396         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
42397         composites. This allows use of component clauses that are not byte
42398         aligned.
42399
42400         * sem_prag.adb:
42401         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
42402         is an attempt to pack an array of atomic objects.
42403
42404         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
42405
42406 2003-10-27  Pascal Obry  <obry@gnat.com>
42407
42408         * g-dirope.adb:
42409         (Basename): Check for drive letters in a pathname only on DOS based OS.
42410
42411 2003-10-27  Vincent Celier  <celier@gnat.com>
42412
42413         * make.adb:
42414         (Gnatmake): When unable to change dir to the object dir, display the
42415         content of the parent dir of the obj dir, to try to understand why this
42416         happens.
42417
42418 2003-10-27  GNAT Script  <nobody@gnat.com>
42419
42420         * Make-lang.in: Makefile automatically updated
42421
42422 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
42423
42424         * sem_ch12.adb:
42425         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
42426         should not be done in Save/Restore_Scope_Stack, because it is performed
42427         locally.
42428
42429         * sem_ch8.adb:
42430         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42431         whether use clauses should be removed/restored.
42432
42433         * sem_ch8.ads:
42434         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42435         whether use clauses should be removed/restored.
42436
42437 2003-10-26  Andreas Jaeger  <aj@suse.de>
42438
42439         * Makefile.in: Remove duplicated lines.
42440
42441 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
42442
42443         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
42444         minimize the differences with ACT tree.
42445
42446         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
42447         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
42448         Gnatvsn.Gnat_Static_Version_String to reduce differences between
42449         ACT and FSF trees.
42450
42451 2003-10-24  Pascal Obry  <obry@gnat.com>
42452
42453         PR ada/12014
42454         * adadecode.c (ostrcpy): New function.
42455         (__gnat_decode): Use ostrcpy of strcpy.
42456         (has_prefix): Set first parameter a const.
42457         (has_suffix): Set first parameter a const.
42458         Update copyright notice. Fix source name in header.
42459         Removes a trailing space.
42460
42461 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
42462
42463         * exp_disp.adb:
42464         Remove the test against being in No_Run_Time_Mode before generating a
42465         call to Register_Tag. It is redundant with the test against the
42466         availability of the function Register_Tag.
42467
42468 2003-10-24  Vincent Celier  <celier@gnat.com>
42469
42470         * g-catiio.adb: (Month_Name): Correct spelling of February
42471
42472         * make.adb: (Mains): New package
42473         (Initialize): Call Mains.Delete
42474         (Gnatmake): Check that each main on the command line is a source of a
42475         project file and, if there are several mains, each of them is a source
42476         of the same project file.
42477         (Gnatmake): When a foreign language is specified in attribute Languages,
42478         no main is specified on the command line and attribute Mains is not
42479         empty, only build the Ada main. If there is no Ada main, just compile
42480         the Ada sources and their closure.
42481         (Gnatmake): If a main is specified on the command line with directory
42482         information, check that the source exists and, if it does, that the path
42483         is the actual path of a source of a project.
42484
42485         * prj-env.adb:
42486         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
42487         Full_Path is True, return the full path instead of the simple file name.
42488         (Project_Of): New function
42489
42490         * prj-env.ads:
42491         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
42492         defaulted to False.
42493         (Project_Of): New function
42494
42495 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
42496
42497         * Makefile.generic:
42498         Ensure objects of main project are always checked and rebuilt if needed.
42499         Set CC to gcc by default.
42500         Prepare new handling of link by creating a global archive (not activated
42501         yet).
42502
42503         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42504         stringt.h: Update copyright notice. Remove trailing blanks.
42505         Fix source name in header.
42506
42507 2003-10-24  Robert Dewar  <dewar@gnat.com>
42508
42509         * sem_ch12.adb: Minor reformatting
42510
42511         * sem_ch3.adb:
42512         Minor reformatting (including new function return style throughout)
42513
42514         * sem_ch3.ads:
42515         Minor reformatting (including new function return style throughout)
42516
42517 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
42518
42519         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42520         stringt.h: Update copyright notice. Remove trailing blanks.
42521         Fix source name in header.
42522
42523 2003-10-24  GNAT Script  <nobody@gnat.com>
42524
42525         * Make-lang.in: Makefile automatically updated
42526
42527 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
42528
42529         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
42530         stringt.h: Convert to ISO C90 declarations and definitions.
42531
42532 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
42533
42534         PR ada/11978
42535         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
42536         External_Tag attribute definition clauses.
42537
42538 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
42539
42540         PR ada/7613
42541         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
42542         child unit, generate a fully qualified name to avoid spurious errors
42543         when the context contains renamings of different child units with
42544         the same simple name.
42545
42546         * exp_dbug.ads: Add documentation on name qualification for renamings
42547         of child units.
42548
42549 2003-10-23  Robert Dewar  <dewar@gnat.com>
42550
42551         * g-regpat.ads, g-regpat.adb: Minor reformatting
42552
42553 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
42554
42555         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
42556
42557 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42558
42559         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
42560         Machine call.
42561
42562         * urealp.h: (Machine): Update to proper definition.
42563
42564 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
42565
42566         * init.c, adaint.c: Minor reformatting.
42567
42568 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
42569
42570         * adaint.c (w32_epoch_offset): Define static const at file level.
42571         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
42572         rather than t_create, t_access in call to GetFileTime. Use union
42573         to convert between FILETIME and  unsigned long long.
42574         (__gnat_file_time_name): Test for invalid file handle.
42575         (__gnat_set_filetime_name): Support win32 targets using
42576         w32api SetFileTime.
42577
42578 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
42579
42580         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
42581
42582         * ctrl_c.c (__gnat_int_handler): Remove declaration.
42583
42584         * decl.c (creat_concat_name):  Const-ify prefix.
42585
42586         * adaint.c: Include ctype.h if __MINGW32__.
42587         (__gnat_readlink): Mark arguments as possibly unused.
42588         (__gnat_symlink): Likewise.
42589         (__gnat_is_symbolic_link): Likewise.
42590         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
42591         declaration
42592         (__gnat_file_time_name): Don't declare struct stat statbuf when
42593         not needed.
42594         (__gnat_is_absolute_path): Add parenthesis around condition of
42595         'if' statement to avoid warning.
42596         (__gnat_plist_init): Specify void as parameter.
42597         (plist_enter): Likewise.
42598         (plist_leave): Likewise.
42599         (remove_handle): Make static. Initialize prev.
42600
42601 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
42602
42603         PR ada/10110
42604         * Makefile.in: Disable build of gnatpsta.
42605         * cstreams.c (__gnat_full_name): Minor improvements and clean up
42606         of previous change.
42607
42608 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
42609
42610         * tracebak.c (MAX): Avoid redefinition warning.
42611
42612         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
42613         Change msg to const char *.
42614         (__gnat_install_handler): Remove ss, unused.
42615         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
42616         to const char *.
42617         * cstreams.c (__gnat_full_name): Declare p only when used.
42618         (__gnat_full_name) [sgi] Return buffer.
42619
42620 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
42621
42622         * mingw32.h: New file.
42623         * gnat_wrapper.adb: New file.
42624
42625 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
42626
42627         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
42628         string match a pre compiled regular expression (the corresponding
42629         version of the function working on a raw regular expression)
42630         Fix typos in various comments
42631         Update copyright notice in spec
42632
42633 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
42634
42635         * exp_ch3.adb:
42636         (Component_Needs_Simple_Initialization): Return False when the type is a
42637         packed bit array. Revise spec comments to document this case.
42638
42639         * exp_prag.adb:
42640         (Expand_Pragma_Import): Set any expression on the imported object to
42641         empty to avoid initializing imported objects (in particular this
42642         covers the case of zero-initialization of bit arrays).
42643         Update copyright notice.
42644
42645 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
42646
42647         * sem_ch12.adb:
42648         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
42649         a subunit is missing.
42650         (Instantiate_Subprogram_Body): If body of function is missing, set type
42651         of return expression explicitly in dummy body, to prevent cascaded
42652         errors when a subunit is missing.
42653         Fixes PR 5677.
42654
42655         * sem_ch3.adb:
42656         (Access_Subprogram_Declaration): Verify that return type is valid.
42657         Fixes PR 8693.
42658
42659         * sem_elab.adb:
42660         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
42661         generic.
42662         Fixes PR 12318.
42663
42664         * sem_util.adb:
42665         (Corresponding_Discriminant): If the scope of the discriminant is a
42666         private type without discriminant, use its full view.
42667         Fixes PR 8247.
42668
42669 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
42670
42671         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
42672         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
42673         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
42674         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
42675         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
42676         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
42677         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
42678         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
42679         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
42680         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
42681         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
42682         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
42683         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
42684         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
42685         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
42686         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
42687         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
42688         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
42689         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
42690         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
42691         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
42692         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
42693         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
42694         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
42695         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
42696         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
42697         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
42698         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
42699         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
42700         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
42701         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
42702         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
42703         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
42704         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
42705         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
42706         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
42707         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
42708         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
42709         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
42710         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
42711         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
42712         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
42713         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
42714         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
42715         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
42716         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
42717         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
42718         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
42719         vms_conv.ads, vms_conv.adb, vms_data.ads,
42720         vxaddr2line.adb: Files added. Merge with ACT tree.
42721
42722         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
42723         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
42724         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
42725         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
42726         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
42727         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
42728         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
42729         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
42730         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
42731         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
42732
42733         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42734         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42735         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42736         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42737         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
42738         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
42739         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42740         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
42741         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
42742         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
42743         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
42744         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
42745         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
42746         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
42747         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
42748         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
42749         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
42750         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42751         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
42752         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
42753         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
42754         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
42755         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
42756         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
42757         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
42758         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
42759         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
42760         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
42761         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
42762         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
42763         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
42764         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
42765         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
42766         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
42767         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
42768         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
42769         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
42770         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
42771         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
42772         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
42773         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
42774         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
42775         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
42776         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
42777         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
42778         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
42779         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
42780         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
42781         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
42782         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
42783         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
42784         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
42785         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
42786         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
42787         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
42788         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
42789         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
42790         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
42791         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
42792         checks.adb, checks.ads, cio.c, comperr.adb,
42793         comperr.ads, csets.adb, cstand.adb, cstreams.c,
42794         debug_a.adb, debug_a.ads, debug.adb, decl.c,
42795         einfo.adb, einfo.ads, errout.adb, errout.ads,
42796         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
42797         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
42798         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
42799         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
42800         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
42801         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
42802         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
42803         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
42804         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
42805         fe.h, fmap.adb, fmap.ads, fname.adb,
42806         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
42807         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
42808         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
42809         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
42810         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
42811         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
42812         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
42813         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
42814         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
42815         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
42816         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
42817         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
42818         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
42819         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
42820         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
42821         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
42822         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
42823         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
42824         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
42825         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
42826         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
42827         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
42828         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
42829         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
42830         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
42831         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
42832         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
42833         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
42834         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
42835         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
42836         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
42837         layout.adb, lib.adb, lib.ads, lib-list.adb,
42838         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
42839         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42840         link.c, live.adb, make.adb, make.ads,
42841         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
42842         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
42843         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
42844         misc.c, mkdir.c, mlib.adb, mlib.ads,
42845         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
42846         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
42847         namet.adb, namet.ads, namet.h, nlists.ads,
42848         nlists.h, nmake.adt, opt.adb, opt.ads,
42849         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
42850         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
42851         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42852         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
42853         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
42854         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
42855         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
42856         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
42857         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
42858         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
42859         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
42860         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
42861         prj-util.adb, prj-util.ads, raise.c, raise.h,
42862         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
42863         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
42864         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
42865         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
42866         scans.ads, scn.adb, scn.ads, s-crc32.adb,
42867         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
42868         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42869         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
42870         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
42871         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
42872         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
42873         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
42874         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
42875         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
42876         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
42877         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
42878         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
42879         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
42880         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
42881         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
42882         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
42883         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
42884         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
42885         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
42886         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
42887         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
42888         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
42889         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
42890         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
42891         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
42892         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
42893         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
42894         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
42895         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
42896         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
42897         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
42898         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
42899         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
42900         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
42901         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
42902         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
42903         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
42904         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
42905         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
42906         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
42907         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42908         stringt.adb, stringt.ads, stringt.h, style.ads,
42909         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
42910         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
42911         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
42912         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
42913         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
42914         table.adb, table.ads, targparm.adb, targparm.ads,
42915         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
42916         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
42917         ttypes.ads, types.ads, types.h, uintp.adb,
42918         uintp.ads, uintp.h, uname.adb, urealp.adb,
42919         urealp.ads, urealp.h, usage.adb, utils2.c,
42920         utils.c, validsw.adb, validsw.ads, widechar.adb,
42921         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
42922         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
42923         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
42924         gnatvsn.ads: Merge with ACT tree.
42925
42926         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
42927
42928 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
42929
42930         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
42931         (gnat_ug_vmx.info): Likewise.
42932         (gnat_ug_vxw.info): Likewise.
42933         (gnat_ug_wnt.info): Likewise.
42934         (gnat_rm.info): Likewise.
42935         (gnat-style.info): Likewise.
42936
42937         * Make-lang.in (ada.install-info): Remove target.
42938         (info): New target.
42939         (install-info): Likewise.
42940         (gnat_ug_unx.info): Simplify rule.
42941         (gnat_ug_vmx.info): Likewise.
42942         (gnat_ug_vxw.info): Likewise.
42943         (gnat_ug_wnt.info): Likewise.
42944         (gnat_rm.info): Likewise.
42945         (gnat-style.info): Likewise.
42946
42947 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
42948
42949         * Make-lang.in: Replace uses of $(target_alias) with
42950         $(target_noncanonical).
42951         * ada/Makefile.in: Remove unused mention of $(target_alias).
42952
42953 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
42954
42955         * Make-lang.in (ada.info): Replace with ...
42956         (info): ... this.
42957         (ada.dvi): Replace with ...
42958         (dvi): ... this.
42959
42960 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
42961
42962         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
42963         initialize dconstp5 and dconstmp5.
42964
42965 2003-09-28  Richard Henderson  <rth@redhat.com>
42966
42967         * trans.c (tree_transform): Update call to expand_asm_operands.
42968
42969 2003-09-21  Richard Henderson  <rth@redhat.com>
42970
42971         * trans.c, utils.c: Revert.
42972
42973 2003-09-21  Richard Henderson  <rth@redhat.com>
42974
42975         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
42976         change to const.
42977
42978 2003-09-04  Michael Matz  <matz@suse.de>
42979
42980         * misc.c: Include "target.h".
42981         * Make-lang.in (misc.o): Add dependency on target.h.
42982
42983 2003-09-03  DJ Delorie  <dj@redhat.com>
42984
42985         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
42986         hook.
42987
42988 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
42989
42990         * Makefile.in: Update substitutions to match changes to
42991         configure.  Use include directives instead of @-insertions
42992         to read in host and target fragments.  Add a rule to
42993         regenerate ada/Makefile.
42994
42995 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
42996
42997         * lang-options.h: Remove.
42998         * lang.opt: Add help text.
42999
43000 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
43001
43002         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
43003         calls.
43004
43005 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
43006
43007         * misc.c (gnat_handle_option): Don't handle filenames.
43008
43009 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43010
43011         * Make-lang.in: Replace PWD with PWD_COMMAND.
43012         * Makefile.adalib: Likewise.
43013         * Makefile.in: Likewise.
43014
43015 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
43016
43017         * misc.c (gnat_argv): Revert last change.
43018         (gnat_handle_option, gnat_init_options): Copy arguments.
43019
43020 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
43021
43022         * misc.c (gnat_argv): Make const.
43023
43024 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
43025
43026         * misc.c (save_argc, save_argv): Keep non-static!
43027
43028 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
43029
43030         * misc.c (save_argc, save_argv): Make static.
43031         (gnat_init_options): New prototype.
43032         (gnat_init_options): Update.
43033
43034 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
43035
43036         * gnat_ug.texi: Remove unlikely characters from @vars.
43037         * gnat_ug_vms.texi: Regenerate.
43038
43039 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
43040
43041         * misc.c (record_code_position): Adjust emit_note call.
43042
43043 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
43044
43045         * misc.c (gnat_handle_option): Don't check for missing arguments.
43046
43047 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
43048
43049         * utils.c (end_subprog_body): Adjust expand_function_end call.
43050
43051 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
43052
43053         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
43054         Bind_Main_Program.
43055
43056 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
43057
43058         * lang.opt: Declare Ada.
43059         * misc.c (gnat_init_options): Update.
43060
43061 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
43062
43063         * utils.c (begin_subprog_body): Adjust init_function_start call.
43064
43065 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
43066
43067         * Make-lang.in: Update to use options.c and options.h.
43068         * misc.c: Include options.h not aoptions.h.
43069         (gnat_handle_option): Abort on unrecognized switch.
43070         (gnat_init_options): Request Ada switches.
43071
43072 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
43073
43074         * lang.opt: Add -Wall.
43075         * misc.c (gnat_handle_option): Handle it.
43076
43077 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
43078
43079         * misc.c (gnat_handle_option): Fix warnings.
43080
43081 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
43082
43083         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
43084
43085 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
43086
43087         * Make-lang.in: Update to handle command-line options.
43088         * lang.opt: New file.
43089         * misc.c: Include aoptions.h.
43090         (cl_options_count, cl_options): Remove.
43091         (gnat_handle_option): New.
43092         (gnat_decode_option): Remove.
43093         (LANG_HOOKS_DECODE_OPTION): Remove.
43094         (LANG_HOOKS_HANDLE_OPTION): Override.
43095
43096 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
43097
43098         * init.c, misc.c, trans.c, utils.c: Remove dead code.
43099
43100 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
43101
43102         * Makefile.in: Replace "host_canonical" with "host" for autoconf
43103         substitution.
43104
43105 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
43106
43107         * Make-lang.in: Update.
43108         * misc.c: Include opts.h. Define cl_options_count and cl_options.
43109
43110 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
43111
43112         * misc.c (gnat_init_options): Update.
43113
43114 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
43115
43116         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
43117         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
43118         __attribute__ ((__unused__)).
43119
43120 2003-06-05  Jan Hubicka  <jh@suse.cz>
43121
43122         * Make-lang.in:  Add support for stageprofile and stagefeedback
43123
43124 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
43125
43126         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
43127         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
43128
43129 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
43130
43131         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
43132         Remove non-VMS directive.
43133         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
43134         alternatives.
43135         (Examples of gnatls Usage): Remove VMS alternative.
43136
43137 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
43138
43139         PR ada/9953
43140         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
43141         and turn ZCX_By_Default back to False since the underlying support
43142         is not quite there yet.
43143
43144 2003-06-01  Andreas Jaeger  <aj@suse.de>
43145
43146         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
43147         and ROUND_TYPE_SIZE_UNIT.
43148
43149 2003-05-22   Geert Bosch  <bosch@gnat.com>
43150
43151         * gnat_rm.texi : Remove reference to Ada Core Technologies.
43152
43153 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
43154
43155         * trans.c (tree_transform): Use location_t and input_location
43156         directly.
43157         (build_unit_elab): Likewise.
43158         * utils.c (create_label_decl): Likewise.
43159
43160 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
43161
43162         * trans.c (tree_transform, build_unit_elab,
43163         set_lineno): Rename lineno to input_line.
43164         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
43165         end_subprog_body): Likewise.
43166         * utils2.c (build_call_raise): Likewise.
43167
43168 2003-05-01  Laurent Guerby  <guerby@acm.org>
43169
43170         PR ada/10546
43171         * 5iosinte.ads: Increase pthread_cond_t size to match recent
43172         LinuxThread and NPTL version, merge from ACT.
43173
43174 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
43175
43176         * utils.c (convert): No need to clear TREE_CST_RTL.
43177
43178 2003-04-23   Geert Bosch  <bosch@gnat.com>
43179
43180         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
43181         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
43182         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
43183         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
43184         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
43185         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
43186         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
43187         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
43188         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
43189         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
43190         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
43191         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
43192         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
43193         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
43194         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
43195         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
43196         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
43197         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
43198         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
43199         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
43200         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
43201         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
43202         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
43203         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
43204         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
43205         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
43206         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
43207         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
43208         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
43209         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
43210         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
43211         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
43212         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
43213         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
43214         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
43215         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
43216         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
43217         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
43218         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
43219         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
43220         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
43221         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
43222         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
43223         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
43224         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
43225         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
43226         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
43227         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
43228         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
43229         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
43230         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
43231         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
43232         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
43233         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
43234         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
43235         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
43236         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
43237         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
43238         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
43239         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
43240         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
43241         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
43242         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
43243         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
43244         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
43245         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
43246         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
43247         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
43248         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
43249         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
43250         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
43251         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
43252         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
43253         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
43254         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
43255         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
43256         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
43257         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
43258         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
43259         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
43260         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
43261         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
43262         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
43263         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
43264         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
43265         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
43266         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
43267         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
43268         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
43269         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
43270         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
43271         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
43272         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
43273         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
43274         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
43275         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
43276         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
43277         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
43278         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
43279         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
43280         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
43281         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
43282         ali.adb, ali.ads, alloc.ads, argv.c,
43283         atree.adb, atree.ads, atree.h, aux-io.c,
43284         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
43285         binde.adb, binde.ads, binderr.adb, binderr.ads,
43286         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
43287         butil.adb, butil.ads, cal.c, calendar.ads,
43288         casing.adb, casing.ads, ceinfo.adb, checks.adb,
43289         checks.ads, cio.c, comperr.adb, comperr.ads,
43290         config-lang.in, csets.adb, csets.ads, csinfo.adb,
43291         cstand.adb, cstand.ads, cuintp.c, debug.adb,
43292         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
43293         dec-io.ads, dec.ads, deftarg.c, directio.ads,
43294         einfo.adb, einfo.ads, elists.adb, elists.ads,
43295         elists.h, errno.c, errout.adb, errout.ads,
43296         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
43297         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
43298         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
43299         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
43300         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
43301         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
43302         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
43303         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
43304         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
43305         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
43306         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
43307         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
43308         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
43309         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
43310         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
43311         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
43312         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
43313         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
43314         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
43315         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
43316         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
43317         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
43318         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
43319         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
43320         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
43321         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
43322         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
43323         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
43324         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
43325         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
43326         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
43327         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
43328         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
43329         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
43330         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
43331         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
43332         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
43333         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
43334         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
43335         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
43336         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
43337         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
43338         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
43339         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
43340         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
43341         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
43342         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
43343         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
43344         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
43345         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
43346         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
43347         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
43348         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
43349         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
43350         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
43351         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
43352         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
43353         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
43354         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
43355         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
43356         lib.adb, lib.ads, live.adb, live.ads,
43357         machcode.ads, make.adb, make.ads, makeusg.adb,
43358         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
43359         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
43360         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
43361         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
43362         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
43363         mlib.ads, namet.adb, namet.ads, nlists.adb,
43364         nlists.ads, opt.adb, opt.ads, osint-b.adb,
43365         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
43366         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
43367         osint.ads, output.adb, output.ads, par-ch10.adb,
43368         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
43369         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
43370         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
43371         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
43372         par-tchk.adb, par-util.adb, par.adb, par.ads,
43373         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
43374         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
43375         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
43376         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
43377         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
43378         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
43379         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
43380         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
43381         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
43382         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
43383         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
43384         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
43385         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
43386         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
43387         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
43388         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
43389         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
43390         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43391         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
43392         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
43393         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
43394         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
43395         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43396         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
43397         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
43398         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
43399         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
43400         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
43401         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
43402         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
43403         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
43404         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
43405         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
43406         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
43407         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
43408         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
43409         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
43410         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
43411         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
43412         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
43413         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
43414         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
43415         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
43416         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
43417         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
43418         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
43419         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
43420         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
43421         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
43422         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
43423         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
43424         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
43425         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
43426         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
43427         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
43428         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
43429         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
43430         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
43431         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
43432         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
43433         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
43434         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
43435         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
43436         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
43437         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
43438         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
43439         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
43440         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
43441         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
43442         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
43443         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
43444         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
43445         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
43446         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
43447         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
43448         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
43449         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
43450         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
43451         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
43452         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
43453         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
43454         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
43455         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
43456         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
43457         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
43458         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
43459         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
43460         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
43461         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
43462         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
43463         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
43464         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
43465         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
43466         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
43467         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
43468         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
43469         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
43470         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
43471         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
43472         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
43473         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
43474         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
43475         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
43476         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
43477         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
43478         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
43479         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
43480         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
43481         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
43482         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
43483         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43484         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43485         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
43486         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
43487         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
43488         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
43489         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
43490         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
43491         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
43492         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
43493         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
43494         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
43495         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
43496         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
43497         snames.ads, sprint.adb, sprint.ads, stand.adb,
43498         stand.ads, stringt.adb, stringt.ads, style.adb,
43499         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
43500         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
43501         switch-m.ads, switch.adb, switch.ads, system.ads,
43502         table.adb, table.ads, targparm.adb, targparm.ads,
43503         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
43504         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
43505         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
43506         ttypef.ads, ttypes.ads, types.adb, types.ads,
43507         uintp.adb, uintp.ads, uname.adb, uname.ads,
43508         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
43509         usage.adb, usage.ads, validsw.adb, validsw.ads,
43510         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
43511         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
43512         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
43513         formatting and other trivial changes from ACT.
43514
43515 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
43516
43517         * gigi.h, utils2.c (build_constructor):
43518         Rename gnat_build_constructor. Use build_constructor.
43519         * decl.c (gnat_to_gnu_entity)
43520         * trans.c (tree_transform, pos_to_constructor, extract_values)
43521         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
43522         (unchecked_convert)
43523         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
43524         (fill_vms_descriptor):
43525         Update to match.
43526
43527 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
43528
43529         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
43530         * misc.c (gnat_tree_size): New function.
43531         (LANG_HOOKS_TREE_SIZE): Override.
43532
43533 2003-04-03  Jason Merrill  <jason@redhat.com>
43534
43535         * misc.c (gnat_adjust_rli): #if 0.
43536
43537 2003-03-31   Geert Bosch  <bosch@gnat.com>
43538
43539         PR ada/10020
43540         * link.c : Fix misspelled "const" keyword
43541
43542 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
43543
43544         PR c++/7086
43545         * utils2.c: Adjust calls to put_var_into_stack.
43546
43547 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
43548
43549         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
43550
43551 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
43552
43553         * misc.c (gnat_init): Update for new prototype.
43554
43555 2003-03-05  Olivier Hainque  <hainque@gnat.com>
43556
43557         ada/9961
43558         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
43559         warning, and fix return type for the IN_RTS && !SJLJ case.
43560
43561 2003-03-04  Tom Tromey  <tromey@redhat.com>
43562
43563         * Make-lang.in (ada.tags): New target.
43564
43565 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
43566
43567         ada/9911
43568         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
43569         wrapper, which name remains constant whatever underlying GCC
43570         scheme.
43571
43572         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
43573         the stable interface needed for a-except.
43574
43575 2003-03-02  Andreas Jaeger  <aj@suse.de>
43576
43577         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43578         gnat_ug_wnt.texi: Regenerate.
43579
43580 2003-03-02  Laurent Guerby  <guerby@acm.org>
43581
43582         * Makefile.in (install-gnatlib): Match previous change there
43583         so it works.
43584
43585 2003-02-28  Andreas Schwab  <schwab@suse.de>
43586
43587         * Make-lang.in (install-gnatlib): Change to ada directory before
43588         running make instead of using ada/Makefile directly.
43589
43590 2003-02-18  Ben Elliston  <bje@redhat.com>
43591
43592         Part of PR ada/9406
43593         * gnat_ug.texi (Binder output file): Grammar fix.
43594
43595 2003-02-18  Ben Elliston  <bje@redhat.com>
43596
43597         PR other/7350
43598         * 5qtaprop.adb (Sleep): Fix typo in comment.
43599
43600 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
43601
43602         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
43603         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43604         gnat_ug_wnt.texi: Regenerate.
43605
43606 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
43607
43608         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
43609         be created if necessary.
43610         (ada.install-common): Let $(DESTDIR)$(bindir) be created
43611         if necessary.  Remove erroneous and redundant gnatchop
43612         installation commands.  Test for gnatdll before attempting
43613         to install it.
43614         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
43615         and gnatdll from all plausible locations.
43616
43617 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
43618
43619         * utils2.c (build_unary_op): Don't check flag_volatile.
43620         * gnat_ug.texi: Remove -fvolatile from example.
43621         * gnat_ug_vxw.texi: Likewise.
43622
43623 2003-01-29  Laurent Guerby  <guerby@acm.org>
43624
43625         PR ada/8344
43626         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
43627         * Makefile.in: match previous change.
43628         * Make-lang.in: match previous change.
43629
43630 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
43631
43632         * 5rosinte.ads: Add SIGXCPU.
43633         * 5rtpopsp.adb: New file.
43634         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
43635         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
43636         specific file 5rtpopsp.adb.
43637         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
43638         is likely needed for all newlib targets.
43639         * init.c: Add RTEMS specific version of __gnat_initialize().
43640
43641 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43642
43643         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
43644
43645 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43646
43647         * init.c (__gnat_error_handler): Make msg const.
43648
43649         * gmem.c (convert_addresses): Move declaration ...
43650         * adaint.h: ... here.
43651         * adaint.c (convert_addresses): Adapt addrs type to match
43652         prototype.
43653
43654         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
43655
43656 2003-01-24  Andreas Schwab  <schwab@suse.de>
43657
43658         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
43659         size_t to avoid warning.
43660
43661 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
43662
43663         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
43664
43665 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
43666
43667         * gnat_rm.texi: Remove RCS version number.
43668
43669         * ada-tree.h (union lang_tree_node): Add chain_next option.
43670
43671 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
43672
43673         * Make-lang.in (ada.install-info, ada.install-common,
43674         ada.uninstall): Prepend $(DESTDIR) to the destination
43675         directory in all (un)installation commands.
43676         * Makefile.in (install-gnatlib, install-rts): Ditto.
43677
43678 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
43679
43680         * gnat_rm.texi, gnat_ug.texi: Use @copying.
43681         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43682         gnat_ug_wnt.texi: Regenerate.
43683
43684 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
43685
43686         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
43687         only.
43688         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
43689         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
43690         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
43691         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
43692         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
43693         $(srcdir)/doc/include/gcc-common.texi.
43694
43695 2002-12-15   Geert Bosch  <bosch@gnat.com>
43696
43697         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
43698
43699 2002-12-14   Geert Bosch  <bosch@gnat.com>
43700
43701         PR ada/5690
43702         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
43703         case of a body created for a Renaming_As_Body, on which
43704         conformance checks are not performed.
43705
43706 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
43707
43708         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
43709         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
43710         not already included.
43711         * Make-lang.in: Update dependencies.
43712
43713 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
43714         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
43715         solution to buffer overflow bug on GNU/Linux.
43716
43717 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
43718
43719         PR ada/5856
43720         PR ada/6919
43721         * bindgen.adb: Remove all references to Public_Version.
43722         * comperr.adb: Remove all references to Public_Version and
43723         GNATPRO_Version; correct bug reporting instructions.
43724         * comperr.ads: Change to match bug box.
43725         * gnatvsn.ads: Remove all references to Public version and
43726         GNATPRO version.
43727
43728 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
43729
43730         PR ada/6919
43731         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
43732         GNU/Linux.
43733
43734         PR ada/6558
43735         * config-lang.in: Remove diff_excludes.
43736
43737 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
43738
43739         PR ada/8358
43740         * trans.c (gnu_pending_elaboration_lists): New GC root.
43741         (build_unit_elab): Use..
43742
43743 2002-10-30   Geert Bosch  <bosch@gnat.com>
43744
43745         PR ada/6558
43746         * misc.c : Include optabs.h
43747
43748         * Make-lang.in (misc.o): Add dependency on optabs.h
43749
43750 2002-10-29   Geert Bosch  <bosch@gnat.com>
43751
43752         PR ada/6558
43753         * Make-lang.in (gnatbind): Depend on CONFIG_H
43754
43755 2002-10-29  Geert bosch  <bosch@gnat.com>
43756
43757         PR ada/6558
43758         * misc.c: Unrevert misc.c (1.13)
43759
43760 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
43761
43762         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
43763         maintainership comments.
43764
43765 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
43766
43767         PR ada/5904
43768         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
43769         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
43770         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
43771         7staprop.adb: Correct statements in comments about
43772         maintainership of GNAT.
43773
43774         PR ada/5904
43775         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
43776         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
43777         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
43778         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
43779         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
43780         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
43781         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
43782         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
43783         comments about maintainership of GNAT.
43784
43785         PR ada/6919 (forward port of patch for PR ada/5904)
43786         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
43787         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
43788         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
43789         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
43790         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
43791         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
43792         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
43793         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
43794         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
43795         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
43796         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
43797         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
43798         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
43799         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
43800         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
43801         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
43802         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
43803         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
43804         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
43805         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
43806         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
43807         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
43808         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
43809         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
43810         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
43811         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
43812         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
43813         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
43814         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
43815         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
43816         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
43817         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
43818         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
43819         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
43820         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
43821         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
43822         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
43823         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
43824         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
43825         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
43826         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
43827         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
43828         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
43829         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
43830         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
43831         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
43832         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
43833         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
43834         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
43835         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
43836         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
43837         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
43838         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
43839         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
43840         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
43841         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
43842         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
43843         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
43844         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
43845         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
43846         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
43847         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
43848         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
43849         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
43850         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
43851         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
43852         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
43853         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
43854         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
43855         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
43856         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
43857         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
43858         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
43859         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
43860         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
43861         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
43862         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
43863         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
43864         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
43865         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
43866         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
43867         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
43868         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
43869         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
43870         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
43871         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
43872         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
43873         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
43874         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
43875         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
43876         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
43877         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
43878         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
43879         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
43880         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
43881         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
43882         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
43883         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
43884         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
43885         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
43886         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
43887         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
43888         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
43889         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
43890         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
43891         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
43892         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
43893         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
43894         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
43895         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
43896         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
43897         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
43898         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
43899         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
43900         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
43901         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
43902         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
43903         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
43904         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
43905         par-endh.adb par-labl.adb par-load.adb par-prag.adb
43906         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
43907         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
43908         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
43909         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
43910         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
43911         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
43912         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
43913         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
43914         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
43915         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
43916         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
43917         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
43918         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
43919         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
43920         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
43921         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
43922         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
43923         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
43924         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
43925         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
43926         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
43927         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
43928         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
43929         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
43930         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
43931         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
43932         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
43933         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
43934         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
43935         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
43936         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
43937         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
43938         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
43939         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
43940         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
43941         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
43942         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
43943         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
43944         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
43945         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
43946         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
43947         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
43948         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
43949         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
43950         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
43951         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
43952         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
43953         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
43954         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
43955         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
43956         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
43957         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
43958         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
43959         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
43960         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
43961         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
43962         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
43963         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
43964         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
43965         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
43966         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
43967         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
43968         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
43969         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
43970         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
43971         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
43972         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
43973         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
43974         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
43975         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
43976         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
43977         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
43978         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
43979         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
43980         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
43981         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
43982         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
43983         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
43984         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
43985         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
43986         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
43987         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
43988         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
43989         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
43990         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
43991         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
43992         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
43993         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
43994         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
43995         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
43996         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
43997         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
43998         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
43999         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
44000         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
44001         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
44002         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
44003         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
44004         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
44005         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
44006         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
44007         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
44008         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
44009         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
44010         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
44011         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
44012         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
44013         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
44014         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
44015         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
44016         stringt.ads stringt.h style.adb style.ads stylesw.adb
44017         stylesw.ads switch.adb switch.ads sysdep.c system.ads
44018         table.adb table.ads targparm.adb targparm.ads targtyps.c
44019         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
44020         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
44021         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
44022         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
44023         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
44024         usage.ads utils.c utils2.c validsw.adb validsw.ads
44025         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
44026         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
44027         xtreeprs.adb: Correct statements in comments about maintainership
44028         of GNAT.
44029
44030 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
44031
44032         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
44033         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
44034         * gnatvsn.ads: Gnat_Version_String is now a function.
44035         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
44036         copy the C version_string into a String and return it.
44037         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
44038         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
44039         Remove pragma Ident (Gnat_Version_String).  If this was the
44040         sole use of package Gnatvsn, remove the with statement too.
44041         * gnat1drv.adb: Tweak -gnatv output.
44042
44043 2002-09-17  Richard Henderson  <rth@redhat.com>
44044
44045         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
44046         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
44047         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
44048         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
44049         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
44050         and real_2expN instead of a loop.
44051         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
44052         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
44053
44054 2002-08-25  Andre Leis  <a.leis@gmx.net>
44055             David Billinghurst  <David.Billinghurst@riotinto.com>
44056
44057         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
44058
44059 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
44060
44061         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
44062         Remove $(CONFIG_H) dependency.
44063
44064 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
44065
44066         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
44067
44068 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44069
44070         * adadecode.c (ada_demangle): Use xstrdup in lieu of
44071         xmalloc/strcpy.
44072         * misc.c (gnat_decode_option): Likewise.
44073
44074 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
44075
44076         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
44077         function approach did not work well because of a side effect (the
44078         function call could reallocate the table which was being indexed
44079         using its result). Fixes ada/4851. [RESURRECTED]
44080
44081 2002-07-01  Roger Sayle  <roger@eyesopen.com>
44082
44083         * ada/utils.c (builtin_function): Accept an additional parameter.
44084
44085 2002-06-28  Andreas Jaeger  <aj@suse.de>
44086
44087         PR ada/7144
44088         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
44089         <adi@thur.de>.
44090
44091 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44092
44093         * Makefile.in (SHELL): Set to @SHELL@.
44094
44095 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44096
44097         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
44098         array size calculation.
44099
44100 2002-06-04  Andreas Jaeger  <aj@suse.de>
44101
44102         * Make-lang.in (gnatbind): Readd rule that has been lost in last
44103         patch.
44104
44105 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
44106
44107         Merge from pch-branch:
44108
44109         * config-lang.in (gtfiles): Add ada-tree.h.
44110         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
44111         (SET_TYPE_MODULUS): New.
44112         (SET_TYPE_INDEX): New.
44113         (SET_TYPE_DIGITS_VALUE): New.
44114         (SET_TYPE_RM_SIZE): New.
44115         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
44116         (SET_TYPE_ADA_SIZE): New.
44117         (SET_TYPE_ACTUAL_BOUNDS): New.
44118         (SET_DECL_CONST_CORRESPONDING_VAR): New.
44119         (SET_DECL_ORIGINAL_FIELD): New.
44120         (TREE_LOOP_ID): Correct typo.
44121         * decl.c: Use new macros.
44122         * utils.c: Include debug.h, use new macros.
44123         * utils2.c: Use new macros.
44124
44125         * ada-tree.h: Update all macros for new tree description.
44126         (struct tree_loop_id): New.
44127         (union lang_tree_node): New.
44128         (struct lang_decl): New.
44129         (struct lang_type): New.
44130         * misc.c (gnat_mark_tree): Delete.
44131         (LANG_HOOKS_MARK_TREE): Delete.
44132         * trans.c (tree_transform): No longer any need to cast
44133         for TREE_LOOP_ID.
44134
44135         * utils.c (struct language_function): New dummy structure.
44136
44137         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
44138         (misc.o): Likewise.
44139         (utils.o): Likewise; also gtype-ada.h.
44140         * Make-lang.in (gnat1): Add dependency on s-gtype.
44141         (gnatbind): Add dependency on $(CONFIG_H).
44142         * utils.c: Correct last #include.
44143         (stuct e_stack): Remove unnecessary 'static'.
44144         (mark_e_stack): Remove unused prototype.
44145
44146         * scn-nlit.adb: Remove whitespace after version number to
44147         keep lines under 80 chars.
44148         * snames.adb: Likewise.
44149         * treepr.ads: Likewise.
44150
44151         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
44152         (misc.o): Likewise.
44153         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
44154         * config-lang.in (gtfiles): New.
44155         * decl.c: Use gengtype for roots.
44156         * gigi.h: Use gengtype for roots.
44157         * trans.c: Use gengtype for roots.
44158         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
44159
44160 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
44161
44162         * misc.c (gnat_init): Adjust setting of internal_error_function.
44163
44164 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
44165
44166         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
44167         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44168         gnat_ug_wnt.texi: Regenerate.
44169
44170 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
44171
44172         * 5ntaprop.adb (with System.OS_Primitives): Remove.
44173
44174         * cstreams.c (max_path_len): Move from here ...
44175         * adaint.c (__gnat_max_path_len): ... to here.
44176         * adaint.c (__gnat_max_path_len): Declare.
44177         * g-dirope.adb (Max_Path): Adjust.
44178         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
44179         * i-cstrea.ads (max_path_len): Adjust.
44180         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
44181         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
44182
44183         * Makefile.in, Make-lang.in: Documentation is now built in
44184         Make-lang.in.  Store Info and generated Texinfo files in the
44185         source directory.
44186         * gnat_ug.texi: Remove CVS keywords, correct version number.
44187         Set file name correctly.
44188
44189         * gnat_ug_*.texi: Add.
44190         * .cvsignore: Ignore generated Texinfo files.
44191
44192 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
44193
44194         * ada.h: Add MI guard macro.
44195         (SUBTYPE): Define constants with an anonymous enum, not static
44196         const variables.
44197         (IN): Cast constants to appropriate type before use.
44198
44199 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
44200
44201         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
44202         (experimental)".
44203
44204 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
44205
44206         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
44207         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
44208         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
44209         (ALL_ADA_CFLAGS): Likewise.
44210         (ADA_INCLUDES): Likewise.
44211         Adapt for new working dir.
44212         (GNATBIND): Use Makefile.in version.
44213         (.SUFFIXES): Copy from Makefile.in.
44214         (ada-warn): Define.
44215         (.adb.o, .ads.o): Copy from Makefile.in.
44216         Added $(OUTPUT_OPTION).
44217         (GNAT1_C_OBJS): Moved from Makefile.in.
44218         Prefix with ada subdir.
44219         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
44220         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
44221         Adapt for new working dir.
44222         (EXTRA_GNATBIND_OBJS): Likewise.
44223         (ADA_BACKEND): Moved from Makefile.in.
44224         Renamed to avoid conflict with global BACKEND.
44225         Use that one.
44226         (TARGET_ADA_SRCS): Moved from Makefile.in.
44227         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
44228         Use ADA_BACKEND.
44229         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
44230         (ada_extra_files): Moved from Makefile.in.
44231         Prefix with ada subdir.
44232         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
44233         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
44234         (ada/nmake.ads): Likewise.
44235         (update-sources): Moved from Makefile.in.
44236         Prefix with ada subdir.
44237         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
44238         (ADA_TREE_H): Likewise.
44239         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
44240         (ada/memtrack.o): Likewise.
44241         (ada/adadecode.o): Likewise.
44242         Update dependencies.
44243         (ada/adaint.o): New.
44244         (ada/argv.o): Moved from Makefile.in.
44245         Prefix with ada subdir.
44246         Update dependencies.
44247         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
44248         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
44249         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
44250         Prefix with ada subdir.
44251         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
44252         (GNAT DEPENDENCIES): Regenerate.
44253         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
44254         toplevel Makefile.in.
44255         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
44256         (TARGET_ADA_SRCS): Removed.
44257         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
44258         (GNATBIND_OBJS): Likewise.
44259         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
44260         (BACKEND): Removed.
44261         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
44262         (TREE_H): Likewise.
44263         (ada_extra_files): Likewise.
44264         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
44265         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
44266         (update-sources): Likewise.
44267         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
44268         (ADA_TREE_H): Likewise.
44269         (adadecoce.o): Likewise.
44270         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
44271         (GNAT DEPENDENCIES): Likewise.
44272
44273 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
44274
44275         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
44276         * Makefile.in: Likewise.
44277
44278 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
44279
44280         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
44281         Restore $(CONFIG_H) and prefix.o dependencies.
44282         (ada.stage[1-4]): Depend on stage?-start.
44283
44284         * Makefile.in (b_gnatb.c): Depend on interfac.o.
44285
44286 2002-05-02  Jim Wilson  <wilson@redhat.com>
44287
44288         * utils.c (finish_record_type): Change record_size to record_type.
44289
44290 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
44291
44292         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
44293         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
44294         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
44295
44296 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
44297
44298         * misc.c (gnat_parse_file): Update.
44299
44300 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
44301
44302         * misc.c (gnat_init): Don't set lang_attribute_common.
44303
44304 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
44305
44306         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
44307
44308 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
44309
44310         * gnat_ug.texi: New file.
44311
44312         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
44313         instead of gfdl.texi
44314
44315         * xgnatug.adb, ug_words: New files.
44316
44317         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
44318         gnat_rm and gnat-style manuals.
44319
44320 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
44321
44322         * gigi.h (incomplete_type_error): Remove.
44323         * utils.c (incomplete_type_error): Remove.
44324
44325 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
44326
44327         * trans.c (tree_transform): Add has_scope argument to
44328         expand_start_stmt_expr.
44329
44330 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
44331
44332         * gigi.h (truthvalue_conversion): Rename.
44333         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
44334         * trans.c (tree_transform): Update.
44335         * utils2.c (truthvalue_conversion): Rename, update.
44336         (build_binary_op, build_unary_op): Update.
44337
44338 2002-04-04  Laurent Guerby  <guerby@acm.org>
44339
44340         * make.adb: Implement -margs, remove restriction about file name placement.
44341         * makeusg.adb: Documentation update.
44342         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
44343         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
44344
44345 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
44346
44347         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
44348         (builtin_function): Similarly.
44349
44350 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
44351
44352         * decl.c (gnat_to_gnu_entity): Update.
44353         * gigi.h (mark_addressable): Rename.
44354         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
44355         * trans.c (tree_transform): Update.
44356         * utils.c (create_var_decl): Update.
44357         * util2.c (build_binary_op, build_unary_op,
44358         fill_vms_descriptor): Update.
44359         (mark_addressable): Rename, update.
44360
44361 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
44362
44363         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
44364         Rename.
44365         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
44366         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
44367         * trans.c (tree_transform, convert_with_check): Update.
44368         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
44369         Rename.
44370
44371 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
44372
44373         * gigi.h (finish_incomplete_decl): Rename.
44374         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
44375         * utils.c (gnat_init_decl_processing): Don't set hook.
44376         (finish_incomplete_decl): Rename.
44377
44378 2002-03-29  Andreas Schwab  <schwab@suse.de>
44379
44380         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
44381         directory.
44382
44383 2001-03-28  Robert Dewar  <dewar@gnat.com>
44384
44385         * checks.ads:
44386         (Remove_Checks): New procedure
44387
44388         * checks.adb:
44389         (Remove_Checks): New procedure
44390
44391         * exp_util.adb:
44392         Use new Duplicate_Subexpr functions
44393         (Duplicate_Subexpr_No_Checks): New procedure
44394         (Duplicate_Subexpr_No_Checks_Orig): New procedure
44395         (Duplicate_Subexpr): Restore original form (checks duplicated)
44396         (Duplicate_Subexpr): Call Remove_Checks
44397
44398         * exp_util.ads:
44399         (Duplicate_Subexpr_No_Checks): New procedure
44400         (Duplicate_Subexpr_No_Checks_Orig): New procedure
44401         Add 2002 to copyright notice
44402
44403         * sem_util.adb: Use new Duplicate_Subexpr functions
44404
44405         * sem_eval.adb:
44406         (Eval_Indexed_Component): This is the place to call
44407         Constant_Array_Ref and to replace the value. We simply merge
44408         the code of this function in here, since it is now no longer
44409         used elsewhere. This fixes the problem of the back end not
44410         realizing we were clever enough to see that this was
44411         constant.
44412         (Expr_Val): Remove call to Constant_Array_Ref
44413         (Expr_Rep_Val): Remove call to Constant_Array_Ref
44414         Minor reformatting
44415         (Constant_Array_Ref): Deal with string literals (patch
44416         suggested by Zack Weinberg on the gcc list)
44417
44418 2001-03-28  Ed Schonberg  <schonber@gnat.com>
44419
44420         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
44421         Duplicate_Subexpr_Move_Checks.
44422
44423         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
44424         Duplicate_Subexpr_Move_Checks.
44425
44426         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
44427         value of array exists before retrieving it (it may a private
44428         protected component in a function).
44429
44430 2002-03-28   Geert Bosch  <bosch@gnat.com>
44431
44432         * prj-pp.adb : New file.
44433
44434         * prj-pp.ads : New file.
44435
44436 2002-03-28  Andreas Jaeger  <aj@suse.de>
44437
44438         * Makefile.in (stamp-sdefault): Fix path for Makefile.
44439
44440 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
44441
44442         * misc.c (gnat_expand_expr): Move prototype.
44443
44444 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
44445
44446         * misc.c (insert_default_attributes): Remove.
44447
44448 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
44449
44450         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
44451         (gnat_init): Don't set hook.
44452         (gnat_expand_expr): Fix prototype.
44453
44454 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
44455
44456         * misc.c (ggc_p): Remove.
44457
44458 2002-03-27  Geert Bosch  <bosch@gnat.com>
44459
44460         * prj-makr.ads, prj-makr.adb : New files.
44461
44462 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
44463
44464         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
44465         (lang_mark_tree): Make static, rename.
44466
44467 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
44468
44469         * misc.c (maybe_build_cleanup): Remove.
44470
44471 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
44472
44473         * gigi.h (yyparse): Remove.
44474
44475 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
44476
44477         From Ben Brosgol  <brosgol@gnat.com>
44478         * gnat_rm.texi: Sync with ACT version.
44479
44480 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
44481
44482         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
44483         (gnat_init): Remove old hook.
44484
44485 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
44486
44487         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
44488         (yyparse): Rename gnat_parse_file.
44489
44490 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
44491
44492         Delete all lines containing "$Revision:".
44493         * xeinfo.adb: Don't look for revision numbers.
44494         * xnmake.adb: Likewise.
44495         * xsinfo.adb: Likewise.
44496         * xsnames.adb: Likewise.
44497         * xtreeprs.adb: Likewise.
44498
44499 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44500
44501         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
44502         gnat_tree_code_name): Delete.
44503         (tree_code_type, tree_code_length, tree_code_name): Define.
44504         (gnat_init): Don't try to copy into the various tree_code
44505         arrays.
44506
44507 2002-03-11  Richard Henderson  <rth@redhat.com>
44508
44509         * Makefile.in (.NOTPARALLEL): Add fake tag.
44510
44511 2002-03-07  Geert Bosch  <bosch@gnat.com>
44512
44513         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
44514         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
44515         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
44516         switch-m.adb, switch-m.ads : New files.
44517
44518 2002-03-07  Geert Bosch  <bosch@gnat.com>
44519
44520         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
44521         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
44522         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
44523         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
44524         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
44525         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
44526         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
44527         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
44528         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
44529         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
44530         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
44531         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
44532         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
44533         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
44534         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
44535         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
44536         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
44537         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
44538         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
44539         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
44540         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
44541         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
44542         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
44543         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
44544         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
44545         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
44546         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
44547         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
44548         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
44549         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
44550         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
44551         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
44552         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
44553         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
44554         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
44555         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
44556         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
44557         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
44558         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
44559         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
44560         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
44561         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
44562         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
44563         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
44564         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
44565         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
44566         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
44567         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
44568         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
44569         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
44570         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
44571         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
44572         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
44573         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
44574         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
44575         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
44576         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
44577         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
44578         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
44579         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
44580         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
44581         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
44582         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
44583         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
44584         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
44585         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
44586         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
44587         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
44588         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
44589         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
44590         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
44591         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
44592         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
44593         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
44594         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
44595         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
44596         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
44597         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
44598         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
44599         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
44600         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
44601         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
44602         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
44603         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
44604         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
44605         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
44606         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
44607         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
44608         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
44609         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
44610         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
44611         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
44612         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
44613         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
44614         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
44615         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
44616         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
44617
44618         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
44619         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
44620         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
44621         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
44622
44623         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
44624         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
44625
44626         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
44627         to mdll-fil.ad[bs] and mdll-util.ad[bs]
44628
44629         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
44630         from mdllfile.ad[bs] and mdlltool.ad[bs]
44631
44632 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44633
44634         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
44635         lieu of explicit sizeof/sizeof.
44636
44637 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
44638
44639         * misc.c (copy_lang_decl): Remove.
44640
44641 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
44642
44643         * misc.c: Delete traditional-mode-related code copied from the
44644         C front end but not used, or used only to permit the compiler
44645         to link.
44646
44647 2002-02-07  Richard Henderson  <rth@redhat.com>
44648
44649         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
44650         * adaint.h (__gnat_to_gm_time): Update prototype.
44651
44652 2002-01-30  Richard Henderson  <rth@redhat.com>
44653
44654         * trans.c (tree_transform) [N_Loop_Statement]: Use
44655         expand_exit_loop_top_cond.
44656
44657 2001-12-23  Richard Henderson  <rth@redhat.com>
44658
44659         * utils.c (end_subprog_body): Push GC context around
44660         rest_of_compilation for nested functions.
44661
44662 2001-12-23  Richard Henderson  <rth@redhat.com>
44663
44664         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
44665
44666 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
44667
44668         * gnat-style.texi (Declarations and Types): Remove ancient style
44669         rule which was mandated by code generation issues.
44670
44671         * gnat-style.texi (header): Add @dircategory, @direntry.
44672         (title page): Remove date.
44673         (general) Add @./@: where approriate, and two spaces after the
44674         full stop at the end of a sentence.  Use @samp markup when
44675         referring concrete lexical entities (keywords, attribute names
44676         etc.), and @syntax for ARM grammar elements. Use @r for English
44677         text in comments.  Use @emph for emphasis.  Change "if-statements"
44678         etc. to "if statements" (without @samp). Break long lines.  Make
44679         casing of section names consistent.
44680         (Identifiers): Use @samp markup for variable names.
44681         (Comments): Use @samp markup for comment characters. Line-end
44682         comments may follow any Ada code, not just statements.  Fix
44683         misspelling of "Integer" as "integer".
44684         (Loop statements): Do not use variable name "I", use "J".
44685         (Subprogram Declarations): Document alignment.
44686         (Subprogram Bodies, Block statements): Document empty line before
44687         "begin".
44688
44689 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
44690
44691         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
44692         function approach did not work well because of a side effect (the
44693         function call could reallocate the table which was being indexed
44694         using its result). Fixes ada/4851.
44695
44696 2001-12-19  Robert Dewar  <dewar@gnat.com>
44697
44698         * bindgen.adb: Minor reformatting
44699
44700         * cstand.adb: Minor reformatting
44701
44702         * fmap.adb: Minor reformatting
44703         Change name from Add for Add_To_File_Map (Add is much too generic)
44704         Change Path_Name_Of to Mapped_Path_Name
44705         Change File_Name_Of to Mapped_File_Name
44706         Fix copyright dates in header
44707
44708         * fmap.ads:
44709         Change name from Add for Add_To_File_Map (Add is much too generic)
44710         Change Path_Name_Of to Mapped_Path_Name
44711         Change File_Name_Of to Mapped_File_Name
44712         Fix copyright dates in header
44713
44714         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
44715         Add use clause for Fmap.
44716
44717         * make.adb: Minor reformatting
44718
44719         * osint.adb: Minor reformatting.  Change of names in Fmap.
44720         Add use clause for Fmap.
44721
44722         * prj-env.adb: Minor reformatting
44723
44724         * prj-env.ads: Minor reformatting
44725
44726         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
44727         error found (there were odd exceptions to this general rule in
44728         -gnatec/-gnatem processing)
44729
44730 2001-12-19  Olivier Hainque  <hainque@gnat.com>
44731
44732         * raise.c (__gnat_eh_personality): Exception handling personality
44733         routine for Ada.  Still in rough state, inspired from the C++ version
44734         and still containing a bunch of debugging artifacts.
44735         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
44736         inspired from the C++ library.
44737
44738         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
44739         exception handling integration.
44740
44741 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
44742
44743         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
44744         (HIE_SOURCES): Add s-secsta.ad{s,b}.
44745         (HIE_OBJS): Add s-fat*.o
44746         (RAVEN_SOURCES): Remove files that are no longer required. Add
44747         interrupt handling files.
44748         (RAVEN_MOD): Removed, no longer needed.
44749
44750 2001-12-19  Robert Dewar  <dewar@gnat.com>
44751
44752         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
44753         Add 2001 to copyright date
44754
44755         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
44756         need to force universal inlining for these cases.
44757
44758 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
44759
44760         * s-taprob.adb: Minor clean ups so that this unit can be used in
44761         Ravenscar HI.
44762
44763         * exp_ch7.adb: Allow use of secondary stack in HI mode.
44764         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
44765
44766 2001-12-19  Vincent Celier  <celier@gnat.com>
44767
44768         * prj-tree.ads (Project_Node_Record): Add comments for components
44769         Pkg_Id and Case_Insensitive.
44770
44771 2001-12-19  Pascal Obry  <obry@gnat.com>
44772
44773         * g-socket.adb: Minor reformatting. Found while reading code.
44774
44775 2001-12-19  Robert Dewar  <dewar@gnat.com>
44776
44777         * prj-tree.ads: Minor reformatting
44778
44779 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
44780
44781         * config-lang.in (diff_excludes): Remove.
44782
44783 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44784
44785         * sem_res.adb (Resolve_Selected_Component): do not generate a
44786         discriminant check if the selected component is a component of
44787         the argument of an initialization procedure.
44788
44789         * trans.c (tree_transform, case of arithmetic operators): If result
44790         type is private, the gnu_type is the base type of the full view,
44791         given that the full view itself may be a subtype.
44792
44793 2001-12-17  Robert Dewar  <dewar@gnat.com>
44794
44795         * sem_res.adb: Minor reformatting
44796
44797         * trans.c (tree_transform, case N_Real_Literal): Add missing third
44798         parameter in call to Machine (unknown horrible effects from this
44799         omission).
44800
44801         * urealp.h: Add definition of Round_Even for call to Machine
44802         Add third parameter for Machine
44803
44804 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44805
44806         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
44807         predefined units in No_Run_Time mode.
44808
44809 2001-12-17  Richard Kenner  <kenner@gnat.com>
44810
44811         * misc.c (insn-codes.h): Now include.
44812
44813 2001-12-17  Olivier Hainque  <hainque@gnat.com>
44814
44815         * a-except.adb: Preparation work for future integration of the GCC 3
44816         exception handling mechanism
44817         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
44818         to factorize previous code sequences and make them externally callable,
44819         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
44820         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
44821         Use the new notification routines.
44822
44823 2001-12-17  Emmanuel Briot  <briot@gnat.com>
44824
44825         * prj-tree.ads (First_Choice_Of): Document the when others case
44826
44827 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44828
44829         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
44830         HI-E mode, in order to support Ravenscar profile properly.
44831
44832         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
44833         mode on 32 bits targets.
44834
44835 2001-12-17  Vincent Celier  <celier@gnat.com>
44836
44837         * fmap.adb: Initial version.
44838
44839         * fmap.ads: Initial version.
44840
44841         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
44842         If search is successfully done, add to mapping.
44843
44844         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
44845
44846         * make.adb:
44847         (Gnatmake): Add new local variable Mapping_File_Name.
44848          Create mapping file when using project file(s).
44849          Delete mapping file before exiting.
44850
44851         * opt.ads (Mapping_File_Name): New variable
44852
44853         * osint.adb (Find_File): Use path name found in mapping, if any.
44854
44855         * prj-env.adb (Create_Mapping_File): New procedure
44856
44857         * prj-env.ads (Create_Mapping_File): New procedure.
44858
44859         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
44860         (Mapping_File)
44861
44862         * usage.adb: Add entry for new switch -gnatem.
44863
44864         * Makefile.in: Add dependencies for fmap.o.
44865
44866 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44867
44868         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
44869         is a package instantiation rewritten as a package body.
44870         (Install_Withed_Unit): Undo previous change, now redundant.
44871
44872 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
44873
44874         * layout.adb:
44875         (Compute_Length): Move conversion to Unsigned to callers.
44876         (Get_Max_Size): Convert Len expression to Unsigned after calls to
44877         Compute_Length and Determine_Range.
44878         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
44879         Compute_Length and Determine_Range.
44880         Above changes fix problem with length computation for supernull arrays
44881         where Max (Len, 0) wasn't getting applied due to the Unsigned
44882         conversion used by Compute_Length.
44883
44884 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44885
44886         * rtsfind.ads:
44887         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
44888          System.Secondary_Stack.
44889         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
44890          in HI-E mode.
44891         Remove unused entity RE_Exception_Data.
44892
44893         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
44894
44895         * rident.ads (No_Secondary_Stack): New restriction.
44896
44897 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
44898
44899         * gnat_rm.texi: Fix minor typos. Found while reading the section
44900         regarding "Bit_Order Clauses" that was sent to a customer.
44901         Very interesting documentation!
44902
44903 2001-12-17  Robert Dewar  <dewar@gnat.com>
44904
44905         * sem_case.adb (Choice_Image): Avoid creating improper character
44906         literal names by using the routine Set_Character_Literal_Name. This
44907         fixes bombs in certain error message cases.
44908
44909 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44910
44911         * a-reatim.adb: Minor reformatting.
44912
44913 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44914
44915         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
44916         case where the formal is an extension of another formal in the current
44917         unit or in a parent generic unit.
44918
44919 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44920
44921         * s-tposen.adb: Update comments.  Minor reformatting.
44922         Minor code clean up.
44923
44924         * s-tarest.adb: Update comments.  Minor code reorganization.
44925
44926 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
44927
44928         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
44929         when Java_VM.
44930
44931 2001-12-17  Robert Dewa  <dewar@gnat.com>
44932
44933         * exp_attr.adb: Minor reformatting
44934
44935 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44936
44937         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
44938         derivations nested within a child unit: verify that the parent
44939         type is declared in an outer scope.
44940
44941 2001-12-17  Robert Dewar  <dewar@gnat.com>
44942
44943         * sem_ch12.adb: Minor reformatting
44944
44945 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44946
44947         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
44948         warning if current unit is a predefined one, from which bodies may
44949         have been deleted.
44950
44951 2001-12-17  Robert Dewar  <dewar@gnat.com>
44952
44953         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
44954         Fix header format. Add 2001 to copyright date.
44955
44956         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
44957         which caused CE during compilation if checks were enabled.
44958
44959 2001-12-17  Vincent Celier  <celier@gnat.com>
44960
44961         * make.adb:
44962         (Switches_Of): New function
44963         (Test_If_Relative_Path): New procedure
44964         (Add_Switches): Use new function Switches_Of
44965         (Collect_Arguments_And_Compile): Use new function Switches_Of.
44966         When using a project file, test if there are any relative
44967         search path. Fail if there are any.
44968         (Gnatmake): Only add switches for the primary directory when not using
44969         a project file. When using a project file, change directory to the
44970         object directory of the main project file. When using a project file,
44971         test if there are any relative search path. Fail if there are any.
44972         When using a project file, fail if specified executable is relative
44973         path with directory information, and prepend executable, if not
44974         specified as an absolute path, with the exec directory.  Make sure
44975         that only one -o switch is transmitted to the linker.
44976
44977         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
44978
44979         * prj-nmsc.adb:
44980         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
44981         when using a non standard naming scheme.
44982         (Check_Ada_Naming_Scheme): Make sure that error messages
44983         do not raise exceptions.
44984         (Is_Illegal_Append): Return True if there is no dot in the suffix.
44985         (Language_Independent_Check): Check the exec directory.
44986
44987         * prj.adb (Project_Empty): Add new component Exec_Directory
44988
44989         * prj.ads:
44990         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
44991         (Project_Data): Add component Exec_Directory
44992
44993         * snames.adb: Updated to match snames.ads revision 1.215
44994
44995         * snames.ads: Added Exec_Dir
44996
44997 2001-12-17  Robert Dewar  <dewar@gnat.com>
44998
44999         * make.adb: Minor reformatting
45000
45001         * prj-nmsc.adb: Minor reformatting
45002
45003         * snames.adb: Updated to match snames.ads
45004
45005         * snames.ads: Alphebetize entries for project file
45006
45007 2001-12-17  Ed Schonberg  <schonber@gnat.com>
45008
45009         * trans.c (process_freeze_entity): Do nothing if the entity is a
45010         subprogram that was already elaborated.
45011
45012 2001-12-17  Richard Kenner  <kenner@gnat.com>
45013
45014         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
45015         and Esize if object is referenced via pointer.
45016
45017 2001-12-17  Ed Schonberg  <schonber@gnat.com>
45018
45019         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
45020         is discrete before analyzing choices.
45021
45022 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
45023
45024         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
45025         containing the name of the Ada Main Program. This string is mainly
45026         intended for the debugger.
45027         (Gen_Output_File_C): Do the equivalent change when generating a C file.
45028
45029 2001-12-17  Robert Dewar  <dewar@gnat.com>
45030
45031         * ali.adb: Set new Dummy_Entry field in dependency entry
45032
45033         * ali.ads: Add Dummy_Entry field to source dependency table
45034
45035         * bcheck.adb (Check_Consistency): Ignore dummy D lines
45036
45037         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
45038
45039         * lib-writ.ads: Document dummy D lines for missing files.
45040
45041         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
45042
45043 2001-12-17  Robert Dewar  <dewar@gnat.com>
45044
45045         * ali.adb: Type reference does not reset current file.
45046
45047         * ali.adb: Recognize and scan renaming reference
45048
45049         * ali.ads: Add spec for storing renaming references.
45050
45051         * lib-xref.ads: Add documentation for handling of renaming references
45052
45053         * lib-xref.adb: Implement output of renaming reference.
45054
45055         * checks.adb:
45056         (Determine_Range): Document local variables
45057         (Determine_Range): Make sure Hbound is initialized. It looks as though
45058          there could be a real problem here with an uninitialized reference
45059          to Hbound, but no actual example of failure has been found.
45060
45061 2001-12-17  Laurent Pautet  <pautet@gnat.com>
45062
45063         * g-socket.ads:
45064         Fix comment of Shutdown_Socket and Close_Socket. These functions
45065         should not fail silently because if they are called twice, this
45066         probably means that there is a race condition in the user program.
45067         Anyway, this behaviour is consistent with the rest of this unit.
45068         When an error occurs, an exception is raised with the error message
45069         as exception message.
45070
45071 2001-12-17  Robert Dewar  <dewar@gnat.com>
45072
45073         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
45074         that it happens before modification of Sloc values for -gnatD.
45075
45076         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
45077         so that it happens before modification of Sloc values for -gnatD.
45078
45079         * switch.adb: Minor reformatting
45080
45081 2001-12-15  Richard Henderson  <rth@redhat.com>
45082
45083         * sem_ch7.adb: Wrap comment.
45084
45085 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
45086
45087         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
45088         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
45089         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
45090         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
45091         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
45092         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
45093         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
45094         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
45095         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
45096         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
45097         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
45098         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
45099         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
45100         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
45101         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
45102         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
45103         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
45104         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
45105         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
45106         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
45107         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
45108         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
45109         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
45110         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
45111         spelling errors.
45112
45113 2001-12-14  Vincent Celier  <celier@gnat.com>
45114
45115         * osint.adb(Create_Debug_File): When an object file is specified,
45116         put the .dg file in the same directory as the object file.
45117
45118 2001-12-14  Robert Dewar  <dewar@gnat.com>
45119
45120         * osint.adb: Minor reformatting
45121
45122         * lib-xref.adb (Output_Instantiation): New procedure to generate
45123         instantiation references.
45124
45125         * lib-xref.ads: Add documentation of handling of generic references.
45126
45127         * ali.adb (Read_Instantiation_Ref): New procedure to read
45128         instantiation references
45129
45130         * ali.ads: Add spec for storing instantiation references
45131
45132         * bindusg.adb: Minor reformatting
45133
45134         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45135
45136         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45137
45138         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45139
45140         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45141
45142         * csets.ads:
45143         Fix header format
45144         Add 2001 to copyright date
45145         Add entry for Latin-5 (Cyrillic ISO-8859-5)
45146
45147 2001-12-14  Matt Gingell  <gingell@gnat.com>
45148
45149         * adaint.c: mktemp is a macro on Lynx and can not be used as an
45150         expression.
45151
45152 2001-12-14  Richard Kenner  <kenner@gnat.com>
45153
45154         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
45155         if operand is CONSTRUCTOR.
45156
45157 2001-12-14  Ed Schonberg  <schonber@gnat.com>
45158
45159         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
45160         before emiting check on right-hand side, so that exception information
45161         is correct.
45162
45163 2001-12-14  Richard Kenner  <kenner@gnat.com>
45164
45165         * utils.c (create_var_decl): Throw away initializing expression
45166         if just annotating types and non-constant.
45167
45168 2001-12-14  Vincent Celier  <celier@gnat.com>
45169
45170         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
45171         Default_Ada_...
45172
45173         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
45174         Remove functions.
45175         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
45176
45177         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
45178         Remove functions.
45179         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
45180
45181 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
45182
45183         * ChangeLog: Remove piece of diff output.
45184
45185 2001-12-14  Geert Bosch  <bosch@gnat.com>
45186
45187         * config-lang.in: Update copyright notice
45188
45189         * layout.adb: Remove commented out code.
45190
45191         * mdllfile.ads: Update copyright notice. Fix header format.
45192
45193         * sem_case.ads: Likewise.
45194
45195         * sem_ch3.adb: Minor reformatting.
45196
45197 2001-12-12  Geert Bosch  <bosch@gnat.com>
45198
45199         * freeze.ads: Update copyright date.
45200
45201         * g-comlin.ads: Minor reformatting.
45202
45203         * gnat-style.texi: Fix typo.
45204
45205 2001-12-12  Geert Bosch  <bosch@gnat.com>
45206
45207         *  einfo.h: Regenerate.
45208
45209 2001-12-12  Ed Schonberg  <schonber@gnat.com>
45210
45211         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
45212         on known node types, rather than untyped fields. Further cleanups.
45213
45214 2001-12-12  Robert Dewar  <dewar@gnat.com>
45215
45216         * sem_ch12.adb:
45217         (Save_Entity_Descendant): Minor comment update.
45218         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
45219          of an N_Attribute_Reference node. As per note below, this does not
45220         eliminate need for Associated_Node in attribute ref nodes.
45221         (Associated_Node): Documentation explicitly mentions attribute
45222         reference nodes, since this field is used in such nodes.
45223
45224         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
45225
45226 2001-12-12  Robert Dewar  <dewar@gnat.com>
45227
45228         * s-stalib.adb: Add more comments on with statements being needed
45229
45230         * par-ch12.adb: Minor reformatting
45231
45232         * prj-dect.ads: Fix copyright header
45233
45234         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
45235         inputs fit in 32 bits, but the result still overflows.
45236
45237         * s-fatgen.ads: Minor comment improvement
45238
45239 2001-12-12  Ed Schonberg  <schonber@gnat.com>
45240
45241         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
45242         formal derived type, look for an inherited component from the full
45243         view of the parent, if any.
45244
45245 2001-12-12  Robert Dewar  <dewar@gnat.com>
45246
45247         * checks.ads (Apply_Alignment_Check): New procedure.
45248
45249         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
45250         ensure that the alignment of objects with address clauses is
45251         appropriate, and raise PE if not.
45252
45253         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
45254         Exp_Pakd.Known_Aligned_Enough
45255
45256         * mdllfile.ads: Minor reformatting
45257
45258         * mlib-fil.ads: Minor reformatting
45259
45260 2001-12-12  Ed Schonberg  <schonber@gnat.com>
45261
45262         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
45263         fix to any component reference if enclosing record has non-standard
45264         representation.
45265
45266 2001-12-12  Vincent Celier  <celier@gnat.com>
45267
45268         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
45269         Iteration
45270
45271 2001-12-12  Ed Schonberg  <schonber@gnat.com>
45272
45273         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
45274         sem_attr.
45275
45276 2001-12-12  Robert Dewar  <dewar@gnat.com>
45277
45278         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
45279
45280 2001-12-12  Emmanuel Briot  <briot@gnat.com>
45281
45282         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
45283         and it adds dependencies to system.io.
45284
45285 2001-12-12  Pascal Obry  <obry@gnat.com>
45286
45287         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
45288         variable name.
45289
45290 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45291
45292         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
45293         that is the parent of other generics, the instance body replaces the
45294         instance node.  Retrieve the instance of the spec, which is the one
45295         that is visible in clients and within the body.
45296
45297 2001-12-11  Vincent Celier  <celier@gnat.com>
45298
45299         * gnatmain.adb: Initial version.
45300
45301         * gnatmain.ads: Initial version.
45302
45303         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
45304
45305         * snames.adb: Updated to match snames.ads.
45306
45307         * snames.ads: Added Gnatstub.
45308
45309 2001-12-11  Vincent Celier  <celier@gnat.com>
45310
45311         * prj-attr.adb (Initialization_Data): Change name from
45312         Initialisation_Data.
45313
45314 2001-12-11  Emmanuel Briot  <briot@gnat.com>
45315
45316         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
45317         + and * applied to backslashed expressions like \r.
45318
45319 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
45320
45321         * g-os_lib.ads: String_List type added, Argument_List type is now
45322         subtype of String_List.
45323
45324 2001-12-11  Robert Dewar  <dewar@gnat.com>
45325
45326         * g-os_lib.ads: Change copyright to FSF
45327         Add comments for String_List type
45328
45329 2001-12-11  Vincent Celier  <celier@gnat.com>
45330
45331         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
45332         string to the buffer).
45333
45334 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45335
45336         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
45337         sem_attr.
45338
45339         * sem_attr.adb: Simplify previous fix for Address.
45340         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
45341         to avoid anomalies where the bound of the type appears to raise
45342         constraint error.
45343
45344 2001-12-11  Robert Dewar  <dewar@gnat.com>
45345
45346         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
45347         handled.
45348
45349 2001-12-11  Ed Schonber   <schonber@gnat.com>
45350
45351         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
45352         renamed unit before checking for recursive instantiations.
45353
45354 2001-12-11  Emmanuel Briot  <briot@gnat.com>
45355
45356         * prj.ads: Add comments for some of the fields.
45357
45358 2001-12-11  Robert Dewar  <dewar@gnat.com>
45359
45360         * lib-xref.adb (Output_Refs): Don't output type references outside
45361         the main unit if they are not otherwise referenced.
45362
45363 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45364
45365         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
45366         code and diagnose additional illegal uses
45367
45368         * sem_util.adb (Is_Object_Reference): An indexed component is an
45369         object only if the prefix is.
45370
45371 2001-12-11  Vincent Celier  <celier@gnat.com>
45372
45373         * g-diopit.adb: Initial version.
45374
45375         * g-diopit.ads: Initial version.
45376
45377         * g-dirope.adb:
45378         (Expand_Path): Avoid use of Unbounded_String
45379         (Find, Wildcard_Iterator): Moved to child package Iteration
45380
45381         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
45382
45383 2001-12-11  Robert Dewar  <dewar@gnat.com>
45384
45385         * sem_attr.adb: Minor reformatting
45386
45387 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45388
45389         * sem_ch3.adb: Clarify some ???.
45390
45391 2001-12-11  Robert Dewar  <dewar@gnat.com>
45392
45393         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
45394         Exp_Pakd.Known_Aligned_Enough
45395
45396         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
45397         version is moved to Exp_Ch13.
45398
45399 2001-12-11  Robert Dewar  <dewar@gnat.com>
45400
45401         * einfo.ads: Minor reformatting
45402
45403         * exp_ch5.adb: Add comment for previous.change
45404
45405         * ali.adb: New interface for extended typeref stuff.
45406
45407         * ali.ads: New interface for typeref stuff.
45408
45409         * checks.adb (Apply_Alignment_Check): New procedure.
45410
45411         * debug.adb: Add -gnatdM for modified ALI output
45412
45413         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
45414
45415         * lib-xref.adb: Extend generation of <..> notation to cover
45416         subtype/object types. Note that this is a complete rewrite,
45417         getting rid of the very nasty quadratic algorithm previously
45418         used for derived type output.
45419
45420         * lib-xref.ads: Extend description of <..> notation to cover
45421         subtype/object types. Uses {..} for these other cases.
45422         Also use (..) for pointer types.
45423
45424         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
45425
45426         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
45427         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
45428
45429 2001-12-11  Vincent Celier  <celier@gnat.com>
45430
45431         * gnatcmd.adb:
45432         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
45433         Changed /BIND_ONLY to /ACTIONS=BIND
45434         Changed /LINK_ONLY to /ACTIONS=LINK
45435
45436 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45437
45438         * sem_ch8.adb (Find_Selected_Component): improved search for a
45439         candidate package in case of error.
45440
45441         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
45442         chain back on scope stack before reinstalling use clauses.
45443
45444         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
45445         is enabled, do not kill the code for the condition, to preserve
45446         warning.
45447
45448 2001-12-11  Robert Dewar  <dewar@gnat.com>
45449
45450         * checks.adb (Insert_Valid_Check): Apply validity check to expression
45451         of conversion, not to result of conversion.
45452
45453 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45454
45455         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
45456         before freezing parent. If the declarations are mutually recursive,
45457         an access to the current record type may be frozen before the
45458         derivation is complete.
45459
45460 2001-12-05  Vincent Celier  <celier@gnat.com>
45461
45462         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
45463         -c /COMPILE_ONLY, -l /LINK_ONLY
45464
45465         * opt.ads:
45466         (Bind_Only): New Flag
45467         (Link_Only): New flag
45468
45469         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
45470         and -l (Link_Only)
45471
45472         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
45473
45474         * make.adb:
45475         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
45476         (Gnatmake): Set the step flags. Only perform a step if the
45477         corresponding step flag is True.
45478         (Scan_Make_Arg): Reset the bind and link step flags when -u
45479         or -gnatc has been specified.
45480
45481 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45482
45483         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
45484         get bounds from right operand.
45485
45486         * sem_eval.adb: Minor reformatting
45487
45488         * exp_util.adb (Make_Literal_Range): use bound of literal rather
45489         than Index'First, its lower bound may be different from 1.
45490
45491         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
45492         and C48009J
45493
45494 2001-12-05  Vincent Celier  <celier@gnat.com>
45495
45496         * prj-nmsc.adb Minor reformatting
45497
45498         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
45499         set and libraries are not supported.
45500
45501 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45502
45503         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
45504         private view explicitly, so the back-end can treat as a global
45505         when appropriate.
45506
45507 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45508
45509         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
45510          unit, always replace instance node with new body, for ASIS use.
45511
45512 2001-12-05  Vincent Celier  <celier@gnat.com>
45513
45514         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
45515         libraries are not supported and both attributes Library_Name and
45516         Library_Dir are specified.
45517
45518         * prj-proc.adb (Expression): Set location of Result to location of
45519         first term.
45520
45521         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
45522         (prj-nmsc is now importing MLib.Tgt)
45523
45524         * prj-proc.adb: Put the change indicated above that was forgotten.
45525
45526 2001-12-05  Robert Dewar  <dewar@gnat.com>
45527
45528         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
45529
45530 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45531
45532         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
45533         constraint, introduce explicit subtype declaration and derive from it.
45534
45535         * sem_ch3.adb: Minor reformatting
45536
45537 2001-12-05  Robert Dewar  <dewar@gnat.com>
45538
45539         * checks.adb (Determine_Range): Increase cache size for checks.
45540         Minor reformatting
45541
45542         * exp_ch6.adb: Minor reformatting
45543         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
45544         a parameter whose root type is System.Address, since treating such
45545         subprograms as pure in the code generator is almost surely a mistake
45546         that will lead to unexpected results.
45547
45548         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
45549         change handling of conversions.
45550
45551         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
45552
45553 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45554
45555         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
45556         aggregate with static wrong size, attach generated Raise node to
45557         declaration.
45558
45559 2001-12-05  Robert Dewar  <dewar@gnat.com>
45560
45561         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
45562         Fixes compilation abandoned bomb in B24009B.
45563
45564 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45565
45566         * sem_ch12.adb:
45567         Document use of Associated_Node on Selected_Components.
45568         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
45569         to clarify use of untyped descendant fields.
45570
45571 2001-12-05  Robert Dewar  <dewar@gnat.com>
45572
45573         * prj-dect.ads: Add ??? comment
45574         Add 2001 to copyright notice (was not done in after all)
45575
45576         * prj-part.adb: Minor reformatting. Reword one awkward error message.
45577
45578         * prj.ads: Minor reformatting throughout, and add some ??? comments
45579
45580         * snames.ads: Minor reformatting
45581
45582 2001-12-05  Geert Bosch  <bosch@gnat.com>
45583
45584         * snames.adb: Autoupdate
45585
45586 2001-12-05  Vincent Celier  <celier@gnat.com>
45587
45588         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
45589
45590         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
45591
45592         * prj-env.adb: Minor comment changes (modifying -> extends).
45593
45594         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
45595
45596         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
45597         Tok_Extends.
45598
45599         * prj.adb (Initialize): Change Modifying to Extends.
45600
45601         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
45602
45603         * prj.ads: Minor comment change (Modifying -> extending).
45604
45605         * snames.ads: Change modifying to extends.
45606
45607 2001-12-05  Robert Dewar  <dewar@gnat.com>
45608
45609         * sem_warn.adb: Remove stuff for conditionals, we are not going to
45610         do this after all.
45611
45612         * sem_warn.ads: Remove stuff for conditionals, we are not going to
45613         do this after all.  Add 2001 to copyright notice
45614
45615 2001-12-04  Geert Bosch  <bosch@gnat.com>
45616
45617         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
45618
45619 2001-12-04  Robert Dewar  <dewar@gnat.com>
45620
45621         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
45622         location if we already have errors. Stops some cases of cascaded
45623         errors.
45624
45625         * errout.adb: Improve comment.
45626
45627 2001-12-04  Robert Dewar  <dewar@gnat.com>
45628
45629         * sem_ch12.adb:
45630         (Analyze_Formal_Type_Definition): Defend against Error.
45631         (Analyze_Formal_Subprogram): Defend against Error.
45632
45633         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
45634         remove following semicolon if present. Removes cascaded error.
45635
45636 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
45637
45638         * bindgen.adb:
45639         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
45640          exceptions equals 0.
45641         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
45642         Fixes PIWG E tests (which have to be run with -gnatL).
45643
45644 2001-12-04  Robert Dewar  <dewar@gnat.com>
45645
45646         * einfo.ads: Minor reformatting
45647
45648 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45649
45650         * einfo.ads: Block_Node points to the identifier of the block, not to
45651         the block node itself, to preserve the link when the block is
45652         rewritten, e.g. within an if-statement with a static condition.
45653
45654         * inline.adb (Cleanup_Scopes): recover block statement from block
45655         entity using new meaning of Block_Node.
45656
45657         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
45658         identifier of block node, rather than to node itself.
45659
45660 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
45661
45662         * layout.adb:
45663         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
45664         (Discrimify): Go back to setting the Etypes of the selected component
45665         because the Vname component does not exist at this point and will
45666         fail name resolution. Also set Analyzed.
45667         Remove with and use of Sem_Res.
45668
45669 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
45670
45671         * Makefile.in: (HIE_SOURCES): add s-fat*.
45672
45673 2001-12-04  Robert Dewar  <dewar@gnat.com>
45674
45675         * sem_attr.adb:
45676         (Compile_Time_Known_Attribute): New procedure.
45677         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
45678          proper range check.
45679
45680 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45681
45682         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
45683         processing discriminants to diagnose illegal default values.
45684
45685 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45686
45687         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
45688         access discriminant within a type extension that constrains its
45689         parent discriminants.
45690
45691 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45692
45693         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
45694         is malformed, use instance of Any_Id to allow analysis to proceed.
45695
45696         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
45697         type definition is illegal.
45698         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
45699         misplaced.
45700
45701 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45702
45703         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
45704         constants.
45705
45706 2001-12-04  Robert Dewar  <dewar@gnat.com>
45707
45708         * errout.adb: Minor reformatting
45709
45710 2001-12-04  Robert Dewar  <dewar@gnat.com>
45711
45712         * exp_util.adb: Minor reformatting from last change
45713
45714         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
45715         which is a rewriting of an expression, traverse the original
45716         expression to remove warnings that may have been posted on it.
45717
45718 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45719
45720         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
45721         record that has other packed components.
45722
45723 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
45724
45725         * adaint.c: Minor cleanups.
45726
45727 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
45728
45729         * adaint.c: Do not use utime.h on vxworks.
45730
45731 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
45732
45733         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
45734         more confusion than it solves.
45735
45736 2001-12-04  Geert bosch  <bosch@gnat.com>
45737
45738         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
45739
45740 2001-12-04  Geert Bosch  <bosch@gnat.com>
45741
45742         * Makefile.in (update-sources): New target.
45743         For use by gcc_release script.
45744
45745 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45746
45747         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
45748         a configuration pragma, it is now legal wherever a pragma can appear.
45749
45750 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
45751
45752         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
45753         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
45754         is now @CROSS@ -DIN_GCC; update comment.
45755
45756 2001-12-04  Robert Dewar  <dewar@gnat.com>
45757
45758         * einfo.adb (Has_Pragma_Pure_Function): New flag.
45759         Fix problem that stopped ceinfo from working
45760
45761         * einfo.ads (Has_Pragma_Pure_Function): New flag.
45762
45763         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
45764
45765 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
45766
45767         * gnatchop.adb:
45768         (File_Time_Stamp): New procedure.
45769         (Preserve_Mode): New boolean.
45770         (Write_Unit): Pass time stamp.
45771         Implement -p switch (preserve time stamps).
45772
45773         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
45774
45775         * gnatchop.adb: Do usage info for -p switch
45776
45777         * adaint.h (__gnat_set_file_time_name): New function
45778
45779         * adaint.c (__gnat_set_file_time_name): Implement
45780
45781         * adaint.h: Fix typo
45782
45783 2001-12-03  Robert Dewar  <dewar@gnat.com>
45784
45785         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
45786         have Associated_Node.
45787
45788 2001-12-03  Robert Dewar  <dewar@gnat.com>
45789
45790         * prj-proc.adb: Minor reformatting
45791
45792         * make.adb: Minor reformatting
45793
45794 2001-12-03  Geert Bosch  <bosch@gnat.com>
45795
45796         * make.adb: Minor reformatting.
45797
45798 2001-12-03 Robert Dewar  <dewar@gnat.com>
45799
45800         * sem_ch12.adb: Minor reformatting
45801
45802 2001-12-03  Ed Schonberg  <schonber@gnat.com>
45803
45804         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
45805         push Standard on the stack before analyzing the instance body,
45806         in order to have a clean visibility environment.
45807
45808         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
45809
45810 2001-12-03  Ed Schonberg  <schonber@gnat.com>
45811
45812         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
45813         instantiation of a body that contains an inlined body.
45814
45815 2001-12-03  Ed Schonberg  <schonber@gnat.com>
45816
45817         * sem_ch12.adb:
45818         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
45819         to prevent freezing within formal packages.
45820         (Freeze_Subprogram_Body): If body comes from another instance that
45821         appeared before its own body, place freeze node at end of current
45822         declarative part, to prevent a back-end crash.
45823         (Inline_Instance_Body): Handle properly a package instance within
45824         a subprogram instance that is a child unit.
45825
45826 2001-12-01  Graham Stott  <grahams@redhat.com>
45827
45828         * Makefile.in (misc.o): Add missing $(srcdir) prefix
45829         and add optabs.h dependency.
45830
45831         * misc.c: Include optabs.h
45832         (gnat_tree_code_type): Make static and const.
45833         (gnat_tree_code_length): Likewise.
45834         (gnat_tree_code_name): Likewise.
45835         (update_setjmp_buf): Obtain operands mode from insn_data.
45836
45837 2001-11-29  Richard Henderson  <rth@redhat.com>
45838
45839         * init.c: Remove obsolete dwarf2 frame.h section.
45840
45841 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
45842
45843         * Make-lang.in (ada.generated-manpages): New dummy target.
45844
45845 2001-11-29  Ed Schonberg  <schonber@gnat.com>
45846
45847         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
45848         into Command, an array conversion is illegal here. Uncovered by
45849         ACATS B460005.
45850
45851 2001-11-28  Geert Bosch  <bosch@gnat.com>
45852
45853         * init.c: Minor whitespace changes.
45854
45855 2001-11-28  Doug Rupp  <rupp@gnat.com>
45856
45857         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
45858         signal stack.
45859
45860 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
45861
45862         * misc.c (gnat_expand_constant): Move declaration above
45863         definition of lang_hooks.
45864         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
45865         (gnat_init): lang_expand_constant no longer exists.
45866
45867         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
45868         always have vprintf.
45869         (gnat_init): Always call set_internal_error_function.
45870
45871 2001-11-27  Andreas Jaeger  <aj@suse.de>
45872
45873         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
45874
45875 2001-11-27  Laurent Guerby  <guerby@acm.org>
45876
45877         * Makefile.in: Regenerate Ada dependencies.
45878
45879 2001-11-26  Richard Henderson  <rth@redhat.com>
45880
45881         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
45882         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
45883         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
45884
45885 2001-11-25  Laurent Guerby  <guerby@acm.org>
45886
45887         * sysdep.c (rts_get_*): Fix style.
45888
45889 2001-11-19  Laurent Guerby  <guerby@acm.org>
45890
45891         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
45892         since it is of no apparent use and cause warnings.
45893
45894 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
45895
45896         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
45897         static too.
45898         (gnat_init): Don't return NULL.
45899         (finish_parse): Remove.
45900
45901 2001-11-17  Laurent Guerby  <guerby@acm.org>
45902
45903         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
45904         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
45905         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
45906         * lang-spec.h: Add missing struct field to silence warnings.
45907         * sysdep.c (rts_get_*): Provide K&R prototype.
45908         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
45909         * traceback.c (Unlock_Task, Lock_Task): Likewise.
45910         * tracebak.c (__gnat_backtrace): Remove unused variable.
45911         * utils.c (end_subprog_body): Move to K&R style.
45912
45913 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
45914
45915         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
45916
45917 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
45918
45919         * misc.c (gnat_init): Change prototype.  Include the
45920         functionality of the old init_parse and init_decl_processing.
45921         (gnat_init_decl_processing): New prototype.
45922         (init_parse): Remove.
45923         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
45924
45925 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
45926
45927         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
45928         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
45929         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
45930         set_yydebug): Remove.
45931
45932 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
45933
45934         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
45935         (struct lang_hooks): Constify.
45936         (language_string, lang_identify): Remove.
45937         * utils.c (init_decl_processing): Update.
45938
45939 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
45940
45941         * misc.c: Include langhooks-def.h.
45942         * Makefile.in: Update.
45943
45944 2001-10-30  Robert Dewar  <dewar@gnat.com>
45945
45946         * style.adb:
45947         (Check_Identifier): Rewrite circuit to be compatible with use of letters
45948         in the upper half of ASCII.
45949         (Check_Identifier): Minor reformatting
45950
45951 2001-10-30  Geert Bosch  <bosch@gnat.com>
45952
45953         * (Associated_Node, Set_Associated_Node): Do not check for
45954         Freeze_Entity.
45955
45956 2001-10-30  Robert Dewar  <dewar@gnat.com>
45957
45958         * a-reatim.ads: Minor reformatting
45959
45960 2001-10-30  Robert Dewar  <dewar@gnat.com>
45961
45962         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
45963         undocumented declarations.
45964
45965 2001-10-30  Pascal Obry  <obry@gnat.com>
45966
45967         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
45968         to the binder and linker.
45969         Minor style fix.
45970
45971         * mdll.ads: Fix layout.  Update copyright notice.
45972
45973         * mdll.adb: Fix layout.  Update copyright notice.
45974
45975 2001-10-30  Robert Dewar  <dewar@gnat.com>
45976
45977         * usage.adb: Minor fix to output for -gnaty.
45978
45979 2001-10-30  Ed Schonberg  <schonber@gnat.com>
45980
45981         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
45982         to accommodate all its possible values.
45983
45984         * a-reatim.adb (Split): Special-case handling of Time_Span_First
45985         and of small absolute values of T.
45986
45987 2001-10-30  Richard Kenner  <kenner@gnat.com>
45988
45989         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
45990         set_mem_attributes since not needed and wrong if RESULT if a REG;
45991         fixes ACATS failures.
45992
45993 2001-10-30  Geert Bosch  <bosch@gnat.com>
45994
45995         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
45996         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
45997
45998 2001-10-30  Robert Dewar  <dewar@gnat.com>
45999
46000         * bindusg.adb: Undocument -f switch.
46001
46002         * gnatcmd.adb: Remove /FULL_ELABORATION.
46003
46004         * opt.ads (Force_RM_Elaboration_Order): Document that this is
46005         obsolescent.
46006
46007         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
46008
46009         * gnatbind.adb: Minor update of warning msg.
46010
46011 2001-10-30  Vincent Celier  <celier@gnat.com>
46012
46013         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
46014         for project file switches (-P (/PROJECT_FILE=),
46015          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
46016         or MEDIUM or HIGH)
46017
46018 2001-10-30  Geert Bosch  <bosch@gnat.com>
46019
46020         * decl.c: Minor whitespace fixes.
46021
46022 2001-10-30  Richard Kenner  <kenner@gnat.com>
46023
46024         * utils2.c (build_allocator): Test for SIZE overflow in array case too
46025
46026 2001-10-30  Geert Bosch  <bosch@gnat.com>
46027
46028         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
46029         Found due to GCC 3.0 warning of using uninitialized value.
46030
46031         * layout.adb:
46032         (Get_Max_Size): Use variant record for tracking value/expression.
46033          Makes logic clearer and prevents warnings for uninitialized variables.
46034         (Layout_Array_Type): Use variant record for tracking value/expression.
46035          Makes logic clearer and prevents warnings for uninitialized variables.
46036
46037 2001-10-30  Robert Dewar  <dewar@gnat.com>
46038
46039         * lib.adb: Minor reformatting
46040
46041         * s-taprop.ads: Minor reformatting
46042
46043 2001-10-29  Laurent Guerby  <guerby@acm.org>
46044
46045         * init.c:
46046         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
46047         const.
46048         (_gnat_error_handler): Make MSG const.
46049
46050 2001-10-29  Richard Kenner  <kenner@gnat.com>
46051
46052         * sysdep.c: Fix localtime_r problem on LynxOS.
46053         Also remove #elif to avoid warnings.
46054
46055         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
46056         used by this.
46057
46058         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
46059
46060 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
46061
46062         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
46063         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
46064         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
46065         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
46066         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
46067         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
46068         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
46069         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
46070         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
46071         types.ads, urealp.adb: Fix spelling errors.
46072
46073 2001-10-27  Laurent Guerby  <guerby@acm.org>
46074
46075         * trans.c (gigi): Fix non determinism leading to bootstrap
46076         comparison failures for debugging information.
46077
46078 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
46079
46080         * gnat_rm.texi: Use @./@: where appropriate.
46081
46082 2001-10-26  Robert Dewar  <dewar@gnat.com>
46083
46084         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
46085
46086 2001-10-26  Richard Kenner  <kenner@gnat.com>
46087
46088         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
46089
46090 2001-10-26  Richard Kenner  <kenner@gnat.com>
46091
46092         * decl.c (validate_size): Modify message for bad size to avoid
46093         implication that compiler is modifying the size.
46094
46095 2001-10-26  Robert Dewar  <dewar@gnat.com>
46096
46097         * prj-util.adb: Minor reformatting. Fix bad header format.
46098
46099 2001-10-26  Robert Dewar  <dewar@gnat.com>
46100
46101         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
46102
46103         * sinfo.ads: Clarify use of Associated_Node (documentation only).
46104
46105         * sem_ch12.adb: Change Node4 to Associated_Node. Change
46106         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
46107         much more narrowly in places where needed. These are cleanups.
46108
46109 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
46110
46111         * 5zosinte.ads (null_pthread): new constant.
46112
46113         * 5ztaprop.adb:
46114         (Initialize_TCB): Initialize thread ID to null, to be able to verify
46115          later that this field has been set.
46116         (Finalize_TCB): ditto.
46117         (Suspend_Task): Verify that the thread ID is not null before using it.
46118         (Resume_Task): ditto.
46119
46120         * s-tasdeb.adb:
46121         (Resume_All_Tasks): Lock the tasks list before using it.
46122         (Suspend_All_Tasks): ditto.
46123
46124 2001-10-26  Richard Kenner  <kenner@gnat.com>
46125
46126         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
46127         Make constant variant of designated type for Is_Access_Constant.
46128         Call update_pointer_to with main variant.
46129
46130         * trans.c (process_freeze_entity, process_type):
46131         Call update_pointer_to on main variant.
46132
46133         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
46134         If main variant, update all other variants.
46135
46136         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
46137         TREE_STATIC.
46138
46139 2001-10-26  Robert Dewar  <dewar@gnat.com>
46140
46141         * prj-util.adb: Minor reformatting
46142
46143 2001-10-26  Robert Dewar  <dewar@gnat.com>
46144
46145         * prj-util.adb: Minor reformatting
46146
46147 2001-10-26  Robert Dewar  <dewar@gnat.com>
46148
46149         * prj-attr.adb: Minor reformatting throughout
46150
46151 2001-10-26  Robert Dewar  <dewar@gnat.com>
46152
46153         * prj-attr.ads: Minor reformatting
46154         Add ??? comment (this whole spec has almost no comments)
46155
46156 2001-10-26  Vincent Celier  <celier@gnat.com>
46157
46158         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
46159         ("//") that precede the drive letter on Interix.
46160
46161 2001-10-26  Geert Bosch  <bosch@gnat.com>
46162
46163         * gnat_rm.texi: Add GNAT Reference Manual.
46164
46165 2001-10-25  Robert Dewar  <dewar@gnat.com>
46166
46167         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
46168         is Error. Similar change for other renaming cases.
46169
46170 2001-10-25  Robert Dewar  <dewar@gnat.com>
46171
46172         * s-atacco.ads: Add pragma Inline_Always for functions.
46173         Fix header format. Add copyright 2001
46174
46175 2001-10-25  Ed Schonberg  <schonber@gnat.com>
46176
46177         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
46178         return Error rather than Empty so that analysis can proceed.
46179
46180 2001-10-25  Ed Schonberg  <schonber@gnat.com>
46181
46182         * sem_util.adb (Enter_Name): better handling of cascaded error
46183         messages when a unit appears in its own context.
46184
46185 2001-10-25  Ed Schonberg  <schonber@gnat.com>
46186
46187         * sem_util.adb (Defining_Entity): in case of error, attach created
46188         entity to specification, so that semantic analysis can proceed.
46189
46190 2001-10-25  Robert Dewar  <dewar@gnat.com>
46191
46192         * sem_util.adb
46193         (Defining_Entity): Deal with Error.
46194         (Process_End_Label): Deal with bad end label for.
46195
46196 2001-10-25  Ed Schonberg  <schonber@gnat.com>
46197
46198         * sem_elab.adb (Check_A_Call): refine message when call is in an
46199         instance but callee is not declared in the generic unit.
46200
46201 2001-10-25  Ed Schonberg  <schonber@gnat.com>
46202
46203         * sem_elab.adb (Check_A_Call): check for renaming before finding the
46204         enclosing unit, which may already be different from the calling unit.
46205
46206 2001-10-25  Geert Bosch  <bosch@gnat.com>
46207
46208         * 4gintnam.ads: fix header format.
46209
46210 2001-10-25  Ed Schonberg  <schonber@gnat.com>
46211
46212         * sem_res.adb (Resolve_Call): if the call is actually an indexing
46213         operation on the result of a parameterless call, perform elaboration
46214         check after the node has been properly rewritten.
46215
46216         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
46217         inlined within the generic tree, the defining identifier is not a
46218         compilation_unit.
46219
46220 2001-10-25  Ed Schonberg  <schonber@gnat.com>
46221
46222         * sem_res.adb (Resolve): special-case resolution of Null in an
46223          instance or an inlined body to avoid view conflicts.
46224
46225         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
46226          compatibility by retrieving the access type of the generic copy.
46227
46228 2001-10-25  Robert Dewar  <dewar@gnat.com>
46229
46230         * sem_ch3.adb:
46231         (Analyze_Number_Declaration): Handle error expression.
46232         (Signed_Integer_Type_Declaration): Handle error bound.
46233         (Analyze_Subtype_Indication): Handle error range.
46234
46235         * sem_util.adb (Get_Index_Bounds): Check for Error.
46236
46237 2001-10-25  Robert Dewar  <dewar@gnat.com>
46238
46239         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
46240         in no run time mode.
46241
46242 2001-10-25  Pascal Obry  <obry@gnat.com>
46243
46244         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
46245         mode case for ALLOC case.
46246
46247         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
46248         all platforms. Improvement of last change.
46249
46250 2001-10-25  Robert Dewar  <dewar@gnat.com>
46251
46252         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
46253
46254 2001-10-25  Geert Bosch  <bosch@gnat.com>
46255
46256         * osint.adb (Is_Relative): Remove duplicate.
46257
46258 2001-10-25  Pascal Obry  <obry@gnat.com>
46259
46260         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
46261         pathnames in UNIX and DOS style with drive letter.
46262         (Is_Relative): new routine.
46263
46264         * osint.adb: Minor reformatting
46265
46266         * osint.adb (Is_Relative): implementation using
46267         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
46268
46269 2001-10-25  Pascal Obry  <obry@gnat.com>
46270
46271         * g-dirope.adb (Basename): correctly compute offset between the
46272         original Path and the translated one.
46273
46274         * g-dirope.adb: (Base_Name): add some comments.
46275
46276 2001-10-25  Robert Dewar  <dewar@gnat.com>
46277
46278         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
46279         in HIE mode, avoids compilation abandoned message
46280
46281         * exp_imgv.adb: Correct typo in previous change
46282
46283         * exp_imgv.adb: Correct typo in previous change (not my day!)
46284
46285 2001-10-25  Robert Dewar  <dewar@gnat.com>
46286
46287         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
46288
46289 2001-10-25  Pascal Obry  <obry@gnat.com>
46290
46291         * g-awk.ads: Move all pragma inlines next to the routine
46292          declarations. This is more uniform with other GNAT spec.
46293
46294 2001-10-22  Geert Bosch  <bosch@gnat.com>
46295
46296         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
46297
46298 2001-10-19  Geert Bosch  <bosch@gnat.com>
46299
46300         * Makefile.in (tools, gnattools): Remove gnatmem.
46301
46302 2001-10-17  Richard Henderson  <rth@redhat.com>
46303
46304         * Makefile.in (misc.o): Depend on langhooks.h.
46305         * misc.c: Include it.
46306         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
46307         (LANG_HOOKS_DECODE_OPTION): New.
46308         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
46309
46310 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
46311
46312         * trans.c (tree_transform): Adjust to recent change in
46313         expand_asm_operands to implement named asm operands.
46314
46315 2001-10-11  Ed Schonberg  <schonber@gnat.com>
46316
46317         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
46318         renaming of discriminant for mutable record type.
46319
46320 2001-10-11  Robert Dewar  <dewar@gnat.com>
46321
46322         * validsw.adb: Properly save -gnatVn status.
46323
46324 2001-10-11  Robert Dewar  <dewar@gnat.com>
46325
46326         * usage.adb: Add lines for V switch.
46327
46328         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
46329         (/VALIDITY_CHECKING).
46330
46331 2001-10-11  Ed Schonberg  <schonber@gnat.com>
46332
46333         * sem_type.adb (Add_One_Interp): an operator for a type declared in
46334         an extension of System is known to be visible.
46335
46336 2001-10-11  Ed Schonberg  <schonber@gnat.com>
46337
46338         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
46339         properly. Fixes regression on ACATS C34005G.
46340
46341 2001-10-11  Robert Dewar  <dewar@gnat.com>
46342
46343         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
46344         loop in generic instance, since this is likely not very useful.
46345
46346 2001-10-11  Robert Dewar  <dewar@gnat.com>
46347
46348         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
46349         the error message for high integrity mode.
46350
46351         * rtsfind.adb (RTE): Give message if we try to find an entity that
46352         is not available in high integrity mode.
46353
46354         * rtsfind.ads:
46355         (OK_To_Use_In_HIE_Mode): New array.
46356         (RTE): May return Empty in high integrity mode.
46357
46358         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
46359         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
46360
46361         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
46362         unit if not inlined always and in no runtime mode. Fixes problem
46363         caused by new Rtsfind changes.
46364
46365         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
46366         body is deleted.
46367
46368         * rtsfind.adb (RTE): Make sure we do not try to load unit after
46369         giving message for entity not available in high integrity mode.
46370
46371 2001-10-11  Pascal Obry  <obry@gnat.com>
46372
46373         * impunit.adb: Add GNAT.CRC32.
46374
46375 2001-10-11  Ed Schonberg  <schonber@gnat.com>
46376
46377         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
46378         properly the case where one universal operand in a non-static
46379         exponentiation of a real literal.
46380
46381 2001-10-11  Ed Schonberg  <schonber@gnat.com>
46382
46383         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
46384         clause, return the gobal finalization list, for lack of anthing else.
46385
46386 2001-10-11  Ed Schonberg  <schonber@gnat.com>
46387
46388         * exp_ch7.adb (Make_Transient_Block): if statement is within
46389         exception handler, always use new transient scope to place Clean
46390         procedure.
46391
46392 2001-10-11  Pascal Obry  <obry@gnat.com>
46393
46394         * Makefile.in:
46395         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46396         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46397         (GNATLS_RTL_OBJS): add g-crc32.o
46398         (GNATMAKE_RTL_OBJS): add g-crc32.o
46399
46400         * ali-util.adb:
46401         (CRC_Match): new function.
46402         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
46403         instead of the previous simple checksum algorithm.
46404         (Time_Stamp_Mismatch): use CRC_Match for comparison.
46405         (Set_Source_Table): idem.
46406
46407         * ali-util.ads:
46408         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
46409         instead of simple checksum.
46410         (CRC_Match): new function.
46411         (CRC_Error): new constant.
46412
46413         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
46414         a CRC now and not a simple checksum. A CRC uses lower-case hex
46415         letters, fixes ambiguity in parsing.
46416
46417         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
46418         is what this variable will store.
46419
46420         * bcheck.adb: Change reference to chechsum in comments by CRC.
46421         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
46422         rename All_Checksum_Match to All_CRC_Match. Change due to API
46423         renaming since now GNAT does not use a simple checksum but a
46424         CRC using GNAT.CRC32.
46425
46426         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
46427         now and not anymore a simple checksum.
46428
46429         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
46430         places.
46431
46432         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
46433
46434         * scans.adb:
46435         (Restore_Scan_State): rename Checksum to CRC.
46436         (Save_Scan_State): idem.
46437
46438         * scans.ads:
46439         With GNAT.CRC32.
46440         (Checksum): rename to CRC.
46441         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
46442
46443         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
46444         GNAT.CRC32).  Update copyright notice.
46445
46446         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
46447         GNAT.CRC32).  Update copyright notice.
46448
46449         * scn.adb:
46450         (Accumulate_Checksum): removed.
46451         (Update): new procedure. Add a wide-character into the CRC.
46452
46453         * sinput-l.adb:
46454         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
46455         (Load_File): fix initialization of S (change Source_Checksum to
46456         Source_CRC)
46457
46458         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
46459         Source_CRC in S initialization.
46460
46461         * sinput.adb (Source_Checksum): renamed to Source_CRC.
46462
46463         * sinput.ads (Source_Checksum): renamed to Source_CRC.
46464         Update comments for the CRC.
46465
46466         * types.adb (Hex): Use lowercase for the letter part.
46467
46468         * types.ads (Get_Hex_String): Returns the hexadecimal representation
46469         for a word. This is currently used only for CRC. In previous version,
46470         the checksum was using a representation with all letter being
46471         upper-case. With the new implementation (using CRC) we do not remove
46472         the 32th bit of the CRC, so we can have an upper-case starting letter
46473         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
46474         It is ambigous since the CRC was optional and could be followed by
46475         options like EB, EE. So now this routines uses lower-case letter for
46476         the hexadecimal representation. Strange enough only lower case letters
46477         where checked in Scan_ALI (even if this was not a possible case).
46478
46479         * gnatvsn.ads (Library_Version): changed to 3.15a.
46480
46481         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
46482         for the compiler.
46483
46484         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
46485         for the compiler.
46486
46487         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
46488         Add 2001 to copyright notice
46489         (Accumulate_Checksum): Modify to use System.CRC32.
46490
46491         * ali-util.ads: Redo changes of previous revision to continue to use
46492         the word Checksum. Add 2001 to copyright notice.
46493
46494         * ali.adb: Undo some of previous changes, not needed.
46495         Keep the change for lower case letters in the checksum.
46496
46497         * ali.ads: Undo previous change not needed.
46498
46499         * bcheck.adb: Undo most of previous change, not needed.
46500         But do use Checksums_Match for checksum comparison.
46501
46502         * gnatls.adb: Undo most of previous change, not needed.
46503         But do use Checksums_Match for comparing checksums.
46504
46505         * lib-load.adb: Undo previous change, not needed.
46506
46507         * lib-writ.adb: Undo previous change, not needed.
46508
46509         * lib-writ.ads: Document that checksums use lower case,
46510         not upper case letters.
46511
46512         * scans.adb: Undo previous change, not needed
46513
46514         * scans.ads: Undo previous change, not needed.
46515
46516         * scn-nlit.adb: Undo previous changes, not needed.
46517
46518         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
46519
46520         * scn.adb:
46521         (Accumulate_Checksum): Use System.CRC32.
46522         (Initialize_Checksum): New procedure.
46523         Remove other changes of previous revision.
46524
46525         * sinput-p.adb: Undo previous change, not needed.
46526
46527         * sinput.adb: Undo previous change, not needed.
46528
46529         * sinput-l.adb: Undo previous change, not needed.
46530
46531         * sinput.ads: Undo previous change, not needed.  Keep only comment
46532         on new checksum algorithm
46533
46534         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
46535         Also remove a-tags and a-stream from GNAT sources.
46536
46537         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
46538
46539         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
46540
46541 2001-10-11  Geert Bosch  <bosch@gnat.com>
46542
46543         * einfo.h: Regenerate.
46544
46545         * nmake.ads: Regenerate.
46546
46547         * nmake.adb: Regenerate.
46548
46549         * sinfo.h: Regenerate.
46550
46551         * treeprs.adb: Regenerate.
46552
46553 2001-10-10  Geert Bosch  <bosch@gnat.com>
46554
46555         * gnat-style.texi: New file describing coding guidelines for Ada.
46556
46557 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46558
46559         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
46560         is Flag174.
46561
46562 2001-10-10  Geert Bosch  <bosch@gnat.com>
46563
46564         * snames.ads: Add new names for project facility.
46565
46566         * snames.adb: Update to reflect snames.ads changes.
46567
46568         * snames.h: Update to reflect snames.ads changes.
46569
46570 2001-10-10  Vincent Celier  <celier@gnat.com>
46571
46572         * make.adb:
46573         (Add_Switches): reflect the changes for the switches attributes
46574         Default_Switches indexed by the programming language,
46575         Switches indexed by the file name.
46576         (Collect_Arguments_And_Compile): Idem.
46577         Reflect the attribute name changes.
46578
46579         * prj-attr.adb:
46580         (Initialisation_Data): Change the names of some packages and
46581         attributes.
46582         (Initialize): process case insensitive associative arrays.
46583
46584         * prj-attr.ads:
46585         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
46586
46587         * prj-dect.adb:
46588         (Parse_Attribute_Declaration): For case insensitive associative
46589          arrays, set the index string to lower case.
46590
46591         * prj-env.adb:
46592         Reflect the changes of the project attributes.
46593
46594         * prj-nmsc.adb:
46595         Replace Check_Naming_Scheme by Ada_Check and
46596         Language_Independent_Check.
46597
46598         * prj-nmsc.ads:
46599         Replaced Check_Naming_Scheme by 2 procedures:
46600         Ada_Check and Language_Independent_Check.
46601
46602         * prj-proc.adb:
46603         (Process_Declarative_Items): For case-insensitive associative
46604         arrays, set the index string to lower case.
46605         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
46606         Prj.Nmsc.Check_Naming_Scheme.
46607
46608         * prj-tree.adb:
46609         (Case_Insensitive): New function
46610         (Set_Case_Insensitive): New procedure
46611
46612         * prj-tree.ads:
46613         (Case_Insensitive): New function
46614         (Set_Case_Insensitive): New procedure
46615         (Project_Node_Record): New flag Case_Insensitive.
46616
46617         * prj-util.adb:
46618         (Value_Of): new function to get the string value of a single
46619         string variable or attribute.
46620
46621         * prj-util.ads:
46622         (Value_Of): new function to get the string value of a single
46623         string variable or attribute.
46624
46625         * prj.adb:
46626         (Ada_Default_Spec_Suffix): New function
46627         (Ada_Default_Impl_Suffix): New function
46628         Change definitions of several constants to reflect
46629         new components of record types.
46630
46631         * prj.ads:
46632         (Naming_Data): Change several components to reflect new
46633         elements of naming schemes.
46634         (Project_Data): New flags Sources_Present and
46635         Language_Independent_Checked.
46636         (Ada_Default_Spec_Suffix): New function.
46637         (Ada_Default_Impl_Suffix): New function.
46638
46639         * snames.ads:
46640         Modification of predefined names for project manager: added
46641         Implementation, Specification_Exceptions, Implementation_Exceptions,
46642         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
46643         Default_Switches, _Languages, Builder, Cross_Reference,
46644         Finder. Removed Body_Part, Specification_Append, Body_Append,
46645         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
46646         Gnatlink.
46647
46648         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46649         Add comments.
46650
46651         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
46652         not that it is Nil_Variable_Value.
46653
46654         * prj.ads: Add ??? for uncommented declarations
46655
46656 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46657
46658         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
46659         constant, do not indicate possible modification, so that gigi can
46660         treat it as a bona fide constant.
46661
46662 2001-10-10  Robert Dewar  <dewar@gnat.com>
46663
46664         * sem_prag.adb: Add processing for pragma External.
46665
46666         * snames.ads: Add entry for pragma External.
46667
46668         * par-prag.adb: Add pragma External.
46669
46670         * snames.adb: Updated to match snames.ads.
46671
46672 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46673
46674         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
46675         a dynamic task if the allocator appears in an indexed assignment
46676         or selected component assignment.
46677
46678         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
46679         For a dynamic task in an assignment statement, use target of
46680         assignment to generate meaningful name.
46681
46682 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46683
46684         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
46685         a generic package.
46686
46687         * einfo.ads: Body_Entity is also defined for generic package.
46688         Documentation change only
46689
46690         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
46691         others_choice for a discriminated component initialization,
46692         convert discriminant references into the corresponding discriminals.
46693
46694         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
46695         only if original type is private and expression has to be wrapped
46696         in a conversion.
46697
46698         * checks.adb:
46699         (Apply_Constraint_Check): Do not perform length check
46700         if expression is an aggregate with only an others_choice.
46701         (Length_N_Cond): two references to the same in_parameter
46702         (typically the discriminal in an init_proc) denote the same value.
46703         Two useful optimization uncovered by bugfixes above.
46704
46705 2001-10-10  Robert Dewar  <dewar@gnat.com>
46706
46707         * xeinfo.adb: Change int to char in translation of enumeration types.
46708         This fixes a problem in the C representation of component alignment.
46709         Add 2001 to copyright notice
46710
46711 2001-10-10  Richard Kenner  <kenner@gnat.com>
46712
46713         * decl.c: (validate_size): Do check size of object of integral type
46714         if it is a packed array type.
46715
46716 2001-10-10  Richard Kenner  <kenner@gnat.com>
46717
46718         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
46719         VAR_DECL for constant if not Is_Public but -O0.
46720
46721 2001-10-10  Richard Kenner  <kenner@gnat.com>
46722
46723         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
46724
46725 2001-10-10  Geert Bosch  <bosch@gnat.com>
46726
46727         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
46728         use '/' as switch character, allowing for absolute file names.
46729
46730 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
46731
46732         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
46733         FSF address.
46734
46735 2001-10-08  Geert Bosch  <bosch@gnat.com>
46736
46737         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
46738         Automatically build utilities when files need to be regenerated.
46739
46740 2001-10-08  Geert Bosch  <bosch@gnat.com>
46741
46742         * xsnames.adb: New utility for updating snames.ads and snames.adb
46743
46744 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
46745
46746         * Make-lang.in (ADAFLAGS): Add -W -Wall.
46747         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
46748         (gnat1): Also depend on attribs.o.
46749         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
46750         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
46751         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
46752         (ADAFLAGS): Add -W -Wall.
46753         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
46754         take out CFLAGS.
46755
46756         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
46757         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
46758         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
46759         Use $(ADAC), not $(CC), as compilation command.
46760
46761         (gnattools): Depend directly on tools to build, don't use
46762         recursive make.
46763         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
46764
46765         * einfo.h, sinfo.h: New files (autogenerated).
46766
46767 2001-10-08  Richard Henderson  <rth@redhat.com>
46768
46769         * comperr.adb (Abort_In_Progress): New.
46770         (Compiler_Abort): Use it to prevent recursion.
46771
46772 2001-10-08  Robert Dewar  <dewar@gnat.com>
46773
46774         * atree.adb: Set Error_Posted in Error node, helps error recovery.
46775
46776         * par-endh.adb (Output_End_Expected): We should also not test
46777         Error_Posted on the Error node, since now it is always set.
46778
46779         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
46780         to help error recovery. Part of general work on 9407-004.
46781
46782         * par.adb: Add ??? for misuse of error
46783
46784         * sem_res.adb:
46785         (Resolve): Defend against Error, fixes 9407-003.
46786         (Resolve_Discrete_Subtype_Indication): Defend against Error.
46787
46788         * sinfo.ads (N_Error): Now has Etype field (which will be set
46789         to Any_Type to help error recovery).
46790
46791 2001-10-08  Richard Kenner  <kenner@gnat.com>
46792
46793         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
46794         Consistently set MEM attributes from expression; fixes
46795         bootstrap failure on x86.
46796
46797 2001-10-08  Geert Bosch  <bosch@gnat.com>
46798
46799         * 5oosinte.adb: Add 2001 to copyright notice.
46800
46801 2001-10-08  Geert Bosch  <bosch@gnat.com>
46802
46803         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
46804
46805         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
46806
46807 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
46808
46809         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
46810
46811 2001-10-05  Geert Bosch  <bosch@gnat.com>
46812
46813         * adaint.h: Small formatting fix.
46814
46815 2001-10-04  Geert Bosch  <bosch@gnat.com>
46816
46817         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
46818         Arg is int, not FILE *, in dummy version of functions.
46819
46820         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
46821         Arg is int, not FILE *.
46822
46823 2001-10-04  Geert Bosch  <bosch@gnat.com>
46824
46825         * 3lsoccon.ads: Added file, missed with initial check ins.
46826
46827         * 4lintnam.ads: Fix header format.
46828         Change Linux to GNU/Linux.
46829
46830         * 5iosinte.adb: Change Linux to GNU/Linux.
46831
46832         * 5iosinte.ads: Change Linux to GNU/Linux.
46833
46834         * 5itaprop.adb: Change Linux to GNU/Linux.
46835
46836         * 5itaspri.ads: Change Linux to GNU/Linux.
46837         Update copyright notice.
46838
46839         * 5lintman.adb: Change Linux to GNU/Linux.
46840
46841         * 5lml-tgt.adb: Change Linux to GNU/Linux.
46842
46843         * 5losinte.ads: Change Linux to GNU/Linux.
46844
46845         * 5lsystem.ads: Change Linux to GNU/Linux.
46846
46847         * 5qosinte.adb: Change Linux to GNU/Linux.
46848
46849         * 5qosinte.ads: Change Linux to GNU/Linux.
46850
46851         * 5qparame.ads: Change Linux to GNU/Linux.
46852
46853         * 5qtaprop.adb: Change Linux to GNU/Linux.
46854
46855         * 5qtaspri.ads: Change Linux to GNU/Linux.
46856         Add 2001 to copyright notice.
46857
46858         * 5vintman.ads: Change Linux to GNU/Linux.
46859         Fix header format.  Add 2001 to copyright notice.
46860
46861         * g-soccon.ads: Change Linux to GNU/Linux.
46862
46863         * g-trasym.ads: Change Linux to GNU/Linux.
46864         Add 2001 to copyright notice.
46865
46866         * memtrack.adb: Change Linux to GNU/Linux.
46867
46868         * s-intman.ads: Change Linux to GNU/Linux.
46869         Add 2001 to copyright notice.  Fix header format.
46870
46871         * s-stache.adb: Change Linux to GNU/Linux.
46872
46873         * adaint.c: Change Linux to GNU/Linux.
46874
46875         * cio.c: Change Linux to GNU/Linux.
46876
46877         * cstreams.c: Change Linux to GNU/Linux.
46878
46879         * init.c: Change Linux to GNU/Linux.
46880
46881         * gmem.c: Change Linux to GNU/Linux.
46882
46883         * tracebak.c: Change Linux to GNU/Linux.
46884
46885
46886 2001-10-02  Geert Bosch  <bosch@gnat.com>
46887
46888         * misc.c (insert_default_attributes): Add dummy version.