OSDN Git Service

2009-04-15 Ed Schonberg <schonberg@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
2
3         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
4         the second is redundant, regardless of scopes.
5
6 2009-04-15  Vincent Celier  <celier@adacore.com>
7
8         * prj-nmsc.adb (Get_Directories): Check for sources before checking
9         the object directory as when there are no sources, they may not be any
10         object directory.
11
12         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
13         directory, when there are no exec directory.
14
15 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
16
17         * sem_type.adb (Remove_Conversions): In order to resolve spurious
18         ambiguities, refine removal of universal interpretations from complex
19         expressions with literal arguments, when some numeric operators have
20         been declared abstract.
21
22 2009-04-15  Ed Falis  <falis@adacore.com>
23
24         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
25         and backward compatibility for targets using probing for stack overflow
26
27 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
28
29         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
30         after any declaration, including renaming declarations.
31
32 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
33
34         * gcc-interface/Make-lang.in: Update dependencies.
35
36         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
37
38 2009-04-15  Javier Miranda  <miranda@adacore.com>
39
40         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
41
42         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
43         functions returning anonymous access to class-wide limited types. Mark
44         also the containing scope as a task master.
45
46         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
47         limited-withed packages. Required to restore their visibility after
48         processing packages associated with implicit with-clauses.
49
50         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
51         associated with return statements because this work is now done by
52         Check_Anonymous_Return.
53         (Build_Master): Code cleanup.
54
55 2009-04-15  Thomas Quinot  <quinot@adacore.com>
56
57         * sem_warn.ads: Minor reformatting
58
59 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
60
61         * sem_ch3.adb: better error message for illegal interfaces
62
63         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
64         formal is an incomplete type from a limited_with clause.
65
66 2009-04-15  Vincent Celier  <celier@adacore.com>
67
68         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
69         Externally_Built indicating if the project is externally built. If it
70         is, and --subdirs is specified, but the subdir does not exist, look
71         for the specified directory, without the subdir.
72
73 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
74
75         * a-tasatt.adb: Fix typo, plus minor reformatting
76
77         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
78
79         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
80
81 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
82
83         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
84         private extension whose parent is a synchronized interface carries an
85         explicit synchronized keyword.
86
87 2009-04-15  Thomas Quinot  <quinot@adacore.com>
88
89         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
90         instantiate generic shared object package with the corresponding
91         record type.
92
93 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
94
95         * system-linux-sparc.ads: Remove obsolete entries.
96
97 2009-04-15  Thomas Quinot  <quinot@adacore.com>
98
99         * s-tasuti.ads: Add ??? comment
100
101 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
102
103         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
104         type even if the designated type comes from a limited_with clause, to
105         ensure that the symbol for the finalization list of the access type is
106         created.
107
108 2009-04-10  Robert Dewar  <dewar@adacore.com>
109
110         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
111         for warning suppression.
112
113 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
114
115         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
116         identical, there is no redudancy to check.
117
118 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
119
120         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
121         calls initializing SS_Allocator (which is initialized in following
122         code).
123         (Expand_Simple_Function_Return): Add comment about False value for
124         Comes_From_Source on secondary-stack allocator.
125
126         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
127         (Build_Entry_Name): Add comment.
128
129 2009-04-10  Robert Dewar  <dewar@adacore.com>
130
131         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
132
133         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
134         bound tested, since this is now done more generally in Sem_Res.
135
136         * sem_res.adb (Resolve_Comparison_Op): Add call to
137         Check_Lower_Bound_Tested.
138         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
139
140         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
141         (Low_Bound_Tested): New name for Low_Bound_Known flag
142
143         * exp_ch5.adb: Minor reformatting
144
145         * exp_ch4.adb:
146         Add comments on copying the Comes_From_Source flag for allocators
147
148         * sinfo.ads:
149         Add comments on copying the Comes_From_Source flag for allocators
150
151         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
152         Comes_From_Source flag from old allocator to new one.
153
154 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
155
156         * sem_ch6.ads: Address missing documentation query
157
158 2009-04-10  Vincent Celier  <celier@adacore.com>
159
160         * prj-attr.adb:
161         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
162         and Response_File_Switches.
163
164         * prj-nmsc.adb (Process_Linker): Process new attributes
165         Max_Command_Line_Length, Response_File_Format and
166         Response_File_Switches.
167
168         * prj.ads (Response_File_Format): New enumeration type
169         (Project_Configuration): New componants Max_Command_Line_Length,
170         Resp_File_Format and Resp_File_Options.
171
172         * snames.ads-tmpl: Add new standard names for linking response files
173         for gprbuild: GNU, None, Object_List, Option_List,
174         Max_Command_Line_Length, Response_File_Format and
175         Response_File_Switches.
176
177 2009-04-10  Geert Bosch  <bosch@adacore.com>
178
179         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
180         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
181         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
182         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
183         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
184         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
185         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
186         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
187         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
188         system-vxworks-arm.ads, system-vxworks-m68k.ads,
189         system-vxworks-mips.ads, system-vxworks-ppc.ads,
190         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
191         (Backend_Overflow_Checks): Set to True.
192
193 2009-04-10  Thomas Quinot  <quinot@adacore.com>
194
195         * exp_attr.adb: Minor reformatting
196
197 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
198
199         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
200         analyze the expression for a postcondition, even if the compiler mode
201         is Generate_Code.
202
203 2009-04-10  Robert Dewar  <dewar@adacore.com>
204
205         * sem_aux.adb: Minor reformatting
206
207 2009-04-10  Ed Falis  <falis@adacore.com>
208
209         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
210
211         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
212
213 2009-04-10  Thomas Quinot  <quinot@adacore.com>
214
215         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
216         undocumented formal.
217         Minor reformatting
218
219         * a-direio.ads: Fix typo in comment
220
221         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
222         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
223         Use uniform phrasing for comment at start of subprogram body.
224
225         * xsnamest.adb: Add note to explain why we use specific names for the
226         newly generated files instead of generating snames.{ads,adb,h} directly
227
228 2009-04-10  Sergey Rybin  <rybin@adacore.com>
229
230         * vms_data.ads:
231         Add qualifier for new gnatstub option '--no-exception'
232
233         * gnat_ugn.texi:
234         Add the description of the new gnatstub option '--no-exception'
235
236 2009-04-10  Robert Dewar  <dewar@adacore.com>
237
238         * rtsfind.adb: Minor reformatting
239
240 2009-04-10  Thomas Quinot  <quinot@adacore.com>
241
242         * sem_disp.adb: Minor reformatting.
243         Add comment pointing to RM clause for the case of warning against a
244         (failed) attempt at declaring a primitive operation elsewhere than in a
245         package spec.
246
247 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
248
249         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
250         an actual for a previous formal package of the current instance.
251
252 2009-04-10  Bob Duff  <duff@adacore.com>
253
254         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
255         them first, rather than on the extended main unit.
256
257 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
258
259         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
260         specification of full view carries a null exclusion indicator, create
261         an itype for it, to check for conformance with partial view.
262
263 2009-04-10  Bob Duff  <duff@adacore.com>
264
265         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
266
267         * rtsfind.adb: Minor comment changes, and remove useless code.
268
269         * sinfo.ads: Add ??? comment.
270
271 2009-04-10  Vincent Celier  <celier@adacore.com>
272
273         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
274
275 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
276
277         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
278         type is a synchronized type, retrieve tag information from the
279         corresponding record, which has the dispatch table link.
280
281 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
282
283         * g-comlin.adb (Group_Analysis): Take care of switches that might be
284         decomposed afterwards, but are present as-is in the command line
285         configuration, and thus should be kept as-is.
286
287 2009-04-10  Robert Dewar  <dewar@adacore.com>
288
289         * gnat_rm.texi: Document that postconditions are tested on implicit
290         returns.
291
292         * sem_aux.adb: Minor reformatting
293
294 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
295
296         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
297         setting Etype.
298         
299         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
300         Null_Exclusion_In_Return_Present when an access-to-function type has a
301         result type with an explicit not null.
302
303         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
304         given on the result type, then create a null-excluding itype for the
305         function.
306
307         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
308         the case where a null exclusion is imposed on a named access type.
309         (Analyze_Subprogram_Specification): Push and pop the scope of the
310         function around the call to Analyze_Return_Type in the case of no
311         formals, for consistency with handling when formals are present
312         (Process_Formals does this). Ensures that any itype created for the
313         return type will be associated with the proper scope.
314
315         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
316         exclusion is given on a generic function's result type, then create a
317         null-excluding itype for the generic function.
318         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
319         for an actual for a formal in object according to the setting on the
320         formal. Ensures null exclusion checks are done when the association is
321         elaborated.
322
323         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
324         N_Access_Function_Definition.
325
326         * sinfo.adb: Add Get_ and Set_ operations for
327         Null_Exclusion_In_Return_Present.
328
329 2009-04-10  Bob Duff  <duff@adacore.com>
330
331         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
332         call to the _Postconditions procedure in the case of implicit returns
333         from analysis to expansion. This eliminates some duplicated code. Use
334         the Postcondition_Proc to find the identity of this procedure during
335         expansion.
336
337 2009-04-10  Robert Dewar  <dewar@adacore.com>
338
339         * sem_ch6.adb: Minor code clean up.
340
341         * einfo.ads, sem_attr.adb: Minor comment fixes.
342
343 2009-04-10  Robert Dewar  <dewar@adacore.com>
344
345         * sem_ch8.adb: Minor reformatting
346
347 2009-04-10  Robert Dewar  <dewar@adacore.com>
348
349         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
350         procedures.
351
352         * sem_ch6.adb: Minor code clean up.
353
354 2009-04-10  Robert Dewar  <dewar@adacore.com>
355
356         * mlib-tgt-specific-xi.adb: Minor reformatting
357
358 2009-04-10  Bob Duff  <duff@adacore.com>
359
360         * einfo.ads: Minor comment fixes
361
362 2009-04-10  Vincent Celier  <celier@adacore.com>
363
364         * snames.ads-tmpl: Remove names that are no longer used in the
365         Project Manager.
366         Mark specifically those that are used only in gprbuild
367
368 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
369
370         * init.c: Adjust EH support code on Alpha/Tru64.
371
372 2009-04-10  Bob Duff  <duff@adacore.com>
373
374         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
375         procedure on every path that could return implicitly (not via a return
376         statement) from a procedure.
377
378 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
379
380         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
381         valid scope for a task declarations and therefore for a master id.
382
383 2009-04-10  Robert Dewar  <dewar@adacore.com>
384
385         * sem_aux.adb: Minor reformatting
386
387 2009-04-10  Vincent Celier  <celier@adacore.com>
388
389         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
390         True.
391         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
392         (Set_Obsolescent_Check): New procedure to change the value of
393         Obsolescent_Check_Flag.
394
395         * scn.ads (Set_Obsolescent_Check): New procedure to control
396         Obsolescent_Check.
397
398         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
399         obsolescent features while preprocessing.
400
401 2009-04-10  Thomas Quinot  <quinot@adacore.com>
402
403         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
404         generated files on all platforms.
405
406 2009-04-10  Robert Dewar  <dewar@adacore.com>
407
408         * sem_aux.adb: Minor reformatting
409
410 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
411
412         * sem_ch3.adb (Access_Definition): Handle properly the case of a
413         protected function with formals that returns an anonymous access type.
414
415 2009-04-10  Thomas Quinot  <quinot@adacore.com>
416
417         * sem_disp.adb: Minor reformatting
418
419 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
420
421         * seh_init.c: Do not use the 32-bit specific implementation of
422         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
423         version TBD).
424
425 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
426
427         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
428         a '/' at the end so we better use the complete target name to determine
429         whether it is a PowerPC 55xx target.
430
431 2009-04-10  Thomas Quinot  <quinot@adacore.com>
432
433         * sem_eval.adb: Minor reformatting
434
435 2009-04-10  Thomas Quinot  <quinot@adacore.com>
436
437         * snames.h, snames.ads, snames.adb: Remove files, now generated from
438         templates.
439
440         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
441         above.
442
443         * xsnamest.adb: New file.
444
445         * gcc-interface/Make-lang.in: New target for automated generation of
446         snames.ads, snames.adb and snames.h
447
448 2009-04-10  Tristan Gingold  <gingold@adacore.com>
449
450         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
451         avoid compile time warnings.
452         Do not add gcc/config in include search list while compiling the RTS.
453         Pragma Thread_Local_Storage is available on any target.
454
455 2009-04-10  Bob Duff  <duff@adacore.com>
456
457         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
458
459 2009-04-10  Tristan Gingold  <gingold@adacore.com>
460
461         * init.c: Install signal handler on Darwin.
462
463 2009-04-10  Robert Dewar  <dewar@adacore.com>
464
465         * sem_prag.adb: Minor reformatting
466
467         * exp_util.adb (Make_Non_Empty_Check): New function
468         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
469         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
470
471 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
472
473         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
474
475 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
476
477         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
478         tool prefix for AVR and PowerPC 55xx targets.
479
480 2009-04-10  Robert Dewar  <dewar@adacore.com>
481
482         * sem_warn.adb (Within_Postcondition): New function
483         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
484
485 2009-04-10  Robert Dewar  <dewar@adacore.com>
486
487         * sem_warn.adb: Minor reformatting
488
489         * make.adb: Minor reformatting.
490
491 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
492
493         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
494         entity and the scope is a subprogram, retrieve the Sloc of the
495         subprogram's body rather than using the sloc of the spec, for better
496         line-stepping behavior in gdb.
497         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
498         controller, use the Sloc of the first declaration of the containing list
499         rather than that of the node that triggered creation of the list
500         controller.
501
502 2009-04-10  Vincent Celier  <celier@adacore.com>
503
504         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
505         to avoid gcc warning.
506
507 2009-04-10  Robert Dewar  <dewar@adacore.com>
508
509         * g-comlin.adb: Add ??? comment
510
511 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
512
513         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
514         unreferenced entities for a package with no visible declarations.
515
516 2009-04-10  Robert Dewar  <dewar@adacore.com>
517
518         * exp_ch9.adb: Minor reformatting
519
520 2009-04-10  Thomas Quinot  <quinot@adacore.com>
521
522         * sem_prag.adb: Minor reformatting
523
524 2009-04-10  Vincent Celier  <celier@adacore.com>
525
526         * prj-nmsc.adb:
527         (Check_Library_Attributes): For a project qualified as a library project
528         that is not a library project, indicate in the error message which
529         attributes are missing (Library_Dir and/or Library_Name).
530
531 2009-04-10  Bob Duff  <duff@adacore.com>
532
533         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
534         generated nodes, because it might confuse various circuits in the FE.
535
536 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
537
538         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
539         of pragma. It will be recopied and analyzed when used in call to
540         Create_Task.
541
542         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
543         initialization operations and recognize use of it in procedure calls
544         within init_procs.
545
546         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
547         argument, because it may have side-effects.
548
549         * exp_ch2.adb: Remove obsolete comments on default functions
550
551 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
552
553         * adaint.c (RTX section): Do for RTX the same thing as we do for
554         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
555
556 2009-04-10  Robert Dewar  <dewar@adacore.com>
557
558         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
559
560         * sem_res.adb (Resolve_Call): Fix test for
561         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
562         a non-dynamic scope).
563
564 2009-04-10  Robert Dewar  <dewar@adacore.com>
565
566         * make.adb: Add comment.
567         Minor reformatting
568
569 2009-04-10  Nicolas Setton  <setton@adacore.com>
570
571         * s-osprim-darwin.adb: New file.
572
573         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
574
575 2009-04-10  Thomas Quinot  <quinot@adacore.com>
576
577         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
578
579 2009-04-09  Nick Clifton  <nickc@redhat.com>
580
581         * adadecode.h: Change copyright header to refer to version
582         3 of the GNU General Public License with version 3.1 of the
583         GCC Runtime Library Exception and to point readers at the
584         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
585         page.
586         * 9drpc.adb: Likewise.
587         * a-assert.adb: Likewise.
588         * a-astaco.adb: Likewise.
589         * a-calari.adb: Likewise.
590         * a-calcon.adb: Likewise.
591         * a-calcon.ads: Likewise.
592         * a-caldel.ads: Likewise.
593         * a-calend-vms.adb: Likewise.
594         * a-calend-vms.ads: Likewise.
595         * a-calend.adb: Likewise.
596         * a-calend.ads: Likewise.
597         * a-calfor.adb: Likewise.
598         * a-catizo.adb: Likewise.
599         * a-cdlili.adb: Likewise.
600         * a-cdlili.ads: Likewise.
601         * a-cgaaso.adb: Likewise.
602         * a-cgaaso.ads: Likewise.
603         * a-cgarso.adb: Likewise.
604         * a-cgcaso.adb: Likewise.
605         * a-chacon.adb: Likewise.
606         * a-chacon.ads: Likewise.
607         * a-chahan.adb: Likewise.
608         * a-chahan.ads: Likewise.
609         * a-chlat9.ads: Likewise.
610         * a-chtgke.adb: Likewise.
611         * a-chtgke.ads: Likewise.
612         * a-chtgop.adb: Likewise.
613         * a-chtgop.ads: Likewise.
614         * a-chzla1.ads: Likewise.
615         * a-chzla9.ads: Likewise.
616         * a-cidlli.adb: Likewise.
617         * a-cidlli.ads: Likewise.
618         * a-cihama.adb: Likewise.
619         * a-cihama.ads: Likewise.
620         * a-cihase.adb: Likewise.
621         * a-cihase.ads: Likewise.
622         * a-ciorma.adb: Likewise.
623         * a-ciorma.ads: Likewise.
624         * a-ciormu.adb: Likewise.
625         * a-ciormu.ads: Likewise.
626         * a-ciorse.adb: Likewise.
627         * a-ciorse.ads: Likewise.
628         * a-clrefi.adb: Likewise.
629         * a-clrefi.ads: Likewise.
630         * a-cohama.adb: Likewise.
631         * a-cohama.ads: Likewise.
632         * a-cohase.adb: Likewise.
633         * a-cohase.ads: Likewise.
634         * a-cohata.ads: Likewise.
635         * a-coinve.adb: Likewise.
636         * a-coinve.ads: Likewise.
637         * a-colien.adb: Likewise.
638         * a-colien.ads: Likewise.
639         * a-colire.adb: Likewise.
640         * a-colire.ads: Likewise.
641         * a-comlin.adb: Likewise.
642         * a-comlin.ads: Likewise.
643         * a-convec.adb: Likewise.
644         * a-convec.ads: Likewise.
645         * a-coorma.adb: Likewise.
646         * a-coorma.ads: Likewise.
647         * a-coormu.adb: Likewise.
648         * a-coormu.ads: Likewise.
649         * a-coorse.adb: Likewise.
650         * a-coorse.ads: Likewise.
651         * a-coprnu.adb: Likewise.
652         * a-coprnu.ads: Likewise.
653         * a-crbltr.ads: Likewise.
654         * a-crbtgk.adb: Likewise.
655         * a-crbtgk.ads: Likewise.
656         * a-crbtgo.adb: Likewise.
657         * a-crbtgo.ads: Likewise.
658         * a-crdlli.adb: Likewise.
659         * a-crdlli.ads: Likewise.
660         * a-cwila1.ads: Likewise.
661         * a-cwila9.ads: Likewise.
662         * a-decima.adb: Likewise.
663         * a-decima.ads: Likewise.
664         * a-diocst.adb: Likewise.
665         * a-diocst.ads: Likewise.
666         * a-direct.adb: Likewise.
667         * a-direct.ads: Likewise.
668         * a-direio.adb: Likewise.
669         * a-direio.ads: Likewise.
670         * a-dirval-mingw.adb: Likewise.
671         * a-dirval-vms.adb: Likewise.
672         * a-dirval.adb: Likewise.
673         * a-dirval.ads: Likewise.
674         * a-dynpri.adb: Likewise.
675         * a-einuoc.adb: Likewise.
676         * a-einuoc.ads: Likewise.
677         * a-elchha.adb: Likewise.
678         * a-elchha.ads: Likewise.
679         * a-envvar.adb: Likewise.
680         * a-excach.adb: Likewise.
681         * a-except-2005.adb: Likewise.
682         * a-except-2005.ads: Likewise.
683         * a-except.adb: Likewise.
684         * a-except.ads: Likewise.
685         * a-excpol-abort.adb: Likewise.
686         * a-excpol.adb: Likewise.
687         * a-exctra.adb: Likewise.
688         * a-exctra.ads: Likewise.
689         * a-exetim-mingw.adb: Likewise.
690         * a-exetim-mingw.ads: Likewise.
691         * a-exexda.adb: Likewise.
692         * a-exexpr-gcc.adb: Likewise.
693         * a-exexpr.adb: Likewise.
694         * a-exextr.adb: Likewise.
695         * a-exstat.adb: Likewise.
696         * a-filico.adb: Likewise.
697         * a-filico.ads: Likewise.
698         * a-finali.adb: Likewise.
699         * a-finali.ads: Likewise.
700         * a-interr.ads: Likewise.
701         * a-intnam-aix.ads: Likewise.
702         * a-intnam-darwin.ads: Likewise.
703         * a-intnam-dummy.ads: Likewise.
704         * a-intnam-freebsd.ads: Likewise.
705         * a-intnam-hpux.ads: Likewise.
706         * a-intnam-irix.ads: Likewise.
707         * a-intnam-linux.ads: Likewise.
708         * a-intnam-lynxos.ads: Likewise.
709         * a-intnam-mingw.ads: Likewise.
710         * a-intnam-rtems.ads: Likewise.
711         * a-intnam-solaris.ads: Likewise.
712         * a-intnam-tru64.ads: Likewise.
713         * a-intnam-vms.ads: Likewise.
714         * a-intnam-vxworks.ads: Likewise.
715         * a-intsig.adb: Likewise.
716         * a-intsig.ads: Likewise.
717         * a-ngcefu.adb: Likewise.
718         * a-ngcoar.adb: Likewise.
719         * a-ngcoty.adb: Likewise.
720         * a-ngcoty.ads: Likewise.
721         * a-ngelfu.adb: Likewise.
722         * a-ngrear.adb: Likewise.
723         * a-ngrear.ads: Likewise.
724         * a-nudira.adb: Likewise.
725         * a-nudira.ads: Likewise.
726         * a-nuflra.adb: Likewise.
727         * a-nuflra.ads: Likewise.
728         * a-numaux-darwin.adb: Likewise.
729         * a-numaux-darwin.ads: Likewise.
730         * a-numaux-libc-x86.ads: Likewise.
731         * a-numaux-vxworks.ads: Likewise.
732         * a-numaux-x86.adb: Likewise.
733         * a-numaux-x86.ads: Likewise.
734         * a-numaux.ads: Likewise.
735         * a-rbtgso.adb: Likewise.
736         * a-rbtgso.ads: Likewise.
737         * a-reatim.ads: Likewise.
738         * a-retide.adb: Likewise.
739         * a-retide.ads: Likewise.
740         * a-rttiev.adb: Likewise.
741         * a-rttiev.ads: Likewise.
742         * a-secain.adb: Likewise.
743         * a-secain.ads: Likewise.
744         * a-sequio.adb: Likewise.
745         * a-sequio.ads: Likewise.
746         * a-shcain.adb: Likewise.
747         * a-shcain.ads: Likewise.
748         * a-siocst.adb: Likewise.
749         * a-siocst.ads: Likewise.
750         * a-slcain.adb: Likewise.
751         * a-slcain.ads: Likewise.
752         * a-ssicst.adb: Likewise.
753         * a-ssicst.ads: Likewise.
754         * a-stboha.adb: Likewise.
755         * a-stmaco.ads: Likewise.
756         * a-storio.adb: Likewise.
757         * a-strbou.adb: Likewise.
758         * a-strbou.ads: Likewise.
759         * a-stream.ads: Likewise.
760         * a-strfix.adb: Likewise.
761         * a-strhas.adb: Likewise.
762         * a-strmap.adb: Likewise.
763         * a-strmap.ads: Likewise.
764         * a-strsea.adb: Likewise.
765         * a-strsea.ads: Likewise.
766         * a-strsup.adb: Likewise.
767         * a-strsup.ads: Likewise.
768         * a-strunb.adb: Likewise.
769         * a-strunb.ads: Likewise.
770         * a-ststio.adb: Likewise.
771         * a-ststio.ads: Likewise.
772         * a-stunau.adb: Likewise.
773         * a-stunau.ads: Likewise.
774         * a-stunha.adb: Likewise.
775         * a-stwibo.adb: Likewise.
776         * a-stwibo.ads: Likewise.
777         * a-stwifi.adb: Likewise.
778         * a-stwiha.adb: Likewise.
779         * a-stwima.adb: Likewise.
780         * a-stwima.ads: Likewise.
781         * a-stwise.adb: Likewise.
782         * a-stwise.ads: Likewise.
783         * a-stwisu.adb: Likewise.
784         * a-stwisu.ads: Likewise.
785         * a-stwiun.adb: Likewise.
786         * a-stwiun.ads: Likewise.
787         * a-stzbou.adb: Likewise.
788         * a-stzbou.ads: Likewise.
789         * a-stzfix.adb: Likewise.
790         * a-stzhas.adb: Likewise.
791         * a-stzmap.adb: Likewise.
792         * a-stzmap.ads: Likewise.
793         * a-stzsea.adb: Likewise.
794         * a-stzsea.ads: Likewise.
795         * a-stzsup.adb: Likewise.
796         * a-stzsup.ads: Likewise.
797         * a-stzunb.adb: Likewise.
798         * a-stzunb.ads: Likewise.
799         * a-suteio.adb: Likewise.
800         * a-suteio.ads: Likewise.
801         * a-swbwha.adb: Likewise.
802         * a-swmwco.ads: Likewise.
803         * a-swunau.adb: Likewise.
804         * a-swunau.ads: Likewise.
805         * a-swuwha.adb: Likewise.
806         * a-swuwti.adb: Likewise.
807         * a-swuwti.ads: Likewise.
808         * a-sytaco.adb: Likewise.
809         * a-sytaco.ads: Likewise.
810         * a-szbzha.adb: Likewise.
811         * a-szmzco.ads: Likewise.
812         * a-szunau.adb: Likewise.
813         * a-szunau.ads: Likewise.
814         * a-szuzha.adb: Likewise.
815         * a-szuzti.adb: Likewise.
816         * a-szuzti.ads: Likewise.
817         * a-tags.adb: Likewise.
818         * a-tags.ads: Likewise.
819         * a-tasatt.ads: Likewise.
820         * a-taside.adb: Likewise.
821         * a-taside.ads: Likewise.
822         * a-taster.adb: Likewise.
823         * a-teioed.adb: Likewise.
824         * a-teioed.ads: Likewise.
825         * a-textio.adb: Likewise.
826         * a-textio.ads: Likewise.
827         * a-tiboio.adb: Likewise.
828         * a-ticoau.adb: Likewise.
829         * a-ticoau.ads: Likewise.
830         * a-ticoio.adb: Likewise.
831         * a-ticoio.ads: Likewise.
832         * a-tideau.adb: Likewise.
833         * a-tideau.ads: Likewise.
834         * a-tideio.adb: Likewise.
835         * a-tideio.ads: Likewise.
836         * a-tienau.adb: Likewise.
837         * a-tienau.ads: Likewise.
838         * a-tienio.adb: Likewise.
839         * a-tienio.ads: Likewise.
840         * a-tifiio.adb: Likewise.
841         * a-tifiio.ads: Likewise.
842         * a-tiflau.adb: Likewise.
843         * a-tiflau.ads: Likewise.
844         * a-tiflio.adb: Likewise.
845         * a-tiflio.ads: Likewise.
846         * a-tigeau.adb: Likewise.
847         * a-tigeau.ads: Likewise.
848         * a-tiinau.adb: Likewise.
849         * a-tiinau.ads: Likewise.
850         * a-tiinio.adb: Likewise.
851         * a-tiinio.ads: Likewise.
852         * a-timoau.adb: Likewise.
853         * a-timoau.ads: Likewise.
854         * a-timoio.adb: Likewise.
855         * a-timoio.ads: Likewise.
856         * a-tiocst.adb: Likewise.
857         * a-tiocst.ads: Likewise.
858         * a-titest.adb: Likewise.
859         * a-wichun.adb: Likewise.
860         * a-wichun.ads: Likewise.
861         * a-witeio.adb: Likewise.
862         * a-witeio.ads: Likewise.
863         * a-wtcoau.adb: Likewise.
864         * a-wtcoau.ads: Likewise.
865         * a-wtcoio.adb: Likewise.
866         * a-wtcstr.adb: Likewise.
867         * a-wtcstr.ads: Likewise.
868         * a-wtdeau.adb: Likewise.
869         * a-wtdeau.ads: Likewise.
870         * a-wtdeio.adb: Likewise.
871         * a-wtdeio.ads: Likewise.
872         * a-wtedit.adb: Likewise.
873         * a-wtedit.ads: Likewise.
874         * a-wtenau.adb: Likewise.
875         * a-wtenau.ads: Likewise.
876         * a-wtenio.adb: Likewise.
877         * a-wtenio.ads: Likewise.
878         * a-wtfiio.adb: Likewise.
879         * a-wtfiio.ads: Likewise.
880         * a-wtflau.adb: Likewise.
881         * a-wtflau.ads: Likewise.
882         * a-wtflio.adb: Likewise.
883         * a-wtflio.ads: Likewise.
884         * a-wtgeau.adb: Likewise.
885         * a-wtgeau.ads: Likewise.
886         * a-wtinau.adb: Likewise.
887         * a-wtinau.ads: Likewise.
888         * a-wtinio.adb: Likewise.
889         * a-wtmoau.adb: Likewise.
890         * a-wtmoau.ads: Likewise.
891         * a-wtmoio.adb: Likewise.
892         * a-wtmoio.ads: Likewise.
893         * a-wttest.adb: Likewise.
894         * a-wwboio.adb: Likewise.
895         * a-zchuni.adb: Likewise.
896         * a-zchuni.ads: Likewise.
897         * a-ztcoau.adb: Likewise.
898         * a-ztcoau.ads: Likewise.
899         * a-ztcoio.adb: Likewise.
900         * a-ztcstr.adb: Likewise.
901         * a-ztcstr.ads: Likewise.
902         * a-ztdeau.adb: Likewise.
903         * a-ztdeau.ads: Likewise.
904         * a-ztdeio.adb: Likewise.
905         * a-ztdeio.ads: Likewise.
906         * a-ztedit.adb: Likewise.
907         * a-ztedit.ads: Likewise.
908         * a-ztenau.adb: Likewise.
909         * a-ztenau.ads: Likewise.
910         * a-ztenio.adb: Likewise.
911         * a-ztenio.ads: Likewise.
912         * a-ztexio.adb: Likewise.
913         * a-ztexio.ads: Likewise.
914         * a-ztfiio.adb: Likewise.
915         * a-ztfiio.ads: Likewise.
916         * a-ztflau.adb: Likewise.
917         * a-ztflau.ads: Likewise.
918         * a-ztflio.adb: Likewise.
919         * a-ztflio.ads: Likewise.
920         * a-ztgeau.adb: Likewise.
921         * a-ztgeau.ads: Likewise.
922         * a-ztinau.adb: Likewise.
923         * a-ztinau.ads: Likewise.
924         * a-ztinio.adb: Likewise.
925         * a-ztmoau.adb: Likewise.
926         * a-ztmoau.ads: Likewise.
927         * a-ztmoio.adb: Likewise.
928         * a-ztmoio.ads: Likewise.
929         * a-zttest.adb: Likewise.
930         * a-zzboio.adb: Likewise.
931         * adadecode.c: Likewise.
932         * adaint.c: Likewise.
933         * adaint.h: Likewise.
934         * alloc.ads: Likewise.
935         * argv.c: Likewise.
936         * arit64.c: Likewise.
937         * atree.adb: Likewise.
938         * atree.ads: Likewise.
939         * aux-io.c: Likewise.
940         * cal.c: Likewise.
941         * casing.adb: Likewise.
942         * casing.ads: Likewise.
943         * cio.c: Likewise.
944         * csets.adb: Likewise.
945         * csets.ads: Likewise.
946         * cstreams.c: Likewise.
947         * ctrl_c.c: Likewise.
948         * debug.adb: Likewise.
949         * debug.ads: Likewise.
950         * dec.ads: Likewise.
951         * einfo.adb: Likewise.
952         * einfo.ads: Likewise.
953         * elists.adb: Likewise.
954         * elists.ads: Likewise.
955         * env.c: Likewise.
956         * env.h: Likewise.
957         * errno.c: Likewise.
958         * exit.c: Likewise.
959         * fe.h: Likewise.
960         * final.c: Likewise.
961         * fname.adb: Likewise.
962         * fname.ads: Likewise.
963         * g-allein.ads: Likewise.
964         * g-alleve.adb: Likewise.
965         * g-alleve.ads: Likewise.
966         * g-altcon.adb: Likewise.
967         * g-altcon.ads: Likewise.
968         * g-altive.ads: Likewise.
969         * g-alveop.adb: Likewise.
970         * g-alveop.ads: Likewise.
971         * g-alvety.ads: Likewise.
972         * g-alvevi.ads: Likewise.
973         * g-arrspl.adb: Likewise.
974         * g-arrspl.ads: Likewise.
975         * g-calend.ads: Likewise.
976         * g-comlin.adb: Likewise.
977         * g-debpoo.adb: Likewise.
978         * g-debpoo.ads: Likewise.
979         * g-eacodu-vms.adb: Likewise.
980         * g-eacodu.adb: Likewise.
981         * g-excact.adb: Likewise.
982         * g-excact.ads: Likewise.
983         * g-locfil.adb: Likewise.
984         * g-os_lib.ads: Likewise.
985         * g-rannum.adb: Likewise.
986         * g-rannum.ads: Likewise.
987         * g-regist.adb: Likewise.
988         * g-regist.ads: Likewise.
989         * g-signal.adb: Likewise.
990         * g-signal.ads: Likewise.
991         * g-soccon.ads: Likewise.
992         * g-string.adb: Likewise.
993         * g-string.ads: Likewise.
994         * g-strspl.ads: Likewise.
995         * g-timsta.adb: Likewise.
996         * g-timsta.ads: Likewise.
997         * g-trasym-vms-alpha.adb: Likewise.
998         * g-trasym-vms-ia64.adb: Likewise.
999         * g-utf_32.adb: Likewise.
1000         * g-utf_32.ads: Likewise.
1001         * g-wistsp.ads: Likewise.
1002         * g-zstspl.ads: Likewise.
1003         * gmem.c: Likewise.
1004         * gnatvsn.adb: Likewise.
1005         * gnatvsn.ads: Likewise.
1006         * gsocket.h: Likewise.
1007         * hostparm.ads: Likewise.
1008         * i-c.adb: Likewise.
1009         * i-cexten.ads: Likewise.
1010         * i-cobol.adb: Likewise.
1011         * i-cobol.ads: Likewise.
1012         * i-cpoint.adb: Likewise.
1013         * i-cpoint.ads: Likewise.
1014         * i-cpp.adb: Likewise.
1015         * i-cpp.ads: Likewise.
1016         * i-cstrea-vms.adb: Likewise.
1017         * i-cstrea.adb: Likewise.
1018         * i-cstrea.ads: Likewise.
1019         * i-cstrin.adb: Likewise.
1020         * i-cstrin.ads: Likewise.
1021         * i-forbla-darwin.adb: Likewise.
1022         * i-forbla-unimplemented.ads: Likewise.
1023         * i-forbla.adb: Likewise.
1024         * i-forbla.ads: Likewise.
1025         * i-forlap.ads: Likewise.
1026         * i-fortra.adb: Likewise.
1027         * i-pacdec.adb: Likewise.
1028         * i-pacdec.ads: Likewise.
1029         * i-vxwoio.adb: Likewise.
1030         * i-vxwoio.ads: Likewise.
1031         * indepsw-aix.adb: Likewise.
1032         * indepsw-gnu.adb: Likewise.
1033         * indepsw-mingw.adb: Likewise.
1034         * indepsw.adb: Likewise.
1035         * indepsw.ads: Likewise.
1036         * init.c: Likewise.
1037         * initialize.c: Likewise.
1038         * interfac.ads: Likewise.
1039         * krunch.adb: Likewise.
1040         * krunch.ads: Likewise.
1041         * lib-list.adb: Likewise.
1042         * lib-sort.adb: Likewise.
1043         * lib.adb: Likewise.
1044         * lib.ads: Likewise.
1045         * link.c: Likewise.
1046         * math_lib.adb: Likewise.
1047         * memtrack.adb: Likewise.
1048         * mingw32.h: Likewise.
1049         * mkdir.c: Likewise.
1050         * namet-sp.adb: Likewise.
1051         * namet-sp.ads: Likewise.
1052         * namet.adb: Likewise.
1053         * namet.ads: Likewise.
1054         * nlists.adb: Likewise.
1055         * nlists.ads: Likewise.
1056         * opt.adb: Likewise.
1057         * opt.ads: Likewise.
1058         * output.adb: Likewise.
1059         * output.ads: Likewise.
1060         * raise-gcc.c: Likewise.
1061         * raise.c: Likewise.
1062         * raise.h: Likewise.
1063         * repinfo.adb: Likewise.
1064         * repinfo.ads: Likewise.
1065         * repinfo.h: Likewise.
1066         * rident.ads: Likewise.
1067         * s-addima.adb: Likewise.
1068         * s-addima.ads: Likewise.
1069         * s-addope.adb: Likewise.
1070         * s-addope.ads: Likewise.
1071         * s-arit64.adb: Likewise.
1072         * s-arit64.ads: Likewise.
1073         * s-assert.adb: Likewise.
1074         * s-assert.ads: Likewise.
1075         * s-asthan-vms-alpha.adb: Likewise.
1076         * s-asthan.adb: Likewise.
1077         * s-asthan.ads: Likewise.
1078         * s-atacco.adb: Likewise.
1079         * s-atacco.ads: Likewise.
1080         * s-auxdec-empty.adb: Likewise.
1081         * s-auxdec-empty.ads: Likewise.
1082         * s-auxdec-vms_64.ads: Likewise.
1083         * s-auxdec.adb: Likewise.
1084         * s-auxdec.ads: Likewise.
1085         * s-bitops.adb: Likewise.
1086         * s-bitops.ads: Likewise.
1087         * s-boarop.ads: Likewise.
1088         * s-carsi8.adb: Likewise.
1089         * s-carsi8.ads: Likewise.
1090         * s-carun8.adb: Likewise.
1091         * s-carun8.ads: Likewise.
1092         * s-casi16.adb: Likewise.
1093         * s-casi16.ads: Likewise.
1094         * s-casi32.adb: Likewise.
1095         * s-casi32.ads: Likewise.
1096         * s-casi64.adb: Likewise.
1097         * s-casi64.ads: Likewise.
1098         * s-casuti.ads: Likewise.
1099         * s-caun16.adb: Likewise.
1100         * s-caun16.ads: Likewise.
1101         * s-caun32.adb: Likewise.
1102         * s-caun32.ads: Likewise.
1103         * s-caun64.adb: Likewise.
1104         * s-caun64.ads: Likewise.
1105         * s-chepoo.ads: Likewise.
1106         * s-crc32.adb: Likewise.
1107         * s-crc32.ads: Likewise.
1108         * s-crtl.ads: Likewise.
1109         * s-direio.adb: Likewise.
1110         * s-direio.ads: Likewise.
1111         * s-dsaser.ads: Likewise.
1112         * s-except.adb: Likewise.
1113         * s-except.ads: Likewise.
1114         * s-exctab.adb: Likewise.
1115         * s-exctab.ads: Likewise.
1116         * s-exnint.adb: Likewise.
1117         * s-exnint.ads: Likewise.
1118         * s-exnllf.adb: Likewise.
1119         * s-exnllf.ads: Likewise.
1120         * s-exnlli.adb: Likewise.
1121         * s-exnlli.ads: Likewise.
1122         * s-expint.adb: Likewise.
1123         * s-expint.ads: Likewise.
1124         * s-explli.adb: Likewise.
1125         * s-explli.ads: Likewise.
1126         * s-expllu.adb: Likewise.
1127         * s-expllu.ads: Likewise.
1128         * s-expmod.adb: Likewise.
1129         * s-expmod.ads: Likewise.
1130         * s-expuns.adb: Likewise.
1131         * s-expuns.ads: Likewise.
1132         * s-fatflt.ads: Likewise.
1133         * s-fatgen.adb: Likewise.
1134         * s-fatgen.ads: Likewise.
1135         * s-fatlfl.ads: Likewise.
1136         * s-fatllf.ads: Likewise.
1137         * s-fatsfl.ads: Likewise.
1138         * s-ficobl.ads: Likewise.
1139         * s-fileio.adb: Likewise.
1140         * s-fileio.ads: Likewise.
1141         * s-filofl.ads: Likewise.
1142         * s-finimp.adb: Likewise.
1143         * s-finimp.ads: Likewise.
1144         * s-finroo.adb: Likewise.
1145         * s-finroo.ads: Likewise.
1146         * s-fishfl.ads: Likewise.
1147         * s-fore.adb: Likewise.
1148         * s-fore.ads: Likewise.
1149         * s-fvadfl.ads: Likewise.
1150         * s-fvaffl.ads: Likewise.
1151         * s-fvagfl.ads: Likewise.
1152         * s-gearop.adb: Likewise.
1153         * s-gearop.ads: Likewise.
1154         * s-gecobl.adb: Likewise.
1155         * s-gecobl.ads: Likewise.
1156         * s-gecola.adb: Likewise.
1157         * s-gecola.ads: Likewise.
1158         * s-gerebl.adb: Likewise.
1159         * s-gerebl.ads: Likewise.
1160         * s-gerela.adb: Likewise.
1161         * s-gerela.ads: Likewise.
1162         * s-geveop.adb: Likewise.
1163         * s-geveop.ads: Likewise.
1164         * s-gloloc.adb: Likewise.
1165         * s-gloloc.ads: Likewise.
1166         * s-hibaen.ads: Likewise.
1167         * s-imenne.adb: Likewise.
1168         * s-imenne.ads: Likewise.
1169         * s-imgbiu.adb: Likewise.
1170         * s-imgbiu.ads: Likewise.
1171         * s-imgboo.adb: Likewise.
1172         * s-imgboo.ads: Likewise.
1173         * s-imgcha.adb: Likewise.
1174         * s-imgcha.ads: Likewise.
1175         * s-imgdec.adb: Likewise.
1176         * s-imgdec.ads: Likewise.
1177         * s-imgenu.adb: Likewise.
1178         * s-imgenu.ads: Likewise.
1179         * s-imgint.adb: Likewise.
1180         * s-imgint.ads: Likewise.
1181         * s-imgllb.adb: Likewise.
1182         * s-imgllb.ads: Likewise.
1183         * s-imglld.adb: Likewise.
1184         * s-imglld.ads: Likewise.
1185         * s-imglli.adb: Likewise.
1186         * s-imglli.ads: Likewise.
1187         * s-imgllu.adb: Likewise.
1188         * s-imgllu.ads: Likewise.
1189         * s-imgllw.adb: Likewise.
1190         * s-imgllw.ads: Likewise.
1191         * s-imgrea.adb: Likewise.
1192         * s-imgrea.ads: Likewise.
1193         * s-imguns.adb: Likewise.
1194         * s-imguns.ads: Likewise.
1195         * s-imgwch.adb: Likewise.
1196         * s-imgwch.ads: Likewise.
1197         * s-imgwiu.adb: Likewise.
1198         * s-imgwiu.ads: Likewise.
1199         * s-inmaop-dummy.adb: Likewise.
1200         * s-inmaop-vms.adb: Likewise.
1201         * s-inmaop.ads: Likewise.
1202         * s-interr-hwint.adb: Likewise.
1203         * s-interr-sigaction.adb: Likewise.
1204         * s-interr-vms.adb: Likewise.
1205         * s-interr.adb: Likewise.
1206         * s-interr.ads: Likewise.
1207         * s-intman-dummy.adb: Likewise.
1208         * s-intman-mingw.adb: Likewise.
1209         * s-intman-posix.adb: Likewise.
1210         * s-intman-solaris.adb: Likewise.
1211         * s-intman-vms.adb: Likewise.
1212         * s-intman-vms.ads: Likewise.
1213         * s-intman-vxworks.adb: Likewise.
1214         * s-intman-vxworks.ads: Likewise.
1215         * s-intman.ads: Likewise.
1216         * s-io.adb: Likewise.
1217         * s-io.ads: Likewise.
1218         * s-linux-alpha.ads: Likewise.
1219         * s-linux-hppa.ads: Likewise.
1220         * s-linux.ads: Likewise.
1221         * s-maccod.ads: Likewise.
1222         * s-mantis.adb: Likewise.
1223         * s-mantis.ads: Likewise.
1224         * s-mastop-irix.adb: Likewise.
1225         * s-mastop.adb: Likewise.
1226         * s-mastop.ads: Likewise.
1227         * s-memcop.ads: Likewise.
1228         * s-memory-mingw.adb: Likewise.
1229         * s-memory.adb: Likewise.
1230         * s-memory.ads: Likewise.
1231         * s-os_lib.ads: Likewise.
1232         * s-oscons-tmplt.c: Likewise.
1233         * s-osinte-aix.adb: Likewise.
1234         * s-osinte-darwin.adb: Likewise.
1235         * s-osinte-freebsd.adb: Likewise.
1236         * s-osinte-irix.adb: Likewise.
1237         * s-osinte-lynxos-3.adb: Likewise.
1238         * s-osinte-rtems.ads: Likewise.
1239         * s-osinte-tru64.adb: Likewise.
1240         * s-osinte-vxworks-kernel.adb: Likewise.
1241         * s-osinte-vxworks.adb: Likewise.
1242         * s-osprim-mingw.adb: Likewise.
1243         * s-osprim-posix.adb: Likewise.
1244         * s-osprim-solaris.adb: Likewise.
1245         * s-osprim-unix.adb: Likewise.
1246         * s-osprim-vms.adb: Likewise.
1247         * s-osprim-vms.ads: Likewise.
1248         * s-osprim-vxworks.adb: Likewise.
1249         * s-osprim.ads: Likewise.
1250         * s-pack03.adb: Likewise.
1251         * s-pack03.ads: Likewise.
1252         * s-pack05.adb: Likewise.
1253         * s-pack05.ads: Likewise.
1254         * s-pack06.adb: Likewise.
1255         * s-pack06.ads: Likewise.
1256         * s-pack07.adb: Likewise.
1257         * s-pack07.ads: Likewise.
1258         * s-pack09.adb: Likewise.
1259         * s-pack09.ads: Likewise.
1260         * s-pack10.adb: Likewise.
1261         * s-pack10.ads: Likewise.
1262         * s-pack11.adb: Likewise.
1263         * s-pack11.ads: Likewise.
1264         * s-pack12.adb: Likewise.
1265         * s-pack12.ads: Likewise.
1266         * s-pack13.adb: Likewise.
1267         * s-pack13.ads: Likewise.
1268         * s-pack14.adb: Likewise.
1269         * s-pack14.ads: Likewise.
1270         * s-pack15.adb: Likewise.
1271         * s-pack15.ads: Likewise.
1272         * s-pack17.adb: Likewise.
1273         * s-pack17.ads: Likewise.
1274         * s-pack18.adb: Likewise.
1275         * s-pack18.ads: Likewise.
1276         * s-pack19.adb: Likewise.
1277         * s-pack19.ads: Likewise.
1278         * s-pack20.adb: Likewise.
1279         * s-pack20.ads: Likewise.
1280         * s-pack21.adb: Likewise.
1281         * s-pack21.ads: Likewise.
1282         * s-pack22.adb: Likewise.
1283         * s-pack22.ads: Likewise.
1284         * s-pack23.adb: Likewise.
1285         * s-pack23.ads: Likewise.
1286         * s-pack24.adb: Likewise.
1287         * s-pack24.ads: Likewise.
1288         * s-pack25.adb: Likewise.
1289         * s-pack25.ads: Likewise.
1290         * s-pack26.adb: Likewise.
1291         * s-pack26.ads: Likewise.
1292         * s-pack27.adb: Likewise.
1293         * s-pack27.ads: Likewise.
1294         * s-pack28.adb: Likewise.
1295         * s-pack28.ads: Likewise.
1296         * s-pack29.adb: Likewise.
1297         * s-pack29.ads: Likewise.
1298         * s-pack30.adb: Likewise.
1299         * s-pack30.ads: Likewise.
1300         * s-pack31.adb: Likewise.
1301         * s-pack31.ads: Likewise.
1302         * s-pack33.adb: Likewise.
1303         * s-pack33.ads: Likewise.
1304         * s-pack34.adb: Likewise.
1305         * s-pack34.ads: Likewise.
1306         * s-pack35.adb: Likewise.
1307         * s-pack35.ads: Likewise.
1308         * s-pack36.adb: Likewise.
1309         * s-pack36.ads: Likewise.
1310         * s-pack37.adb: Likewise.
1311         * s-pack37.ads: Likewise.
1312         * s-pack38.adb: Likewise.
1313         * s-pack38.ads: Likewise.
1314         * s-pack39.adb: Likewise.
1315         * s-pack39.ads: Likewise.
1316         * s-pack40.adb: Likewise.
1317         * s-pack40.ads: Likewise.
1318         * s-pack41.adb: Likewise.
1319         * s-pack41.ads: Likewise.
1320         * s-pack42.adb: Likewise.
1321         * s-pack42.ads: Likewise.
1322         * s-pack43.adb: Likewise.
1323         * s-pack43.ads: Likewise.
1324         * s-pack44.adb: Likewise.
1325         * s-pack44.ads: Likewise.
1326         * s-pack45.adb: Likewise.
1327         * s-pack45.ads: Likewise.
1328         * s-pack46.adb: Likewise.
1329         * s-pack46.ads: Likewise.
1330         * s-pack47.adb: Likewise.
1331         * s-pack47.ads: Likewise.
1332         * s-pack48.adb: Likewise.
1333         * s-pack48.ads: Likewise.
1334         * s-pack49.adb: Likewise.
1335         * s-pack49.ads: Likewise.
1336         * s-pack50.adb: Likewise.
1337         * s-pack50.ads: Likewise.
1338         * s-pack51.adb: Likewise.
1339         * s-pack51.ads: Likewise.
1340         * s-pack52.adb: Likewise.
1341         * s-pack52.ads: Likewise.
1342         * s-pack53.adb: Likewise.
1343         * s-pack53.ads: Likewise.
1344         * s-pack54.adb: Likewise.
1345         * s-pack54.ads: Likewise.
1346         * s-pack55.adb: Likewise.
1347         * s-pack55.ads: Likewise.
1348         * s-pack56.adb: Likewise.
1349         * s-pack56.ads: Likewise.
1350         * s-pack57.adb: Likewise.
1351         * s-pack57.ads: Likewise.
1352         * s-pack58.adb: Likewise.
1353         * s-pack58.ads: Likewise.
1354         * s-pack59.adb: Likewise.
1355         * s-pack59.ads: Likewise.
1356         * s-pack60.adb: Likewise.
1357         * s-pack60.ads: Likewise.
1358         * s-pack61.adb: Likewise.
1359         * s-pack61.ads: Likewise.
1360         * s-pack62.adb: Likewise.
1361         * s-pack62.ads: Likewise.
1362         * s-pack63.adb: Likewise.
1363         * s-pack63.ads: Likewise.
1364         * s-parame-ae653.ads: Likewise.
1365         * s-parame-hpux.ads: Likewise.
1366         * s-parame-rtems.adb: Likewise.
1367         * s-parame-vms-alpha.ads: Likewise.
1368         * s-parame-vms-ia64.ads: Likewise.
1369         * s-parame-vms-restrict.ads: Likewise.
1370         * s-parame-vxworks.adb: Likewise.
1371         * s-parame-vxworks.ads: Likewise.
1372         * s-parame.adb: Likewise.
1373         * s-parame.ads: Likewise.
1374         * s-parint.adb: Likewise.
1375         * s-parint.ads: Likewise.
1376         * s-pooglo.adb: Likewise.
1377         * s-pooglo.ads: Likewise.
1378         * s-pooloc.adb: Likewise.
1379         * s-pooloc.ads: Likewise.
1380         * s-poosiz.adb: Likewise.
1381         * s-poosiz.ads: Likewise.
1382         * s-powtab.ads: Likewise.
1383         * s-proinf-irix-athread.adb: Likewise.
1384         * s-proinf-irix-athread.ads: Likewise.
1385         * s-proinf.adb: Likewise.
1386         * s-proinf.ads: Likewise.
1387         * s-purexc.ads: Likewise.
1388         * s-rannum.adb: Likewise.
1389         * s-rannum.ads: Likewise.
1390         * s-restri.adb: Likewise.
1391         * s-restri.ads: Likewise.
1392         * s-rident.ads: Likewise.
1393         * s-rpc.adb: Likewise.
1394         * s-rpc.ads: Likewise.
1395         * s-scaval.adb: Likewise.
1396         * s-scaval.ads: Likewise.
1397         * s-secsta.adb: Likewise.
1398         * s-secsta.ads: Likewise.
1399         * s-sequio.adb: Likewise.
1400         * s-sequio.ads: Likewise.
1401         * s-shasto.adb: Likewise.
1402         * s-shasto.ads: Likewise.
1403         * s-soflin.adb: Likewise.
1404         * s-soflin.ads: Likewise.
1405         * s-solita.adb: Likewise.
1406         * s-solita.ads: Likewise.
1407         * s-sopco3.adb: Likewise.
1408         * s-sopco3.ads: Likewise.
1409         * s-sopco4.adb: Likewise.
1410         * s-sopco4.ads: Likewise.
1411         * s-sopco5.adb: Likewise.
1412         * s-sopco5.ads: Likewise.
1413         * s-stache.adb: Likewise.
1414         * s-stache.ads: Likewise.
1415         * s-stalib.adb: Likewise.
1416         * s-stalib.ads: Likewise.
1417         * s-stausa.adb: Likewise.
1418         * s-stausa.ads: Likewise.
1419         * s-stchop-limit.ads: Likewise.
1420         * s-stchop-rtems.adb: Likewise.
1421         * s-stchop-vxworks.adb: Likewise.
1422         * s-stchop.adb: Likewise.
1423         * s-stchop.ads: Likewise.
1424         * s-stoele.adb: Likewise.
1425         * s-stoele.ads: Likewise.
1426         * s-stopoo.adb: Likewise.
1427         * s-stopoo.ads: Likewise.
1428         * s-stratt.adb: Likewise.
1429         * s-stratt.ads: Likewise.
1430         * s-strcom.adb: Likewise.
1431         * s-strcom.ads: Likewise.
1432         * s-string.adb: Likewise.
1433         * s-string.ads: Likewise.
1434         * s-strops.adb: Likewise.
1435         * s-strops.ads: Likewise.
1436         * s-strxdr.adb: Likewise.
1437         * s-ststop.adb: Likewise.
1438         * s-ststop.ads: Likewise.
1439         * s-taasde.adb: Likewise.
1440         * s-taasde.ads: Likewise.
1441         * s-tadeca.adb: Likewise.
1442         * s-tadeca.ads: Likewise.
1443         * s-tadert.adb: Likewise.
1444         * s-tadert.ads: Likewise.
1445         * s-taenca.adb: Likewise.
1446         * s-taenca.ads: Likewise.
1447         * s-taprob.ads: Likewise.
1448         * s-taprop-dummy.adb: Likewise.
1449         * s-taprop-hpux-dce.adb: Likewise.
1450         * s-taprop-irix.adb: Likewise.
1451         * s-taprop-linux.adb: Likewise.
1452         * s-taprop-lynxos.adb: Likewise.
1453         * s-taprop-mingw.adb: Likewise.
1454         * s-taprop-posix.adb: Likewise.
1455         * s-taprop-solaris.adb: Likewise.
1456         * s-taprop-tru64.adb: Likewise.
1457         * s-taprop-vms.adb: Likewise.
1458         * s-taprop-vxworks.adb: Likewise.
1459         * s-taprop.ads: Likewise.
1460         * s-tarest.adb: Likewise.
1461         * s-tarest.ads: Likewise.
1462         * s-tasdeb.adb: Likewise.
1463         * s-tasdeb.ads: Likewise.
1464         * s-tasinf-irix.ads: Likewise.
1465         * s-tasinf-linux.adb: Likewise.
1466         * s-tasinf-linux.ads: Likewise.
1467         * s-tasinf-mingw.adb: Likewise.
1468         * s-tasinf-mingw.ads: Likewise.
1469         * s-tasinf-solaris.adb: Likewise.
1470         * s-tasinf-solaris.ads: Likewise.
1471         * s-tasinf-tru64.ads: Likewise.
1472         * s-tasinf.adb: Likewise.
1473         * s-tasinf.ads: Likewise.
1474         * s-tasini.adb: Likewise.
1475         * s-tasini.ads: Likewise.
1476         * s-taskin.adb: Likewise.
1477         * s-taskin.ads: Likewise.
1478         * s-taspri-dummy.ads: Likewise.
1479         * s-taspri-hpux-dce.ads: Likewise.
1480         * s-taspri-mingw.ads: Likewise.
1481         * s-taspri-solaris.ads: Likewise.
1482         * s-taspri-tru64.ads: Likewise.
1483         * s-taspri-vms.ads: Likewise.
1484         * s-taspri-vxworks.ads: Likewise.
1485         * s-tasque.adb: Likewise.
1486         * s-tasque.ads: Likewise.
1487         * s-tasren.adb: Likewise.
1488         * s-tasren.ads: Likewise.
1489         * s-tasres.ads: Likewise.
1490         * s-tassta.adb: Likewise.
1491         * s-tassta.ads: Likewise.
1492         * s-tasuti.adb: Likewise.
1493         * s-tasuti.ads: Likewise.
1494         * s-tfsetr-default.adb: Likewise.
1495         * s-tfsetr-vxworks.adb: Likewise.
1496         * s-tpinop.adb: Likewise.
1497         * s-tpinop.ads: Likewise.
1498         * s-tpoben.adb: Likewise.
1499         * s-tpoben.ads: Likewise.
1500         * s-tpobop.adb: Likewise.
1501         * s-tpobop.ads: Likewise.
1502         * s-tpopde-vms.adb: Likewise.
1503         * s-tpopde-vms.ads: Likewise.
1504         * s-tpopsp-lynxos.adb: Likewise.
1505         * s-tpopsp-posix-foreign.adb: Likewise.
1506         * s-tpopsp-posix.adb: Likewise.
1507         * s-tpopsp-solaris.adb: Likewise.
1508         * s-tpopsp-vxworks.adb: Likewise.
1509         * s-tporft.adb: Likewise.
1510         * s-tposen.adb: Likewise.
1511         * s-tposen.ads: Likewise.
1512         * s-traceb.adb: Likewise.
1513         * s-traceb.ads: Likewise.
1514         * s-traces-default.adb: Likewise.
1515         * s-traces.adb: Likewise.
1516         * s-traces.ads: Likewise.
1517         * s-traent-vms.adb: Likewise.
1518         * s-traent-vms.ads: Likewise.
1519         * s-traent.adb: Likewise.
1520         * s-traent.ads: Likewise.
1521         * s-trafor-default.adb: Likewise.
1522         * s-trafor-default.ads: Likewise.
1523         * s-tratas-default.adb: Likewise.
1524         * s-tratas.adb: Likewise.
1525         * s-tratas.ads: Likewise.
1526         * s-unstyp.ads: Likewise.
1527         * s-utf_32.adb: Likewise.
1528         * s-utf_32.ads: Likewise.
1529         * s-vaflop-vms-alpha.adb: Likewise.
1530         * s-vaflop.adb: Likewise.
1531         * s-vaflop.ads: Likewise.
1532         * s-valboo.adb: Likewise.
1533         * s-valboo.ads: Likewise.
1534         * s-valcha.adb: Likewise.
1535         * s-valcha.ads: Likewise.
1536         * s-valdec.adb: Likewise.
1537         * s-valdec.ads: Likewise.
1538         * s-valenu.adb: Likewise.
1539         * s-valenu.ads: Likewise.
1540         * s-valint.adb: Likewise.
1541         * s-valint.ads: Likewise.
1542         * s-vallld.adb: Likewise.
1543         * s-vallld.ads: Likewise.
1544         * s-vallli.adb: Likewise.
1545         * s-vallli.ads: Likewise.
1546         * s-valllu.adb: Likewise.
1547         * s-valllu.ads: Likewise.
1548         * s-valrea.adb: Likewise.
1549         * s-valrea.ads: Likewise.
1550         * s-valuns.adb: Likewise.
1551         * s-valuns.ads: Likewise.
1552         * s-valuti.adb: Likewise.
1553         * s-valuti.ads: Likewise.
1554         * s-valwch.adb: Likewise.
1555         * s-valwch.ads: Likewise.
1556         * s-veboop.adb: Likewise.
1557         * s-veboop.ads: Likewise.
1558         * s-vector.ads: Likewise.
1559         * s-vercon.adb: Likewise.
1560         * s-vercon.ads: Likewise.
1561         * s-vmexta.adb: Likewise.
1562         * s-vmexta.ads: Likewise.
1563         * s-vxwext-kernel.ads: Likewise.
1564         * s-vxwext-rtp.adb: Likewise.
1565         * s-vxwext-rtp.ads: Likewise.
1566         * s-vxwext.ads: Likewise.
1567         * s-vxwork-arm.ads: Likewise.
1568         * s-vxwork-m68k.ads: Likewise.
1569         * s-vxwork-mips.ads: Likewise.
1570         * s-vxwork-ppc.ads: Likewise.
1571         * s-vxwork-sparcv9.ads: Likewise.
1572         * s-vxwork-x86.ads: Likewise.
1573         * s-wchcnv.adb: Likewise.
1574         * s-wchcnv.ads: Likewise.
1575         * s-wchcon.adb: Likewise.
1576         * s-wchcon.ads: Likewise.
1577         * s-wchjis.adb: Likewise.
1578         * s-wchjis.ads: Likewise.
1579         * s-wchstw.adb: Likewise.
1580         * s-wchstw.ads: Likewise.
1581         * s-wchwts.adb: Likewise.
1582         * s-wchwts.ads: Likewise.
1583         * s-widboo.adb: Likewise.
1584         * s-widboo.ads: Likewise.
1585         * s-widcha.adb: Likewise.
1586         * s-widcha.ads: Likewise.
1587         * s-widenu.adb: Likewise.
1588         * s-widenu.ads: Likewise.
1589         * s-widlli.adb: Likewise.
1590         * s-widlli.ads: Likewise.
1591         * s-widllu.adb: Likewise.
1592         * s-widllu.ads: Likewise.
1593         * s-widwch.adb: Likewise.
1594         * s-widwch.ads: Likewise.
1595         * s-win32.ads: Likewise.
1596         * s-winext.ads: Likewise.
1597         * s-wwdcha.adb: Likewise.
1598         * s-wwdcha.ads: Likewise.
1599         * s-wwdenu.adb: Likewise.
1600         * s-wwdenu.ads: Likewise.
1601         * s-wwdwch.adb: Likewise.
1602         * s-wwdwch.ads: Likewise.
1603         * scans.adb: Likewise.
1604         * scans.ads: Likewise.
1605         * seh_init.c: Likewise.
1606         * sfn_scan.adb: Likewise.
1607         * sinfo.adb: Likewise.
1608         * sinfo.ads: Likewise.
1609         * sinput.adb: Likewise.
1610         * sinput.ads: Likewise.
1611         * snames.adb: Likewise.
1612         * snames.ads: Likewise.
1613         * socket.c: Likewise.
1614         * stand.adb: Likewise.
1615         * stand.ads: Likewise.
1616         * stringt.adb: Likewise.
1617         * stringt.ads: Likewise.
1618         * sysdep.c: Likewise.
1619         * system-aix.ads: Likewise.
1620         * system-darwin-ppc.ads: Likewise.
1621         * system-darwin-x86.ads: Likewise.
1622         * system-darwin-x86_64.ads: Likewise.
1623         * system-freebsd-x86.ads: Likewise.
1624         * system-hpux-ia64.ads: Likewise.
1625         * system-hpux.ads: Likewise.
1626         * system-irix-n32.ads: Likewise.
1627         * system-irix-n64.ads: Likewise.
1628         * system-irix-o32.ads: Likewise.
1629         * system-linux-alpha.ads: Likewise.
1630         * system-linux-hppa.ads: Likewise.
1631         * system-linux-ia64.ads: Likewise.
1632         * system-linux-mips.ads: Likewise.
1633         * system-linux-mipsel.ads: Likewise.
1634         * system-linux-ppc.ads: Likewise.
1635         * system-linux-ppc64.ads: Likewise.
1636         * system-linux-s390.ads: Likewise.
1637         * system-linux-s390x.ads: Likewise.
1638         * system-linux-sh4.ads: Likewise.
1639         * system-linux-sparc.ads: Likewise.
1640         * system-linux-sparcv9.ads: Likewise.
1641         * system-linux-x86.ads: Likewise.
1642         * system-linux-x86_64.ads: Likewise.
1643         * system-lynxos-ppc.ads: Likewise.
1644         * system-lynxos-x86.ads: Likewise.
1645         * system-mingw-x86_64.ads: Likewise.
1646         * system-mingw.ads: Likewise.
1647         * system-rtems.ads: Likewise.
1648         * system-solaris-sparc.ads: Likewise.
1649         * system-solaris-sparcv9.ads: Likewise.
1650         * system-solaris-x86.ads: Likewise.
1651         * system-solaris-x86_64.ads: Likewise.
1652         * system-tru64.ads: Likewise.
1653         * system-vms-ia64.ads: Likewise.
1654         * system-vms-zcx.ads: Likewise.
1655         * system-vms.ads: Likewise.
1656         * system-vms_64.ads: Likewise.
1657         * system-vxworks-arm.ads: Likewise.
1658         * system-vxworks-m68k.ads: Likewise.
1659         * system-vxworks-mips.ads: Likewise.
1660         * system-vxworks-ppc.ads: Likewise.
1661         * system-vxworks-sparcv9.ads: Likewise.
1662         * system-vxworks-x86.ads: Likewise.
1663         * system.ads: Likewise.
1664         * table.adb: Likewise.
1665         * table.ads: Likewise.
1666         * targext.c: Likewise.
1667         * targparm.ads: Likewise.
1668         * tree_in.adb: Likewise.
1669         * tree_in.ads: Likewise.
1670         * tree_io.adb: Likewise.
1671         * tree_io.ads: Likewise.
1672         * types.adb: Likewise.
1673         * types.ads: Likewise.
1674         * uintp.adb: Likewise.
1675         * uintp.ads: Likewise.
1676         * uname.adb: Likewise.
1677         * uname.ads: Likewise.
1678         * urealp.adb: Likewise.
1679         * urealp.ads: Likewise.
1680         * vx_stack_info.c: Likewise.
1681         * widechar.adb: Likewise.
1682         * widechar.ads: Likewise.
1683         * exp_attr.adb: Change copyright header to refer to version
1684         3 of the GNU General Public License and to point readers at the
1685         COPYING3 file and the FSF's license web page.
1686         * sem.adb: Likewise.
1687         * sem_attr.ads: Likewise.
1688         * freeze.adb: Likewise.
1689         * freeze.ads: Likewise.
1690         * errout.ads: Likewise.
1691         * erroutc.adb: Likewise.
1692         * exp_ch11.ads: Likewise.
1693
1694 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1695
1696         * config-lang.in: Change copyright header to refer to version
1697         3 of the GNU General Public License and to point readers at the
1698         COPYING3 file and the FSF's license web page.
1699         * gcc-interface/trans.c: Likewise.
1700         * gnathtml.pl: Likewise.
1701         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
1702         * gcc-interface/gigi.h: Likewise.
1703         * gcc-interface/misc.c: Likewise.
1704         * gcc-interface/targtyps.c: Likewise.
1705
1706 2009-04-09  Nicolas Setton  <setton@adacore.com>
1707
1708         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
1709
1710         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
1711         struct_timeval.
1712
1713 2009-04-09  Bob Duff  <duff@adacore.com>
1714
1715         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
1716         internally-generated nodes related to select statements to avoid
1717         confusing the debugger.
1718
1719 2009-04-09  Pascal Obry  <obry@adacore.com>
1720
1721         * make.adb: Ensure that all linker arguments are duplicated.
1722
1723 2009-04-09  Robert Dewar  <dewar@adacore.com>
1724
1725         * sem_ch5.adb: Minor reformatting
1726
1727 2009-04-09  Vincent Celier  <celier@adacore.com>
1728
1729         * vms_data.ads:
1730         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
1731         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
1732         New qualifier /LXDEBUG=nnn for -gnatDnnn
1733         For H820-010
1734
1735         * gnat_ugn.texi:
1736         Update documentation for VMS qualifiers equivalent to -gnatGnn and
1737         -gnatDnn
1738
1739 2009-04-09  Nicolas Setton  <setton@adacore.com>
1740
1741         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
1742         to match layout of siginfo_t in sys/signal.h.
1743
1744         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
1745
1746 2009-04-09  Thomas Quinot  <quinot@adacore.com>
1747
1748         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
1749
1750 2009-04-09  Nicolas Setton  <setton@adacore.com>
1751
1752         * s-oscons-tmplt.c: Allow long lines in the generated spec.
1753         Add generation of Darwin-specific constants needed when binding to the
1754         pthread library.
1755
1756 2009-04-09  Robert Dewar  <dewar@adacore.com>
1757
1758         * checks.adb:
1759         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
1760         when no invalid values exist, Avoid duplicate read of atomic variable.
1761
1762         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
1763         (Standard_Unsigned): Set Is_Known_Valid
1764
1765         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
1766         subtype declaration if no constraint.
1767         (Set_Modular_Size): Set Is_Known_Valid if appropriate
1768         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
1769
1770 2009-04-09  Robert Dewar  <dewar@adacore.com>
1771
1772         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
1773         switch.ads: for numeric switches, an optional equal sign is always
1774         allowed.
1775
1776 2009-04-09  Vincent Celier  <celier@adacore.com>
1777
1778         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
1779         the case of file names is not significant.
1780
1781 2009-04-09  Vincent Celier  <celier@adacore.com>
1782
1783         * errout.adb: Remove dependency on package Style
1784
1785         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
1786         moved to Stylesw.
1787         
1788         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
1789         Styleg.
1790
1791         * errutil.adb, par.adb: Import Stylesw
1792
1793 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
1794
1795         * opt.ads: Fix typos.
1796
1797 2009-04-09  Robert Dewar  <dewar@adacore.com>
1798
1799         * einfo.adb: Minor reformatting
1800
1801 2009-04-09  Robert Dewar  <dewar@adacore.com>
1802
1803         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
1804         units.
1805
1806         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
1807
1808 2009-04-09  Robert Dewar  <dewar@adacore.com>
1809
1810         * g-comver.adb: Minor reformatting.
1811
1812 2009-04-09  Thomas Quinot  <quinot@adacore.com>
1813
1814         * lib-load.ads (Load_Unit): Update documentation.
1815
1816 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
1817
1818         * lib-load.adb (Load_Unit): When loading the parent of a child unit
1819         named in a with_clause, retain the with_clause to preserve a
1820         limited_with indication.
1821
1822 2009-04-09  Robert Dewar  <dewar@adacore.com>
1823
1824         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
1825         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
1826         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
1827         possible to replace an OR of two separate tests.
1828
1829 2009-04-09  Robert Dewar  <dewar@adacore.com>
1830
1831         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
1832         Maximum_Messages.
1833         
1834         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
1835         warning status as well.
1836         
1837         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
1838         
1839         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
1840         Maximum_Messages.
1841         
1842         * bindusg.adb, usage.adb: Update line for -gnatm switch
1843
1844         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
1845         -mnn binder switch.
1846
1847 2009-04-09  Robert Dewar  <dewar@adacore.com>
1848
1849         * sem_ch10.adb: Minor reformatting.
1850
1851 2009-04-09  Bob Duff  <duff@adacore.com>
1852
1853         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
1854         Set Sloc of generated nodes for calls to Undefer_Aborts and
1855         Save_Occurrence to No_Location, so the debugger ignores them and
1856         therefore does not jump back and forth when single stepping.
1857
1858 2009-04-09  Robert Dewar  <dewar@adacore.com>
1859
1860         * switch-b.adb: Minor reformatting.
1861
1862 2009-04-09  Robert Dewar  <dewar@adacore.com>
1863
1864         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
1865         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
1866         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
1867         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
1868         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
1869         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
1870         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
1871         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
1872         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
1873         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
1874         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
1875
1876 2009-04-09  Robert Dewar  <dewar@adacore.com>
1877
1878         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
1879
1880         * atree.h: Add Elist26
1881
1882         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
1883         backends.
1884
1885 2009-04-09  Javier Miranda  <miranda@adacore.com>
1886
1887         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
1888         retrieve from the Dispatch_Table_Wrappers list the external name.
1889         Addition of documentation.
1890         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
1891         used to export secondary dispatch tables (in the previous version of
1892         the frontend only primary dispatch tables were exported). Addition of
1893         documentation.
1894         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
1895         dispatch table of a given tagged type. 
1896         (Make_Tags): Modified to import secondary dispatch tables.
1897
1898         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
1899         (Constant_Redeclaration): Code cleanup.
1900
1901         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
1902         Dispatch_Table_Wrappers.  Update documentation.
1903
1904         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
1905         Renamed to Dispatch_Table_Wrappers.
1906
1907         * sem_util.adb (Collect_Interface_Components): Improve handling of
1908         private types.
1909
1910         * atree.ads (Elist26, Set_Elist26): New subprograms
1911
1912         * atree.adb (Elist26, Set_Elist26): New subprograms
1913
1914 2009-04-09  Javier Miranda  <miranda@adacore.com>
1915
1916         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
1917         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
1918         tagged types.
1919
1920 2009-04-09  Robert Dewar  <dewar@adacore.com>
1921
1922         * s-direio.adb: Minor reformatting
1923
1924         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
1925
1926 2009-04-09  Robert Dewar  <dewar@adacore.com>
1927
1928         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
1929
1930 2009-04-09  Pascal Obry  <obry@adacore.com>
1931
1932         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
1933         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
1934         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
1935         a-filico.ads: Add some missing overriding keywords.
1936
1937 2009-04-09  Pascal Obry  <obry@adacore.com>
1938
1939         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
1940         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
1941         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
1942         reformatting.
1943
1944 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
1945
1946         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
1947         missing overriding indicator if the new declaration is not seen as
1948         primitive.
1949
1950 2009-04-09  Thomas Quinot  <quinot@adacore.com>
1951
1952         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
1953         overflows in computation of bounds.
1954
1955 2009-04-09  Pascal Obry  <obry@adacore.com>
1956
1957         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
1958         typos in comment.
1959
1960 2009-04-09  Robert Dewar  <dewar@adacore.com>
1961
1962         * sem_attr.adb (Check_Stream_Attribute): Check violation of
1963         restriction No_Streams
1964
1965         * gnat_rm.texi: Clarify No_Streams restriction
1966
1967         * g-socket.adb: Minor reformatting.
1968
1969 2009-04-09  Thomas Quinot  <quinot@adacore.com>
1970
1971         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
1972
1973 2009-04-09  Geert Bosch  <bosch@adacore.com>
1974
1975         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
1976         (Set_Result): Likewise.
1977         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
1978         conversion, as required by RM 4.6(31).
1979
1980 2009-04-08  Robert Dewar  <dewar@adacore.com>
1981
1982         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
1983         suppressed.
1984         
1985         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
1986         resolution steps.
1987
1988 2009-04-08  Robert Dewar  <dewar@adacore.com>
1989
1990         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
1991         No_Local_Allocators restriction preventing local instantiation.
1992
1993 2009-04-08  Thomas Quinot  <quinot@adacore.com>
1994
1995         * sem_eval.adb: Minor comment fix
1996
1997 2009-04-08  Thomas Quinot  <quinot@adacore.com>
1998
1999         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
2000         New limited controlled type used to automate the initialization and
2001         finalization of the sockets implementation.
2002         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
2003
2004 2009-04-08  Vincent Celier  <celier@adacore.com>
2005
2006         * prj-attr.adb: New read-only project-level attribute Project_Dir
2007
2008         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
2009         read-only attribute of the same name.
2010         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
2011         (Recursive_Process): Ditto
2012
2013         * snames.adb: Add new standard name Project_Dir
2014
2015         * snames.ads: Add new standard name Project_Dir
2016
2017 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2018
2019         * checks.adb: Minor reformatting
2020
2021 2009-04-08  Vincent Celier  <celier@adacore.com>
2022
2023         * vms_data.ads: Add documentation for new style keyword
2024         OVERRIDING_INDICATORS
2025
2026 2009-04-08  Robert Dewar  <dewar@adacore.com>
2027
2028         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
2029         spec is in the current unit.
2030
2031 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2032
2033         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
2034         presence of entity.
2035
2036         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
2037
2038 2009-04-08  Vincent Celier  <celier@adacore.com>
2039
2040         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
2041
2042 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2043
2044         * checks.ads: Minor reformatting
2045
2046 2009-04-08  Robert Dewar  <dewar@adacore.com>
2047
2048         * gnat_rm.texi: Update documentation of pragma Obsolescent
2049         
2050         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
2051         be omitted, and allow Entity parameter to be omitted.
2052
2053 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2054
2055         * exp_util.adb: Minor comment fix
2056
2057 2009-04-08  Robert Dewar  <dewar@adacore.com>
2058
2059         * g-socket.ads: Fix bad syntax in pragma Obsolescent
2060
2061         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
2062         argument with no identifier following one that has an identifier. Was
2063         missed in some cases.
2064
2065         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
2066         identifier.
2067         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
2068
2069         * snames.adb: Add Name_Policy
2070
2071         * snames.ads: Add Name_Policy
2072
2073 2009-04-08  Robert Dewar  <dewar@adacore.com>
2074
2075         * gnat_rm.texi: Minor reformatting
2076
2077         * par-ch2.adb: Minor reformatting
2078
2079 2009-04-08  Robert Dewar  <dewar@adacore.com>
2080
2081         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
2082
2083 2009-04-08  Robert Dewar  <dewar@adacore.com>
2084
2085         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
2086         properly in the presence of Remote_Types or Remote_Call_Interface.
2087
2088         * sem_util.adb: Add comment.
2089
2090 2009-04-08  Robert Dewar  <dewar@adacore.com>
2091
2092         * ug_words: Add /ASSUME_VALID for -gnatB
2093
2094         * vms_data.ads: Add /ASSUME_VALID for -gnatB
2095
2096         * sem_cat.adb: Add clarifying commment
2097
2098         * a-direio.ads (Bytes): Make sure value is non-zero
2099
2100 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2101
2102         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
2103         that does not come from source, check for a rewritten function call in
2104         prefixed notation before other forms of rewriting.
2105
2106 2009-04-08  Robert Dewar  <dewar@adacore.com>
2107
2108         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
2109         these are now obsolescent units used only for bootrapping with an
2110         older compiler.
2111
2112 2009-04-08  Robert Dewar  <dewar@adacore.com>
2113
2114         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
2115
2116         * sem_ch3.adb: Minor comment updates
2117
2118 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2119
2120         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
2121         that come from source.
2122
2123 2009-04-08  Tristan Gingold  <gingold@adacore.com>
2124
2125         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
2126         * gcc-interface/decl.c (prepend_attributes): New case
2127         Pragma_Thread_Local_Storage.
2128         * gcc-interface/utils.c (process_attributes): New case
2129         ATTR_THREAD_LOCAL_STORAGE.
2130
2131 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2132
2133         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
2134         by the back-end if it contains a call to a subprogram without a
2135         previous spec that is declared in the same unit.
2136
2137         * errout.ads: Update comments on uses of dirs
2138
2139 2009-04-08  Robert Dewar  <dewar@adacore.com>
2140
2141         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
2142
2143 2009-04-08  Tristan Gingold  <gingold@adacore.com>
2144
2145         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
2146         variables.
2147         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
2148
2149 2009-04-08  Vincent Celier  <celier@adacore.com>
2150
2151         * prj-nmsc.adb:
2152         (Add_Source): Add the mapping of the unit name to source file name in
2153         the Unit_Sources_HT hash table, if the unit name is not null.
2154
2155         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
2156
2157         * prj.ads (Unit_Sources_Htable): New hash table instantiation
2158         (Project_Tree_Data): New component Unit_Sources_HT
2159
2160 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2161
2162         * sem_ch8.adb: Minor reformatting.
2163         Minor code reorganization.
2164
2165 2009-04-08  Robert Dewar  <dewar@adacore.com>
2166
2167         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
2168         snames.ads, freeze.adb, par-prag.adb: Add implementation of
2169         pragma Thread_Local_Storage, setting new flag
2170         Has_Pragma_Thread_Local_Storage in corresponding entities.
2171
2172 2009-04-08  Emmanuel Briot  <briot@adacore.com>
2173
2174         * prj.ads: Update comment on switches file
2175
2176         * prj-nmsc.adb: Code clean up. Use renaming clauses.
2177
2178 2009-04-08  Robert Dewar  <dewar@adacore.com>
2179
2180         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
2181
2182 2009-04-08  Thomas Quinot  <quinot@adacore.com>
2183
2184         * ali-util.adb: Minor comment fix
2185
2186 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
2187
2188         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
2189         appears in a context clause, and the enclosing package is mentioned in
2190         a limited_with_clause.
2191         (Use_One_Type): Reject clause if type is still incomplete.
2192
2193 2009-04-08  Emmanuel Briot  <briot@adacore.com>
2194
2195         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
2196         avoid copies of Source_Data variables when possible, since these
2197         involve calls to memcpy() which are done too many times.
2198
2199 2009-04-08  Robert Dewar  <dewar@adacore.com>
2200
2201         * exp_ch4.adb (Expand_Concatenate): Clean up code
2202
2203 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2204
2205         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
2206         type for the case of concatenating a constrained array indexed by an
2207         enumeration type.
2208
2209 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2210
2211         * sem_ch6.adb (Check_Conformance): when checking conformance of an
2212         operation that overrides an abstract operation inherited from an
2213         interface, return False if only one of the controlling formals is an
2214         access parameter.
2215
2216 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2217
2218         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
2219         mandated by AI05-105.
2220
2221 2009-04-07  Vincent Celier  <celier@adacore.com>
2222
2223         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
2224
2225 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2226
2227         * usage.adb: Minor fix in usage message.
2228
2229         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
2230         match declaration; the correct subtype is Node_Id, not Entity_Id,
2231         because the expected node kind is an identifier, not a defining
2232         identifier.
2233
2234         * switch-c.adb: Minor reformatting.
2235
2236         * uintp.adb: Minor reformatting.
2237
2238 2009-04-07  Robert Dewar  <dewar@adacore.com>
2239
2240         * exp_ch13.adb: Minor reformatting
2241
2242 2009-04-07  Robert Dewar  <dewar@adacore.com>
2243
2244         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
2245         against missing parent.
2246
2247 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2248
2249         * xoscons.adb: Minor reformatting
2250
2251 2009-04-07  Robert Dewar  <dewar@adacore.com>
2252
2253         * rtsfind.ads: Remove obsolete string concatenation entries
2254
2255 2009-04-07  Robert Dewar  <dewar@adacore.com>
2256
2257         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
2258
2259 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2260
2261         * sem_ch10.adb (Check_Body_Required): Handle properly imported
2262         subprograms.
2263
2264 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
2265
2266         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
2267         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
2268         is of a scalar or string type then suppress the setting of the
2269         expression to Empty.
2270
2271         * freeze.adb (Warn_Overlay): Also emit the warnings about default
2272         initialization for the cases of scalar and string objects when
2273         Init_Or_Norm_Scalars is True.
2274
2275 2009-04-07  Bob Duff  <duff@adacore.com>
2276
2277         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
2278
2279 2009-04-07  Bob Duff  <duff@adacore.com>
2280
2281         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
2282         Form parameter of Text_Translation=No allows binary mode for Text_IO
2283         files.
2284
2285         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
2286
2287 2009-04-07  Javier Miranda  <miranda@adacore.com>
2288
2289         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
2290         processing the bounds for bit packed arrays or VM target machines.
2291
2292 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2293
2294         * g-sothco.ads (Int_Access): Remove extraneous access type (use
2295         anonymous access instead).
2296         (Get_Socket_From_Set): Fix incorrectly reverted formals
2297         Last and Socket to match the underlying C routine.
2298
2299         * g-socket.adb, g-socket.ads
2300         (Get): Use named parameter associations instead of positional ones in
2301         call go Get_Socket_From_Set, since this routine has two formals of the
2302         same type.
2303         (Image): New procedure.
2304
2305         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2306         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
2307         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
2308         for type of Arg formal.
2309
2310         * sem_warn.adb: Minor reformatting
2311
2312 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2313
2314         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
2315         over record components.
2316
2317 2009-04-07  Nicolas Roche  <roche@adacore.com>
2318
2319         * gsocket.h:
2320         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
2321         has disappeared between VxWorks 6.4 and VxWorks 6.5
2322         In RTP mode use time.h instead of times.h
2323
2324 2009-04-07  Robert Dewar  <dewar@adacore.com>
2325
2326         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
2327
2328 2009-04-07  Kevin Pouget  <pouget@adacore.com>
2329
2330         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
2331         expanded code for constrained types.
2332
2333 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2334
2335         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
2336         AI05-105: in an object renaming declaration, anonymousness is a name
2337         resolution rule.
2338
2339         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2340
2341 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
2342
2343         * g-comlin.adb (Expansion): Fix old regression: also return directory
2344         names when matching.
2345
2346 2009-04-07  Robert Dewar  <dewar@adacore.com>
2347
2348         * exp_ch4.adb:
2349         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
2350         (Expand_Concatenate): New name for Expand_Concatenate_String which has
2351         been rewritten to handle all types.
2352         (Expand_Concatenate_Other): Remove
2353
2354 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2355
2356         * lib-xref.adb (Generate_Reference): A default subprogram in an
2357         instance appears within the tree for the instance, but generates an
2358         implicit reference in the ALI.
2359
2360 2009-04-07  Javier Miranda  <miranda@adacore.com>
2361
2362         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
2363         derived type that has discriminants, propagate the list of interfaces
2364         to the corresponding new base type. In addition, propagate also
2365         attribute Limited_Present (found working in this patch).
2366
2367 2009-04-07  Robert Dewar  <dewar@adacore.com>
2368
2369         * exp_ch4.adb: Rewrite concatenation expansion.
2370
2371 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2372
2373         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
2374         relevant to packages.
2375
2376 2009-04-07  Robert Dewar  <dewar@adacore.com>
2377
2378         * sem_attr.adb: Minor reformatting
2379
2380         * sem_ch6.adb: Minor reformatting
2381
2382 2009-04-07  Tristan Gingold  <gingold@adacore.com>
2383
2384         * socket.c: Add more protections against S_resolvLib_ macros.
2385
2386 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2387
2388         * sem_attr.adb: Minor reformatting
2389
2390 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2391
2392         * sem_ch6.adb (New_Overloaded_Entity): New predicate
2393         Is_Overriding_Alias to handle properly types that inherit two homonym
2394         operations that have distinct dispatch table entries.
2395
2396 2009-04-07  Emmanuel Briot  <briot@adacore.com>
2397
2398         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
2399         looking for the end of a parenthesis group
2400
2401 2009-04-07  Tristan Gingold  <gingold@adacore.com>
2402
2403         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
2404
2405         * socket.c Don't use resolvLib_ macros if not defined.
2406
2407 2009-04-07  Robert Dewar  <dewar@adacore.com>
2408
2409         * g-socket.adb: Minor reformatting.
2410
2411         * g-socthi-mingw.adb: Minor reformatting
2412
2413         * g-sothco.ads: Minor reformatting
2414
2415         * exp_ch4.adb:
2416         (Expand_Concatenate_String): Complete rewrite to generate efficient code
2417         inline instead of relying on external library routines.
2418
2419         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
2420         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
2421         obsolescent
2422
2423 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2424
2425         * sem_attr.adb:
2426         (Eval_Attribute): for attributes of array objects that are not strings,
2427         attributes are not static if nominal subtype of object is unconstrained.
2428
2429 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
2430
2431         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
2432         operations for a type T in an instance do not override each other,
2433         when T is derived from a formal private type, the corresponding
2434         operations inherited by a type derived from T outside
2435         of the instance do not override each other either.
2436
2437 2009-04-07  Robert Dewar  <dewar@adacore.com>
2438
2439         (Osint.Fail): Change calling sequence to have one string arg
2440         (Make.Make_Failed): Same change
2441         All callers are adjusted to use concatenation
2442
2443 2009-04-07  Robert Dewar  <dewar@adacore.com>
2444
2445         * exp_ch4.adb: Fix documentation typo
2446
2447 2009-04-07  Robert Dewar  <dewar@adacore.com>
2448
2449         * tbuild.ads: Minor reformatting
2450
2451 2009-04-07  Javier Miranda  <miranda@adacore.com>
2452
2453         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
2454         when compiling under ZFP runtime.
2455
2456 2009-04-07  Robert Dewar  <dewar@adacore.com>
2457
2458         * g-comlin.adb: Minor reformatting
2459
2460 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2461
2462         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2463         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2464         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
2465         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
2466
2467 2009-04-07  Robert Dewar  <dewar@adacore.com>
2468
2469         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
2470
2471         * opt.ads (Sprint_Line_Limit): New parameter
2472         
2473         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
2474         
2475         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
2476         
2477         * usage.adb: Output information for -gnatGnn -gnatDnn
2478
2479 2009-04-07  Robert Dewar  <dewar@adacore.com>
2480
2481         * make.adb: Minor reformatting
2482
2483 2009-04-07  Robert Dewar  <dewar@adacore.com>
2484
2485         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
2486
2487 2009-04-07  Robert Dewar  <dewar@adacore.com>
2488
2489         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
2490
2491 2009-04-07  Robert Dewar  <dewar@adacore.com>
2492
2493         * checks.adb:
2494         Remove Assume_Valid parameter from In_Subrange_Of calls
2495         
2496         * sem_eval.adb:
2497         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2498         (Is_In_Range): Remove incorrect use of Assume_Valid
2499         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
2500         
2501         * sem_eval.ads:
2502         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2503         (Is_In_Range): Documentation cleanup
2504         (Is_Out_Of_Range): Documentation cleanup
2505
2506         * gnat_rm.texi:
2507         Add documentation for Assume_No_Invalid_Values pragma
2508
2509         * sem_ch12.adb: Minor reformatting
2510
2511         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
2512
2513         * sem_prag.adb: Improve error message.
2514
2515         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
2516         LF/CR no longer recognized as line terminator
2517
2518         * switch.ads: Minor documentation improvement
2519
2520         * vms_data.ads: Minor reformatting
2521
2522 2009-04-07  Robert Dewar  <dewar@adacore.com>
2523
2524         * checks.adb (Determine_Range): Add Assume_Valid parameter
2525         
2526         * checks.ads (Determine_Range): Add Assume_Valid parameter
2527         
2528         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
2529          Is_Null_Loop to suppress warnings in a loop body.
2530         
2531         * exp_ch4.adb:
2532         (Rewrite_Comparison): Major rewrite to accomodate invalid values
2533         
2534         * exp_ch5.adb:
2535         (Expand_N_Loop_Statement): Delete loop known not to execute
2536         
2537         * opt.ads:
2538         (Assume_No_Invalid_Values): Now set to False, and as documented, this
2539          fully enables the proper handling of invalid values.
2540         
2541         * sem_attr.adb:
2542         New calling sequence for Is_In_Range
2543         
2544         * sem_ch5.adb:
2545         (Analyze_Iteration_Scheme): Accomodate possible invalid values
2546          in determining if a loop range is null.
2547         
2548         * sem_eval.adb:
2549         (Is_In_Range): Add Assume_Valid parameter
2550         (Is_Out_Of_Range): Add Assume_Valid_Parameter
2551         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
2552          also to do more accurate and complete range analysis, catching more
2553          cases.
2554         
2555         * sem_eval.ads:
2556         (Is_In_Range): Add Assume_Valid parameter
2557         (Is_Out_Of_Range): Add Assume_Valid_Parameter
2558         
2559         * sem_util.adb:
2560         New calling sequence for Is_In_Range
2561         
2562         * sinfo.adb:
2563         (Suppress_Loop_Warnings): New flag
2564         
2565         * sinfo.ads:
2566         (Is_Null_Loop): Update documentation
2567         (Suppress_Loop_Warnings): New flag
2568         
2569         * gnat_ugn.texi: Document -gnatB switch
2570
2571 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
2572
2573         * gnatvsn.ads: Bump version number.
2574
2575 2009-04-07  Thomas Quinot  <quinot@adacore.com>
2576
2577         * exp_ch3.adb: Minor rewording (comments)
2578
2579 2009-04-07  Robert Dewar  <dewar@adacore.com>
2580
2581         * exp_disp.adb: Minor reformatting
2582
2583 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2584
2585         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
2586         underlying type.
2587         * gcc-interface/trans.c (lvalue_required_p): Likewise.
2588
2589 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2590
2591         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
2592         Do not convert the result.  Remove obsolete comment.
2593
2594 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2595
2596         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
2597         DECL_CONTEXT.
2598         (Subprogram_Body_to_gnu): Fix pasto.
2599
2600 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2601
2602         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
2603         (void_type_decl_node): Remove.
2604         (init_gigi_decls): Likewise.
2605         (gnat_install_builtins): Declare.
2606         (record_builtin_type): Likewise.
2607         (create_type_stub_decl): Likewise.
2608         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
2609         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
2610         artificial.
2611         <E_Array_Subtype>: Use the index types, not only their name, in the
2612         record giving the names of the bounds, if any.
2613         For a packed array type, make it artificial only if the base type
2614         was artificial as well.  Remove redundant statement.
2615         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
2616         dummy types.
2617         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
2618         (rest_of_type_decl_compilation_no_defer): Likewise.
2619         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
2620         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
2621         and use create_type_stub_decl to build it.
2622         (gnat_pushdecl): Rewrite condition.
2623         (gnat_install_builtins): Remove bogus declaration.
2624         (record_builtin_type): New function.
2625         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
2626         of types.
2627         (create_type_stub_decl): New function.
2628         (create_type_decl): Assert that the type is not dummy.  If the type
2629         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
2630         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
2631         (build_vms_descriptor): Likewise.
2632         (init_gigi_decls): Delete and move bulk of code to...
2633         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
2634         (emit_range_check): Add gnat_node parameter.
2635         (emit_index_check): Likewise.
2636         (emit_check): Likewise.
2637         (build_unary_op_trapv): Likewise.
2638         (build_binary_op_trapv): Likewise.
2639         (convert_with_check): Likewise.
2640         (Attribute_to_gnu): Adjust calls for above changes.
2641         (call_to_gnu): Likewise.
2642         (gnat_to_gnu): Likewise.
2643         (assoc_to_constructor): Likewise.
2644         (pos_to_constructor): Likewise.
2645         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
2646         (process_type): Do not create TYPE_DECL for dummy types.
2647
2648 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2649
2650         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
2651         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
2652         * gcc-interface/utils.c: Fix comments.
2653
2654 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2655
2656         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
2657         move around.
2658         (gnat_to_gnu_type): Move around.
2659         (get_unpadded_type): Likewise.
2660         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
2661         Tidy comments.
2662
2663 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2664
2665         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
2666         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
2667         (call_to_gnu): Invoke it instead of manually checking.
2668
2669 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2670
2671         * gcc-interface/utils.c (finish_record_type): Force structural equality
2672         checks if the record type is discriminated.
2673
2674 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2675
2676         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
2677         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
2678         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
2679         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
2680         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
2681         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
2682         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
2683
2684 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2685
2686         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
2687         of TREE_CONSTANT_OVERFLOW.
2688
2689 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
2690
2691         PR rtl-optimization/323
2692         * gcc-interface/misc.c (gnat_post_options): Set
2693         flag_excess_precision_cmdline.  Give an error for
2694         -fexcess-precision=standard for processors where the option is
2695         significant.
2696
2697 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2698
2699         PR c/39323
2700         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
2701         on bit_align.
2702
2703 2009-03-11  Olivier Hainque  <hainque@adacore.com>
2704
2705         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
2706         checks processing, remove unintended TREE_TYPE walk on index type.
2707
2708 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
2709
2710         PR ada/39264
2711         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
2712         call make_packable_type on fat pointer types.
2713         <E_Array_Subtype>: Likewise.
2714         <E_Record_Subtype>: Call make_packable_type on all record types
2715         except for fat pointer types.
2716         (make_packable_type): Likewise.
2717         (gnat_to_gnu_field): Likewise.
2718
2719 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
2720
2721         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
2722         EH_MECHANISM change made on 2007-12-06.
2723
2724 2009-02-26  Andreas Schwab  <schwab@suse.de>
2725
2726         PR ada/39172
2727         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
2728         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
2729         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
2730         (AWK): Substitute.
2731         (target_cpu_default): Substitute.
2732
2733 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
2734
2735         PR ada/39221
2736         * a-teioed.adb (Expand): Fix Result overflow.
2737
2738 2009-02-25  Laurent GUERBY <laurent@guerby.net>
2739
2740         * gcc-interface/Makefile.in: Fix multilib handling for
2741         sparc64-linux.
2742
2743 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2744
2745         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
2746
2747 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2748
2749         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
2750
2751 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
2752
2753         * gcc-interface/deftarg.c: Remove.
2754
2755 2009-02-10  Olivier Hainque  <hainque@adacore.com>
2756             Eric Botcazou  <ebotcazou@adacore.com>
2757
2758         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
2759         (copy_alias_set): Rename into...
2760         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
2761         underlying array of unconstrained arrays for the new type as well.
2762         If the old and new alias sets don't conflict, make one a subset of
2763         the other as per the OP parameter.
2764         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
2765         <E_Record_Type>: Do not copy the alias set for derived types.
2766         For all types, make the alias set of derived types a superset of
2767         that of their parent type.
2768         (make_aligning_type): Adjust calls to copy_alias_set.
2769         (make_packable_type): Likewise.
2770         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
2771         Check for alias set conflict instead of strict equality to issue the
2772         warning.
2773
2774 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
2775
2776         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
2777         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
2778         (copy_alias_set): Assert that arrays have the same aliasing settings.
2779         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
2780
2781 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
2782
2783         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
2784         Set TYPE_NONALIASED_COMPONENT on the array type.
2785
2786 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
2787
2788         * gcc-interface/Makefile.in: Fix mipsel linux handling.
2789
2790 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
2791
2792         * gcc-interface/Makefile.in: Fix multilib handling for
2793         powerpc64-linux.
2794
2795 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
2796
2797         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
2798         only useless conversions around renamed objects.
2799
2800 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
2801
2802         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
2803         the _Tag field before any discriminants in the field list.
2804         (components_to_record): Remove obsolete comment.
2805
2806 2008-12-09  Jakub Jelinek  <jakub@redhat.com>
2807
2808         PR ada/38450
2809         * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
2810         * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
2811         Likewise.
2812
2813 2008-12-05  Sebastian Pop  <sebastian.pop@amd.com>
2814
2815         PR bootstrap/38262
2816         * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
2817
2818 2008-11-29  Eric Botcazou  <ebotcazou@adacore.com>
2819
2820         PR ada/30827
2821         * g-comver.adb (Ver_Len_Max): Fix inconsistency.
2822
2823 2008-11-27  Eric Botcazou  <ebotcazou@adacore.com>
2824
2825         * gcc-interface/decl.c: Fix various nits.
2826
2827 2008-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2828
2829         * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
2830
2831 2008-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2832
2833         PR ada/38127
2834         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
2835         special-case boolean types.  Propagate  the name.
2836         * gcc-interface/targtyps.c: Tweak comment.
2837
2838 2008-11-15  Geert Bosch  <bosch@adacore.com>
2839
2840         * gcc-interface/trans.c (emit_check): Put back a final save_expr
2841         to prevent exponential expansion during gimplification.
2842
2843 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
2844
2845         * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
2846
2847 2008-11-15  Eric Botcazou  <ebotcazou@adacore.com>
2848
2849         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
2850         initialized to a static constant to be statically allocated even if
2851         they are of a padding type, provided the original type also has
2852         constant size.
2853
2854 2008-11-15  Laurent Guerby  <laurent@guerby.net>
2855
2856         PR ada/37993
2857         * gcc-interface/Makefile.in: Add multilib handling for x86_64
2858         on darwin.
2859         * system-darwin-x86_64.ads: New file.
2860
2861 2008-11-13  Olivier Hainque  <hainque@adacore.com>
2862
2863         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
2864         Turn Ada Pure on subprograms back into GCC CONST when eh constructs
2865         are explicit to the middle-end.  Tidy.
2866
2867 2008-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2868
2869         * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
2870         (MINUS_NOMOD_EXPR): Likewise.
2871         * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
2872         unreachable.
2873         <PLUS_NOMOD_EXPR>: New case.
2874         <MINUS_NOMOD_EXPR>: Likewise.
2875         * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
2876         assignment statement instead of using an increment operator.
2877
2878 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2879
2880         * system-irix-n64.ads: New file.
2881         * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
2882         multilibs.
2883
2884 2008-11-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2885
2886         PR ada/37681
2887         * system-solaris-x86_64.ads: New file.
2888         * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
2889
2890 2008-11-07  Bechir Zalila  <bechir.zalila@gmail.com>
2891             Eric Botcazou  <ebotcazou@adacore.com>
2892
2893         PR ada/34289
2894         * lib.ads: (Enable_Switch_Storing): Declare.
2895         * lib.adb: (Enable_Switch_Storing): New procedure.
2896         * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
2897         * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
2898         (Display): Never display -gnatea
2899         * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
2900
2901 2008-11-07  Thomas Quinot  <quinot@adacore.com>
2902
2903         * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
2904         for empty range in original base type, not converted result type.
2905
2906 2008-11-07  Geert Bosch  <bosch@adacore.com>
2907
2908         * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
2909         and result for call to __gnat_mulv64.
2910
2911 2008-11-07  Eric Botcazou  <ebotcazou@adacore.com>
2912
2913         * gcc-interface/trans.c: Fix formatting nits.
2914
2915 2008-11-07  Geert Bosch  <bosch@adacore.com>
2916
2917         * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
2918         overflow check for constant result.
2919
2920 2008-11-07  Geert Bosch  <bosch@adacore.com>
2921
2922         * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
2923         overflow check for addition/subtraction if neither operand is constant.
2924
2925 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
2926
2927         * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
2928         files for the target-dependent part of the runtime.
2929         (SPARC/Linux): Likewise.
2930
2931 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
2932
2933         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
2934         optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
2935         purposes.
2936
2937 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
2938
2939         * gcc-interface/misc.c (gnat_printable_name): Always return a copy
2940         in GC memory.
2941
2942 2008-11-06  Eric Botcazou  <ebotcazou@adacore.com>
2943
2944         PR ada/19419
2945         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
2946         Generate a call to memmove for an assignment between overlapping
2947         array slices.
2948
2949 2008-11-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2950
2951         PR target/37977
2952         * gcc-interface/Makefile.in: Add multilib handling for
2953         s390-linux and s390x-linux.
2954
2955 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
2956
2957         * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
2958         check-acats-subtargets and check-gnat-subtargets.
2959         (check_acats_targets): New variable.
2960         (check-acats-subtargets, check-acats%): New targets.
2961         (check-acats): If -j is used and CHAPTERS is empty, run the testing
2962         in multiple make goals, possibly parallel, and afterwards run
2963         dg-extract-results.sh to merge the sum and log files.
2964
2965 2008-10-17  Geert Bosch  <bosch@adacore.com>
2966
2967         * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
2968         to use only a single check instead of three, and avoid unnecessary
2969         COMPOUND_EXPR.
2970         (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
2971         creating more opportunities for optimizations.
2972
2973 2008-10-13  Jakub Jelinek  <jakub@redhat.com>
2974
2975         PR middle-end/37601
2976         * gcc-interface/utils.c (gnat_types_compatible_p): Handle
2977         NULL TYPE_DOMAIN.
2978
2979 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2980
2981         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
2982         dealing with volatileness to after code dealing with renaming.
2983
2984 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2985
2986         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
2987         * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
2988
2989 2008-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2990
2991         * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
2992         (unchecked_convert): Use it to disable problematic folding with
2993         VIEW_CONVERT_EXPR in the general case.  Always disable it for the
2994         special VIEW_CONVERT_EXPR built for integral types and cope with
2995         its addressability issues by preserving the first conversion.
2996
2997 2008-10-01  Andreas Schwab  <schwab@suse.de>
2998
2999         * system-linux-ppc64.ads: New file.
3000         * gcc-interface/Makefile.in: Add multilib handling for
3001         powerpc-linux.
3002
3003 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
3004
3005         * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
3006         to that of ptr_mode instead of word_mode.
3007
3008 2008-09-26  Eric Botcazou  <ebotcazou@adacore.com>
3009
3010         PR ada/5911
3011         * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
3012
3013 2008-09-25  Samuel Tardieu  <sam@rfc1149.net>
3014
3015         PR ada/37641
3016         * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
3017         instead of deprecated FILE_WRITE_PROPERTIES.
3018
3019 2008-09-22  Olivier Hainque  <hainque@adacore.com>
3020
3021         * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
3022         are never assigned, volatile entities are not constant for code
3023         generation purposes.
3024
3025 2008-09-21  Laurent Guerby  <laurent@guerby.net>
3026
3027         PR ada/5911
3028         * gcc-interface/Makefile.in: Add multilib handling for x86_64
3029         and sparc.
3030         * system-linux-sparcv9.ads: New file.
3031
3032 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3033
3034         * exp_dbug.ads: Document new convention for the XVZ variable.
3035         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
3036         debug info if necessary for the type padding the component type.
3037         <E_Array_Subtype>: Likewise.
3038         (maybe_pad_type): Emit the XVZ variable in units.
3039         * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
3040         (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
3041         on statements generated to initialize the parameter attributes cache.
3042         Set the source line of the end label of the body on the special return
3043         statement built for a procedure with copy-in copy-out parameters.
3044
3045 2008-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3046
3047         PR ada/37585
3048         * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
3049         inlined external functions if they contain a nested function not
3050         declared inline.
3051
3052 2008-09-18  Jan Hubicka  <jh@suse.cz>
3053
3054         * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
3055         (end_subprog_body): Do not set DECL_INLINE.
3056
3057 2008-09-17  Pascal Rigaux  <pixel@mandriva.com>
3058
3059         PR ada/21327
3060         * gnat_ugn.texi: Use proper format in direntry.
3061
3062 2008-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3063
3064         * gcc-interface/trans.c (gigi): Declare the name of the compilation
3065         unit as the first global name.
3066
3067 2008-09-14  Jan Hubicka  <jh@suse.cz>
3068
3069         * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
3070
3071 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3072
3073         * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
3074         bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
3075         exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
3076         exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
3077         exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
3078         g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
3079         gcc-interface/gigi.h, gcc-interface/trans.c,
3080         lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
3081         opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
3082         s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
3083         s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
3084         sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
3085         sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3086         sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
3087         sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
3088         comments.
3089         * gnathtml.pl: Fix typos.
3090
3091 2008-09-10  Joel Sherrill <joel.sherrill@oarcorp.com>
3092
3093         * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
3094         * s-osinte-rtems.ads: Add shared hardware interrupt adapter
3095         layer. RTEMS binds to OS provided adapter routines so there are
3096         no modifications to s-osinte-rtems.adb.
3097
3098 2008-09-09  Arnaud Charlet  <charlet@adacore.com>
3099             Joel Sherrill  <joel.sherrill@oarcorp.com>
3100
3101        * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
3102
3103        * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
3104
3105        * s-interr-hwint.adb: New file.
3106
3107         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
3108         needed by s-interr-hwint.adb.
3109
3110         * s-osinte-vxworks-kernel.adb: New file.
3111
3112 2008-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>
3113
3114         * s-stchop-rtems.adb: Add file missed in early commit.  Already
3115         referenced in gcc-interface/Makefile.in.
3116
3117 2008-08-30  Thomas Quinot  <quinot@adacore.com>
3118
3119         * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
3120         be built even without a separate libada directory.
3121
3122 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
3123
3124         * lib-xref.ads: Fix typo in subprogram reference definition.
3125
3126 2008-08-22  Robert Dewar  <dewar@adacore.com>
3127
3128         * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
3129         to avoid warning.
3130
3131         * g-trasym.adb: Ditto
3132
3133         * s-utf_32.adb (Get_Category): Fix obvious typo
3134
3135         * s-wwdcha.adb: Minor code reorganization
3136         Remove dead code
3137
3138 2008-08-22  Robert Dewar  <dewar@adacore.com>
3139
3140         * checks.adb (Determine_Range): Deal with values that might be invalid
3141
3142         * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
3143         configuration switches.
3144
3145         * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
3146
3147         * sem_prag.adb: Implement pragma Assume_No_Default_Values
3148
3149         * snames.adb, snames.ads, snames.h:
3150         Add entries for pragma Assume_No_Invalid_Values
3151
3152         * switch-c.adb: Add processing for -gnatB switch
3153
3154         * usage.adb: Add entry for flag -gnatB (no bad invalid values)
3155
3156 2008-08-22  Javier Miranda  <miranda@adacore.com>
3157
3158         * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
3159         init procedure all the expanded code associated with the spec of
3160         task types and protected types.
3161
3162 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
3163
3164         * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
3165         component expression copies rather than directly setting Etype and
3166         Is_Static_Expression.
3167
3168 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
3169
3170         * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
3171         private types to allow for types derived from a private type with
3172         preelaborable initialization, but return False for a private extension
3173         (unless it has the pragma).
3174
3175 2008-08-22  Robert Dewar  <dewar@adacore.com>
3176
3177         * opt.ads: Minor code reorganization (put entries in alpha order)
3178
3179 2008-08-22  Pascal Obry  <obry@adacore.com>
3180
3181         * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
3182         spawn.
3183
3184 2008-08-22  Geert Bosch  <bosch@adacore.com>
3185
3186         * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
3187         (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
3188
3189 2008-08-22  Doug Rupp  <rupp@adacore.com>
3190
3191         * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
3192         __gnat_set_features.
3193
3194         * init.c
3195         (__gnat_set_features): New function.
3196         (__gnat_features_set): New tracking variable.
3197         (__gl_no_malloc_64): New feature global variable
3198
3199 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3200
3201         * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
3202         use_type_clause in an instance.
3203
3204 2008-08-22  Bob Duff  <duff@adacore.com>
3205
3206         * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
3207
3208 2008-08-22  Robert Dewar  <dewar@adacore.com>
3209
3210         * exp_ch6.adb: Minor reformatting
3211
3212         * exp_ch7.adb: Minor reformatting
3213
3214         * exp_ch7.ads: Put routines in proper alpha order
3215
3216         * exp_dist.adb: Minor reformatting
3217
3218 2008-08-22  Vincent Celier  <celier@adacore.com>
3219
3220         * prj.ads: Minor comment update
3221
3222 2008-08-22  Robert Dewar  <dewar@adacore.com>
3223
3224         * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
3225
3226 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3227
3228         * exp_tss.adb:
3229         (Base_Init_Proc): For a protected subtype, use the base type of the
3230         corresponding record to locate the propoer initialization procedure.
3231
3232 2008-08-22  Robert Dewar  <dewar@adacore.com>
3233
3234         * checks.adb:
3235         (In_Subrange_Of): New calling sequence
3236         (Determine_Range): Prepare for new processing using base type
3237
3238         * exp_ch4.adb:
3239         (Compile_Time_Compare): Use new calling sequence
3240
3241         * exp_ch5.adb:
3242         (Compile_Time_Compare): Use new calling sequence
3243
3244         * sem_eval.adb:
3245         (Compile_Time_Compare): New calling sequence allows dealing with
3246         invalid values.
3247         (In_Subrange_Of): Ditto
3248
3249         * sem_eval.ads:
3250         (Compile_Time_Compare): New calling sequence allows dealing with
3251         invalid values.
3252         (In_Subrange_Of): Ditto
3253
3254 2008-08-22  Pascal Obry  <obry@adacore.com>
3255
3256         * adaint.c: Fix possible race condition on win32_wait().
3257
3258 2008-08-22  Bob Duff  <duff@adacore.com>
3259
3260         * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
3261         exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
3262         exp_intr.adb, exp_ch3.adb: Rename:
3263         Exp_Ch7.Controlled_Type => Needs_Finalization
3264         Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
3265         Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
3266          Has_Controlled_Parts
3267         (Has_Some_Controlled_Component): Fix bug in array case.
3268
3269 2008-08-22  Robert Dewar  <dewar@adacore.com>
3270
3271         * sem_ch8.adb: Minor reformatting
3272
3273 2008-08-22  Kevin Pouget  <pouget@adacore.com>
3274
3275         * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
3276         Shared_Var_Close procedure specifications from package spec to package body.
3277
3278         * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
3279         RE_Shared_Var_WOpen entries.
3280
3281         * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
3282         Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
3283
3284 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
3285
3286         * init.c: adjust EH support code on Alpha/Tru64 as well.
3287
3288         * raise-gcc.c: Add back a couple of comments.
3289
3290 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3291
3292         * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
3293         involved and the return type is class-wide, use the type of the expression
3294         for the generated access type. Suppress useless discriminant checks on the
3295         allocator.
3296
3297 2008-08-22  Bob Duff  <duff@adacore.com>
3298
3299         * exp_ch7.adb: Minor comment fix
3300
3301         * exp_ch6.ads: Minor comment fix
3302
3303 2008-08-22  Thomas Quinot  <quinot@adacore.com>
3304
3305         * sem_ch8.adb: Minor reformatting
3306         Minor code reorganization (introduce subprogram to factor duplicated
3307         code).
3308
3309 2008-08-22  Sergey Rybin  <rybin@adacore.com>
3310
3311         * gnat_ugn.texi: Change the description of gnatcheck default rule
3312         settings.
3313
3314 2008-08-22  Eric Botcazou  <ebotcazou@adacore.com>
3315
3316         * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
3317         Solaris, FreeBSD, VxWorks and PowerPC/Linux.  For x86{-64}/Linux,
3318         do not adjust the PC anymore.
3319         (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
3320         on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
3321
3322         * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
3323         instead of _Unwind_GetIP.
3324
3325 2008-08-22  Gary Dismukes  <dismukes@adacore.com>
3326
3327         * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
3328         with a range is transformed into a positional aggregate, any copied
3329         component literals should be marked Is_Static_Expression.
3330
3331         * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
3332         not being known at at compile time when Configurable_Run_Time_Mode is
3333         true.
3334
3335 2008-08-22  Robert Dewar  <dewar@adacore.com>
3336
3337         * exp_attr.adb:
3338         (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
3339         Read or Input attribute.
3340
3341 2008-08-22  Ed Schonberg  <schonberg@adacore.com>
3342
3343         * sem_ch8.adb (Use_One_Type): when checking which of two use_type
3344         clauses in related units is redundant, if one of the units is a package
3345         instantiation, use its instance_spec to determine which unit is the
3346         ancestor of the other.
3347
3348 2008-08-22  Javier Miranda  <miranda@adacore.com>
3349
3350         * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
3351         attributes add missing support to handle designated types that come
3352         from the limited view.
3353
3354         * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
3355
3356 2008-08-22  Sergey Rybin  <rybin@adacore.com>
3357
3358         * vms_data.ads: Add entry for new gnatcheck -mNNN option
3359
3360         * gnat_ugn.texi: Add description for gnatcheck option '-m'
3361
3362 2008-08-22  Sergey Rybin  <rybin@adacore.com>
3363
3364         * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
3365         acoording to the latest changes in the metric rule interface
3366
3367 2008-08-22  Vincent Celier  <celier@adacore.com>
3368
3369         * make.adb (Check.File_Not_A_Source_Of): New Boolean function
3370         (Check): Check if the file names registered in the ALI file for the
3371         spec, the body and each of the subunits are the ones expected.
3372
3373 2008-08-22  Robert Dewar  <dewar@adacore.com>
3374
3375         * g-catiio.adb: Code cleanup.
3376
3377 2008-08-20  Vincent Celier  <celier@adacore.com>
3378
3379         * make.adb (Gnatmake): Remove extra space in version line
3380
3381         * ali.adb:
3382         (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
3383         as the name may already have been entered in the table by the Project
3384         Manager.
3385
3386 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
3387
3388         * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
3389         weak symbols so we use the version provided by MaRTE when available.
3390
3391 2008-08-20  Emmanuel Briot  <briot@adacore.com>
3392
3393         * g-catiio.ads, g-catiio.adb:
3394         (Value): Avoid an unnecessary system call to Clock in most cases.
3395         This call is only needed when only the time is provided in the string,
3396         and ignored in all other cases. This is more efficient.
3397
3398 2008-08-20  Eric Botcazou  <ebotcazou@adacore.com>
3399
3400         * raise-gcc.c: Fix formatting nits.
3401
3402 2008-08-20  Robert Dewar  <dewar@adacore.com>
3403
3404         * sem_ch13.adb:
3405         (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
3406         non-existing component clause.
3407
3408         * exp_ch5.adb: Minor reformatting
3409
3410         * g-comlin.adb: Minor reformatting
3411
3412         * make.adb: Minor reformatting
3413
3414         * prj-proc.adb: Minor reformatting
3415
3416         * stylesw.ads: Minor reformatting
3417
3418 2008-08-20  Vincent Celier  <celier@adacore.com>
3419
3420         * make.adb (Gnatmake_Switch_Found): New Boolean global variable
3421         (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
3422         (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
3423          defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
3424         and a switch is not recognized by gnatmake.
3425         (Gnatmake): Implement new scheme for gnatmake switches and global
3426         compilation switches.
3427         (Switches_Of): Try successively Switches (<file name>),
3428         Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
3429
3430 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3431
3432         * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
3433         implement style check that overriding operations are explicitly marked
3434         at such.
3435
3436         * style.ads (Missing_Overriding): new procedure that provides interface
3437         to previous one.
3438
3439         * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
3440         that the declaration or body of overriding operations carries an
3441         explicit overriding indicator.
3442
3443         * sem_ch8.adb
3444         (Analyze_Subprogram_Renaming): if operation is overriding, check whether
3445         explicit indicator should be present.
3446
3447         * sem_ch6.adb (Verify_Overriding_Indicator,
3448         Check_Overriding_Indicator): If operation is overriding, check whether
3449         declaration and/or body of subprogram should be present
3450
3451 2008-08-20  Vincent Celier  <celier@adacore.com>
3452
3453         * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
3454         gprbuild when casing is MixedCase, whatever the casing of the letters
3455         in the file name.
3456
3457 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
3458
3459         * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
3460         creating dummy init proc.
3461         (Requires_Init_Proc): Return False in the case No_Default_Initialization
3462         is in force and the type does not have associated default
3463         initialization. Move test of Is_Public (with tests of restrictions
3464         No_Initialize_Scalars and No_Default_Initialization) to end, past tests
3465         for default initialization.
3466
3467 2008-08-20  Jerome Lambourg  <lambourg@adacore.com>
3468
3469         * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
3470         of any alias or prefix but having attached parameters (as \"-O2\").
3471
3472 2008-08-20  Robert Dewar  <dewar@adacore.com>
3473
3474         * s-fileio.adb: Minor reformatting
3475
3476 2008-08-20  Thomas Quinot  <quinot@adacore.com>
3477
3478         * exp_strm.adb (Build_Elementary_Input_Call,
3479         Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
3480         selects the stream attribute routines for long float types.
3481
3482 2008-08-20  Vincent Celier  <celier@adacore.com>
3483
3484         * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
3485
3486         * prj.ads (Array_Data): Add a component Location
3487
3488 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3489
3490         * sem_prag.adb:
3491         (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
3492         argument for ASIS and navigation use.
3493
3494 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3495
3496         * einfo.ads: Add comment.
3497
3498 2008-08-20  Bob Duff  <duff@adacore.com>
3499
3500         * sem_eval.ads: Minor comment fix.
3501
3502 2008-08-20  Bob Duff  <duff@adacore.com>
3503
3504         * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
3505         folding. We were folding things like "False and then ...", but not
3506         "X and then ..." where X is a constant whose value is known at compile
3507         time.
3508
3509 2008-08-20  Hristian Kirtchev  <kirtchev@adacore.com>
3510
3511         * exp_ch5.adb (Controlled_Type): New routine.
3512         (Expand_N_Extended_Return_Statement): When generating a move of the
3513         final list in extended return statements, check the type of the
3514         function and in the case of double expanded return statements, the type
3515         of the returned object.
3516         (Expand_Simple_Function_Return): Perform an interface conversion when
3517         the type of the returned object is an interface and the context is an
3518         extended return statement.
3519
3520 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3521
3522         * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
3523         and the full view is visible, set flag on full view as well.
3524
3525 2008-08-20  Thomas Quinot  <quinot@adacore.com>
3526
3527         * g-comlin.adb: Minor reformatting
3528         Minor code reorganization.
3529
3530         * freeze.adb: Minor reformatting
3531
3532 2008-08-20  Vincent Celier  <celier@adacore.com>
3533
3534         * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
3535         source of another project.
3536
3537 2008-08-20  Pascal Obry  <obry@adacore.com>
3538
3539         * s-os_lib.ads: Minor reformatting.
3540
3541 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
3542
3543         * gnatvsn.ads: Minor reformatting.
3544
3545 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
3546
3547         * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
3548         system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
3549         g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
3550         mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
3551         exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
3552         g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
3553         s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
3554         sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
3555         s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
3556         g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
3557         g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
3558         g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
3559         live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
3560         g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
3561         s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
3562         g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
3563         s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
3564         g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
3565         osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
3566         system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
3567         i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
3568         s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
3569         a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
3570         s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
3571         a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
3572         g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
3573         a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
3574         a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
3575         lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
3576         s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
3577         par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
3578         a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
3579         system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
3580         s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
3581         a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
3582         mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
3583         s-poosiz.adb, link.c: Fix copyright notice.
3584
3585 2008-08-20  Arnaud Charlet  <charlet@adacore.com>
3586
3587         * g-comlin.ads: Update comments.
3588
3589 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3590
3591         * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
3592
3593 2008-08-20  Gary Dismukes  <dismukes@adacore.com>
3594
3595         * exp_ch11.adb:
3596         (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
3597         Make_Implicit_Exception_Handler when rewriting an exception handler with
3598         a choice parameter, and pass the handler's Sloc instead of that of the
3599         handled sequence of statements. Make_Implicit_Exception_Handler sets the
3600         Sloc to No_Location (unless debugging generated code), which we don't
3601         want for the case of a user handler.
3602
3603 2008-08-20  Robert Dewar  <dewar@adacore.com>
3604
3605         * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
3606
3607         * sem_ch13.adb:
3608         (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
3609         now labeled as info msgs, not warnings.
3610
3611         * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
3612
3613         * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
3614
3615         * a-textio.adb: Remove redundant test.
3616
3617         * a-witeio.adb: Minor code reorganization
3618         Remove redundant test found working on another issue
3619
3620         * a-ztexio.adb: Minor code reorganization
3621         Remove redundant test found working on another issue
3622
3623 2008-08-20  Thomas Quinot  <quinot@adacore.com>
3624
3625         * s-fileio.adb (Open) Use C helper function to determine whether a
3626         given errno value corresponds to a "file not found" error.
3627
3628         * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
3629
3630 2008-08-20  Jose Ruiz  <ruiz@adacore.com>
3631
3632         * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
3633         to get access to the per-task errno variable.
3634         (__set_errno for MaRTE): Do not redefine this function here since it is
3635         already defined in MaRTE.
3636
3637 2008-08-20  Tristan Gingold  <gingold@adacore.com>
3638
3639         * gnat_ugn.texi: Gcov is not supported on static library on AIX.
3640
3641 2008-08-20  Robert Dewar  <dewar@adacore.com>
3642
3643         * freeze.adb: Minor reformatting
3644
3645         * g-comlin.adb: Minor reformatting
3646
3647         * g-socket.adb: Minor reformatting
3648
3649         * g-socthi-mingw.adb: Minor reformatting
3650
3651         * g-stheme.adb: Minor reformatting
3652
3653 2008-08-20  Ed Schonberg  <schonberg@adacore.com>
3654
3655         * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
3656         exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
3657         confusion between partial and full views of an ancestor of the context
3658         type when the parent is a private extension declared in a parent unit,
3659         and full views are available for the context type.
3660
3661 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
3662             Robert Dewar  <dewar@adacore.com>
3663
3664         PR ada/30827
3665         * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
3666         version string.
3667         Move comment in the right place.
3668         * g-comver.adb (Version): Look for a zero-termination in
3669         addition to a closing parenthesis.
3670
3671 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
3672
3673         * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
3674         * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3675         * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
3676         Is_Package_Or_Generic_Package instead of hand-crafted tests.
3677
3678 2008-08-18  Samuel Tardieu  <sam@rfc1149.net>
3679
3680         PR ada/15808
3681         * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
3682         as well.
3683
3684 2008-08-17  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3685
3686         * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
3687
3688 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
3689
3690         * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
3691         for back-copy statements in lieu of that of the actual.
3692
3693 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
3694
3695         PR ada/20548
3696         * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
3697         setjmp test consistently.  Adjust for new behavior of flag_stack_check.
3698         * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
3699         test of flag_stack_check.  Adjust for new behavior of flag_stack_check.
3700
3701 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
3702
3703         PR ada/36777
3704         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
3705         * sem_attr.adb (Check_Type): The current instance of a protected
3706         object is not a type name.
3707         (Analyze_Access_Attribute): Accept instances of protected objects.
3708         (Analyze_Attribute, Attribute_Address clause): Ditto.
3709         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
3710         the prefix as being the current instance if needed.
3711
3712 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
3713
3714         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
3715         Remove duplicate s-win32.o. Add s-winext.o.
3716
3717 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
3718
3719         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
3720         with SOSC.SOCK__STREAM.
3721         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
3722         SOSC.MSG_OOB.
3723
3724 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
3725
3726         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
3727         * gsocket.h, socket.c: Update to support RTEMS.
3728         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
3729
3730 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
3731             Robert Dewar <dewar@adacore.com>
3732
3733         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
3734         left argument even when right argument is 0.
3735         (Expand_N_Op_Mod): Ditto when right argument is 1.
3736         (Expand_N_Op_Multiply): Ditto when any argument is 0.
3737         (Expand_N_Op_Rem): Ditto when right argument is 1.
3738
3739 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3740
3741         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
3742         by warn_unused.
3743
3744 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
3745
3746         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
3747         from Freeze_Entity. Used to generate cross-reference information for
3748         types declared in generic packages.
3749
3750 2008-08-08  Thomas Quinot  <quinot@adacore.com>
3751
3752         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
3753         compatibility shim.
3754
3755 2008-08-08  Thomas Quinot  <quinot@adacore.com>
3756
3757         * gsocket.h:
3758         On Windows, include <errno.h> and redefine only selected errno values
3759         from their <winsock2.h> definitions.
3760
3761         * s-osinte-freebsd.ads: Minor reformatting
3762
3763         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
3764
3765         * g-soccon.ads: New file.
3766
3767         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
3768         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
3769         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
3770         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
3771         unit, to allow building software that depends on this internal unit
3772         with both older and newer compilers.
3773
3774 2008-08-08  Robert Dewar  <dewar@adacore.com>
3775
3776         * s-strxdr.adb: Minor reformatting
3777
3778 2008-08-08  Bob Duff  <duff@adacore.com>
3779
3780         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
3781         checking for integer operations (including division by zero)", which
3782         is wrong -- divide by zero is not part of overflow checking.
3783         Also added misc clarification about what check-suppression means.
3784
3785         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
3786
3787 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
3788
3789         * g-comlin.adb (Add_Switch): Handle addition of switches at the
3790         begining of the command line.
3791         (Append, Add): Renaming of Append to Add as this now allows addition
3792         at the begining of the list.
3793
3794         * g-comlin.ads (Add_Switch): Handle addition of switches at the
3795         begining of the command line.
3796
3797 2008-08-08  Thomas Quinot  <quinot@adacore.com>
3798
3799         * g-sercom.ads:
3800         (Name): Document application scope (only legacy PC serial ports on
3801         Linux and Windows).
3802
3803 2008-08-08  Thomas Quinot  <quinot@adacore.com>
3804
3805         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
3806         previous change, not needed after all.
3807
3808 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
3809
3810         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
3811         exclusion indicator is present
3812
3813 2008-08-08  Robert Dewar  <dewar@adacore.com>
3814
3815         * g-comlin.adb: Minor code reorganization
3816         Minor reformatting
3817
3818         * g-comlin.ads: Minor reformatting
3819
3820         * s-fileio.adb: Minor reformatting
3821
3822         * sem_attr.adb: Minor code reorganization (use Nkind_In)
3823         Minor reformatting
3824
3825 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
3826
3827         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
3828         with s-oscons-tmplt.i.
3829
3830 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
3831
3832         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
3833
3834 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
3835
3836         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
3837         of incomplete type.
3838
3839         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
3840         of a formal parameter of an incomplete type. Improve error message for
3841         other improper uses of incomplete types.
3842
3843 2008-08-06  Robert Dewar  <dewar@adacore.com>
3844
3845         * gnat_ugn.texi: Clarify -gnato documentation
3846
3847 2008-08-06  Thomas Quinot  <quinot@adacore.com>
3848
3849         * gcc-interface/Makefile.in,
3850         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
3851         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
3852         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
3853         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
3854         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
3855         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
3856         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
3857         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
3858         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
3859         Remove GNAT.Sockets.Constants. This internal package is replaced by
3860         System.OS_Constants.
3861
3862 2008-08-06  Thomas Quinot  <quinot@adacore.com>
3863
3864         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
3865         Remove obsolete targets referencing gen-soccon
3866         When generating s-oscons.ads, use a file name that includes the
3867         THREAD_KIND, to ensure that the (potentially different) version from a
3868         previous build with a different threads flavour does not get reused.
3869
3870 2008-08-06  Thomas Quinot  <quinot@adacore.com>
3871
3872         * sem_res.adb: Minor reformatting
3873
3874         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
3875         only when the operating system reports a non-existing file or directory
3876         (ENOENT), otherwise raise Name_Error.
3877
3878         * exp_ch11.adb: Minor reformatting
3879
3880 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
3881
3882         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
3883         incomplete, add the access_to_subprogram type to the list of private
3884         dependents only if the incomplete type will be completed in the current
3885         scope.
3886         (Build_Discriminant_Constraints): If the type of the discriminant is
3887         access_to_variable, reject a constraint that is access_to_constant.
3888
3889 2008-08-06  Thomas Quinot  <quinot@adacore.com>
3890
3891         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
3892         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
3893         g-sttsne-dummy.ads: New files.
3894
3895         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
3896         with pragma Unimplemented_Unit for sockets packages on Nucleus.
3897
3898 2008-08-06  Pascal Obry  <obry@adacore.com>
3899
3900         * adaint.c: Another fix for ACL support on Windows.
3901
3902 2008-08-06  Javier Miranda  <miranda@adacore.com>
3903
3904         * exp_disp (Expand_Interface_Actuals): Adds missing support for
3905         expansion of calls to subprograms using selected components.
3906
3907 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
3908
3909         * sem_res.adb (Resolve_Call): Use base type to determine whether a
3910         dereference is needed because a subtype of an access_to_subprogram is
3911         simply an access-subtype
3912
3913 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
3914
3915         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
3916         parameters, always specify the expected separator.
3917
3918 2008-08-06  Thomas Quinot  <quinot@adacore.com>
3919
3920         * xnmake.adb: Use new XUtil package for platform independent text
3921         output.
3922
3923 2008-08-06  Vincent Celier  <celier@adacore.com>
3924
3925         * gnat_ugn.texi: Document compiler switch -gnateG
3926
3927 2008-08-06  Quentin Ochem  <ochem@adacore.com>
3928
3929         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
3930         in the case of an empty pattern size.
3931         (Compute_Result): Do not do any computation in the case of an empty
3932         pattern size.
3933         (Report_Result): Fixed computation of the overflow guard.
3934
3935 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
3936
3937         * g-awk.adb (Finalize): Do not use directly objects of the type in the
3938         finalization routine to prevent elaboration order anomalies in new
3939         finalization scheme.
3940
3941 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
3942
3943         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
3944         declaration for the same type.
3945
3946 2008-08-06  Thomas Quinot  <quinot@adacore.com>
3947
3948         * sem.adb: Minor rewording (comment)
3949
3950 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
3951
3952         * g-comlin.adb (Define_Switch, Get_Switches): New.
3953         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
3954         ungrouping switches.
3955         (For_Each_Simple_Switch): Allow more control over parameters handling.
3956         This generic method now allows ungrouping of switches with parameters
3957         and switches with more than one letter after the prefix.
3958         (Set_Command_Line): Take care of switches that are prefixed with a
3959         switch handling parameters without delimiter (-gnatya and -gnaty3 for
3960         example).
3961         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
3962         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
3963         the operation.
3964         (Start, Alias_Switches, Group_Switches): Take care of parameters
3965         possibly present inside a group.
3966
3967         * g-comlin.ads (Define_Switch): New method used to define a list of
3968         expected switches, that are necessary for correctly ungrouping switches
3969         with more that one character after the prefix.
3970         (Get_Switches): Method that builds a getopt string from the list of
3971         switches as set previously by Define_Switch.
3972         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
3973         status of the operation. Also allow the removal of switches with
3974         parameters only.
3975         (Command_Line_Configuration_Record): Maintain a list of expected
3976         switches.
3977
3978 2008-08-06  Doug Rupp  <rupp@adacore.com>
3979
3980         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
3981         TARGET_MALLOC64 clear.
3982
3983         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
3984         if TARGET_MALLOC64 clear.
3985
3986         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
3987         (TARGET_MALLC64): New macro. Default to clear.
3988
3989 2008-08-06  Doug Rupp  <rupp@adacore.com>
3990
3991         * gcc-interface/utils2.c (snames.h) Include
3992         (TARGET_ABI_OPEN_VMS): Initialize.
3993         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
3994         for Convention C.
3995
3996 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
3997
3998         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
3999         null exclusion in a discriminant declaration
4000
4001         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
4002         indicators when type is not an access type.
4003
4004         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
4005         indicators when type is not an access type.
4006
4007 2008-08-06  Javier Miranda  <miranda@adacore.com>
4008
4009         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
4010         with the target interface before expanding the code of the interface
4011         conversion.
4012
4013 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4014
4015         * freeze.adb:
4016         (Freeze_Entity): A deferred constant does not violate the restriction
4017         No_Default_Initialization,
4018
4019         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
4020         can carry a null exclusion indicator, and on which an error may be
4021         posted if the indicator is redundant.
4022
4023         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
4024         does not apply to a subtype mark that already excludes null.
4025
4026         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
4027         exclusion does not apply to a subtype mark that already excludes null.
4028
4029 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4030
4031         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
4032
4033 2008-08-05  Doug Rupp  <rupp@adacore.com>
4034
4035         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
4036
4037 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4038
4039         * gsocket.h: Make this file includable in a Nucleus environment, which
4040         does not support sockets.
4041
4042         * socket.c: Remove Nucleus-specific hack.
4043
4044 2008-08-05  Pascal Obry  <obry@adacore.com>
4045
4046         * adaint.c: Remove support for readable attribute on vxworks and nucleus
4047
4048 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4049
4050         * sem_attr.adb:
4051         (Analyze_Attribute, case 'Result): handle properly the case where some
4052         operand of the expression in a post-condition generates a transient
4053         block.
4054
4055         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
4056         right-hand side when it is an anonymous access_to_subprogram, to force
4057         static accessibility check when needed.
4058
4059 2008-08-05  Sergey Rybin  <rybin@adacore.com>
4060
4061         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
4062         rule according to the change in the rule option.
4063         Add documentation for -gnatw.b/-gnatw.B
4064
4065 2008-08-05  Robert Dewar  <dewar@adacore.com>
4066
4067         * ug_words: Add entries for -gnatw.b/-gnatw.B
4068
4069         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
4070
4071 2008-08-05  Vincent Celier  <celier@adacore.com>
4072
4073         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
4074         (File).
4075
4076         * a-ztdeio.adb: Ditto.
4077
4078 2008-08-05  Pascal Obry  <obry@adacore.com>
4079
4080         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
4081         readable attribute.
4082
4083 2008-08-05  Vincent Celier  <celier@adacore.com>
4084
4085         * s-wchwts.adb:
4086         (Wide_String_To_String): Returns a String with the same 'First as its
4087         parameter S.
4088         (Wide_Wide_String_To_String): Ditto
4089
4090         * s-wchwts.ads:
4091         (Wide_String_To_String): Document that the lowest index of the returned
4092         String is equal to S'First.
4093
4094 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4095
4096         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
4097
4098         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
4099         s-oscons.ads
4100
4101 2008-08-05  Robert Dewar  <dewar@adacore.com>
4102
4103         * opt.ads (Warn_On_Biased_Representation): New flag
4104
4105         * sem_ch13.adb:
4106         (Analyze_Attribute_Definition_Clause): Issue warning when biased
4107         representation is required.
4108         (Minimum_Size): Don't allow biasing if enum rep clause case
4109
4110         * sem_warn.adb:
4111         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
4112         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
4113
4114         * usage.adb: Add lines for -gnatw.b/B switches
4115
4116 2008-08-05  Pascal Obry  <obry@adacore.com>
4117
4118         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
4119
4120         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
4121
4122 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4123
4124         * socket.c: Minor reformatting.
4125
4126 2008-08-05  Robert Dewar  <dewar@adacore.com>
4127
4128         * sem_ch3.adb: Minor reformatting
4129
4130         * prj-nmsc.adb: Minor reformatting
4131
4132 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4133
4134         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
4135         visibility check on the component type if the simple test fails.
4136
4137 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
4138
4139         * init.c (__gnat_install_handler for linux): If we are building the
4140         Xenomai run time then we need to do two additional things: avoid
4141         memory swapping and transform the Linux environment task into a native
4142         Xenomai task.
4143
4144         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
4145         time): Use interface to Xenomai native skin and avoid linux-specific
4146         way of setting CPU affinity.
4147         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
4148
4149 2008-08-05  Bob Duff  <duff@adacore.com>
4150
4151         * checks.ads: Minor comment fix
4152
4153 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4154
4155         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
4156         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
4157         CS8.
4158
4159 2008-08-05  Robert Dewar  <dewar@adacore.com>
4160
4161         * mlib.adb: Minor code reorganization
4162         Minor reformatting
4163
4164         * make.adb: Minor reformatting
4165
4166         * prj-attr.ads: Minor reformatting
4167
4168         * s-os_lib.adb: Minor reformatting
4169
4170         * s-fileio.adb: Minor code reorganization
4171         Minor reformatting
4172
4173         * prj.ads: Minor reformatting
4174
4175 2008-08-05  Bob Duff  <duff@adacore.com>
4176
4177         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
4178         unresolved initial value of "null", because it causes implicitly
4179         generated "=" operators to be ambiguous, and because this type should
4180         not be passed to gigi.
4181
4182 2008-08-05  Vincent Celier  <celier@adacore.com>
4183
4184         * mlib.adb: Update comments.
4185
4186         * make.adb (Switches_Of): Check for Switches (others), before checking
4187         for Default_Switches ("Ada").
4188         (Gnatmake): Use Builder'Switches (others) in preference to
4189         Builder'Default_Switches ("Ada") if there are several mains.
4190
4191         * prj-attr-pm.adb:
4192         (Add_Attribute): Add component Others_Allowed in Attribute_Record
4193         aggregate.
4194
4195         * prj-attr.adb:
4196         Add markers to indicates that attributes Switches allow others as index
4197         (Others_Allowed_For): New Boolean function, returning True for
4198         attributes with the mark.
4199         (Initialize): Recognize optional letter 'O' as the marker for
4200         associative array attributes where others is allowed as the index.
4201
4202         * prj-attr.ads:
4203         (Others_Allowed_For): New Boolean function
4204         (Attribute_Record): New Boolean component Others_Allowed
4205
4206         * prj-dect.adb:
4207         (Parse_Attribute_Declaration): For associative array attribute where
4208         others is allowed as the index, allow others as an index.
4209
4210         * prj-nmsc.adb:
4211         (Process_Binder): Skip associative array attributes with index others
4212         (Process_Compiler): Ditto
4213
4214         * prj-util.adb:
4215         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
4216         index is All_Other_Names.
4217
4218         * prj.ads:
4219         (All_Other_Names): New constant
4220
4221         * prj-proc.adb:
4222         (Process_Declarative_Items): Skip associative array attribute when index
4223         is reserved word "others".
4224
4225 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
4226
4227         * gen-oscons.c: Adapt for VMS where termios.h is not available.
4228
4229 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4230
4231         * a-rttiev.adb: Minor reformatting (comments)
4232
4233         * gen-soccon.c: Rename to gen-oscons.c
4234
4235         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
4236         GNAT.Sockets.Constants.
4237         Add new constants for GNAT.Serial_Communications and System.File_IO.
4238
4239 2008-08-05  Javier Miranda  <miranda@adacore.com>
4240
4241         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
4242         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
4243         implementation of this routine has been simplified.
4244
4245 2008-08-05  Pascal Obry  <obry@adacore.com>
4246
4247         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
4248         Set_Read_Only Win32 implementation.
4249
4250 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4251
4252         * exp_strm.adb: Minor reformatting (comments)
4253
4254         * sem_ch12.adb: Minor reformatting.
4255
4256 2008-08-05  Robert Dewar  <dewar@adacore.com>
4257
4258         * sem_ch3.adb: Minor reformatting
4259
4260         * checks.adb: Minor reformatting
4261
4262 2008-08-05  Thomas Quinot  <quinot@adacore.com>
4263
4264         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
4265         restriction on Prefix.
4266
4267 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
4268
4269         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
4270         methods needed to handle switch sections when building a command line.
4271         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
4272         Current_Section): New public methods or methods modified to handle
4273         building command lines with sections.
4274         (Set_Command_Line): Take into account sections when analysing a switch
4275         string.
4276         (Start): Sort the switches by sections before iterating the command line
4277         elements.
4278
4279         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
4280         Is_New_Section, Current_Section): New methods or methods modified to
4281         handle building command lines with sections.
4282
4283 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4284
4285         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
4286         discriminants, indicate that the corresponding object declaration has
4287         no initialization, to prevent spurious warnings when the access type is
4288         null-excluding.
4289
4290 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
4291
4292         * sem_res.adb (Resolve_Call): If this is a call to the predefined
4293         Abort_Task, warn if the call appears within a protected operation.
4294
4295 2008-08-04  Robert Dewar  <dewar@adacore.com>
4296
4297         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
4298
4299 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4300
4301         * sem_ch3.adb:
4302         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
4303         anonymous access to protected subprogram that is the return type of the
4304         specification of a subprogram body.
4305
4306         * sem_ch6.adb:
4307         (Analyze_Subprogram_Body): if the return type is an anonymous access to
4308         subprogram, freeze it now to prevent access anomalies in the back-end.
4309
4310         * exp_ch9.adb: Minor code cleanup.
4311         Make sure that new declarations are inserted into the tree before
4312         analysis (from code reading).
4313
4314 2008-08-04  Robert Dewar  <dewar@adacore.com>
4315
4316         * exp_ch5.adb:
4317         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
4318         at point of return.
4319
4320 2008-08-04  Thomas Quinot  <quinot@adacore.com>
4321
4322         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
4323
4324 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
4325
4326         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
4327
4328 2008-08-04  Javier Miranda  <miranda@adacore.com>
4329
4330         * sem_prag.adb (Process_Convention): Add missing support for
4331          N_Private_Extension_Declaration nodes.
4332
4333 2008-08-04  Robert Dewar  <dewar@adacore.com>
4334
4335         * exp_ch4.adb: Minor reformatting
4336
4337 2008-08-04  Pascal Obry  <obry@adacore.com>
4338
4339         * adaint.h: Add missing prototype.
4340
4341         * adaint.c: Refine support for Windows file attributes.
4342
4343 2008-08-04  Robert Dewar  <dewar@adacore.com>
4344
4345         * sem_res.adb:
4346         (Valid_Conversion): Catch case of designated types having different
4347         sizes, even though they statically match.
4348
4349 2008-08-04  Javier Miranda  <miranda@adacore.com>
4350
4351         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
4352         added in previous patch to handle access to subprograms.
4353
4354 2008-08-04  Robert Dewar  <dewar@adacore.com>
4355
4356         * freeze.adb:
4357         (Freeze_Entity): Only check No_Default_Initialization restriction for
4358         constructs that come from source
4359
4360 2008-08-04  Thomas Quinot  <quinot@adacore.com>
4361
4362         * exp_ch6.adb: Minor comment fix.
4363
4364         * sem_ch4.adb: Minor reformatting.
4365
4366 2008-08-04  Robert Dewar  <dewar@adacore.com>
4367
4368         * sem_res.adb: (Large_Storage_Type): Improve previous change.
4369
4370 2008-08-04  Pascal Obry  <obry@adacore.com>
4371
4372         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
4373         file attributes.
4374
4375 2008-08-04  Javier Miranda  <miranda@adacore.com>
4376
4377         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
4378         for N_Formal_Object_Declaration nodes. Adding kludge required by
4379         First_Formal to provide its functionality with access to functions.
4380         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
4381         for anonymous access types returned by functions.
4382
4383         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
4384         conversion of null-excluding access types (required only once to force
4385         the generation of the required runtime check).
4386
4387         * sem_type.adb (Covers): minor reformating
4388
4389         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
4390         with internally generated nodes. Avoid generating the error inside init
4391         procs.
4392
4393         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
4394         (Resolve_Null): Generate the null-excluding check in case of assignment
4395         to a null-excluding object.
4396         (Valid_Conversion): Add missing support for anonymous access to
4397         subprograms.
4398
4399         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
4400         anonymous access types whose designated type is an itype. This case
4401         occurs with anonymous access to protected subprograms types.
4402         (Analyze_Return_Type):  Add missing support for anonymous access to
4403         protected subprogram.
4404
4405         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
4406         subprograms addition of missing check on matching convention. Required
4407         to properly handle access to protected subprogram types.
4408
4409         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
4410         null excluding access types.
4411
4412 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4413
4414         * sem_ch12.adb: Add comments
4415
4416         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
4417         access type and the allocator is not initialized, warn rather than
4418         reporting an error.
4419
4420 2008-08-04  Robert Dewar  <dewar@adacore.com>
4421
4422         * exp_ch4.adb: Minor reformatting
4423
4424         * exp_dist.adb: Minor reformatting
4425
4426         * g-comlin.adb: Minor reformatting
4427
4428 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
4429
4430         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
4431         target to the type of the aggregate in the case where the target object
4432         is class-wide.
4433
4434         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
4435         result type is class-wide and inherently limited, and the expression
4436         has a specific type, create a return object of the specific type, for
4437         more efficient handling of returns of build-in-place aggregates (avoids
4438         conversions of the class-wide return object to the specific type on
4439         component assignments).
4440
4441         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
4442         about a type mismatch for a class-wide function with a return object
4443         having a specific type when the object declaration doesn't come from
4444         source. Such an object can result from the expansion of a simple return.
4445
4446 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
4447
4448         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
4449
4450         * gcc-interface/Makefile.in: Use 64bit-specific system files when
4451         compiling for 64bit windows.
4452
4453 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
4454
4455         * g-comlin.adb (Group_Switches): Preserve the switch order when
4456         grouping and allow switch grouping of switches with more than one
4457         character extension (e.g. gnatw.x).
4458         (Args_From_Expanded): Remove this now obsolete method.
4459
4460 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4461
4462         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
4463         chain at once, to ensure that type is properly decorated for back-end,
4464         when allocator appears within a loop.
4465
4466 2008-08-04  Kevin Pouget  <pouget@adacore.com>
4467
4468         * snames.h, snames.adb, snames.ads:
4469         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
4470
4471         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
4472         Build_To_Any_Call and Build_TypeCode_Call procedures.
4473
4474         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
4475
4476         * rtsfind.ads: Add corresponding names.
4477
4478         * tbuild.adb: Update prefix restrictions to allow '_' character.
4479
4480 2008-08-04  Doug Rupp  <rupp@adacore.com>
4481
4482         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
4483         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
4484         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
4485         use it.  Calculate pointer range overflow using 64bit types.
4486
4487 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4488
4489         * sem_ch3.adb (Access_Definition): A formal object declaration is a
4490         legal context for an anonymous access to subprogram.
4491
4492         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
4493         indirect call, report success to the caller to include possible
4494         interpretation.
4495
4496         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
4497         check when the type
4498         of the extended return is an anonymous access_to_subprogram type.
4499
4500         * sem_res.adb:
4501         (Resolve_Call): Insert a dereference if the type of the subprogram is an
4502         access_to_subprogram and the context requires its return type, and a
4503         dereference has not been introduced previously.
4504
4505 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
4506
4507         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
4508         gnatcheck support in GPS.
4509
4510 2008-08-04  Vincent Celier  <celier@adacore.com>
4511
4512         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
4513         requested
4514
4515 2008-08-04  Vincent Celier  <celier@adacore.com>
4516
4517         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
4518         variable, but don't check the resulting value as it has no impact on
4519         the processing.
4520
4521         * opt.ads:
4522         (Generate_Processed_File): New Boolean flag, set to True in the compiler
4523         when switch -gnateG is used.
4524
4525         * prep.adb:
4526         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
4527         when the source is modified by the preprocessor and there is no
4528         preprocessing errors.
4529
4530         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
4531
4532         * sinput-l.adb:
4533         (Load_File): Output the result of preprocessing if the source text was
4534         modified.
4535
4536         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
4537
4538         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
4539
4540         * ug_words: Add VMS equivalent for -gnateG
4541
4542         * vms_data.ads:
4543         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
4544
4545 2008-08-04  Doug Rupp  <rupp@adacore.com>
4546
4547         * gcc-interface/utils2.c:
4548         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
4549         in 32bit descriptor.
4550
4551 2008-08-04  Robert Dewar  <dewar@adacore.com>
4552
4553         * par-ch10.adb: Minor reformatting
4554
4555         * i-cobol.adb: Minor reformatting.
4556
4557 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4558
4559         * sem_ch3.adb (Access_Definition): Create an itype reference for an
4560         anonymous access return type of a regular function that is not a
4561         compilation unit.
4562
4563 2008-08-04  Vincent Celier  <celier@adacore.com>
4564
4565         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
4566
4567         * snames.adb: New standard name Global_Compilation_Switches
4568
4569         * snames.ads: New standard name Global_Compilation_Switches
4570
4571         * make.adb: Correct spelling error in comment
4572
4573 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
4574
4575         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
4576         target.
4577
4578 2008-08-04  Thomas Quinot  <quinot@adacore.com>
4579
4580         * sem_ch10.adb: Minor comment fix.
4581
4582 2008-08-04  Robert Dewar  <dewar@adacore.com>
4583
4584         * restrict.adb: Improved messages for restriction warnings
4585
4586         * restrict.ads: Improved messages for restriction messages
4587
4588         * s-rident.ads (Profile_Name): Add No_Profile
4589
4590 2008-08-04  Robert Dewar  <dewar@adacore.com>
4591
4592         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
4593
4594 2008-08-04  Robert Dewar  <dewar@adacore.com>
4595
4596         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
4597
4598 2008-08-04  Vincent Celier  <celier@adacore.com>
4599
4600         * prj-proc.adb:
4601         (Copy_Package_Declarations): When inheriting package Naming from a
4602         project being extended, do not inherit source exception names.
4603
4604 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
4605
4606         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
4607         list of declaration to find previous subprogram, do not go to the
4608         original node of a generic unit.
4609
4610 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
4611
4612         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
4613         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
4614
4615 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4616
4617         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
4618         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
4619         and adjust for above renaming.
4620         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
4621         gnu_expr_alt_type parameter.  Convert the expression to it instead
4622         of changing its type in place.
4623         (build_function_stub): Adjust call to above function.
4624
4625 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4626
4627         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
4628         code.  Do not get full definition of deferred constants with address
4629         clause for a use.  Do not ignore deferred constant definitions with
4630         address clause.  Ignore constant definitions already marked with the
4631         error node.
4632         <object>: Remove obsolete comment.  For a deferred constant with
4633         address clause, get the initializer from the full view.
4634         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
4635         Rework and remove obsolete comment.
4636         <N_Object_Declaration>: For a deferred constant with address clause,
4637         mark the full view with the error node.
4638         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
4639         formatting nits.
4640
4641 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4642
4643         * rtsfind.ads: Add block IO versions of stream routines for Strings.
4644
4645         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
4646         sem_prag.adb, snames.adb, snames.ads, snames.h,
4647         par-prag.adb: Undo previous stream related changes.
4648
4649         * s-rident.ads: Add new restriction No_Stream_Optimizations.
4650
4651         * s-ststop.ads, s-ststop.adb: Comment reformatting.
4652         Define enumeration type to designate different IO mechanisms.
4653         Enchance generic package Stream_Ops_Internal to include an
4654         implementation of Input and Output.
4655
4656         * exp_attr.adb (Find_Stream_Subprogram): If restriction
4657         No_Stream_Optimization is active, choose the default byte IO
4658         implementations of stream attributes for Strings.
4659         Otherwise use the corresponding block IO version.
4660
4661 2008-08-01  Olivier Hainque  <hainque@adacore.com>
4662
4663         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
4664         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
4665
4666 2008-08-01  Robert Dewar  <dewar@adacore.com>
4667
4668         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
4669         convert plain identifier into defining identifier.
4670
4671 2008-08-01  Robert Dewar  <dewar@adacore.com>
4672
4673         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
4674         warnings
4675
4676         * lib-xref.adb: Add error defense.
4677
4678 2008-08-01  Bob Duff  <duff@adacore.com>
4679
4680         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
4681
4682 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
4683
4684         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
4685         correct accessibility levels. In the "when others" case, retrieve the
4686         access level of the Etype of Prev rather than Prev_Orig, because the
4687         original exression has not always been analyzed.
4688
4689 2008-08-01  Robert Dewar  <dewar@adacore.com>
4690
4691         * prj-nmsc.adb: Minor reformatting
4692
4693         * sem_ch4.adb: Minor reformatting
4694         Minor code reorganization
4695
4696         * prj.ads: Minor reformatting
4697
4698         * s-os_lib.adb: Minor reformatting
4699
4700         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
4701         half encodings
4702
4703         * scans.ads: Minor reformatting.
4704
4705         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
4706         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
4707
4708         * sem_res.adb:
4709         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
4710
4711         * sem_ch12.adb: Minor comment reformatting
4712
4713         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
4714         keyword
4715
4716 2008-08-01  Robert Dewar  <dewar@adacore.com>
4717
4718         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
4719         generating code
4720
4721 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
4722
4723         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
4724         converted is a real literal and the target type has static bounds,
4725         perform the conversion exactly to prevent floating-point anomalies on
4726         some targets.
4727
4728 2008-08-01  Vincent Celier  <celier@adacore.com>
4729
4730         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
4731
4732         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
4733
4734         * prj.adb (Object_Exist_For): Use Object_Generated, not
4735         Objects_Generated that is removed and was never modified anyway.
4736
4737         * prj.ads:
4738         (Path_Syntax_Kind): New enumeration type
4739         (Language_Config): New component Path_Syntax, defaulted to Host.
4740         Components PIC_Option and Objects_Generated removed, as they are not
4741         used.
4742
4743         * snames.adb: New standard name Path_Syntax
4744
4745         * snames.ads: New standard name Path_Syntax
4746
4747 2008-08-01  Vincent Celier  <celier@adacore.com>
4748
4749         * mlib-utl.adb:
4750         (Adalib_Path): New variable to store the path of the adalib directory
4751         when procedure Specify_Adalib_Dir is called.
4752         (Lib_Directory): If Adalib_Path is not null, return its value
4753         (Specify_Adalib_Dir): New procedure
4754
4755         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
4756
4757 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
4758
4759         * sem_prag.adb:
4760         (Check_Precondition_Postcondition): If not generating code, analyze the
4761         expression in a postcondition that appears in a subprogram body, so that
4762         it is properly decorated for ASIS use.
4763
4764 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
4765
4766         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
4767         Orig_Prev to Prev in the case where the actual is N_Function_Call or
4768         N_Identifier. This was interfering with other cases that are rewritten
4769         as N_Identifier, such as allocators, resulting in passing of the wrong
4770         accessibility level, and based on testing this code is apparently no
4771         longer needed at all.
4772
4773 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
4774
4775         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
4776         procedure call whose prefix
4777         is a parameterless function call that returns an access_to_procedure.
4778
4779 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
4780
4781         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
4782         for RTX. Adding a suffix that is incremented at each iteration.
4783
4784 2008-08-01  Robert Dewar  <dewar@adacore.com>
4785
4786         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
4787         Raise_Exception
4788
4789 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
4790
4791         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
4792         paths, which are authorized by Windows but can lead to errors when used
4793         elsewhere.
4794
4795 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
4796
4797         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
4798         a pending instantiation for the body of a subprogram that is to be
4799         inlined.
4800
4801         * sem_ch12.adb:
4802         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
4803
4804         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
4805         create a pending instance for its body, so that calls to the subprogram
4806         can be inlined by the back-end.
4807
4808 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
4809
4810         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
4811         rts-rtx-w32).
4812
4813 2008-08-01  Robert Dewar  <dewar@adacore.com>
4814
4815         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
4816
4817 2008-08-01  Doug Rupp  <rupp@adacore.com>
4818
4819         * gnat_rm.texi: Document new mechanism Short_Descriptor.
4820
4821         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
4822         mechanism values.
4823
4824         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
4825         mechanism and Short_Descriptor mechanism values.
4826
4827         * snames.adb (preset_names): Add short_descriptor entry.
4828
4829         * snames.ads: Add Name_Short_Descriptor.
4830
4831         * types.h: Add new By_Short_Descriptor mechanism values.
4832
4833         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
4834         mechanism and Short_Descriptor mechanism values.
4835
4836         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
4837         values.
4838         (Descriptor_Codes): Modify range for new mechanism values.
4839
4840         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
4841         mechanism values.
4842
4843         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
4844         (gnat_to_gnu_param): Handle By_Short_Descriptor.
4845
4846         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
4847         (build_vms_descriptor32): New prototype.
4848         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
4849
4850         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
4851         argument in call fill_vms_descriptor.
4852
4853         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
4854         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
4855         (build_vms_descriptor): Renamed from build_vms_descriptor64.
4856         (convert_vms_descriptor32): New function.
4857         (convert_vms_descriptor64): New function.
4858         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
4859         descriptors.
4860
4861         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
4862         no longer needed.
4863
4864 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
4865
4866         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
4867         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
4868         name.
4869
4870 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
4871
4872         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
4873         current directory so only fully qualified names are allowed.
4874
4875 2008-08-01  Robert Dewar  <dewar@adacore.com>
4876
4877         * gnat_ugn.texi:
4878         Minor editing, remove uncomfortable use of semicolon
4879
4880         * s-ststop.adb: Add some ??? comments
4881
4882         * sem_ch10.adb: Minor reformatting
4883
4884         * snames.ads:
4885         Minor comment fixes, some pragmas were not properly
4886         categorized in the comments, documentation change only
4887
4888         * xref_lib.adb: Minor reformatting
4889
4890         * sinput.adb: Minor reformatting
4891
4892         * gnatchop.adb: Minor reformatting
4893
4894         * sem_util.ads: Minor reformatting.
4895
4896         * opt.ads: Minor documentation fix
4897
4898         * scng.adb: Minor reformatting
4899
4900         * prj-part.adb: Update comments
4901
4902 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
4903
4904         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
4905         tagged synchronized type, use corresponding record type.
4906
4907 2008-08-01  Doug Rupp  <rupp@adacore.com>
4908
4909         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
4910         dummy transfer address for debugging.
4911
4912         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
4913
4914         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
4915
4916 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4917
4918         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
4919         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
4920
4921 2008-07-31  Pascal Obry  <obry@adacore.com>
4922
4923         * prj-nmsc.adb: Keep Object and Exec directory casing.
4924
4925 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
4926
4927         * system-rtx-rtss.ads
4928         Change the default stack size. It is important to set the commit part.
4929
4930         * s-taprop-rtx.adb
4931         (Initialize): Get the clock resolution.
4932         (RT_Resolution): Return the clock resolution that is indicated by the
4933         system.
4934
4935         * s-parame-vxworks.adb
4936         Document that this body is used for RTX in RTSS (kernel) mode.
4937
4938         * gcc-interface/Makefile.in
4939         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
4940         s-parame-vxworks.adb body in order to have reasonable stack sizes in
4941         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
4942         cannot ask for too big values.
4943
4944 2008-07-31  Robert Dewar  <dewar@adacore.com>
4945
4946         * exp_aggr.adb: Minor reformatting
4947
4948         * makeutl.adb: Minor reformatting
4949
4950         * prj-env.adb: Minor reformatting
4951
4952 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4953
4954         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
4955         tagged type is completed by a concurrent type.
4956
4957 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
4958
4959         * sem_aggr.adb:
4960         (Resolve_Record_Aggregate): Bypass error that a type without
4961         components must have a "null record" aggregate when compiling for Ada
4962         2005, since it's legal to give an aggregate of form (others => <>)
4963         for such a type.
4964
4965 2008-07-31  Javier Miranda  <miranda@adacore.com>
4966
4967         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
4968         handle synchronized types. Required to handle well the object.operation
4969         notation applied to synchronized types.
4970
4971 2008-07-31  Quentin Ochem  <ochem@adacore.com>
4972
4973         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
4974         anymore - just used internally.
4975         Added handling of very small tasks - when the theoretical size is
4976         already full at the point of the call.
4977         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
4978         not need to be added to the result.
4979
4980 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4981
4982         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
4983         corresponding spec is a primitive wrapper. Update comment.
4984
4985 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4986
4987         * bindgen.adb Comment reformatting. Update the list of run-time globals.
4988         (Gen_Adainit_Ada): Add the declaration, import and value set for
4989         configuration flag Canonical_Streams.
4990         (Gen_Adainit_C): Add the declaration and initial value of external
4991         symbol __gl_canonical_streams.
4992
4993         * init.c: Update the list of global values computed by the binder.
4994
4995         * opt.ads: Add flag Canonical_Streams.
4996
4997         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
4998         semantically handled pragmas.
4999
5000         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
5001         (Analyze_Pragma): Add case for pragma Canonical_Streams.
5002
5003         * snames.adb: Add character value for name Canonical_Streams.
5004
5005         * snames.ads:
5006         Add Name_Canonical_Streams to the list of configuration pragmas.
5007         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
5008
5009         * snames.h: Add a definition for Pragma_Canonical_Streams.
5010
5011         * s-ststop.adb:
5012         Add a flag and import to seize the value of external symbol
5013         __gl_canonical_streams. Update comment and initial value of constant
5014         Use_Block_IO.
5015
5016         * gnat_rm.texi: Add section of pragma Canonical_Streams.
5017
5018         * gnat_ugn.texi:
5019         Add pragma Canonical_Streams to the list of configuration pragmas.
5020
5021 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5022
5023         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
5024         has the form A.B.C and B is a unit renaming, analyze its compilation
5025         unit and add a with_clause on A.b to the context.
5026
5027 2008-07-31  Vincent Celier  <celier@adacore.com>
5028
5029         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
5030         return the empty string, instead of raising Constraint_Error.
5031
5032 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
5033
5034         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
5035
5036         * checks.adb (Apply_Accessibility_Check): Insert the check on
5037         Insert_Node.
5038
5039         * exp_attr.adb:
5040         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
5041         to new parameter Insert_Node on call to Apply_Accessibility_Check.
5042         Necessary to distinguish the insertion node because the dereferenced
5043         formal may come from a rename, but the check must be inserted in
5044         front of the attribute.
5045
5046         * exp_ch4.adb:
5047         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
5048         call to Apply_Accessibility_Check.
5049         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
5050         on call to Apply_Accessibility_Check.
5051         Minor reformatting
5052
5053 2008-07-31  Javier Miranda  <miranda@adacore.com>
5054
5055         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
5056         types when the candidate type is a synchronized type.
5057
5058         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
5059         types, and complete management of synchronized types adding missing
5060         code to handle formal that is a synchronized type.
5061
5062         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
5063         are not available and cause the compiler to blowup. Found compiling
5064         test with switch -gnatc
5065
5066         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
5067         Has_Correct_Formal_Mode plus code cleanup.
5068
5069 2008-07-31  Bob Duff  <duff@adacore.com>
5070
5071         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
5072         recognized as two end-of-lines, but it should be just one.
5073
5074 2008-07-31  Thomas Quinot  <quinot@adacore.com>
5075
5076         * exp_ch9.adb: Minor reformatting
5077
5078         * tbuild.ads: Fix several occurrences of incorrectly referring to
5079         Name_Find as Find_Name.
5080
5081 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5082
5083         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
5084         and the context is an object declaration with non-static bounds, treat
5085         the aggregate as non-static.
5086
5087 2008-07-31  Vincent Celier  <celier@adacore.com>
5088
5089         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
5090         Move back spec of Parse_Single_Project to body, as it is not called
5091         outside of package Prj.Part.
5092         (Project_Data): Remove components Linker_Name, Linker_Path and
5093         Minimum_Linker_Options as they are no longer set.
5094         Remove function There_Are_Ada_Sources from package Prj and move code
5095         in the only place it was used, in Prj.Env.Set_Ada_Paths.
5096
5097 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
5098
5099         * mlib-utl.ads: Fix typo.
5100
5101 2008-07-31  Robert Dewar  <dewar@adacore.com>
5102
5103         * sem_ch12.adb: Minor reformatting
5104
5105 2008-07-31  Sergey Rybin  <rybin@adacore.com>
5106
5107         * gnat_ugn.texi: Change the description of the
5108         Overly_Nested_Control_Structures: now the rule always requires a
5109         positive parameter for '+R' option
5110
5111 2008-07-31  Thomas Quinot  <quinot@adacore.com>
5112
5113         * g-pehage.adb: Minor reformatting
5114
5115 2008-07-31  Pascal Obry  <obry@adacore.com>
5116
5117         * s-finimp.ads: Minor reformatting.
5118
5119 2008-07-31  Vincent Celier  <celier@adacore.com>
5120
5121         * s-regexp.ads: Minor comment fix
5122
5123 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
5124
5125         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
5126         so that we can compile this file successfully with -gnatc.
5127
5128 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5129
5130         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
5131         of the type when looking for stream subprograms for type String,
5132         Wide_String and Wide_Wide_String.
5133
5134         * s-ststop.adb: Change the initialization expression of constant
5135         Use_Block_IO.
5136
5137 2008-07-31  Geert Bosch  <bosch@adacore.com>
5138
5139         * arit64.c:
5140         New file implementing __gnat_mulv64 signed integer multiplication with
5141         overflow checking
5142
5143         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
5144
5145         * gcc-interface/gigi.h:
5146         (standard_types): Add ADT_mulv64_decl
5147         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
5148
5149         * gcc-interface/utils.c:
5150         (init_gigi_decls): Add initialization of mulv64_decl
5151
5152         * gcc-interface/trans.c:
5153         (build_unary_op_trapv): New function
5154         (build_binary_op_trapv): New function
5155         (gnat_to_gnu): Use the above functions instead of
5156         build_{unary,binary}_op
5157
5158         * gcc-interface/Makefile.in
5159         (LIBGNAT_SRCS): Add arit64.c
5160         (LIBGNAT_OBJS): Add arit64.o
5161
5162 2008-07-31  Vincent Celier  <celier@adacore.com>
5163
5164         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
5165         Linker'Default_Switches are declared. Warn if they are declared.
5166
5167 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5168
5169         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
5170         Insert_Actions to place the pointer declaration in the code, rather
5171         than Insert_Before_And_Analyze, so that insertions of temporaries are
5172         kept in the proper order when transient scopes are present.
5173
5174
5175 2008-07-31  Robert Dewar  <dewar@adacore.com>
5176
5177         * einfo.adb (Spec_PPC): Now defined for generic subprograms
5178
5179         * einfo.ads (Spec_PPC): Now defined for generic subprograms
5180
5181         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
5182         subprogram case
5183
5184 2008-07-31  Vincent Celier  <celier@adacore.com>
5185
5186         * s-os_lib.adb: Minor comment fix
5187
5188 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5189
5190         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
5191         transfer pre/postconditions from generic copy to original tree, so that
5192         they will appear in each instance.
5193         (Process_PPCs): Do not transform postconditions into a procedure in a
5194         generic context, to prevent double expansion of check pragmas.
5195
5196         * sem_attr.adb: In an instance, the prefix of the 'result attribute
5197         can be the renaming of the
5198         current instance, so check validity of the name accordingly.
5199
5200 2008-07-31  Robert Dewar  <dewar@adacore.com>
5201
5202         * mlib-utl.ads: Minor reformatting
5203
5204 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
5205
5206         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
5207         from context. This attribute must be usable in Ada95 mode.
5208         The attribute can appear in the body of a function marked
5209         Inline_Always, but in this case the postocondition is not enforced.
5210
5211         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
5212         of an inlined call pre- and postconditions are legal
5213
5214 2008-07-31  Vincent Celier  <celier@adacore.com>
5215
5216         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
5217         were for gprmake only
5218
5219 2008-07-31  Robert Dewar  <dewar@adacore.com>
5220
5221         * gnat_ugn.texi: Update -gnatN documentation.
5222
5223         * gnat_rm.texi: Add note about pre/postcondition
5224         pragmas not checked in conjunction with front-end inlining.
5225
5226 2008-07-31  Robert Dewar  <dewar@adacore.com>
5227
5228         * g-pehage.adb, g-pehage.ads: Minor reformatting
5229
5230 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
5231
5232         * mlib-utl.ads, prj-makr.ads: Add comments.
5233
5234 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5235
5236         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
5237         [WINDOWS]: Add s-winext.o.
5238
5239 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5240
5241         PR ada/36554
5242         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
5243         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
5244         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
5245         Set precision to 1 for subtype of BOOLEAN_TYPE.
5246         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
5247         (make_type_from_size): Deal with BOOLEAN_TYPE.
5248         * gcc-interface/misc.c (gnat_print_type): Likewise.
5249         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
5250         Set boolean_type_node as its translation in the table, as well
5251         as boolean_false_node for False and boolean_true_node for True.
5252         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
5253         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
5254         (create_param_decl): Deal with BOOLEAN_TYPE.
5255         (build_vms_descriptor): Likewise.
5256         (build_vms_descriptor64): Likewise.
5257         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
5258
5259 2008-07-30  Robert Dewar  <dewar@adacore.com>
5260
5261         * exp_ch9.adb: Minor reformatting
5262
5263         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
5264         if no primitive operation is found.
5265
5266         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
5267
5268         * sem_ch8.adb: Minor reformatting
5269
5270 2008-07-30  Laurent Pautet  <pautet@adacore.com>
5271
5272         * g-pehage.adb:
5273         Remove a limitation on the length of the words handled by the minimal
5274         perfect hash function generator.
5275
5276         * g-pehage.ads:
5277         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
5278         Fix some typos.
5279
5280 2008-07-30  Robert Dewar  <dewar@adacore.com>
5281
5282         * gnatlink.adb: Minor reformatting
5283
5284 2008-07-30  Thomas Quinot  <quinot@adacore.com>
5285
5286         * rtsfind.adb (Check_RPC): Check version consistency even when not
5287         generating RCI stubs. Provide more detailed error message in case of
5288         mismatch.
5289
5290 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
5291
5292         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
5293         as a actual in an instance, check for a missing attribute to prevent
5294         program_error on an illegal program.
5295
5296         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
5297         error if primitive is not found, so that exception can be handled
5298         elsewhere on illegal programs.
5299
5300 2008-07-30  Robert Dewar  <dewar@adacore.com>
5301
5302         * uintp.adb (UI_GCD): Fix potential overflow
5303
5304 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5305
5306         * einfo.adb: Flag245 is now used.
5307         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
5308         check to include functions.
5309         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5310         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
5311         include functions.
5312         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
5313         to the list of displayed flags.
5314
5315         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
5316         Wrapped_Entity. These two flags are now present in functions.
5317         New flag Is_Private_Primitive.
5318         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5319
5320         * exp_ch9.adb:
5321         (Build_Wrapper_Bodies): New subprogram.
5322         (Build_Wrapper_Body): The spec and body have been moved to in
5323         Build_Wrapper_ Bodies. Code cleanup.
5324         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
5325         Wrappers are now generated for primitives declared between the private
5326         and full view of a concurrent type that implements an interface.
5327         (Build_Wrapper_Specs): New subprogram.
5328         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
5329         creation mechanism with a call to Build_Wrapper_Bodies.
5330         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
5331         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
5332         (Expand_N_Task_Body): Replace the wrapper body creation
5333         mechanism with a call to Build_Wrapper_Bodies.
5334         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
5335         creation mechanism with a call to Build_Wrapper_Specs.
5336         (Is_Private_Primitive_Subprogram): New subprogram.
5337         (Overriding_Possible): Code cleanup.
5338         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
5339
5340         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
5341
5342         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
5343         (Process_Full_View): Build wrapper specs for all primitives
5344         that belong to a private view completed by a concurrent type
5345         implementing an interface.
5346
5347         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
5348         is a primitive of a
5349         concurrent type with a private view that implements an interface, try to
5350         find the proper spec.
5351         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
5352         primitive if the type of its first parameter is a non-generic tagged
5353         private type.
5354         (Analyze_Subprogram_Specification): Code reformatting.
5355         (Disambiguate_Spec): New routine.
5356         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
5357         (Is_Private_Concurrent_Primitive): New routine.
5358
5359         * sem_ch6.ads:
5360         (Find_Corresponding_Spec): Add a formal to control the output of errors.
5361
5362 2008-07-30  Doug Rupp  <rupp@adacore.com>
5363
5364         * gigi.h (build_vms_descriptor64): New function prototype.
5365         (fill_vms_descriptor): Modified function prototype.
5366
5367         * utils.c (build_vms_descriptor64): New function.
5368
5369         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
5370
5371         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
5372         argument.
5373
5374         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
5375         64bit and 32bit descriptor and save the 64bit version as an alternate
5376         TREE_TYPE in the parameter.
5377         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
5378         thin pointer.
5379
5380         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
5381
5382 2008-07-30  Robert Dewar  <dewar@adacore.com>
5383
5384         * make.adb: Minor reformatting
5385
5386         * mlib-utl.adb: Minor reformatting
5387
5388         * osint.ads: Minor reformatting
5389
5390 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
5391
5392         * adaint.c
5393         (__gnat_file_exists): Do not use __gnat_stat for RTX.
5394         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
5395         avoid the use of this symbol from libgcc.a in RTX kernel mode.
5396
5397         * cio.c
5398         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
5399         the function RtPrintf for console output.
5400
5401         * argv.c Do not use the environ variable for RTX.
5402
5403         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
5404         been moved before the call to Osint.Add_Default_Search_Dirs in order
5405         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
5406         from the appropriate run time.
5407
5408         * targparm.ads
5409         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
5410         target is a RTSS module for RTX.
5411
5412         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
5413         RTX_RTSS_Kernel_Module
5414         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
5415
5416         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
5417         exception handling mechanism for Windows and RTX in Win32 mode, but
5418         not for RTX in kernel mode (RTSS).
5419         (LIBGNAT_SRCS): Remove ada.h
5420
5421 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
5422
5423         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
5424         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5425         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
5426         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
5427         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
5428         ALL_ADA_CFLAGS): Remove.
5429         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
5430         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5431         (GCC_CFLAGS): Remove X_CFLAGS.
5432         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
5433         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
5434         (ADA_CFLAGS): Substitute.
5435
5436 2008-07-30  Laurent Guerby  <laurent@guerby.net>
5437
5438         PR ada/5911
5439         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
5440         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
5441         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
5442         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
5443         by stamp-gnatlib2-rts.
5444
5445 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5446
5447         PR documentation/15479
5448         * gnat-style.texi: Remove AdaCore copyright statement and GPL
5449         statement for GNAT.  Add @copying stanza, use it.  Update to
5450         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
5451         title as Front-Cover Text.
5452         * gnat_rm.texi: Likewise.
5453         * gnat_ugn.texi: Likewise.
5454
5455 2008-07-29  Jan Hubicka  <jh@suse.cz>
5456
5457         * trans.c (process_inlined_subprograms): Remove tree_really_inline
5458         check.
5459
5460 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
5461
5462         * gcc-interface: New directory.
5463
5464         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
5465         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
5466         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
5467         to gcc-interface subdirectory.
5468
5469 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5470
5471         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
5472
5473 2008-07-28  Jan Hubicka  <jh@suse.cz>
5474
5475         * misc.c (gnat_post_options): Do not set flag_no_inline.
5476
5477 2008-07-28  Richard Guenther  <rguenther@suse.de>
5478
5479         Merge from gimple-tuples-branch.
5480
5481         2008-07-22  Olivier Hainque  <hainque@adacore.com>
5482
5483         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
5484         this is called for an elab proc to be discarded if empty.
5485         * utils.c (end_subprog_body): Honor ELAB_P.
5486         (build_function_stub): Adjust call to end_subprog_body.
5487         * trans.c (Subprogram_Body_to_gnu): Likewise.
5488         (gigi): Reorganize processing of elab procs to prevent
5489         gimplifying twice, using the new end_subprog_body argument.
5490
5491         2008-07-19  Richard Guenther  <rguenther@suse.de>
5492
5493         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
5494         (utils.o): Likewise.
5495         * trans.c: Include tree-iterator.h.
5496         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
5497         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
5498         (set_expr_location_from_node): Likewise.
5499         (gigi): Tuplify.
5500         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
5501         of GENERIC_NEXT.
5502         * utils.c: Include tree-iterator.h.
5503         * gigi.h (gnat_gimplify_expr): Adjust prototype.
5504
5505         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
5506
5507         * trans.c: Include gimple.h instead of tree-gimple.h.
5508         * utils.c: Same.
5509
5510         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
5511
5512         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
5513
5514 2008-07-25  Jan Hubicka  <jh@suse.cz>
5515
5516         * utils.c (end_subprog_body): Remove inline trees check.
5517         * misc.c (gnat_post_options): Do not set flag_inline_trees.
5518
5519 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5520
5521         * raise-gcc.c: Move tsystem.h before tm.h.
5522
5523 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
5524
5525         * gnathtml.pl: New file.
5526
5527 2008-07-19  Olivier Hainque  <hainque@adacore.com>
5528
5529         * targtyps.c (get_target_default_allocator_alignment): Use
5530         MALLOC_ABI_ALIGNMENT.
5531
5532 2008-07-17  Olivier Hainque  <hainque@adacore.com>
5533
5534         * adaint.c (__MINGW32__ section): Include ctype.h and define
5535         a fallback ISALPHA if IN_RTS.
5536         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
5537
5538 2008-07-17  Olivier Hainque  <hainque@adacore.com>
5539
5540         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
5541         argument, to apply to references in addition to definitions.  Prevent
5542         setting TREE_STATIC on externals.
5543         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
5544
5545 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5546
5547         PR documentation/15479
5548         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
5549         Replace backets around optional parameters with @ovar
5550         where possible, use @r{[}, @r{]} otherwise.
5551         Replace some @r, @i, and @emph with @var where appropriate.
5552
5553 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5554
5555         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
5556
5557 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5558
5559         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
5560         -Wc++-compat warnings.
5561         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
5562         __gnat_locate_exec_on_path): Likewise.
5563         * decl.c (annotate_value): Likewise.
5564         * misc.c (gnat_handle_option): Likewise.
5565         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
5566         post_error_ne_tree): Likewise.
5567
5568 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5569
5570         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
5571         version of its type, attempt to first convert its elements.
5572
5573 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
5574
5575         * Makefile.in: Fix *86 kfreebsd target specific pairs.
5576
5577 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
5578
5579         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
5580
5581 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
5582
5583         * utils2.c (known_alignment): Derive the alignment from pointed-to
5584         types only if it is otherwise unknown.
5585         <INTEGER_CST>: Tidy.
5586         <MULT_EXPR>: Likewise.
5587         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
5588         that of the base.
5589
5590 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5591
5592         PR ada/36573
5593         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
5594
5595 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5596
5597         * gnat_rm.texi (Implementation Defined Characteristics)
5598         (Standard Library Routines): Use @smallexample for indented
5599         text.  Drop Indentation outside examples.
5600         * gnat_ugn.texi: Likewise.
5601
5602 2008-06-13  Olivier Hainque  <hainque@adacore.com>
5603
5604         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
5605         if undefined.
5606         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
5607         realignment with force_align_arg_pointer attribute on foreign
5608         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5609
5610 2008-06-13  Olivier Hainque  <hainque@adacore.com>
5611
5612         * utils.c (rest_of_record_type_compilation): When computing
5613         encodings for the components of a variable size type, early
5614         strip conversions on the current position expression to make
5615         sure it's shape is visible.  Use remove_conversions for this
5616         purpose.
5617
5618 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5619
5620         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
5621         constrained subtype of a discriminated type, discard the fields that
5622         are beyond its limits according to its size.
5623
5624 2008-06-10  Olivier Hainque  <hainque@adacore.com>
5625
5626         * utils.c (create_subprog_decl): If this is for the 'main' entry
5627         point according to the asm name, redirect main_identifier_node.
5628
5629 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5630
5631         * decl.c (components_to_record): Adjust the packedness for the
5632         qualified union as well.
5633
5634 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
5635
5636         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
5637         checks non fatal.
5638
5639 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
5640
5641         * sem_res.adb (Large_Storage_Type): A type is large if it
5642         requires as many bits as Positive to store its values and its
5643         bounds are known at compile time.
5644         * sem_ch13.adb (Minimum_Size): Note that this function returns
5645         0 if the size is not known at compile time.
5646
5647 2008-06-06  Nicolas Setton  <setton@adacore.com>
5648             Olivier Hainque  <hainque@adacore.com>
5649
5650         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
5651         attribute, parallel descriptive type attached to another
5652         type for debug info generation purposes.
5653         * utils.c (add_parallel_type): New function, register
5654         parallel type to be attached to a type.
5655         (get_parallel_type): New function, fetch a registered
5656         parallel type, if any.
5657         (rest_of_record_type_compilation): Register the parallel
5658         type we make for variable size records.
5659         * gigi.h (add_parallel_type, get_parallel_type): Declare.
5660         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
5661         parallel debug types we make.
5662         * trans.c (extract_encoding, decode_name): New functions.
5663         (gigi): If the DWARF attribute extensions are available, setup
5664         to use them.
5665         * lang.opt: Register language specific processing request
5666         for -gdwarf+.
5667         * misc.c (gnat_dwarf_extensions): New global variable. How much
5668         do we want of our DWARF extensions. 0 by default.
5669         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
5670         (gnat_post_options): Map gnat_dwarf_extensions to the
5671         commonuse_gnu_debug_info_extensions for later processing.
5672
5673 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
5674
5675         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
5676
5677 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5678
5679         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
5680         * gnat_ugn.texi (Style Checking)
5681         (Adding the Results of Compiler Checks to gnatcheck Output)
5682         (Example of Binder Output File): Fix typos.
5683         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
5684         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
5685         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
5686         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
5687         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
5688         sinfo.ads, utils.c: Fix typos in comments.
5689         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
5690
5691 2008-05-29  Thomas Quinot  <quinot@adacore.com>
5692
5693         * sem_eval.adb: Minor reformatting
5694
5695 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
5696
5697         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
5698         is abstract, do not apply abstractness check on subprogram if this is
5699         a renaming declaration.
5700
5701 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
5702
5703         PR ada/864
5704         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
5705         allow recognition of program suffix in addition to prefix.
5706
5707         * gnatchop.adb (Locate_Executable): Add support for prefix.
5708
5709         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
5710         mlib-utl.adb: Adjust calls to Program_Name.
5711
5712 2008-05-29  Robert Dewar  <dewar@adacore.com>
5713
5714         * sem_ch3.adb: Minor reformatting
5715         * sem_prag.adb: Minor reformatting
5716         * sem_res.adb: Minor reformatting
5717         * sinput-p.ads: Minor reformatting
5718
5719 2008-05-29  Javier Miranda  <miranda@adacore.com>
5720
5721         * sem_util.adb:
5722         (Abstract_Interface_List): Add missing support for full type-declaration
5723         associated with synchronized types.
5724
5725 2008-05-29  Robert Dewar  <dewar@adacore.com>
5726
5727         * sem_eval.adb (Is_Same_Value): Take care of several more cases
5728
5729 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
5730
5731         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
5732         access type, wrap the expression in a conversion to force an
5733         accessibility check.
5734
5735         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
5736         accessibility checks even when expansion is disabled in order to
5737         generate messages in the presence of previous errors or in
5738         semantics-only mode.
5739
5740 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
5741
5742         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
5743         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
5744
5745 2008-05-28  Vincent Celier  <celier@adacore.com>
5746
5747         PR ada/34446
5748         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
5749         preprocessing expressions
5750
5751 2008-05-28  Vincent Celier  <celier@adacore.com>
5752
5753         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
5754         for preprocessing
5755
5756         * sinput-p.ads: Minor comment update and reformatting
5757
5758 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
5759
5760         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
5761         type has a deeper level than any master only when it is the type of an
5762         access parameter.
5763
5764 2008-05-28  Javier Miranda  <miranda@adacore.com>
5765
5766         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
5767
5768 2008-05-28  Javier Miranda  <miranda@adacore.com>
5769
5770         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
5771         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
5772         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
5773         Add code that was previously located in
5774         Find_Overridden_Synchronized_Primitive because it is only used here.
5775
5776 2008-05-28  Sergey Rybin  <rybin@adacore.com>
5777
5778         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
5779         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
5780
5781 2008-05-28  Robert Dewar  <dewar@adacore.com>
5782
5783         * restrict.ads:
5784         Add missing restrictions, and properly label all GNAT defined ones
5785
5786         * rtsfind.ads:
5787         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
5788         Add entry for Ada.Task_Termination.Set_Specific_Handler
5789         Add entry for Ada.Task_Termination.Specific_Handler
5790
5791         * s-rident.ads:
5792         Add missing restrictions and properly mark all gnat defined ones
5793
5794         * sem_ch3.adb:
5795         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
5796
5797         * sem_res.adb:
5798         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
5799
5800         * gnat_rm.texi: Add missing restrictions, and properly label all
5801         GNAT defined ones
5802
5803 2008-05-28  Robert Dewar  <dewar@adacore.com>
5804
5805         * restrict.adb:
5806         (Check_Restriction): violation of restriction No_Finalization is
5807         treated as a serious error to stop expansion
5808
5809 2008-05-28  Robert Dewar  <dewar@adacore.com>
5810
5811         * exp_util.adb: Minor reformatting
5812         * exp_util.ads: Minor reformatting.
5813
5814 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
5815
5816         * Make-lang.in: Remove gprmake.
5817
5818         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
5819
5820 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
5821
5822         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
5823         improper progenitor names, and avoid cascaded errors.
5824
5825 2008-05-28  Robert Dewar  <dewar@adacore.com>
5826
5827         * gnat_rm.texi: Add note on Old giving warning when applied to constant
5828
5829         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
5830         a constant
5831
5832 2008-05-28  Robert Dewar  <dewar@adacore.com>
5833
5834         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
5835         size
5836
5837 2008-05-28  Robert Dewar  <dewar@adacore.com>
5838
5839         * exp_ch5.adb:
5840         (Expand_Simple_Function_Return): Copy unaligned result into temporary
5841
5842 2008-05-28  Javier Miranda  <miranda@adacore.com>
5843
5844         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
5845         for user-defined predefined primitives.
5846
5847         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
5848         (Find_Overridden_Synchronized_Primitive): Ditto.
5849
5850         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
5851
5852 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
5853
5854         * a-ststio.adb, s-direio.adb:
5855         Further code clean up of previous change.
5856         Update comments.
5857
5858 2008-05-27  Vincent Celier  <celier@adacore.com>
5859
5860         * prj-nmsc.adb: Minor reformatting
5861
5862 2008-05-27  Bob Duff  <duff@adacore.com>
5863
5864         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
5865         untagged private type with a tagged full type, where the full type has
5866         a self reference, create the corresponding class-wide type early, in
5867         case the self reference is "access T'Class".
5868
5869 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
5870
5871         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
5872         tasks and context is an object declaration. create master entity before
5873         expansion.
5874
5875 2008-05-27  Robert Dewar  <dewar@adacore.com>
5876
5877         * mlib-prj.adb: Minor reformatting
5878
5879         * prj-part.adb: Minor reformatting
5880
5881         * prj.ads: Minor reformatting
5882
5883         * exp_ch3.adb: Minor reformatting.
5884
5885         * sem_ch3.ads: Minor reformatting
5886
5887         * sem_eval.adb: Minor reformatting
5888
5889 2008-05-27  Vincent Celier  <celier@adacore.com>
5890
5891         * gnatcmd.adb:
5892         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
5893
5894 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
5895
5896         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
5897         tasks, create an activation chain now, before the expansion into
5898         assignments and build-in-place calls that require the presence of an
5899         activation chain.
5900         (Backend_Processing_Possible): If the component type is inherently
5901         limited, the aggregate must be expanded into individual built-in-place
5902         assignments.
5903
5904         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
5905         determine whether an allocation extra parameter must be built, to
5906         handle case of a private type whose full type is a discriminated type
5907         with defaults.
5908
5909 2008-05-27  Bob Duff  <duff@adacore.com>
5910
5911         * gnat_rm.texi:
5912         Document the new behavior regarding trampolines.
5913
5914 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
5915
5916         * a-direio.adb, a-sequio.adb: Replace address clause by
5917         unrestricted_access, simpler and compatible with .NET.
5918
5919 2008-05-27  Vincent Celier  <celier@adacore.com>
5920
5921         * prj-part.adb:
5922         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
5923         a project file, so that symbolic links are not resolved.
5924
5925 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
5926
5927         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
5928         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
5929         portable across GNAT targets, since this kind of address clause is not
5930         supported by VM back-ends (.NET/JGNAT).
5931
5932 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
5933
5934         * bindgen.adb: Update comments.
5935
5936         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
5937
5938 2008-05-27  Vincent Celier  <celier@adacore.com>
5939
5940         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
5941         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
5942         mlib-tgt.adb, prj-env.adb, prj-env.ads:
5943         (Path_Information): New record type
5944         Use component of type Path_Information when there are two paths, one in
5945         canonical format and one in display format.
5946         Update the project manager to these new components.
5947
5948 2008-05-27  Robert Dewar  <dewar@adacore.com>
5949
5950         * makeutl.adb: Minor reformatting
5951         * prj-nmsc.adb: Minor reformatting
5952         * s-stausa.adb: Minor reformatting
5953         * s-stausa.ads: Minor reformatting
5954         * sem_ch6.adb: Minor reformatting
5955
5956 2008-05-27  Thomas Quinot  <quinot@adacore.com>
5957
5958         * sem_res.adb: Minor comment fixes
5959
5960 2008-05-27  Thomas Quinot  <quinot@adacore.com>
5961
5962         * makeutl.adb: Minor code reorganization
5963
5964         * exp_aggr.adb: Add ??? comment
5965         Fix typo
5966
5967         * exp_ch6.adb: Minor reformatting
5968
5969 2008-05-27  Quentin Ochem  <ochem@adacore.com>
5970
5971         * s-stausa.adb (Initialize): Updated result initialization, and
5972         initialization of environment stack.
5973         (Fill_Stack): Improved computation of the pattern zone, taking into
5974         account already filled at the calling point.
5975         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
5976         Measure and Overflow_Guard.
5977         (Report_Result): Fixed computation of the result using new fields of
5978         Stack_Analyzer.
5979
5980         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
5981         params by more explicit Stack_Size / Max_Pattern_Size params.
5982         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
5983         Added Stack_Used_When_Filling field.
5984         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
5985         Min_Measure and Max_Measure fields.
5986
5987         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
5988
5989 2008-05-27  Vincent Celier  <celier@adacore.com>
5990
5991         * prj-nmsc.adb:
5992         (Check_File): Make sure that a unit that replaces the same unit in a
5993          project being extended is properly processed.
5994
5995 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
5996
5997         * sem_ch3.adb:
5998         (Get_Discr_Value): Remove obsolete code that failed to find the value
5999         of a discriminant for an inherited task component appearing in a type
6000         extension.
6001
6002 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6003
6004         (System.File_IO.{Close, Delete, Reset}):
6005         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
6006
6007         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
6008         Pass File parameter by reference.
6009
6010 2008-05-27  Vincent Celier  <celier@adacore.com>
6011
6012         * prj-nmsc.adb:
6013         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
6014         sources of the same project that have the same object file name.
6015         (Find_Explicit_Sources): Always remove a source exception that was not
6016         found.
6017
6018 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6019
6020         * sem_ch3.adb: Minor reformatting
6021
6022 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6023
6024         * sem_ch6.adb:
6025         (Is_Interface_Conformant): Handle properly a primitive operation that
6026         overrides an interface function with a controlling access result.
6027         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
6028         inherited and overriding operations, omit as well the conformance check
6029         on result types, to prevent spurious errors.
6030
6031 2008-05-27  Vincent Celier  <celier@adacore.com>
6032
6033         * makeutl.ads, makeutl.adb:
6034         (Set_Location): New procedure
6035         (Get_Location): New function
6036         (Update_Main): New procedure
6037
6038 2008-05-27  Vincent Celier  <celier@adacore.com>
6039
6040         * prj-nmsc.adb:
6041         (Check_Library): Allow standard project to be extended as a static
6042         library project.
6043         (Get_Mains): Do not inherit attribute Main in an extending library
6044         project.
6045
6046 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6047
6048         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
6049         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
6050         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
6051         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
6052         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
6053         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
6054         * system-mingw.ads (Always_Compatible_Rep): Likewise.
6055         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
6056         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
6057         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
6058
6059 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6060
6061         * sem_attr.adb: add guard to previous patch.
6062
6063 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
6064
6065         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
6066         a synchronized tagged type, do not attempt to build dispatch table for
6067         full view. The table is built for the corresponding record type, which
6068         has its own declaration.
6069
6070 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
6071
6072         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
6073         to the known type entity E, rather than setting it to Any_Type. Fixes
6074         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
6075         for objects whose type had an illegal constraint.
6076
6077 2008-05-27  Vincent Celier  <celier@adacore.com>
6078
6079         * gnat_ugn.texi:
6080         Add succinct documentation for attribute Excluded_Source_List_File
6081
6082 2008-05-27  Vincent Celier  <celier@adacore.com>
6083
6084         * prj-attr.adb: Add new project level attribute Map_File_Option
6085
6086         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
6087
6088         * prj.ads: Minor reformatting and comment update
6089         (Project_Configuration): New component Map_File_Option
6090
6091         * snames.adb: New standard name Map_File_Option
6092
6093         * snames.ads: New standard name Map_File_Option
6094
6095 2008-05-27  Vincent Celier  <celier@adacore.com>
6096
6097         * xsnames.adb: Remove unused variable Oname
6098
6099 2008-05-27  Doug Rupp  <rupp@adacore.com>
6100
6101         * exp_ch6.adb:
6102         (Expand_N_Function_Call): Fix comments. Minor reformatting.
6103
6104         * exp_vfpt.ads:
6105         (Expand_Vax_Foreign_Return): Fix comments.
6106
6107 2008-05-27  Thomas Quinot  <quinot@adacore.com>
6108
6109         * exp_dist.adb: Minor reformating
6110
6111 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
6112
6113         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
6114         No_Default_Initialization, which is now delayed until the freeze point
6115         of the object. Add a comment about deferral of the check.
6116
6117         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
6118         on objects is moved here.
6119
6120 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6121
6122         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
6123         (Compare_Array_S16): Adjust for above change.
6124         * s-casi32.adb (Uword): Likewise.
6125         (Compare_Array_S32): Likewise.
6126         * s-casi64.adb (Uword): Likewise.
6127         (Compare_Array_S64): Likewise.
6128         * s-caun16.adb (Uhalf): Likewise.
6129         (Compare_Array_U16): Likewise.
6130         * s-caun32.adb (Uword): Likewise.
6131         (Compare_Array_U32): Likewise.
6132         * s-caun64.adb (Uword): Likewise.
6133         (Compare_Array_U64): Likewise.
6134
6135 2008-05-26  Robert Dewar  <dewar@adacore.com>
6136
6137         * exp_ch6.adb: Add ??? comment for previous change
6138
6139         * exp_vfpt.adb: Minor reformatting
6140
6141         * exp_vfpt.ads: Add ??? comment for last change
6142
6143         * sem_attr.adb: Add some ??? comments for previous change
6144
6145         * s-vaflop.ads: Add comments for previous change
6146
6147 2008-05-26  Doug Rupp  <rupp@adacore.com>
6148
6149         * s-vaflop-vms-alpha.adb:
6150         Remove System.IO use clause, to prevent spurious ambiguities when
6151         package is access through rtsfind.
6152
6153 2008-05-26  Sergey Rybin  <rybin@adacore.com>
6154
6155         * tree_io.ads (ASIS_Version_Number): Update because of the changes
6156         made in front-end
6157
6158 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6159
6160         * sem_attr.adb:
6161         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
6162         converted to S (A)'address only if A .. B is known to be a non-null
6163         range.
6164
6165 2008-05-26  Doug Rupp  <rupp@adacore.com>
6166
6167         * s-vaflop.adb:
6168         (Return_D, Return_F, Return_G): New functions.
6169
6170         * s-vaflop.ads:
6171         (Return_D, Return_F, Return_G): New functions.
6172
6173         * exp_vfpt.adb:
6174         (Expand_Vax_Foreign_Return): New procedure
6175
6176         * exp_vfpt.ads:
6177         (Expand_Vax_Foreign_Return): New procedure
6178
6179         * rtsfind.ads:
6180         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
6181         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
6182
6183         * exp_ch6.adb:
6184         Import Exp_Vfpt
6185         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
6186
6187         * s-vaflop-vms-alpha.adb:
6188         (Return_D, Return_F, Return_G): New functions.
6189
6190 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
6191
6192         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
6193         init proc entity when there is actual default initialization associated
6194         with the component type, to avoid spurious errors on objects of scalar
6195         array types that are marked Is_Public when No_Default_Initialization
6196         applies.
6197
6198 2008-05-26  Thomas Quinot  <quinot@adacore.com>
6199
6200         * rtsfind.ads, rtsfind.adb:
6201         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
6202         (Check_RPC): Support per-PCS-kind API versioning.
6203
6204         exp_dist.ads, exp_dist.adb:
6205         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
6206         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
6207          library function Get_RACW.
6208         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
6209         library function Get_Reference.
6210         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
6211         through an intermediate Any.
6212         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
6213         going through an intermediate Any.
6214
6215         * sem_dist.adb: Minor reformatting.
6216
6217 2008-05-26  Javier Miranda  <miranda@adacore.com>
6218
6219         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
6220         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6221         (Is_Internal): Adding documentation on internal entities that have
6222         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
6223
6224         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
6225         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6226         Added assertion to force entities with this attribute to have
6227         attribute Is_Internal set to True.
6228         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
6229
6230         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
6231         renamed as Derive_Progenitor_Subprograms. In addition, its code is
6232         a new implementation.
6233         (Add_Interface_Tag_Components): Remove special management of
6234         synchronized interfaces.
6235         (Analyze_Interface_Declaration): Minor reformating
6236         (Build_Derived_Record_Type): Minor reformating
6237         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
6238         predefined primitive inherited from interface type because the body of
6239         internally generated predefined primitives of tagged types are generated
6240         later by Freeze_Type
6241         (Derive_Subprogram): Avoid generating an internal name if the parent
6242         subprogram overrides an interface primitive.
6243         (Derive_Subprograms): New implementation that keeps separate the
6244         management of tagged types not implementing interfaces, from tagged
6245         types that implement interfaces.
6246         (Is_Progenitor): New implementation.
6247         (Process_Full_View): Add documentation
6248         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
6249         by call to Derive_Progenitor_Subprograms.
6250
6251         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
6252         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6253         Skip_Controlling_Formals.
6254
6255         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
6256         (Check_Conventions): New implementation. Remove local subprogram
6257         Skip_Check. Remove formal Search_From of routine Check_Convention.
6258         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6259         Skip_Controlling_Formals.
6260         (New_Overloaded_Entity): Enable addition of predefined dispatching
6261         operations.
6262
6263         * sem_disp.ads
6264         (Find_Primitive_Covering_Interface): New subprogram.
6265
6266         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
6267         the task body procedure as a primitive of the corresponding tagged
6268         type.
6269         (Check_Operation_From_Private_Type): Avoid adding twice an entity
6270         to the list of primitives.
6271         (Find_Primitive_Covering_Interface): New subprogram.
6272         (Override_Dispatching_Operation): Add documentation.
6273
6274         * sem_type.adb (Covers): Minor reformatings
6275
6276         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
6277         Collect_Interfaces.
6278         Rename formal.
6279         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
6280         (Implements_Interface): New subprogram.
6281         (Is_Parent): Removed.
6282         (Primitive_Names_Match): New subprogram.
6283         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6284         (Ultimate_Alias): New subprogram.
6285
6286         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
6287         Collect_Interfaces.
6288         Remove special management for synchronized types. Rename formal. Remove
6289         internal subprograms Interface_Present_In_Parent and Add_Interface.
6290         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
6291         on non-record types by code to return false in such case.
6292         (Implements_Interface): New subprogram.
6293         (Is_Parent): Removed. No special management is now required for
6294         synchronized types covering interfaces.
6295         (Primitive_Names_Match): New subprogram.
6296         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6297         (Ultimate_Alias): New subprogram.
6298
6299         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
6300         Add internal entities associated with secondary dispatch tables to
6301         the list of tagged type primitives that are not interfaces.
6302         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
6303         (Make_Predefined_Primitive_Specs): Code reorganization to improve
6304         the management of predefined equality operator. In addition, if
6305         the type has an equality function corresponding with a primitive
6306         defined in an interface type, the inherited equality is abstract
6307         as well, and no body can be created for it.
6308
6309         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
6310         exp_util to exp_disp.
6311         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
6312         an entity corresponds with one of the predefined primitives required
6313         to implement interfaces.
6314         Update copyright notice.
6315
6316         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
6317         final check on abstract subprograms all the primitives associated with
6318         interface primitives because they must be visible in the public and
6319         private part.
6320         (Write_DT): Use Find_Dispatching_Type to locate the name of the
6321         interface type. This allows the use of this routine, for debugging
6322         purposes, when the tagged type is not fully decorated.
6323         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
6324         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
6325         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
6326         entity corresponds with one of the predefined primitives required to
6327         implement interfaces.
6328
6329         * exp_util.adb (Find_Interface_ADT): New implementation
6330         (Find_Interface): Removed.
6331
6332         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
6333         list of interfaces associated with nodes
6334         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
6335
6336 2008-05-26  Thomas Quinot  <quinot@adacore.com>
6337
6338         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
6339         condition for assignment to temporary.
6340
6341 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6342
6343         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
6344         checks on the upper bound if the index type is a modular type, to
6345         prevent wrap-around computations when size is close to upper bound of
6346         type.
6347
6348 2008-05-26  Robert Dewar  <dewar@adacore.com>
6349
6350         * sem_ch3.adb: Minor reformatting
6351
6352 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6353
6354         * sem_ch12.adb (Remove_Parent): Use specification of instance
6355         to retrieve generic parent,
6356         to handle properly the case where the instance is a child unit.
6357         Add guard to handle properly wrapper packages.
6358         Minor reformatting
6359
6360 2008-05-26  Thomas Quinot  <quinot@adacore.com>
6361
6362         * sinfo.ads: Minor reformatting
6363
6364 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
6365
6366         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
6367         Generate a tag check when the result subtype of a function, defined by
6368         an access definition, designates a specific tagged type.
6369         (Make_Tag_Check): New routine.
6370
6371 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
6372
6373         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
6374
6375 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6376
6377         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
6378         (builtin_decl_for): Likewise.
6379         * trans.c (gigi): Likewise.
6380         * utils.c (def_builtin_1): Fix formatting.
6381
6382 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
6383
6384         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
6385         Create the statements which map a string name to protected or task
6386         entry indix.
6387
6388         * exp_ch9.adb: Add with and use clause for Stringt.
6389         Minor code reformatting.
6390         (Build_Entry_Names): New routine.
6391         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
6392         for flag Build_Entry_Names which controls the allocation of the data
6393         structure for the string names of entries.
6394
6395         * exp_ch9.ads (Build_Entry_Names): New subprogram.
6396
6397         * exp_util.adb (Entry_Names_OK): New function.
6398
6399         * exp_util.ads (Entry_Names_OK): New function.
6400
6401         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
6402         enumerations RE_Id and RE_Unit_Table.
6403
6404         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
6405         (Free_Entry_Names_Array): New routine.
6406
6407         * s-taskin.ads: Comment reformatting.
6408         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
6409         Add component Entry_Names to record Ada_Task_Control_Block.
6410         (Free_Entry_Names_Array): New routine.
6411
6412         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
6413         dynamically allocate an array
6414         of string pointers. This structure holds string entry names.
6415         (Free_Entry_Names): New routine.
6416         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
6417         (Set_Entry_Names): New routine.
6418
6419         * s-tassta.ads:
6420         (Create_Task): Add formal Build_Entry_Names. The flag is used to
6421         control the allocation of the data structure which stores entry names.
6422         (Set_Entry_Name): New routine.
6423
6424         * s-tpoben.adb:
6425         Add with and use clause for Ada.Unchecked_Conversion.
6426         (Finalize): Deallocate the entry names array.
6427         (Free_Entry_Names): New routine.
6428         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
6429         create an array of string pointers to hold the entry names.
6430         (Set_Entry_Name): New routine.
6431
6432         * s-tpoben.ads:
6433         Add field Entry_Names to record Protection_Entries.
6434         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
6435         (Set_Entry_Name): New routine.
6436
6437 2008-05-26  Vincent Celier  <celier@adacore.com>
6438
6439         * prj-nmsc.adb:
6440         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
6441
6442         * prj.ads:
6443         (Project_Configuration): New component Shared_Lib_Driver
6444
6445 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6446
6447         * inline.adb:
6448         (Cleanup_Scopes): For a protected operation, transfer finalization list
6449         to protected body subprogram, to force cleanup actions when needed.
6450
6451 2008-05-26  Robert Dewar  <dewar@adacore.com>
6452
6453         * sem_cat.adb: Minor reformatting
6454
6455         * gnatname.adb: Minor reformatting
6456
6457         * osint.ads: Minor reformatting
6458
6459         * s-carun8.ads: Minor reformatting
6460
6461         * g-heasor.ads: Minor comment fix (unit is now pure)
6462
6463 2008-05-26  Robert Dewar  <dewar@adacore.com>
6464
6465         * exp_ch2.adb:
6466         (Expand_Current_Value): Properly type generated integer literal
6467
6468 2008-05-26  Sergey Rybin  <rybin@adacore.com>
6469
6470         * gnat_ugn.texi: Add description for the new gnatcheck rule -
6471         Separate_Numeric_Error_Handlers.
6472
6473 2008-05-26  Pascal Obry  <obry@adacore.com>
6474
6475         * sem_aggr.adb: Minor reformatting.
6476
6477 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
6478
6479         * s-osinte-aix.adb:
6480         (To_Target_Priority): Setting the time slice value to 0 or greater sets
6481         the scheduling policy to FIFO within priorities or round-robin
6482         respectively.
6483         Hence, the priority must be set in this case to the one selected by the
6484         user.
6485
6486 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
6487
6488         * sem_ch12.adb:
6489         (Remove_Parent): If the enclosing scope is an instance whose generic
6490         parent is declared within some parent scope of the just completed
6491         instance, make full views of the entities in that parent visible, when
6492         applicable.
6493
6494 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6495
6496         * mingw32.h (STD_MINGW): Set to true for target w64.
6497
6498 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6499
6500         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
6501         instead of TREE_STATIC on the ADDR_EXPR.
6502
6503 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
6504
6505         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
6506         (Sloc_to_locus): Do not overwrite known GCC locations when translating
6507         GNAT standard locations.
6508
6509 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6510
6511         * gigi.h (mark_visited): Declare.
6512         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
6513         only the topmost node of expressions.
6514         (elaborate_expression_1): Look deeper for read-only variables.
6515         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
6516         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
6517         (mark_visited_r): New function.
6518
6519 2008-05-23  Vincent Celier  <celier@adacore.com>
6520
6521         * snames.adb: New standard name Excluded_Source_List_File.
6522
6523         * snames.ads: New standard name Excluded_Source_List_File.
6524
6525         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
6526
6527         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
6528         Get excluded sources from
6529         file indicated by attribute Excluded_Source_List_File, when present and
6530         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
6531
6532 2008-05-23  Robert Dewar  <dewar@adacore.com>
6533
6534         * exp_dist.adb: Minor reformatting
6535
6536 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
6537
6538         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
6539         slice, convert it to an indexed component, which is equivalent, more
6540         efficient, and usable even if the slice itself is not addressable.
6541
6542 2008-05-23  Olivier Hainque  <hainque@adacore.com>
6543
6544         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
6545         convention also allows access to named compiler built-in subprograms
6546         such as the GCC __builtin family.
6547
6548 2008-05-23  Vincent Celier  <celier@adacore.com>
6549
6550         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
6551         sep. If there are several possibilities, choose the one with the
6552         longer prefix.
6553
6554 2008-05-23  Vincent Celier  <celier@adacore.com>
6555
6556         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
6557         back end switches when executable specified with --GCC= is same as
6558         default, even if there are additional options.
6559
6560         * gnat_ugn.texi:
6561         Document when the back end switches from the ALI file are taken into
6562         account when gnatlink is invoked with --GCC=
6563
6564 2008-05-23  Thomas Quinot  <quinot@adacore.com>
6565
6566         * s-os_lib.adb:
6567         (copy_File): Do not open destination file if source file is unreadable.
6568
6569 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6570
6571         * utils.c (handle_type_generic_attribute): Adjust to accept
6572         fixed arguments before an elipsis.
6573
6574 2008-05-21  Thomas Quinot  <quinot@adacore.com>
6575
6576         * g-sothco.ads, g-sothco.adb: New files.
6577
6578 2008-05-20  Thomas Quinot  <quinot@adacore.com>
6579
6580         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
6581
6582         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
6583         Add missing "with" of Ada.Unchecked_Conversion
6584
6585         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
6586         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
6587         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6588         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6589         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
6590         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
6591         Move common code out of GNAT.Sockets.Thin implementations and into
6592         Thin_Common.
6593         New constant SIZEOF_fd_set
6594         New flag Has_Sockaddr_Len
6595         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6596
6597         * g-stsifd-sockets.adb
6598         (Create): Remove call to Set_Length; use Set_Family to set the family
6599         and (on appropriate platforms) length fields in struct sockaddr.
6600
6601         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
6602         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
6603         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
6604         Move common code out of GNAT.Sockets.Thin implementations and into
6605         Thin_Common.
6606
6607         * g-socket.ads, g-socket.adb:
6608         Move common code out of GNAT.Sockets.Thin implementations and into
6609         Thin_Common.
6610         (Connect_Socket, Accept_Socket): Provide new versions of these two
6611         routines that operate with a user specified timeout.
6612         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
6613         this is now handled automatically by Set_Family on platforms that
6614         require it.
6615
6616         * gen-soccon.c:
6617         Move common code out of GNAT.Sockets.Thin implementations and into
6618         Thin_Common.
6619         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
6620         this constant to 0 (not -1) because we use it to initialize an
6621         unsigned_char value.
6622         Align values for numeric constants only.
6623         Handle the case of systems that do not support AF_INET6.
6624         New constant SIZEOF_fd_set
6625         New flag Has_Sockaddr_Len
6626         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6627
6628         * gsocket.h: New flag Has_Sockaddr_Len
6629         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6630
6631 2008-05-20  Santiago Uruena  <uruena@adacore.com>
6632
6633         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
6634
6635 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
6636
6637         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
6638         the underlying issue with malloc/free has been fixed. Remove associated
6639         comments.
6640         Minor reformatting.
6641         Related to PR ada/24533
6642
6643 2008-05-20  Robert Dewar  <dewar@adacore.com>
6644
6645         * ali.adb: Correct casing of ASCII.NUL
6646
6647         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
6648         properly.
6649
6650 2008-05-20  Robert Dewar  <dewar@adacore.com>
6651             Gary Dismukes  <dismukes@adacore.com>
6652
6653         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
6654         overflow if result converted to wider integer type.
6655         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
6656         discriminated types when discriminant checks are suppressed.
6657
6658 2008-05-20  Vincent Celier  <celier@adacore.com>
6659
6660         * cstand.adb (Print_Standard): Issue the correct Size clause for type
6661         Wide_Wide_Character.
6662
6663 2008-05-20  Tristan Gingold  <gingold@adacore.com>
6664
6665         * decl.c: Do not emit a variable for a object that has an address
6666         representation clause whose value is known at compile time.
6667         When a variable has an address clause whose value is known at compile
6668         time, refer to this variable by using directly the address instead of
6669         dereferencing a pointer.
6670
6671 2008-05-20  Robert Dewar  <dewar@adacore.com>
6672
6673         PR ada/30740
6674         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
6675         subtypes, always False for non-modular types.
6676         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
6677         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
6678         for Shared_Storage package.
6679         (Is_RACW_Stub_Type): New entity flag.
6680
6681         * exp_ch4.adb
6682         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
6683         case where we have a modular type with a non-binary modules.
6684         Comments reformattings.
6685
6686         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
6687         all types.
6688
6689 2008-05-20  Javier Miranda  <miranda@adacore.com>
6690
6691         * exp_aggr.adb
6692         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
6693         tests did not covered the case in which the type of the aggregate has
6694         no progenitors but some its parents has progenitors.
6695
6696 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
6697             Hristian Kirtchev  <kirtchev@adacore.com>
6698
6699         * exp_ch3.adb
6700         (Expand_N_Object_Declaration): Correct the condition which triggers the
6701         generation of a call to Displace when initializing a class-wide object.
6702         (Build_Dcheck_Functions): Build discriminant-checking for null variants
6703         when Frontend_Layout_On_Target is true to ensure that they're available
6704         for calling when a record variant size function is built in Layout.
6705
6706 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
6707
6708         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
6709         procedure for a derived type retrieve the discriminant values from the
6710         parent using the corresponding discriminant.
6711         (Expand_N_Assignment_Statement): Skip generation of implicit
6712         if-statement associated with controlled types if we are
6713         compiling with restriction No_Finalization.
6714
6715 2008-05-20  Vincent Celier  <celier@adacore.com>
6716
6717         * prj.adb (Hash (Project_Id)): New function
6718         (Project_Empty): Add new component Interfaces_Defined
6719
6720         * prj.ads (Source_Data): New component Object_Linked
6721         (Language_Config): New components Object_Generated and Objects_Linked
6722         (Hash (Project_Id)): New function
6723         (Source_Data): New Boolean components In_Interfaces and
6724         Declared_In_Interfaces.
6725         (Project_Data): New Boolean component Interfaces_Defined
6726
6727         * prj-attr.adb:
6728         New project level attribute Object_Generated and Objects_Linked
6729         Add new project level attribute Interfaces
6730
6731         * prj-dect.adb: Use functions Present and No throughout
6732         (Parse_Variable_Declaration): If a string type is specified as a simple
6733         name and is not found in the current project, look for it also in the
6734         ancestors of the project.
6735
6736         * prj-makr.adb:
6737         Replace procedure Make with procedures Initialize, Process and Finalize
6738         to implement H414-023: process different directories with different
6739         patterns.
6740         Use functions Present and No throughout
6741
6742         * prj-makr.ads:
6743         Replace procedure Make with procedures Initialize, Process and Finalize
6744
6745         * prj-nmsc.adb
6746         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
6747         the language configuration.
6748         (Process_Project_Level_Array_Attributes): Process new attributes
6749         Object_Generated and Object_Linked.
6750         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
6751         False, to indicate that the erreor/warning is a continuation.
6752         (Check): Call Report_No_Sources with Contnuation = True after the first
6753         call.
6754         (Error_Msg): Process successively contnuation character and warning
6755         character.
6756         (Find_Explicit_Sources): Check that all declared sources have been found
6757         (Check_File): Indicate in hash table Source_Names when a declared source
6758         is found.
6759         (Check_File): Set Other_Part when found
6760         (Find_Explicit_Sources): In multi language mode, check if all exceptions
6761         to the naming scheme have been found. For Ada, report an error if an
6762         exception has not been found. Otherwise, disregard the exception.
6763         (Check_Interfaces): New procedure
6764         (Add_Source): When Other_Part is defined, set mutual pointers in spec
6765         and body.
6766         (Check): In multi-language mode, call Check_Interfaces
6767         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
6768         for an excluded source.
6769         (Remove_Source): A source replacing a source in the interfaces is also
6770         in the interfaces.
6771
6772         * prj-pars.adb: Use function Present
6773
6774         * prj-part.adb: Use functions Present and No throughout
6775         (Parse_Single_Project): Set the parent project for child projects
6776         (Create_Virtual_Extending_Project): Register project with no qualifier
6777         (Parse_Single_Project): Allow an abstract project to be extend several
6778         times. Do not allow an abstract project to extend a non abstract
6779         project.
6780
6781         * prj-pp.adb: Use functions Present and No throughout
6782         (Print): Take into account the full associative array attribute
6783         declarations.
6784
6785         * prj-proc.adb: Use functions Present and No throughout
6786         (Expression): Call itself with the same From_Project_Node for the
6787         default value of an external reference.
6788
6789         * prj-strt.adb: Use functions Present and No throughout
6790         (Parse_Variable_Reference): If a variable is specified as a simple name
6791         and is not found in the current project, look for it also in the
6792         ancestors of the project.
6793
6794         * prj-tree.ads, prj-tree.adb (Present): New function
6795         (No): New function
6796         Use functions Present and No throughout
6797         (Parent_Project_Of): New function
6798         (Set_Parent_Project_Of): New procedure
6799
6800         * snames.ads, snames.adb:
6801         Add new standard names Object_Generated and Objects_Linked
6802
6803 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
6804
6805         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
6806         and the derived type are of the same kind.
6807         (Expand_Call): Generate type conversions for actuals of
6808         record or array types when the parent and the derived types differ in
6809         size and/or packed status.
6810
6811 2008-05-20  Javier Miranda  <miranda@adacore.com>
6812             Ed Schonberg  <schonberg@adacore.com>
6813
6814         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
6815         generating dispatch tables of locally defined tagged types statically.
6816         Remove implicit if-statement that is no longer required.
6817         (Expand_Dispatching_Call): If this is a call to an instance of the
6818         generic dispatching constructor, the type of the first argument may be
6819         a subtype of Tag, so always use the base type to recognize this case.
6820
6821 2008-05-20  Thomas Quinot  <quinot@adacore.com>
6822
6823         * exp_dist.adb
6824         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
6825         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
6826         assigning NULL into the result, to avoid a spurious warning.
6827         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
6828         is not frozen.
6829         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
6830         type.
6831         (Build_From_Any_Function, Build_To_Any_Function,
6832         Build_TypeCode_Function): For a type that has user-specified stream
6833         attributes, use an opaque sequence of octets as the representation.
6834
6835 2008-05-20  Kevin Pouget  <pouget@adacore.com>
6836
6837         * exp_smem.ads, exp_smem.adb: Construction of access and assign
6838         routines has been replaced by an instantiation of
6839         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
6840         shared variable declaration.
6841         Calls to access and assign routines have been replaced by calls to
6842         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
6843         instantiated package.
6844
6845         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
6846         It identifies the new generic package added in s-shasto.
6847
6848         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
6849         is instantiated for each shared passive variable. It provides
6850         supporting procedures called upon each read or write access by the
6851         expanded code.
6852
6853         * sem_attr.adb:
6854         For this runtime unit (always compiled in GNAT mode), we allow
6855         stream attributes references for limited types for the case where
6856         shared passive objects are implemented using stream attributes,
6857         which is the default in GNAT's persistent storage implementation.
6858
6859 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
6860
6861         * freeze.adb
6862         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
6863         convention from its base type, do not set the type to that of integer,
6864         because it may inherit a size clause.
6865         Warn on a size clause with a size different
6866         from that of Integer, if the type has convention C.
6867
6868 2008-05-20  Vincent Celier  <celier@adacore.com>
6869
6870         * gnatname.adb
6871         (Scan_Args): Rewrite to take into account new switch --and to separate
6872         arguments into sections.
6873         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
6874         section, then Finalize.
6875
6876 2008-05-20  Tristan Gingold  <gingold@adacore.com>
6877
6878         * init.c: Enable stack probing on ppc-linux.
6879
6880         * tracebak.c: Add symbolic traceback for ppc-linux.
6881
6882         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
6883
6884 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
6885
6886         * Makefile.in
6887         (common-tools): New rule, to avoid parallel build failure on gnat tools.
6888         Reenable parallel builds on this Makefile.
6889
6890         * Make-lang.in: Update dependencies.
6891
6892 2008-05-20  Robert Dewar  <dewar@adacore.com>
6893
6894         * opt.ads (Treat_Restrictions_As_Warnings): New switch
6895
6896         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
6897         Treat_Restrictions_As_Warnings.
6898
6899         * switch-c.adb: Recognize new switch -gnatr
6900
6901         * usage.adb: Add line for -gnatr
6902
6903 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
6904
6905         * par-ch3.adb
6906         (P_Access_Definition): Change the error message when parsing "access
6907         all" in Ada 95 mode. The message no longer forces the user to recompile
6908         in 05 mode only to discover that anonymous access types are not allowed
6909         to have "all".
6910
6911 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
6912
6913         * par-ch9.adb
6914         (P_Protected): Update the error message on missing "-gnat05" switch when
6915         using interfaces in conjunction with protected types. Remove the
6916         incorrect error message associated with the presence of "private" after
6917         a "with".
6918
6919 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
6920
6921         * sem_aggr.adb: Update comments.
6922         Improve previous change for PR ada/17985
6923
6924 2008-05-20  Thomas Quinot  <quinot@adacore.com>
6925
6926         * sem_cat.adb
6927         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
6928         the visible part of the spec of a remote types unit.
6929         (Validate_Remote_Access_Object_Type_Declaration):
6930         New local subprogram Is_Valid_Remote_Object_Type, replaces
6931         Is_Recursively_Limited_Private.
6932         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
6933         non-controlling formals (and the return type, even though this is not
6934         explicit in the standard) must support external streaming.
6935         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
6936         as above for of RAS types and RCI subprograms. (The return type is not
6937         checked yet).
6938         Update comments related to RACWs designating limited interfaces per
6939         ARG ruling on AI05-060.
6940
6941         * sem_util.ads, sem_util.adb
6942         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
6943         Is_Remote_Call_Interface to identify RACW types in a stable and
6944         consistent way. We used to rely in this predicate on the privateness of
6945         the designated type and its ancestors, but depending on the currently
6946         visible private parts, this caused false negatives. We now uniformly
6947         rely on checks made at the point where the RACW type is declared.
6948         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
6949
6950 2008-05-20  Javier Miranda  <miranda@adacore.com>
6951             Ed Schonberg  <schonberg@adacore.com>
6952             Hristian Kirtchev  <kirtchev@adacore.com>
6953
6954         * sem_ch3.adb
6955         (Analyze_Object_Declaration): Fix over-conservative condition
6956         restricting use of predefined assignment with tagged types that have
6957         convention CPP.
6958         (Analyze_Object_Declaration): Relax the check regarding deferred
6959         constants declared in scopes other than packages since they can be
6960         completed with pragma Import.
6961         Add missing escaping of all-caps word 'CPP' in error messages.
6962         (Build_Discriminated_Subtype): Do not inherit representation clauses
6963         from parent type if subtype already carries them, because they are
6964         inherited earlier during derivation and already include those that may
6965         come from a partial view.
6966
6967         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
6968         Check the declarations of a subprogram body for proper deferred
6969         constant completion.
6970
6971         * sem_ch7.ads, sem_ch7.adb
6972         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
6973
6974 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
6975             Thomas Quinot  <quinot@adacore.com>
6976
6977         * sem_ch4.adb
6978         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
6979         F is a parameterless function that returns an array, and S is a subtype
6980         mark.
6981         (Analyze_Call): Insert dereference when the prefix is a parameterless
6982         function that returns an access to subprogram and the call has
6983         parameters.
6984         Reject a non-overloaded call whose name resolves to denote
6985         a primitive operation of the stub type generated to support a remote
6986         access-to-class-wide type.
6987
6988 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
6989
6990         * sem_ch8.adb
6991         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
6992         when there is a use clause for the same entity in the context.
6993         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
6994         created for a stream attribute of an abstract type or interface type.
6995
6996 2008-05-20  Thomas Quinot  <quinot@adacore.com>
6997
6998         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
6999         subprogram.
7000
7001         * sem_type.adb
7002         (Add_One_Interp): Ignore any interpretation that is a primitive
7003         operation of an RACW stub type (these primitives are only executed
7004         through dispatching, never through static calls).
7005         (Collect_Interps): When only one interpretation has been found, set N's
7006         Entity and Etype to that interpretation, otherwise Entity and Etype may
7007         still refer to an interpretation that was ignored by Add_One_Interp,
7008         in which case would end up with being marked as not overloaded but with
7009         an Entity attribute not pointing to its (unique) correct interpretation.
7010
7011 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7012
7013         * sem_eval.adb
7014         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
7015         denotes the whole array of its prefix.
7016
7017 2008-05-20  Robert Dewar  <dewar@adacore.com>
7018
7019         * sem_res.adb (Resolve_Op_Not): Warn on double negation
7020
7021 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7022
7023         * sprint.adb
7024         (Print_Itype): Do not modify the sloc of the component type of a
7025         (packed) array itype, because it is an unrelated type whose source
7026         location is independent of the point of creation of the itype itself.
7027
7028 2008-05-20  Thomas Quinot  <quinot@adacore.com>
7029
7030         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
7031         Append.
7032
7033 2008-05-20  Robert Dewar  <dewar@adacore.com>
7034             Vincent Celier  <celier@adacore.com>
7035
7036         * vms_data.ads: Add entry for -gnatr
7037         Put GNAT SYNC section in proper alpha order
7038         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
7039
7040         * gnat_ugn.texi: Add documentation for new gnatname switch --and
7041         Update the style checks section
7042         Add documentation of -gnatr
7043         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
7044         subsection the explanation how compiler checks should be disabled for
7045         gnatcheck.
7046         Update the list of Ada 95 reserved words used by in the project language
7047         Add documentation for project qualifiers.
7048         Document that abstract projects may be extended by different projects in
7049         the same project tree.
7050         Add documentation for gnatmake switch -d
7051
7052         * ug_words: Add -gnatyy VMS equivalence string.
7053         Add entry for -gnatr
7054
7055 2008-05-20  Bob Duff  <duff@adacore.com>
7056
7057         * a-rttiev.adb
7058         (Set_Handler): Remove code from both of these that implements
7059         RM-D.15(15/2), because it causes a race condition and potential
7060         deadlock.
7061         (Process_Queued_Events): Add comment explaining "exception when others
7062         => null". Add clarifying ".all", even though implicit .all is legal
7063         here.
7064
7065 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
7066
7067         * s-winext.ads: Replace representation clause by pragma Pack. Gives
7068         equivalent representation, but has the advantage of allowing
7069         compilation of this file under 64 bits platforms.
7070
7071         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
7072
7073         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
7074
7075         * adaint.c:
7076         Don't define dummy implementation of convert_addresses on ppc-linux.
7077
7078 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
7079
7080         * exp_ch7.adb
7081         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
7082         if expression is aggregate component.
7083
7084 2008-05-20  Robert Dewar  <dewar@adacore.com>
7085
7086         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
7087         sem_ch12.adb: Update comments. Minor reformatting.
7088
7089         * exp_ch2.adb: Typo
7090
7091         * s-unstyp.ads: Fixed some typos in comments.
7092
7093 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
7094
7095         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
7096         type/constant.
7097
7098         * g-socthi-vxworks.ads: Update to latest socket changes.
7099
7100         * a-caldel-vms.adb: Resync with a-caldel spec.
7101
7102         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
7103         Update comments.
7104
7105 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7106
7107         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
7108         for dummy types pointed to by the converted pointer types.
7109
7110 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
7111
7112         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
7113         of records and unions.
7114         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
7115
7116 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
7117             Robert Dewar <dewar@adacore.com>
7118
7119         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
7120         restrictions to the prefix of 'Old.
7121         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
7122         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
7123         variables.
7124
7125 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7126
7127         PR ada/24880
7128         PR ada/26635
7129         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
7130         expression to an integral type with lower precision, use NOP_EXPR
7131         directly in a couple of special cases.
7132
7133 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7134             Ed Schonberg <schonberg@adacore.com>
7135
7136         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
7137         constraint expressions.
7138
7139 2008-05-12  Tomas Bily  <tbily@suse.cz>
7140
7141         * utils2.c (known_alignment, contains_save_expr_p)
7142         (gnat_mark_addressable): Use CASE_CONVERT.
7143         * decl.c (annotate_value): Likewise.
7144         * trans.c (maybe_stabilize_reference): Likewise.
7145         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
7146         * utils.c (rest_of_record_type_compilation): Likewise.
7147         * trans.c (protect_multiple_eval, Attribute_to_gnu)
7148         (protect_multiple_eval): Likewise.
7149
7150 2008-05-08  Andreas Schwab  <schwab@suse.de>
7151
7152         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
7153         DECL_IS_PURE to DECL_PURE_P.
7154
7155 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7156
7157         * decl.c (maybe_pad_type): Add ??? comment.
7158
7159 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7160
7161         * decl.c (components_to_record): Zero the alignment of the qualified
7162         union built for the variant part upon creating it.
7163
7164 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7165
7166         * decl.c (maybe_pad_type): Try to get a form of the type with integral
7167         mode even if the alignment is not a factor of the original size.  But
7168         make sure to create the inner field with the original size.  Reorder.
7169         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
7170         record as always addressable.
7171         * utils.c (convert): Deal specially with conversions between original
7172         and packable versions of a record type.
7173         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
7174         recognizing an assignment between padded objects.
7175
7176 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7177
7178         * decl.c (make_packable_type): Resize the last component to its RM size
7179         only if it is of an aggregate type.
7180         * trans.c (call_to_gnu): Fix nit in comment.
7181         (gnat_to_gnu): Likewise.
7182
7183 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
7184
7185         * Makefile.in: Adapt sh4-linux target.
7186
7187 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
7188
7189         PR ada/35792
7190         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
7191         tagged type by an untagged protected or task type.
7192
7193 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
7194             Tristan Gingold  <gingold@adacore.com>
7195
7196         PR ada/36007
7197         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
7198         of aliased objects with an unconstrained nominal subtype.
7199         Cap the promotion to the effective alignment of the word mode.
7200
7201 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7202
7203         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
7204         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
7205         Use '&&' instead of ';'.
7206
7207 2008-04-24  Olivier Hainque  <hainque@adacore.com>
7208
7209         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
7210         doesn't require signed arithmetic anymore.
7211
7212 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
7213
7214         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
7215         (call_to_gnu): Don't set TREE_INVARIANT.
7216         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
7217
7218 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
7219
7220         * s-osinte-rtems.adb: Add sigalstack function.
7221         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
7222         function. Add Alternate_Stack and Alternate_Stack_Size.
7223         Add missing process_shared field to pthread_condattr_t
7224         and change ss_low_priority to int from timespec.
7225
7226 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
7227
7228         * i-forbla.adb: Link against -llapack and -lblas by default
7229         instead of the private -lgnalasup.
7230
7231 2008-04-21  Olivier Hainque  <hainque@adacore.com>
7232
7233         Access to most C builtins from Ada
7234         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
7235         (handle_pure_attribute, handle_novops_attribute,
7236         handle_nonnull_attribute, handle_sentinel_attribute,
7237         handle_noreturn_attribute, handle_malloc_attribute,
7238         handle_type_generic_attribute): New attribute handlers, from C fe.
7239         (gnat_internal_attribute_table): Map the new handlers.
7240         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
7241         (init_gigi_decls): ... here.
7242         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
7243         Move to a section dedicated to builtins processing.
7244         (build_void_list_node, builtin_type_for_size): New functions.
7245         (def_fn_type, get_nonnull_operand): Likewise.
7246         (install_builtin_elementary_type, install_builtin_function_types,
7247         install_builtin_attributes): Likewise.
7248         (fake_attribute_handler): Fake handler for attributes we don't
7249         support in Ada.
7250         (def_builtin_1): New function, worker for DEF_BUILTIN.
7251         (install_builtin_functions): New function.
7252         (gnat_install_builtins): Move to the builtins processing section.
7253         Now calling the newly introduced installers.
7254
7255 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7256
7257         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
7258         constant objects, but not exceptions.
7259         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
7260         compatibility test.
7261         * utils.c (create_var_decl_1): Likewise.
7262         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
7263         the type when copying to padded object and the source is a constructor.
7264
7265 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7266
7267         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
7268         alignment, reset it to zero if it would end up not being greater
7269         than that of the type.
7270
7271 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7272
7273         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
7274         the padded type has a variable size.
7275
7276 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7277
7278         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
7279         target pointer mechanism as soon as the size is not constant.
7280
7281 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7282
7283         * gigi.h (create_var_decl_1): Declare.
7284         (create_var_decl): Turn into a macro invoking create_var_decl_1.
7285         (create_true_var_decl): Likewise.
7286         * utils.c (create_var_decl_1): Make global and reorder parameters.
7287         (create_var_decl): Delete.
7288         (create_true_var_decl): Likewise.
7289
7290 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7291
7292         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
7293         objects by default.
7294         * fe.h (Debug_Flag_Dot_A): Delete.
7295         * debug.adb (-gnatd.a): Update documentation.
7296
7297 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
7298
7299         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
7300         "not null" parameter.
7301
7302 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
7303
7304         * g-socket.adb: Add a message "IPv6 not supported" to the
7305         Socket_Error exception.
7306
7307 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
7308
7309         PR ada/29015
7310         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
7311         the type is known instead of the underlying type.
7312
7313 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
7314
7315         PR ada/22387
7316         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7317         procedure for a derived type retrieve the discriminant values from
7318         the parent using the corresponding discriminant.
7319
7320 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
7321             Gary Dismukes  <dismukes@adacore.com>
7322
7323         PR ada/28733
7324         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
7325         which is not an entity (and hence not a package).
7326         (End_Use_Package): Ditto.
7327
7328 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
7329
7330         PR ada/16086
7331         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
7332         protected operation that matches the signature, not only an entry, a
7333         regular subprogram or a literal.
7334
7335 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7336
7337         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
7338         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
7339         if a size or alignment is specified.  Do not take into account
7340         alignment promotions for the computation of the object's size.
7341         <type>: Call maybe_pad_type only if a size or alignment is specified.
7342         (maybe_pad_type): Really reuse the RM_Size of the original type if
7343         requested.
7344         * trans.c (Attribute_to_gnu): Fix a couple of nits.
7345         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
7346         statements.  Use the padded view of the type when copying between
7347         padded objects of the same underlying type.
7348
7349 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7350
7351         * vms_data.ads: Fix typo in constant.
7352         * gen-soccon.c: Fix typo in error string.
7353         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
7354         Fix typos.
7355         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
7356         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
7357         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
7358         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
7359         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
7360         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
7361         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
7362         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
7363         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
7364         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
7365         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
7366         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
7367         sinfo.ads: Fix typos in comments.
7368
7369 2008-04-14  Robert Dewar  <dewar@adacore.com>
7370
7371         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
7372         to every non-object and change error message.
7373
7374 2008-04-14  Robert Dewar  <dewar@adacore.com>
7375
7376         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
7377         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
7378         directly.
7379
7380 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7381
7382         PR ada/18680
7383         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
7384         apply pragma Linker_Section on type.
7385
7386 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7387
7388         PR ada/16098
7389         * sem_prag.adb (Error_Pragma_Ref): New.
7390         (Process_Convention): Specialized message for non-local
7391         subprogram renaming. Detect the problem in homonyms as well.
7392
7393 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7394
7395         PR ada/15915
7396         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
7397         * sem_ch12.adb (Instantiate_Object): Use it.
7398         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
7399         storage pool denotes a variable as per RM 13.11(15).
7400
7401 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7402
7403         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
7404         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
7405
7406 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
7407
7408         PR ada/20822
7409         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
7410         line endings even on non-Unix platforms.
7411
7412 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
7413
7414         PR ada/35050
7415         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
7416         renaming information.
7417
7418 2008-04-13  Samuel Tardieu  <sam@rfc1149.net>
7419
7420         PR ada/17985
7421         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
7422         itself.
7423
7424 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7425
7426         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
7427         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
7428         snames.ads, sprint.adb, stand.ads, stringt.ads,
7429         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
7430         switch.ads, sysdep.c, table.adb, table.ads,
7431         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
7432         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
7433         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
7434         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
7435         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
7436         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
7437         Fix comment typos.
7438
7439         * sem_ch10.adb, sem_ch10.ads,
7440         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
7441         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
7442         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7443         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
7444         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
7445         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
7446         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
7447         sem_warn.ads: Fix comment typos.
7448
7449         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
7450         s-soflin.ads, s-stalib.ads, s-stausa.adb,
7451         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
7452         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7453         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
7454         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7455         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
7456         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
7457         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
7458         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
7459         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
7460         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
7461         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
7462         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
7463         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
7464         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
7465         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
7466         sem_cat.adb, sem_cat.ads: Fix comment typos.
7467
7468 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
7469
7470         PR ada/35825
7471         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
7472
7473 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
7474
7475         * s-linux-hppa.ads: Fix syntax errors.
7476
7477 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7478
7479         * gnat_ugn.texi: Fix typos.
7480         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
7481         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
7482         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
7483         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
7484         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
7485         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
7486         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
7487         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
7488         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
7489         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
7490         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
7491         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
7492         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
7493         s-osinte-darwin.ads, s-osinte-freebsd.ads,
7494         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
7495         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
7496         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
7497         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
7498         s-parame-hpux.ads, s-parame-vms-alpha.ads,
7499         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
7500         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
7501         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
7502         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
7503         s-rident.ads: Fix comment typos.
7504
7505 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
7506
7507         PR ada/28305
7508         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
7509         environment if generic instance is a top-level one.
7510
7511 2008-04-09  Doug Rupp  <rupp@adacore.com>
7512
7513         * decl.c (validate_size): Set minimum size for fat pointers same as
7514         access types. Code clean ups.
7515
7516         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
7517         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
7518
7519         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
7520
7521         * s-crtl.ads (malloc32) New function, alias for malloc
7522         (realloc32) New function, alias for realloc
7523
7524         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
7525
7526         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
7527         allocator size is 32 and default pointer size is 64.
7528         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
7529         lhs type if smaller, whatever the modes.
7530
7531         * gigi.h (malloc32_decl): New macro definition
7532
7533         * utils.c (init_gigi_decls): New malloc32_decl
7534         Various code clean ups.
7535
7536         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7537         Task_Address vice System.Address.
7538
7539         * s-taspri-vms.ads: Import System.Aux_DEC
7540         (Task_Address): New subtype of System.Aux_DEC.Short_Address
7541         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
7542
7543         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7544         Task_Address vice System.Address.
7545
7546         * s-inmaop-vms.adb: Import System.Task_Primitives
7547         (To_Address): Unchecked convert to Task_Address vice System.Address
7548
7549         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
7550         expires now.
7551         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
7552         (To_Address) Unchecked convert to Task_Address vice System.Address
7553
7554         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
7555
7556         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
7557
7558 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7559
7560         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
7561         (fdesc_type_node): Define.
7562         (null_fdesc_node): Likewise.
7563         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
7564         uses descriptors for vtables and the type comes from a dispatch table,
7565         return the descriptor type.
7566         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
7567         uses descriptors for vtables and the type comes from a dispatch table,
7568         build a descriptor in the static case and copy the existing one in the
7569         non-static case.
7570         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
7571         the type is a pointer-to-subprogram coming from a dispatch table,
7572         return the null descriptor.
7573         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
7574         vtables, the source type is the descriptor type and the target type
7575         is a pointer type, first build the pointer.
7576         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
7577         build the descriptor type and the null descriptor.
7578
7579 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7580
7581         * decl.c (prepend_attributes): Fix typo.
7582         * trans.c (Pragma_to_gnu): Likewise.
7583         * utils.c (gnat_genericize): Likewise.
7584
7585 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7586             Richard Kenner  <kenner@adacore.com>
7587
7588         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
7589         * decl.c (gnat_to_gnu_entity): Adjust for above change.
7590         <E_Record_Type>: Try to get a better form of the component for
7591         packing, even if it has an integral mode.
7592         <E_Record_Subtype>: Likewise.
7593         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
7594         exception suppressing the final conversion between record types.
7595
7596 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7597
7598         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
7599         alignment for space, promote the alignment of non-scalar variables with
7600         no size and alignment.
7601         * gigi.h (gnat_types_compatible_p): Declare.
7602         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
7603         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
7604         * utils.c (gnat_types_compatible_p) : New predicate.
7605         (convert): Use it throughout to test for cases where a mere view
7606         conversion is sufficient.
7607         * utils2.c (build_binary_op): Minor tweaks.
7608         (build_unary_op): Likewise.
7609
7610 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7611
7612         * decl.c (adjust_packed): Expand comment.
7613
7614 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
7615
7616         * s-tasuti.ads: Use Task_Address instead of System.Address.
7617
7618         * makeutl.adb (Path_Or_File_Name): New function
7619
7620         * nlists.ads, itypes.ads: Update comments.
7621
7622         * s-crtl.ads (malloc32, realloc32): New functions.
7623
7624         * s-auxdec.ads (Short_Address_Size): New constant.
7625
7626         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
7627
7628         * s-ststop.ads, s-ststop.adb: New file.
7629
7630         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
7631         Minor reformatting.
7632
7633 2008-04-08  Pascal Obry  <obry@adacore.com>
7634
7635         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
7636         (Stop_Bits_Number): New type.
7637         (Parity_Check): Likewise.
7638         (Set): Add parameter to set the number of stop bits and
7639         the parity. Parameter timeout is now a duration instead
7640         of a plain integer.
7641
7642         * g-sercom-linux.adb:
7643         Implement the stop bits and parity support for GNU/Linux.
7644         Fix handling of timeout, it must be given in tenth of seconds.
7645
7646         * g-sercom-mingw.adb:
7647         Implement the stop bits and parity support for Windows.
7648         Use new s-win32.ads unit instead of declaring Win32 services
7649         directly into this body.
7650         Update handling of timeout as now a duration.
7651
7652         * s-win32.ads, s-winext.ads: New files.
7653
7654 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7655             Arnaud Charlet  <charlet@adacore.com>
7656
7657         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
7658
7659         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
7660         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
7661
7662         * s-osinte-lynxos-3.ads,
7663         (Alternate_Stack): Remove when not needed. Simplify declaration
7664         otherwise.
7665         (Alternate_Stack_Size): New constant.
7666
7667         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
7668         'Unrestricted_Access.
7669
7670         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
7671         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
7672         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
7673         s-osinte-solaris.ads, s-osinte-vms.ads
7674         (SA_ONSTACK): New constant.
7675         (stack_t): New record type.
7676         (sigaltstack): New imported function.
7677         (Alternate_Stack): New imported variable.
7678         (Alternate_Stack_Size): New constant.
7679
7680         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
7681
7682         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
7683         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
7684         s-taspri-vms.ads (Task_Address): New subtype of System.Address
7685         (Task_Address_Size): New constant size of System.Address
7686         (Alternate_Stack_Size): New constant.
7687
7688         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
7689         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
7690         Establish the alternate stack if the platform makes use of n alternate
7691         signal stack for stack overflows.
7692         (Create_Task): Take into account the alternate stack in the stack size.
7693         (Initialize): Save the address of the alternate stack into the ATCB for
7694         the environment task.
7695         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
7696
7697         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
7698
7699         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
7700
7701         * s-intman-posix.adb:
7702         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
7703         alternate signal stack for stack overflows.
7704
7705         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
7706         x86-64, adjust the saved value of the stack pointer if the signal was
7707         raised by a stack checking probe.
7708         (HP-UX section): Use global __gnat_alternate_stack as signal handler
7709         stack and only for SIGSEGV.
7710         (Linux section): Likewise on x86 and x86-64.
7711         [VxWorks section]
7712         (__gnat_map_signal): Now static.
7713         (__gnat_error_handler): Not static any more.
7714         (__gnat_adjust_context_for_raise): New function. Signal context
7715         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
7716         propagation circuitry.
7717         (__gnat_error_handler): Second argument of a sigaction handler is a
7718         pointer, not an int, and is unused.
7719         Adjust signal context before mapping to exception.
7720         Install signal handlers for LynxOS case.
7721
7722         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
7723         (Task_Id): Set size to Task_Address_Size
7724         (To_Task_id): Unchecked convert from Task_Address vice System.Address
7725         (To_Address): Unchecked convert to Task_Address vice System.Address
7726
7727         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
7728         address into the ATCB if the platform makes use of an alternate signal
7729         stack for stack overflows.
7730         (Free_Task): Add call to Finalize_Attributes_Link.
7731         Add argument Relative_Deadline to pass the value specified for
7732         the task. This is not yet used for any target.
7733
7734         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
7735         the value specified for the task.
7736
7737 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
7738
7739         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
7740         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
7741         s-vxwext-rtp.adb): New files.
7742
7743         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
7744         Minor updates to accomodate changes above.
7745
7746 2008-04-08  Pascal Obry  <obry@adacore.com>
7747
7748         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
7749         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
7750         Use new s-win32.ads unit instead of declaration
7751         from s-osinte-mingw.ads.
7752
7753         * s-osinte-mingw.ads:
7754         Move all non tasking based interface to s-win32.ads.
7755
7756         * s-osprim-mingw.adb:
7757         Remove duplicated declarations and use s-win32.ads
7758         unit instead.
7759
7760 2008-04-08  Vincent Celier  <celier@adacore.com>
7761             Arnaud Charlet  <charlet@adacore.com>
7762
7763         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
7764         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
7765         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
7766         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7767         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
7768
7769         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
7770         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
7771         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
7772         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
7773         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
7774         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
7775         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
7776         mlib-tgt-specific-mingw.adb: New names.
7777
7778         * Makefile.in:
7779         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
7780         Get rid of gnatbl.
7781         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
7782         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
7783         Minor updates for VMS
7784
7785         * gnatbl.c: Removed.
7786
7787 2008-04-08  Thomas Quinot  <quinot@adacore.com>
7788
7789         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
7790         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
7791         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
7792         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
7793         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
7794         ASCII.NUL throughout.
7795
7796 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
7797             Matthew Heaney  <heaney@adacore.com>
7798
7799         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
7800         renaming.
7801
7802         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
7803         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
7804         to convention for non-RM specs.
7805         Add descriptive header, and documented each operation
7806         document each operation
7807
7808 2008-04-08  Robert Dewar  <dewar@adacore.com>
7809             Bob Duff  <duff@adacore.com>
7810             Gary Dismukes  <dismukes@adacore.com>
7811             Ed Schonberg  <schonberg@adacore.com>
7812
7813         * alloc.ads: Add entries for Obsolescent_Warnings table
7814
7815         * einfo.ads, einfo.adb: Minor reformatting.
7816         (Is_Discriminal): New subprogram.
7817         (Is_Prival): New subprogram.
7818         (Is_Protected_Component): New subprogram.
7819         (Is_Protected_Private): Removed.
7820         (Object_Ref, Set_Object_Ref): Removed.
7821         (Prival, Set_Prival): Change assertion.
7822         (Privals_Chain, Set_Privals_Chain): Removed.
7823         (Prival_Link, Set_Prival_Link): New subprogram.
7824         (Protected_Operation, Set_Protected_Operation): Removed.
7825         (Protection_Object, Set_Protection_Object): New subprogram.
7826         (Write_Field17_Name): Remove case for Object_Ref.
7827         (Write_Field20_Name): Add case for Prival_Link.
7828         (Write_Field22_Name): Remove case for Protected_Operation,
7829         Privals_Chain.
7830         Add case for Protection_Object.
7831         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
7832         so clients
7833         (Overlays_Constant): New flag
7834         (Is_Constant_Object): New predicate
7835         (Is_Standard_Character_Type): New predicate
7836         (Optimize_Alignment_Space): New flag
7837         (Optimize_Alignment_Time): New flag
7838         (Has_Postconditions): New flag
7839         (Obsolescent_Warrning): Field removed
7840         (Spec_PPC_List): New field
7841         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
7842         subprograms to get and set the relative deadline associated to a task.
7843
7844         * exp_attr.adb (May_Be_External_Call): Account for the case where the
7845         Access attribute is part of a named parameter association.
7846         (Expand_Access_To_Protected_Op): Test for the attribute occurring
7847         within an init proc and use that directly as the scope rather than
7848         traversing up to the protected operation's enclosing scope. Only apply
7849         assertion on Is_Open_Scopes in the case the scope traversal is done.
7850         For the init proc case use the address of the first formal (_init) as
7851         the protected object reference.
7852         Implement Invalid_Value attribute
7853         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
7854         contents of the dispatch table there is no need to duplicate the
7855         itypes associated with record types (i.e. the implicit full view
7856         of private types).
7857         Implement Enum_Val attribute
7858         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
7859         within _Postconditions procedure
7860         (Expand_N_Attribute_Reference, case Result): Implement new attribute
7861
7862         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
7863         a return statement calls a function that is not available in
7864         configurable runtime.
7865         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
7866         (Expand_Non_Function_Return): Generate call to _Postconditions proc
7867         (Expand_Simple_Function_Return): Ditto
7868
7869         * frontend.adb: Add call to Sem_Aux.Initialize
7870
7871         * sem_aux.ads, sem_aux.adb: New file.
7872
7873         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
7874         Add new Pragma_Relative_Deadline.
7875         Add support for pragmas Check and Check_Policy
7876
7877         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
7878         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
7879         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
7880         missing check because they are not allowed in CPP tagged types.
7881         Add Sure parameter to Note_Possible_Modification calls
7882         Add implementation of Invalid_Value attribute
7883         Implement new attribute Has_Tagged_Values
7884         Implement Enum_Val attribute
7885         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
7886         generated attributes.
7887         (Analyze_Attribute, case Result): If prefix of the attribute is
7888         overloaded, it always resolves to the enclosing function.
7889         (Analyze_Attribute, case Result): Properly deal with analysis when
7890         Postconditions are not active.
7891         (Resolve_Attribute, case Result): Properly deal with appearence during
7892         preanalysis in spec.
7893         Add processing for attribute Result
7894
7895         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
7896         for operators.
7897         (Analyze_Subprogram_Body): Install private_with_clauses when the body
7898         acts as a spec.
7899         (Check_Inline_Pragma): recognize an inline pragma that appears within
7900         the subprogram body to which it applies.
7901         (Analyze_Function_Return): Check that type of the expression of a return
7902         statement in a function with a class-wide result is not declared at a
7903         deeper level than the function.
7904         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
7905         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
7906         user- defined operators.
7907         (Install_Formals): Moved to spec to allow use from Sem_Prag for
7908         analysis of precondition/postcondition pragmas.
7909         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
7910         Last_Formal, along with lots of comments on what this is about
7911         (Analyze_Subprogram_Body): Fix case where we move entities from the
7912         spec to the body when there are no body entities (now possible with
7913         precondition and postcondition pragmas).
7914         (Process_PPCs): New procedure
7915         (Analyze_Subprogram_Body): Add call to Process_PPCs
7916
7917         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
7918         clause.
7919         (Pop_Scope): Restore Check_Policy_List on scope exit
7920         (Push_Scope): Save Check_Policy_List on scope entry
7921         Change name In_Default_Expression      => In_Spec_Expression
7922         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
7923         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
7924         (Analyze_Object_Renaming): Allow 'Reference as object
7925         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
7926         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
7927         of restriction identifier.
7928         Add Sure parameter to Note_Possible_Modication calls
7929
7930         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
7931         Don't check for primitive operations when calling Rep_Item_Too_Late.
7932         (Process_Import_Or_Interface): Do not place flag on formal
7933         subprograms.
7934         (Analyze_Pragma, case Export): If the entity is a deferred constant,
7935         propagate information to full view, which is the one elaborated by the
7936         back-end.
7937         (Make_Inline): the pragma is effective if it applies to an internally
7938         generated subprogram declaration for a body that carries the pragma.
7939         (Analyze_Pragma, case Optimize_Alignment): Set new flag
7940         Optimize_Alignment_Local.
7941         (Analyze_PPC_In_Decl_Part): New procedure
7942         (Get_Pragma_Arg): Moved to outer level
7943         (Check_Precondition_Postcondition): Change to allow new visibility
7944         rules for package spec
7945         (Analyze_Pragma, case Check_Policy): Change placement rules to be
7946         same as pragma Suppress/Unsuppress.
7947         Change name In_Default_Expression      => In_Spec_Expression
7948         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
7949         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
7950         (Check_Precondition_Postcondition): Do proper visibility preanalysis
7951         for the case of these pragmas appearing in the spec.
7952         (Check_Enabled): New function
7953         (Initialize): New procedure
7954         (Tree_Read): New procedure
7955         (Tree_Write): New procedure
7956         (Check_Precondition_Postcondition): New procedure
7957         Implement pragmas Check and Check_Policy
7958         Merge Assert processing with Check
7959
7960         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
7961         New warning flag -gnatw.e
7962
7963         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
7964         returning whether a task (or main procedure) has a pragma
7965         Relative_Deadline.
7966         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
7967         (or main procedure) has a pragma Relative_Deadline.
7968         Add Next_Pragma field to N_Pragma node
7969         (PPC_Enabled): New flag
7970         (Next_Pragma): Now used for Pre/Postcondition processing
7971
7972         * snames.h, snames.ads, snames.adb: New standard name
7973         Inherit_Source_Path
7974         Add entry for 'Invalid_Value attribute
7975         Add entry for new attribute Has_Tagged_Values
7976         Add entry for Enum_Val attribute
7977         Add new standard names Aggregate, Configuration and Library.
7978         Add _Postconditions
7979         Add _Result
7980         Add Pragma_Precondition
7981         Add Pragma_Postcondition
7982         Add Attribute_Result
7983         New standard name Archive_Builder_Append_Option
7984         (Preset_Names): Add _relative_deadline and relative_deadline definitions
7985         There was also a missing non_preemptive_within_priorities.
7986         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
7987         Relative_Deadline.
7988         Add support for pragmas Check and Check_Policy
7989
7990         * tree_gen.adb: Call Sem_Aux.Tree_Write
7991
7992         * tree_in.adb: Call Sem_Aux.Tree_Read
7993
7994         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
7995         sequence
7996
7997         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
7998         sequence
7999
8000         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
8001         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
8002         Relative_Deadline.
8003         (Expand_Pragma_Check): New procedure
8004
8005         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
8006         buffer.
8007
8008         * sinfo.adb (PPC_Enabled): New flag
8009
8010 2008-04-08  Robert Dewar  <dewar@adacore.com>
8011             Gary Dismukes  <dismukes@adacore.com>
8012             Javier Miranda  <miranda@adacore.com>
8013             Ed Schonberg  <schonberg@adacore.com>
8014
8015         * fe.h: Remove global Optimize_Alignment flag, no longer used
8016
8017         * layout.adb: Test Optimize_Alignment flags rather than global switch
8018
8019         * lib.ads, lib.adb: New OA_Setting field in library record
8020
8021         * lib-load.adb: New OA_Setting field in library record
8022
8023         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
8024         units mentioned in limited_with_ clauses in the ali file, with an
8025         'Y' marker.
8026         New Ox fields in U line
8027
8028         * opt.adb: New flag Optimize_Alignment_Local
8029         (Check_Policy_List[_Config]): New flags
8030
8031         * opt.ads (Invalid_Value_Used): New flag
8032         New switch Optimize_Alignment_Local
8033         (Warn_On_Parameter_Order): New flag
8034         (Check_Policy_List[_Config]): New flags
8035
8036         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
8037         limited_with clauses.
8038         New data structures for Optimize_Alignment
8039
8040         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
8041         New procedure
8042         (Check_Consistent_Optimize_Alignment): Rework for new structure
8043         (Check_Consistent_Restrictions): Fix incorrect error message
8044
8045         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
8046         created class-wide type (to the Parent field of the specific type).
8047         (Install_Siblings): Handle properly private_with_clauses on subprogram
8048         bodies and on generic units.
8049         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
8050         illegal limited_with_clause that names a non-existent package.
8051         (Check_Body_Required): Determine whether a unit named a limited_with
8052         clause needs a body.
8053         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
8054         Capture Optimize_Alignment settings to set new OA_Setting field in
8055         library record.
8056         (Build_Limited_Views): Include task and protected type declarations.
8057
8058         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
8059         case of a possible constant redeclaration where the current object is
8060         an entry index constant.
8061         (Analyze_Object_Declaration): Generate an error in case of CPP
8062         class-wide object initialization.
8063         (Analyze_Object_Declaration): Add extra information on warnings for
8064         declaration of unconstrained objects.
8065         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
8066         conflicts with the setting of Stored_Constraint in the case where the
8067         access type entity has already been created as an E_Incomplete_Type due
8068         to a limited with clause.
8069         Use new Is_Standard_Character_Type predicate
8070         (Analyze_Object_Declaration): Apply access_constant check only after
8071         expression has been resolved, given that it may be overloaded with
8072         several access types.
8073         (Constant_Redeclaration): Additional legality checks for deferred
8074         constant declarations tha involve anonymous access types and/or null
8075         exclusion indicators.
8076         (Analyze_Type_Declaration): Set Optimize_Alignment flags
8077         (Analyze_Subtype_Declaration): Ditto
8078         (Analyze_Object_Declaration): Ditto
8079         (Analyze_Object_Declaration): Don't count tasks in generics
8080         Change name In_Default_Expression      => In_Spec_Expression
8081         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8082         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
8083         (Process_Discriminants): Additional check for illegal use of default
8084         expressions in access discriminant specifications in a type that is not
8085         explicitly limited.
8086         (Check_Abstract_Overriding): If an inherited function dispaches on an
8087         access result, it must be overridden, even if the type is a null
8088         extension.
8089         (Derive_Subprogram): The formals of the derived subprogram have the
8090         names and defaults of the parent subprogram, even if the type is
8091         obtained from the actual subprogram.
8092         (Derive_Subprogram): In the presence of interfaces, a formal of an
8093         inherited operation has the derived type not only if it descends from
8094         the type of the formal of the parent operation, but also if it
8095         implements it. This is relevant for the renamings created for the
8096         primitive operations of the actual for a formal derived type.
8097         (Is_Progenitor): New predicate, to determine whether the type of a
8098         formal in the parent operation must be replaced by the derived type.
8099
8100         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
8101         predicate recursive to handle components that have a user-defined
8102         Initialize procedure. Handle controlled derived types whose ancestor
8103         has a user-defined Initialize procedured.
8104         (Note_Possible_Modification): Add Sure parameter, generate warning if
8105         sure modification of constant
8106         Use new Is_Standard_Character_Type predicate
8107         (Find_Parameter_Type): when determining whether a protected operation
8108         implements an interface operation, retrieve the type of the formal from
8109         the entity when the formal is an access parameter or an
8110         anonymous-access-to-subprogram.
8111         Move Copy_Parameter_List to sem_util, for use when building stubbed
8112         subprogram bodies.
8113         (Has_Access_Values): Tagged types now return False
8114         (Within_HSS_Or_If): New procedure
8115         (Set_Optimize_Alignment_Flags): New procedure
8116         Change name In_Default_Expression      => In_Spec_Expression
8117         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8118         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
8119
8120 2008-04-08  Tristan Gingold  <gingold@adacore.com>
8121
8122         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
8123
8124 2008-04-08  Tristan Gingold  <gingold@adacore.com>
8125
8126 PR ada/10768
8127
8128         * cuintp.c: Fix 16 bits issue for AVR.
8129         On AVR, integer is 16 bits, so it can't be used to do math with
8130         Base (=32768).
8131         So use long_integer instead.
8132
8133 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8134
8135         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
8136         System.OS_Primitives.
8137         Change type of various constants, parameters and local variables from
8138         Time to representation type OS_Time.
8139         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
8140         Remove the declaration of constant Mili_F from several routines. New
8141         body for internal package Conversions_Operations.
8142         (Time_Of): Add default parameters for several formals.
8143
8144         * a-caldel.adb: Minor reformatting
8145
8146         * a-calend.ads, a-calend.adb: New body for internal package
8147         Conversions_Operations.
8148         (Time_Of): Add default parameters for several formals.
8149
8150         * Makefile.rtl: Add a-ststop
8151         Add Ada.Calendar.Conversions to the list of runtime files.
8152         Add g-timsta
8153
8154         * a-calcon.adb, a-calcon.ads: New files.
8155
8156 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
8157             Tristan Gingold  <gingold@adacore.com>
8158
8159         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
8160         (Install_Restricted_Handlers): New procedure
8161         which is a simplified version of Install_Handlers that does not store
8162         previously installed.
8163
8164         * s-interr-vxworks.adb: Fix ACATS cxc3001
8165         On VxWorks interrupts can't be detached.
8166         (Install_Restricted_Handlers): New procedure.
8167
8168         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
8169         procedure.
8170
8171 2008-04-08  Olivier Hainque  <hainque@adacore.com>
8172
8173         * s-intman-vxworks.ads, s-intman-vxworks.adb
8174         (Map_And_Raise_Exception): Remove. Was an import of only part of the
8175         required services already implemented elsewhere.
8176         (Notify_Exception): Delete body, import __gnat_error_handler instead.
8177         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
8178         argument passed to the handler, which we need for ZCX propagation
8179         purposes.
8180
8181 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8182
8183         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
8184
8185         * g-timsta.adb, g-timsta.ads: New files.
8186
8187 2008-04-08  Robert Dewar  <dewar@adacore.com>
8188
8189         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
8190         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
8191         (Raise_Exception_Always): Fix documentation accordingly
8192
8193 2008-04-08  Robert Dewar  <dewar@adacore.com>
8194
8195         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
8196         Stream_Convert)
8197
8198         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
8199         FOnly
8200
8201 2008-04-08  Javier Miranda  <miranda@adacore.com>
8202             Robert Dewar  <dewar@adacore.com>
8203             Ed Schonberg  <schonberg@adacore.com>
8204
8205         * a-tags.adb (Register_Interface_Offset): New subprogram.
8206         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
8207         (To_Predef_Prims_Table_Ptr): Removed.
8208         (Acc_Size): Removed.
8209         (To_Acc_Size): Removed.
8210         (Parent_Size): Modified to the call the subprogram returning the size of
8211         the parent by means of the new TSD component Size_Func.
8212
8213         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
8214         (DT_Offset_To_Top_Offset): New constant value that is used to generate
8215         code referencing the Offset_To_Top component of the dispatch table's
8216         prologue.
8217         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
8218         use of 'address to initialize dispatch table slots.
8219         (Size_Func): New component of the TSD. Used by the run-time to call the
8220         size primitive of the tagged type.
8221
8222         * checks.adb (Apply_Access_Check): Avoid check when accessing the
8223         Offset_To_Top component of a dispatch table.
8224         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
8225         deferred constant declaration. do not add a null expression, to prevent
8226         spurious errors when full declaration is analyzed.
8227         (Apply_Discriminant_Check): If both discriminant constraints share a
8228         node which is not static but has no side effects, do not generate a
8229         check for that discriminant.
8230         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
8231         subexpr, since the prefix of an attribute is a name.
8232
8233         * checks.ads: Fix nit in comment.
8234
8235         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
8236         and body of predefined primitives in case of CPP tagged type
8237         derivations.
8238         (Freeze_Type): Deal properly with no storage pool case
8239         (Make_Predefined_Primitive_Specs): Generate specification of abstract
8240         primitive Deep_Adjust if a nonlimited interface is derived from a
8241         limited interface.
8242         (Build_Dcheck_Functions): Create discriminant-checking functions only
8243         for variants that have some component(s).
8244         (Build_Slice_Assignment): In expanded code for slice assignment, handle
8245         properly the case where the slice bounds extend to the last value of the
8246         underlying representation.
8247         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
8248         (Is_Variable_Size_Record): An array component has a static size if
8249         index bounds are enumeration literals.
8250
8251         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
8252         an external tag has been specified for the type.
8253         (Building_Static_DT): Add missing support for private types.
8254         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
8255         to the entity associated with the parent of Typ. This is done to
8256         avoid wrong access when the parent is a private type.
8257         (Expand_Interface_Conversion): Improve error message when the
8258         configurable runtime has no support for dynamic interface conversion.
8259         (Expand_Interface_Thunk): Add missing support to interface types in
8260         configurable runtime.
8261         (Expand_Dispatching_Call): remove obsolete code.
8262         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
8263         ensure that all subtypes and aggregates associated with dispatch
8264         tables have the attribute Is_Dispatch_Table_Entity set to true.
8265         (Register_Primitive): Rename one variable to improve code reading.
8266         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
8267         of the pointer to the 'size primitive in the TSD.
8268
8269         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
8270         (RE_Offset_To_Top_Ptr): New entity.
8271         (RE_Register_Interface_Offset): New entity.
8272         (RE_Set_Dynamic_Offset_To_Top): New entity.
8273         (RE_Set_Offset_To_Top): Removed entity.
8274         (RE_Prim_Ptr): New entity
8275         (RE_Size_Func): New entity
8276         (RE_Size_Ptr): New entity
8277         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
8278         (Ada_Dispatching_Child): Define this new subrange.
8279         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
8280          RE_Time_Span, and RE_Time_Span_Zero).
8281         (RE_Unit_Table): Add new required run-time calls
8282
8283         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
8284         children.
8285
8286         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
8287         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
8288          initializes the Offset_To_Top component of a dispatch table.
8289         (Build_Predef_Prims): Removed.
8290         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
8291          its actual code.
8292         (Build_Set_Size_Function): New subprogram.
8293
8294         * exp_ch13.adb: Do not generate storage variable for storage_size zero
8295         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
8296
8297 2008-04-08  Robert Dewar  <dewar@adacore.com>
8298
8299         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
8300         computing Fore when Exp > 0
8301
8302 2008-04-08  Robert Dewar  <dewar@adacore.com>
8303
8304         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
8305
8306         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
8307         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
8308
8309         * fmap.adb: Remove Big_String declarations (now in Types)
8310         (No_Mapping_File): New Boolean global variable
8311         (Initialize): When mapping file cannot be read, set No_Mapping_File to
8312         False.
8313         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
8314         tables were empty before adding entries, open the mapping file
8315         with Truncate = True, instead of delete/re-create.
8316
8317         * fname-sf.adb: Remove Big_String declarations (now in Types)
8318
8319         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
8320         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
8321         big pointer types
8322
8323         * table.ads: Add for Table_Ptr'Storage_Size use 0
8324
8325         * types.ads: Add Big_String declarations
8326         Add Size_Clause of zero for big pointer types
8327
8328 2008-04-08  Vincent Celier  <celier@adacore.com>
8329
8330         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
8331         (Usage): Add line for switch --subdirs=
8332         Add new switch -eL, to follow symbolic links when processing project
8333         files.
8334
8335         * gnatcmd.adb: Process switches -eL and --subdirs=
8336         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
8337         Program_Name to get proper tool names when AAMP_On_Target is set.
8338         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
8339         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
8340         Osint.Program_Name).
8341
8342         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
8343         (Usage): Add lines for switches -eL and --subdirs=
8344
8345         * makeusg.adb: Add line for switch --subdirs=
8346
8347         * prj.ads:
8348         (Source_Data): New Boolean component Compiled, defaulted to True
8349         (Empty_File_Name: New global variable in private part, initialized in
8350         procedure Initialize.
8351         (Subdirs_Option): New constant string
8352         (Subdirs): New String_Ptr global variable
8353         (Language_Config): New component Include_Compatible_Languages
8354         (Project_Qualifier): New type for project qualifiers
8355         (Project_Data): New component Qualifier
8356         (Project_Configuration): New component Archive_Builder_Append_Option
8357
8358         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
8359         another imported project indicate the name of this imported project.
8360         (Check_File): When a unit is in two project files, indicate the project
8361         names and the paths of the source files for each project.
8362         (Add_Source): Set Compiled to False if compiler driver is empty. Only
8363         set object, dependency and switches file names if Compiled is True.
8364         (Process_Compiler): Allow the empty string for value of attribute Driver
8365         (Get_Directories): When Subdirs is not null and Object_Dir is not
8366          specified, locate and create if necessary the actual object dir.
8367         (Locate_Directory): When Subdirs is not empty and Create is not the
8368         empty string, locate and create if necessary the actual directory
8369         as a subdirectory of directory Name.
8370         (Check_Library_Attributes.Check_Library): Allow a project where the only
8371         "sources" are header files of file based languages to be imported by
8372         library projects, in multi-language mode (gprbuild).
8373         (Check_Library_Attributes.Check_Library): In multi-language mode
8374         (gprbuild), allow a library project to import a project with no
8375         sources, even when this is not declared explicitly.
8376         (Check_If_Externally_Built): A virtual project extending an externally
8377         built project is also externally built.
8378         (Check_Library_Attributes): For a virtual project extending a library
8379         project, inherit the library directory.
8380         (Process_Project_Level_Array_Attributes): Process new attribute
8381         Inherit_Source_Path.
8382         For projects with specified qualifiers "standard", "library" or
8383         "abstract", check that the project conforms to the qualifier.
8384         (Process_Project_Level_Simple_Attributes): Process new attribute
8385          Archive_Builder_Append_Option.
8386
8387         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
8388         (Normalize_Compiler_Switches): Only keep compiler switches that are
8389         passed to gnat1 by the gcc driver and that are stored in the ALI file
8390         by gnat1.
8391         Do not take into account switc -save-temps
8392
8393         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
8394         gprmake is called with -eL.
8395         (Scan_Arg): Recognize switch -eL
8396         (Usage): Add line for switch -eL
8397
8398         * prj.adb (Initialize): Initialize Empty_File_Name
8399         (Project_Empty): New component Qualifier
8400
8401         * prj-attr.ads, prj-attr.adb: New project level attribute
8402         Inherit_Source_Path.
8403         New project level attribute Archive_Builder_Append_Option
8404
8405         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
8406
8407         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
8408         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
8409         upward compatibility.
8410
8411         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
8412         each Trying ..." on different lines.
8413         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
8414         is "configuration" when not in configuration. Fail when in configuration
8415         when a specified qualifier is other than "configuration".
8416
8417         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
8418         full associative array together.
8419         (Recursive_Process): Put the project qualifier in the project data
8420
8421         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
8422         (Set_Project_Qualifier_Of): New procedure
8423
8424 2008-04-08  Robert Dewar  <dewar@adacore.com>
8425
8426         * errout.ads: Update comments for new handling of info: messages
8427
8428         * erroutc.adb (Matches): New procedure
8429         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
8430         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
8431          info messages as well as style messages.
8432
8433         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
8434
8435         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
8436         subprograms.
8437         (Check_A_Call): Special "info: " warnings now have ? in the text
8438         (Elab_Warning): Use info message in static case
8439
8440 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
8441
8442         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
8443         whether an array aggregate with static bounds and scalar components
8444         should be expanded into a static constant.
8445
8446 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
8447             Ed Schonberg  <schonberg@adacore.com>
8448             Robert Dewar  <dewar@adacore.com>
8449
8450         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
8451         Has_Stream_Attribute_ Definition when checking for available stream
8452         attributes on parameters of a limited type in Ada 2005. Necessary for
8453         proper recognition of visible stream attribute clauses.
8454         (Has_Stream_Attribute_Definition): If the type is derived from a
8455         private type, then use the derived type's underlying type for checking
8456         whether it has stream attributes.
8457         (Validate_Object_Declaration): The check for a user-defined Initialize
8458         procedure applies also to types with controlled components or a
8459         controlled ancestor.
8460         Reject an object declaration in a preelaborated unit if the type is a
8461         controlled type with an overriding Initialize procedure.
8462         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
8463         checking when the parent of a dereference is a selected component and
8464         the name has not been analyzed.
8465
8466         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
8467         prefixes that are invalid explicit dereferences of remote
8468         access-to-class-wide values, first checking whether the selected
8469         component is a prefixed form of call to a tagged operation.
8470         (Analyze_Call): Remove code that issues an error for limited function
8471         calls in illegal contexts, as we now support all of the contexts that
8472         were forbidden here.
8473         Allow a function call that returns a task.and appears as the
8474         prefix of a selected component.
8475         (Analyze_Reference): Give error message if we try to make a 'Reference
8476         for an object that is atomic/aliased without its type having the
8477         corresponding attribute.
8478         (Analyze_Call): Remove condition checking for attributes to allow
8479         calls to functions with inherently limited results as prefixes of
8480         attributes. Remove related comment about Class attributes.
8481         (Analyze_Selected_Component): If the prefix is a remote type, check
8482         whether this is a prefixed call before reporting an error.
8483         (Complete_Object_Operation): If the controlling formal is an access to
8484         variable reject an actual that is a constant or an access to one.
8485         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8486         primitive operations from base type.
8487
8488         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
8489         build-in-place
8490         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8491         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
8492         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8493         (Expand_N_Slice): Test for prefix that is a build-in-place function call
8494         and call Make_Build_In_Place_Call_In_Anonymous_Context.
8495         (Analyze_Call): Remove code that issues an error for limited function
8496         calls in illegal contexts, as we now support all of the contexts that
8497         were forbidden here.
8498         New calling sequence for Get_Simple_Init_Val
8499         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
8500         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
8501
8502 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8503             Ed Schonberg  <schonberg@adacore.com>
8504             Robert Dewar  <dewar@adacore.com>
8505
8506         * exp_ch2.adb: Minor reformatting.
8507         (Expand_Entry_Index_Parameter): Set the type of the identifier.
8508         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
8509         (Expand_Protected_Component): New routine.
8510         (Expand_Protected_Private): Removed.
8511         Add Sure parameter to Note_Possible_Modification calls
8512
8513         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
8514         generated subprogram declaration must inherit the overriding indicator
8515         from the instantiation node.
8516         (Validate_Access_Type_Instance): If the designated type of the actual is
8517         a limited view, use the available view in all cases, not only if the
8518         type is an incomplete type.
8519         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
8520         and the actual subtype does not exclude null.
8521         (Process_Default): Handle properly abstract formal subprograms.
8522         (Check_Formal_Package_Instance): Handle properly defaulted formal
8523         subprograms in a partially parameterized formal package.
8524         Add Sure parameter to Note_Possible_Modification calls
8525         (Validate_Derived_Type_Instance): if the formal is non-limited, the
8526         actual cannot be limited.
8527         (Collect_Previous_Instances): Generate instance bodies for subprograms
8528         as well.
8529
8530         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
8531         try to set RM_Size.
8532         Add Sure parameter to Note_Possible_Modification calls
8533         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
8534         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
8535         constant overlaid by variable and issue warning.
8536         Use new Is_Standard_Character_Type predicate
8537         (Analyze_Record_Representation_Clause): Check that the specified
8538         Last_Bit is not less than First_Bit - 1.
8539         (Analyze_Attribute_Definition_Clause, case Address): Check for
8540         self-referential address clause
8541
8542         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
8543         detection mechanism when the lhs is a prival.
8544         (Analyze_Assignment): Call Check_Unprotected_Access to detect
8545         assignment of a pointer to protected data, to an object declared
8546         outside of the protected object.
8547         (Analyze_Loop_Statement): Check for unreachable code after loop
8548         Add Sure parameter to Note_Possible_Modication calls
8549         Protect analysis from previous syntax error such as a scope mismatch
8550         or a missing begin.
8551         (Analyze_Assignment_Statement): The assignment is illegal if the
8552         left-hand is an interface.
8553
8554         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
8555         violation of restriction No_Implicit_Conditionals
8556         Add Sure parameter to Note_Possible_Modication calls
8557         Use new Is_Standard_Character_Type predicate
8558         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
8559         call as operator. Fixes problems (e.g. validity checking) which
8560         come from the result looking as though it does not come from source).
8561         (Resolve_Call): Check case of name in named parameter if style checks
8562         are enabled.
8563         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
8564         from the checking that such calls should not occur from an entry body.
8565         (Resolve_Call): If the return type of an Inline_Always function
8566         requires the secondary stack, create a transient scope for the call
8567         if the body of the function is not available for inlining.
8568         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
8569         that are actuals for in-out formals.
8570         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8571         primitive operations from base type.
8572         (Analyze_Selected_Component): If the context is a call to a protected
8573         operation the parent may be an indexed component prior to expansion.
8574         (Resolve_Actuals): If an actual is of a protected subtype, use its
8575         base type to determine whether a conversion to the corresponding record
8576         is needed.
8577         (Resolve_Short_Circuit): Handle pragma Check
8578
8579         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
8580         Use new Is_Standard_Character_Type predicate
8581         (Eval_Relational_Op): Catch more cases of string comparison
8582
8583 2008-04-08  Robert Dewar  <dewar@adacore.com>
8584             Gary Dismukes  <dismukes@adacore.com>
8585
8586         * s-rident.ads: Add No_Default_Initialization restriction
8587
8588         * exp_tss.adb:
8589         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
8590         (Set_TSS): Handle No_Default_Initialization case
8591
8592         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
8593         No_Default_Initialization
8594         (Expand_N_Subprogram_Body): Remove redundant initialization of out
8595         parameters when Normalize_Scalars is active.
8596         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
8597         Fix casing error in formal parameter name in call
8598         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
8599         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8600         dispatching call on VM targets.
8601
8602 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
8603             Thomas Quinot  <quinot@adacore.com>
8604
8605         * exp_ch7.adb (Find_Final_List): Change the test for generating a
8606         selected component from an access type's Associated_Final_Chain to
8607         check for the presence of that field, rather than assuming it exists
8608         for all named access types.
8609         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
8610         procedure to call at the end of the generated cleanup procedure.
8611         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
8612         and an At_End_Proc already exists in the handled sequence of statements
8613         for which cleanup actions are being expanded, the original cleanup
8614         action must be preserved.
8615
8616 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8617             Ed Schonberg  <schonberg@adacore.com>
8618             Robert Dewar  <dewar@adacore.com>
8619             Gary Dismukes  <dismukes@adacore.com>
8620
8621         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
8622         Build_Unprotected_Subprogram_Body): Generate debug info for
8623         declarations related to the handling of private data in task and
8624         protected types.
8625         (Debug_Private_Data_Declarations): New subprogram.
8626         (Install_Private_Data_Declarations): Remove all debug info flagging.
8627         This is now done by Debug_Private_Data_Declarations at the correct
8628         stage of expansion.
8629         (Build_Simple_Entry_Call): If the task name is a function call, expand
8630         the prefix into an object declaration, and make the surrounding block a
8631         task master.
8632         (Build_Master_Entity): An internal block is a master if it wraps a call.
8633         Code reformatting, update comments. Code clean up.
8634         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
8635         (Replicate_Entry_Formals): If the formal is an access parameter or
8636         anonymous access to subprogram, copy the original tree to create new
8637         entities for the formals of the subprogram.
8638         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
8639         for tasks to store the value passed using pragma Relative_Deadline.
8640         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
8641         run-time call to create a task.
8642         (Build_Wrapper_Spec): If the controlling argument of the interface
8643         operation is an access parameter with a non-null indicator, use the
8644         non-null indicator on the wrapper.
8645
8646         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
8647         present, which it may not be in the case where the type entity is an
8648         incomplete view brought in by a limited with.
8649         (Analyze_Task_Type): Only retrieve the full view when present, which it
8650         may not be in the case where the type entity is an incomplete view brought
8651         in by a limited with.
8652         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
8653         private components of a protected type, to prevent the generation of freeze
8654         nodes for which there is no proper scope of elaboration.
8655
8656         * exp_util.ads, exp_util.adb
8657         (Remove_Side_Effects): If the expression is a function call that returns a
8658         task, expand into a declaration to invoke the build_in_place machinery.
8659         (Find_Protection_Object): New routine.
8660         (Remove_Side_Effects): Also make a copy of the value
8661         for attributes whose result is of an elementary type.
8662         (Silly_Boolean_Array_Not_Test): New procedure
8663         (Silly_Boolean_Array_Xor_Test): New procedure
8664         (Is_Volatile_Reference): New function
8665         (Remove_Side_Effects): Use Is_Volatile_Reference
8666         (Possible_Bit_Aligned_Component): Handle slice case properly
8667
8668         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
8669         case test to Exp_Util
8670         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
8671
8672 2008-04-08  Thomas Quinot  <quinot@adacore.com>
8673
8674         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
8675         in call
8676         (Add_RACW_Features): When processing an RACW in another unit than the
8677         main unit, set Body_Decls to No_List to indicate that the bodies of
8678         the type's TSS must not be generated.
8679         (GARLIC_Support.Add_RACW_Read_Attribute,
8680         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
8681         Body_Decls is No_List.
8682         (PolyORB_Support.Add_RACW_Read_Attribute,
8683         PolyORB_Support.Add_RACW_Write_Attribute,
8684         PolyORB_Support.Add_RACW_From_Any,
8685         PolyORB_Support.Add_RACW_To_Any,
8686         PolyORB_Support.Add_RACW_TypeCode): Same.
8687         (Transmit_As_Unconstrained): New function.
8688         (Build_Ordered_Parameters_List): Use the above to order parameters.
8689         (GARLIC_Support.Build_General_Calling_Stubs):
8690         Use the above to determine which parameters to unmarshall using 'Input
8691         at the point where their temporary is declared (as opposed to later on
8692         with a 'Read call).
8693         (PolyORB_Support.Build_General_Calling_Stubs):
8694         Use the above to determine which parameters to unmarshall using From_Any
8695         at the point where their temporary is declared (as opposed to later on
8696         with an assignment).
8697
8698 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
8699
8700         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
8701         an Input function for an access type, do not perform default
8702         initialization on the local variable that receives the value, to
8703         prevent spurious warnings when the type is null-excluding.
8704
8705 2008-04-08  Robert Dewar  <dewar@adacore.com>
8706             Ed Schonberg  <schonberg@adacore.com>
8707
8708         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
8709         units.
8710         (Size_Known): Generic formal scalar types have known at compile
8711         time size, so remove check.
8712         Fix casing error in formal parameter name in call
8713         (Freeze_Subprogram): If the subprogram is a user-defined operator,
8714         recheck its overriding indication.
8715
8716 2008-04-08  Vincent Celier  <celier@adacore.com>
8717
8718         * gnat1drv.adb: Send all messages indicating an error to standard error
8719
8720 2008-04-08  Robert Dewar  <dewar@adacore.com>
8721
8722         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
8723         (List_Applicable_Restrictions): Do not list existing restrictions
8724
8725 2008-04-08  Thomas Quinot  <quinot@adacore.com>
8726
8727         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
8728         add a pointer to generic sockets literature
8729         do not mention that the given example is "typical" usage.
8730         Remove obsolete comment about multicast not being supported on Windows.
8731         (Connect_Socket): Make Server mode IN rather than IN OUT
8732         since this formal is never modified.
8733
8734 2008-04-08  Robert Dewar  <dewar@adacore.com>
8735
8736         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
8737         the declaration for some different entity.
8738         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
8739         list is precent (following the parent subtype indication), display
8740         appropriate "and" keyword.
8741
8742         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
8743         Remove unnecessary calls to Init_Size_Align and Init_Esize.
8744         Add notes on use of Parent field of an Itype
8745
8746 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
8747             Robert Dewar  <dewar@adacore.com>
8748             Gary Dismukes  <dismukes@adacore.com>
8749
8750         * lib-xref.adb (Is_On_LHS): Remove dead code
8751         (Output_Overriden_Op): If the overridden operation is itself inherited,
8752         list the ancestor operation, which is the one whose body or absstract
8753         specification is actually being overridden. For source navigation
8754         purposes.
8755
8756         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
8757         operation is primitive for the type.
8758         (Declare_Inherited_Private_Subprograms): If the new operation overrides
8759         an inherited private subprogram, set properly the Overridden_Operation
8760         attribute, for better cross-reference information.
8761         (Analyze_Package_Specification): Do late analysis of spec PPCs
8762         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
8763         properly the full view and underlying full views of a private type in a
8764         child unit, whose full view is derived from a private type in a parent
8765         unit, and whose own full view becomes visible in the child body.
8766
8767         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
8768         primitive operation after the type has been frozen, add an explicit
8769         reference to the type and the operation, because other primitive
8770         references have been emitted already.
8771         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8772         dispatching call on VM targets.
8773
8774 2008-04-08  Vincent Celier  <celier@adacore.com>
8775             Thomas Quinot  <quinot@adacore.com>
8776
8777         * make.adb: (Gnatmake_Called): Remove, no longer necessary
8778         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
8779         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
8780         (Insert_Project_Sources): Take into account index in multi-unit source
8781         files.
8782         After building a library project, delete all temporary files.
8783         (Initialize): Reset current output after parsing project file.
8784         (Collect_Arguments_And_Compile): Never insert in the queue the sources
8785         of library projects that are externally built.
8786         Put file name in error and inform messages if -df is used
8787         (Display): If invoked with -d7, do not display path names, but only
8788         file names.
8789
8790         * makeutl.ads (Path_Or_File_Name): New function
8791         (Path_Or_File_Name): New function
8792
8793 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
8794
8795         * Make-lang.in: Disable warnings during first stage of bootstrap
8796         Get rid of gnatbl.
8797         Update dependencies.
8798
8799 2008-04-08  Vincent Celier  <celier@adacore.com>
8800
8801         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
8802         case to decide if ALI object file is included in library.
8803         (Build_Library): Never attempt to build a library if the project is
8804         externally built.
8805
8806 2008-04-08  Thomas Quinot  <quinot@adacore.com>
8807
8808         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
8809         (No_List) is defined to return Empty.
8810
8811 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
8812
8813         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
8814         documentation.
8815         Update comments.
8816         (Read_Default_Search_Dirs): Do not consider spaces as path separators
8817         because spaces may be part of legal paths.
8818
8819 2008-04-08  Robert Dewar  <dewar@adacore.com>
8820
8821         * par-ch11.adb (P_Exception_Handler): Check indentation level for
8822         handler
8823
8824 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
8825
8826         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
8827         in a type declaration, if this is not an interface declaration or
8828         private type extension.
8829
8830 2008-04-08  Vincent Celier  <celier@adacore.com>
8831
8832         * prj-util.adb (Executable_Of): New String parameter Language. When
8833         Ada_Main is False and Language is not empty, attempt to remove the body
8834         suffix or the spec suffix of the language to get the base of the
8835         executable file name.
8836         (Put): New Boolean parameter Lower_Case, defauilted to False. When
8837         Lower_Case is True, put the value in lower case in the name list.
8838         (Executable_Of): If there is no executable suffix in the configuration,
8839         then do not modify Executable_Extension_On_Target.
8840
8841         * prj-util.ads (Executable_Of): New String parameter Language,
8842         defaulted to the empty string.
8843         (Put): New Boolean parameter Lower_Case, defauilted to False
8844
8845 2008-04-08  Robert Dewar  <dewar@adacore.com>
8846
8847         * scng.adb (Scan_Identifier): Handle case of identifier starting with
8848         wide character using UTF-8 encoding.
8849
8850 2008-04-08  Javier Miranda  <miranda@adacore.com>
8851
8852         * sem.adb (Analyze): Consider case in which we analyze an empty node
8853         that was generated by a call to a runtime function that is not
8854         available under the configurable runtime.
8855
8856         * sem.ads (Inside_Freezing_Actions): New flag.
8857         (Save_Check_Policy_List): New field in scope stack entry
8858
8859 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
8860             Robert Dewar  <dewar@adacore.com>
8861
8862         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
8863         the ancestor part of an extension aggregate for a limited type.
8864         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
8865         enumeration index bounds.
8866         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
8867         when array is too short.
8868         (Check_Expr_OK_In_Limited_Aggregate): Move function
8869         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
8870         change name).
8871         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
8872         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
8873         component associations.
8874         (Check_Non_Limited_Type): Moved to outer level and renamed.
8875         (Resolve_Record_Aggregate): In an extension aggregate, an association
8876         with a box initialization can only designate a component of the
8877         extension, not a component inherited from the given ancestor
8878
8879         * sem_case.adb: Use new Is_Standard_Character_Type predicate
8880
8881 2008-04-08  Robert Dewar  <dewar@adacore.com>
8882
8883         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
8884         negative scale
8885         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
8886         Properly handle case where Aft > Scale and input number is less than
8887         one.
8888
8889 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8890
8891         * s-stoele.ads, s-soflin.ads: Move the location of
8892         Dummy_Communication_Block from System.Storage_Elements to
8893         System.Soft_Links.
8894
8895         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
8896         emulate Communication_Block in certain scenarios.
8897
8898 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
8899
8900         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
8901         subprogram.
8902         Add new subtype S_WWC, unchecked conversion routines From_WWC and
8903         To_WWC.
8904         (I_WWC, O_WWC): New routines for input and output of
8905         Wide_Wide_Character.
8906
8907 2008-04-08  Robert Dewar  <dewar@adacore.com>
8908
8909         * stringt.adb (Write_String_Table_Entry): Handle wide characters
8910         properly
8911
8912 2008-04-08  Robert Dewar  <dewar@adacore.com>
8913
8914         * styleg.adb (Check_Comment): Allow special char after -- in
8915         non-end-of-line case
8916
8917 2008-04-08  Robert Dewar  <dewar@adacore.com>
8918
8919         * stylesw.adb: Implement -gnaty + - y options
8920         (Set_GNAT_Style_Check_Options): Includ I in style check string
8921
8922         * stylesw.ads: Add comments for new style switch options
8923
8924 2008-04-08  Sergey Rybin  <rybin@adacore.com>
8925
8926         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
8927         to the set of the GNAT components needed by ASIS.
8928
8929 2008-04-08  Bob Duff  <duff@adacore.com>
8930
8931         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
8932
8933 2008-04-08  Tristan Gingold  <gingold@adacore.com>
8934
8935         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
8936         Improve error message generation.
8937
8938 2008-04-08  Vincent Celier  <celier@adacore.com>
8939
8940         * a-direct.adb (Start_Search): Check for Name_Error before checking for
8941         Use_Error, as specified in the RM. Check if directory is open and raise
8942         Use_Error if it is not.
8943
8944 2008-04-08  Vincent Celier  <celier@adacore.com>
8945             Robert Dewar  <dewar@adacore.com>
8946
8947         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
8948         AAMP_On_Target is set.
8949
8950         * vms_data.ads: Add NOxxx to style check switch list
8951         Add entry COMPONENTS for -gnatVe
8952         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
8953         (/SUBDIRS=).
8954         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
8955         Add qualifiers for gnatmetric coupling options
8956         Add note that -gnata enables all checks
8957         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
8958         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
8959         New warning flag -gnatw.e
8960
8961         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
8962         Add entry for -gnatyN (forgotten before)
8963         Line for new warning switch -gnatw.p
8964         New warning flag -gnatw.e
8965
8966         * gnat_ugn.texi: Add documentation fpr project file switch -aP
8967         Document -gnaty - + y
8968         Replace occurences of "package specification" with "package spec"
8969         Define preprocessing symbols in documentation of gnatprep
8970         Clarify reason for distinguishing overflow checking
8971         Add documentation for project-aware tool switches -eL and --subdirs=
8972         Complete list of configuration pragmas
8973         Specify that, even when gnatmake switch -x is used, mains on the command
8974         line need to be sources of project files.
8975         Editing of gnatcheck/gnatmetric doc.
8976         Add documentation for -gnatw.p/-gnatw.P
8977         Add missing documentation for -fno-inline-functions.
8978         Add documentation for -gnatw.e
8979
8980         * gnat_rm.texi: Add documentation for No_Default_Initialization
8981         Replace occurences of "package specification" with "package spec"
8982         Document use of * in Warnings Off string
8983         Update documentation of alignment/component clauses.
8984         Add documentation for Invalid_Value
8985         Document new consistency rule for Optimize_Alignment
8986         Add documentation for Precondition and Postcondition pragmas
8987         Add documentation for Check and Check_Policy pragmas
8988         Document new Enum_Val attribute
8989         Remove requirement for static string in pragma Assert
8990         Add documentation on GNAT.Time_Stamp
8991
8992         * ug_words: add entry for -gnatVe
8993         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
8994         Add entry for -gnatw.e
8995
8996         * debug.adb: Add missing documentation for d.a flag
8997         Document new -gnatd.a switch.
8998         Add documentation for new gnatmake debug switch -df
8999
9000 2008-04-08  Thomas Quinot  <quinot@adacore.com>
9001
9002         * gen-soccon.c: Bump year in copyright notices.
9003
9004         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
9005
9006 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
9007
9008         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
9009         Minor reformatting.
9010
9011 2008-04-08  Robert Dewar  <dewar@adacore.com>
9012             Bob Duff  <duff@adacore.com>
9013
9014         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
9015         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
9016
9017         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
9018
9019         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
9020
9021         * g-trasym.ads: Minor comment improvements
9022
9023         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
9024
9025         * a-sequio.ads, a-direio.ads: improve message for tagged type
9026
9027         * a-strunb.ads: Minor reformatting
9028
9029         * a-tifiio.adb: Minor reformatting
9030
9031         * atree.adb (Fix_Parents): Use clearer names for formals
9032         Cleanup and simplify code
9033         Use named notation in calls
9034
9035         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
9036         confusing calls
9037
9038         * uintp.adb: Used named notation for some confusing calls
9039
9040         * bindusg.adb: Minor change in one line of output
9041
9042         * cstand.adb: Minor reformatting of src representation of Standard
9043
9044         * a-assert.ads: Add comment.
9045
9046         * g-decstr.adb: Fix bad indentation
9047
9048         * expander.ads, expander.adb: Code clean up.
9049
9050         * sem_dist.ads: Minor comment improvement
9051
9052         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
9053         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
9054
9055         * i-cstrin.adb: Fix casing error in formal parameter name in call
9056
9057 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
9058
9059         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
9060         mentioned in limited_with_clauses to do create semantic dependencies
9061         even though they appear in the ali file.
9062
9063 2008-04-08  Emmanuel Briot  <briot@adacore.com>
9064
9065         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
9066         statement.
9067         (Get_Configuration): New subprogram.
9068
9069         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
9070         These optional parameters help preserve the casing of the project's name
9071         when pretty-printing.
9072
9073 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
9074             Arnaud Charlet  <charlet@adacore.com>
9075
9076         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
9077         then use __gnat_set_exit_status to report the returned status code.
9078
9079         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
9080         messages on .NET, since some constructs of the language are not
9081         properly supported.
9082
9083         * gnatlink.adb (Gnatlink): In case the command line is too long for the
9084         .NET linker, gnatlink now concatenate all .il files and pass this to
9085         ilasm.
9086
9087 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
9088             Xavier Grave  <grave@ipno.in2p3.fr>
9089
9090         * Makefile.in: Add make ifeq define for mips/mipsel support.
9091         * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
9092         system-linux-mips.ads: New files.
9093
9094 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
9095
9096         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
9097         detect systems using GNU libc.
9098         * gsocket.h: ditto.
9099         * socket.c: ditto.
9100         * adaint.c: ditto.
9101         * link.c: ditto.
9102
9103 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
9104
9105         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
9106         constant constant for sysconf call.
9107         (bit_field): New packed boolean type used by cpu_set_t.
9108         (cpu_set_t): New type corresponding to the C type with
9109         the same name. Note that on the Ada side we use a bit
9110         field array for the affinity mask. There is not need
9111         for the C macro for setting individual bit.
9112         (pthread_setaffinity_np): New imported routine.
9113         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
9114         on GNU/kFreeBSD.
9115
9116 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9117
9118         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
9119
9120 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9121
9122         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
9123         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
9124         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
9125         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
9126         Return by Depressed Stack Pointer.
9127
9128 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9129
9130         * decl.c (is_variable_size): Do not unconditionally return false
9131         on non-strict alignment platforms.
9132
9133 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9134
9135         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
9136         used to process all the variants of the specified type.
9137         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
9138         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
9139         (rest_of_type_decl_compilation): Likewise.
9140         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
9141
9142 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9143
9144         * gigi.h (insert_block): Kill.
9145         * utils.c (insert_block): Kill.
9146
9147 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9148
9149         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
9150         type has self-referential size, get the size from the initializing
9151         expression directly if it is also a constant whose nominal type
9152         has self-referential size.
9153
9154 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9155
9156         PR ada/33688
9157         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
9158
9159         PR ada/33857
9160         * env.c: Always include crt_externs.h if __APPLE__ is defined.
9161         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
9162
9163 2008-04-01  Andreas Jaeger  <aj@suse.de>
9164
9165         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
9166         IP_PKTINFO.
9167
9168 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9169
9170         * g-table.adb, g-tasloc.adb, g-traceb.ads,
9171         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
9172         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
9173         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
9174         gnatlink.adb, gnatmem.adb, gprep.adb,
9175         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
9176         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
9177         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
9178         lib-xref.ads, lib.adb, link.c, live.ads,
9179         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
9180         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
9181         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
9182         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
9183         namet.adb, namet.h, nlists.adb, nlists.ads,
9184         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
9185         osint-c.ads, osint.adb, osint.ads, output.ads,
9186         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
9187         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
9188         par-endh.adb, par-labl.adb, par-prag.adb,
9189         par-sync.adb, par-tchk.adb, par-util.adb,
9190         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
9191         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
9192         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
9193         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
9194
9195 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9196
9197         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
9198         size if it has overflowed.
9199
9200 2008-03-31  Olivier Hainque  <hainque@adacore.com>
9201             Eric Botcazou  <ebotcazou@adacore.com>
9202
9203         * utils2.c (find_common_type): Document assumption on t1/t2 vs
9204         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
9205
9206 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9207
9208         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
9209         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
9210         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9211         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
9212         exp_tss.ads, exp_util.adb, exp_util.ads,
9213         exp_vfpt.adb, freeze.adb, freeze.ads,
9214         frontend.adb, g-alleve.adb, g-altcon.adb,
9215         g-altive.ads, g-alveop.ads, g-alvevi.ads,
9216         g-arrspl.adb, g-busorg.ads, g-calend.adb,
9217         g-calend.ads, g-casuti.ads, g-cgideb.adb,
9218         g-comlin.adb, g-comlin.ads, g-curexc.ads,
9219         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
9220         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
9221         g-dyntab.adb, g-encstr.ads, g-excact.ads,
9222         g-except.ads, g-expect.ads, g-heasor.adb,
9223         g-hesora.adb, g-hesorg.adb, g-htable.ads,
9224         g-locfil.ads, g-md5.adb, g-md5.ads,
9225         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
9226         g-pehage.adb, g-pehage.ads, g-regexp.adb,
9227         g-regexp.ads, g-regpat.adb, g-regpat.ads,
9228         g-soccon-aix.ads, g-soccon-darwin.ads,
9229         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
9230         g-soccon-hpux.ads, g-soccon-irix.ads,
9231         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
9232         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
9233         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
9234         g-soccon-solaris.ads, g-soccon-tru64.ads,
9235         g-soccon-vms.ads, g-soccon-vxworks.ads,
9236         g-soccon.ads, g-socket.adb, g-socket.ads,
9237         g-socthi-mingw.adb, g-socthi-vms.adb,
9238         g-socthi-vxworks.adb, g-soliop-mingw.ads,
9239         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
9240         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
9241         typos.
9242
9243 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
9244
9245         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
9246         if the procedure is imported.
9247
9248 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9249
9250         * adaint.c: Fix warnings.
9251
9252 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9253
9254         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
9255
9256 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9257
9258         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
9259         Fix problem of status check for null file
9260
9261 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9262
9263         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
9264         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
9265         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
9266         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
9267         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
9268         comments.
9269
9270 2008-03-26  Thomas Quinot  <quinot@adacore.com>
9271
9272         PR ada/33688
9273         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
9274         Get_Socket_Option): Add support for Receive_Packet_Info.
9275
9276         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
9277         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
9278         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
9279         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
9280         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
9281         new constants SO_REUSEPORT and IP_PKTINFO
9282
9283 2008-03-26  Robert Dewar  <dewar@adacore.com>
9284
9285         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
9286         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
9287         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
9288         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
9289         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
9290         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
9291         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
9292         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9293         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
9294         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
9295         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9296         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
9297         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
9298         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
9299         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
9300         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
9301         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
9302         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
9303         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
9304         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
9305         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
9306         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
9307         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
9308         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
9309         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
9310         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
9311         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
9312         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
9313         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
9314         s-tasloc.adb: Minor reformatting.
9315         Update comments.
9316         Remove "used for" sections from comments.
9317
9318 2008-03-26  Robert Dewar  <dewar@adacore.com>
9319
9320         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9321         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9322         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9323         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9324         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9325         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9326         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9327         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9328         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9329         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9330         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9331         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9332         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9333         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9334         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
9335         double spaced if it fits on one line and otherwise single spaced.
9336
9337 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9338
9339         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
9340         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
9341         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
9342         or task info if the thread could not be created.
9343
9344 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
9345
9346         * gnatvsn.ads (Library_Version): Bump to 4.4.
9347         (Current_Year): Bump to 2008.
9348
9349 2008-03-26  Robert Dewar  <dewar@adacore.com>
9350
9351         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
9352
9353         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
9354
9355         * debug.adb: Add debug flags d.r and d.v
9356         Add debug flag .T (Optimize_Alignment (Time))
9357         Add debug flag .S (Optimize_Alignment (Space))
9358
9359         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
9360         depending on setting of relevant debug flags.
9361         Replace use of Warnings_Off by Has_Warnings_Off
9362         (Freeze_Entity): In circuit for warning on suspicious convention
9363         actuals, do not give warning if subprogram has same entity as formal
9364         type, or if subprogram does not come from source.
9365         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
9366         if Optimize_Alignment set to Space.
9367
9368         * frontend.adb: Add call to Sem_Warn.Initialize
9369         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
9370         Reset Optimize_Alignment mode from debug switches .S and .T
9371
9372         * layout.adb (Layout_Composite_Object): Rewritten for
9373         Optimize_Aligment pragma.
9374
9375         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
9376         mode.
9377
9378         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
9379
9380         * par-prag.adb (N_Pragma): Chars field removed, use Chars
9381         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
9382         this change. Add entry for pragma Optimize_Alignment
9383
9384         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
9385         (Pragma_Identifier (..
9386         instead, adjustments throughout to accomodate this change.
9387         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
9388         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
9389         Add implementation of pragma Optimize_Alignment
9390
9391 2008-03-26  Vincent Celier  <celier@adacore.com>
9392
9393         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
9394         Improve memory usage to avoid use of stack.
9395
9396 2008-03-26  Robert Dewar  <dewar@adacore.com>
9397
9398         * a-teioed.ads: Correct value of Default_Fill
9399
9400         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
9401
9402 2008-03-26  Robert Dewar  <dewar@adacore.com>
9403
9404         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
9405         with Current_Output (introduce Self).
9406
9407 2008-03-26  Robert Dewar  <dewar@adacore.com>
9408
9409         * checks.adb (Ensure_Valid): Capture valid status if possible
9410         (eliminate checks)
9411
9412 2008-03-26  Robert Dewar  <dewar@adacore.com>
9413
9414         * stand.ads: Deal with reordering of package standard declarations
9415
9416         * cstand.adb: Put package Standard declarations in proper order
9417
9418 2008-03-26  Robert Dewar  <dewar@adacore.com>
9419
9420         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
9421         (Pragma_Identifier (.. instead.
9422         (OK_To_Reorder_Components): New flag
9423         (Has_Entries): Code cleanup.
9424         (Warnings_Off_Used): New flag
9425         (Warnings_Off_Used_Unmodified): New flag
9426         (Warnings_Off_Used_Unreferenced): New flag
9427         (Has_Warnings_Off): New function
9428         (Has_Unmodified): New function
9429         (Has_Unreferenced): New function
9430         (Is_Trivial_Subprogram): New flag
9431         (Is_Static_Dispatch_Table_Entity): New attribute.
9432         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
9433         (more consistent with other similar names)
9434         (Access_Subprogram_Type): New classification function
9435
9436 2008-03-26  Robert Dewar  <dewar@adacore.com>
9437
9438         * errout.ads: Document new !! insertion sequence
9439
9440         * errout.adb (N_Pragma): Chars field removed, use Chars
9441         (Pragma_Identifier (..  instead.
9442         Replace use of Warnings_Off by Has_Warnings_Off
9443         (Error_Msg_Internal): Don't delete warning ending in !!
9444
9445 2008-03-26  Robert Dewar  <dewar@adacore.com>
9446
9447         * par.adb (Check_No_Right_Paren): Removed no longer used
9448
9449         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
9450         (Pragma_Identifier (..  instead.
9451
9452         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
9453
9454         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
9455         par-ch4.adb: Minor improvements in error recovery and messages.
9456
9457         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
9458         non-serious
9459
9460         * par-ch9.adb: Minor improvements in error recovery and messages
9461         (P_Protected): Better error recovery for "protected type x;"
9462
9463         * par-util.adb: Minor improvements in error recovery and messages
9464         (Check_No_Right_Paren): Removed no longer used
9465
9466 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9467
9468         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
9469         that the prefix of an attribute is the type of the aggregate being
9470         expanded.
9471
9472 2008-03-26  Javier Miranda  <miranda@adacore.com>
9473             Robert Dewar  <dewar@adacore.com>
9474
9475         * exp_attr.adb (N_Pragma): Chars field removed.
9476         (Expand_N_Attribute_Reference): If the designated type associated with
9477         attribute 'Unrestricted_Access is a subprogram entity then replace it
9478         by an E_Subprogram_Type itype.
9479         Implement attribute Old
9480
9481         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
9482
9483         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
9484         Replace call to
9485         New_Internal_Entity by call to Create_Itype to centralize calls
9486         building itypes, ad propagate the convention of the designated
9487         subprogram. In addition, disable the machinery cleaning constant
9488         indications from all entities in current scope when 'Unrestricted_Access
9489         corresponds with a node initializing a dispatch table slot.
9490         (Analyze_Attribute): Parameterless attributes returning a string or a
9491         type will not be called with improper arguments, so we can remove junk
9492         code that was dealing with this case.
9493         Implement attribute Old
9494
9495         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
9496         Add entry for pragma Optimize_Alignment
9497         New standard names Sync and Synchronize
9498
9499 2008-03-26  Robert Dewar  <dewar@adacore.com>
9500             Arnaud Charlet  <charlet@adacore.com>
9501
9502         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
9503         stmt.
9504         (No_Exception_Propagation_Active): New function.
9505         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9506         Update comments, and review all uses of No_Exception_Propagation, which
9507         are now correct and in sync with what gigi expects.
9508
9509         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
9510         function.
9511         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9512         Update comments, and review all uses of No_Exception_Propagation, which
9513         are now correct and in sync with what gigi expects.
9514
9515 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9516
9517         * sem_ch3.adb (Access_Definition): If the access type is the return
9518         result of a protected function, create an itype reference for it
9519         because usage will be in an inner scope from the point of declaration.
9520         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
9521         OK_To_Reorder_Components.
9522         (Make_Index): If an overloaded range includes a universal integer
9523         interpretation, resolve to Standard.Integer.
9524         (Analyze_Subtype_Indication): Copy Convention to subtype
9525         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
9526         limited an synchronized progenitors in type declaration and private
9527         extension declarations.
9528
9529         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
9530         protected subprogram body, determine proper scope from subprogram
9531         declaration.
9532
9533 2008-03-26  Robert Dewar  <dewar@adacore.com>
9534
9535         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
9536         No_Run_Time_Mode
9537
9538 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
9539
9540         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
9541         of a heap allocator for a limited unconstrained function return when
9542         resstriction No_Allocators is active.
9543         (Analyze_Allocator): The restriction No_Allocators is now only checked
9544         on allocators that have Comes_From_Source set, as per RM-H.4(7).
9545
9546         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
9547         of a heap allocator for a limited unconstrained function return when
9548         resstriction No_Allocators is active.
9549         (Analyze_Allocator): The restriction No_Allocators is now only checked
9550         on allocators that have Comes_From_Source set, as per RM-H.4(7).
9551         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
9552         operands are fixed-point types, the universal_fixed predefined operation
9553         is used, regardless of whether the operand type (s) have a primitive
9554         operation of the same name.
9555
9556 2008-03-26  Javier Miranda  <miranda@adacore.com>
9557
9558         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
9559         Is_Static_Dispatch_Table
9560         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
9561         to Exchange_Declarations to exchange the private and full-view. Bug
9562         found working in this issue.
9563         (Expand_Dispatching_Call): Propagate the convention of the subprogram
9564         to the subprogram pointer type.
9565         (Make_Secondary_DT): Replace generation of Prim'Address by
9566         Address (Prim'Unrestricted_Access)
9567         (Make_DT): Replace generation of Prim'Address by
9568         Address (Prim'Unrestricted_Access)
9569         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
9570         simple call form for single entry.
9571         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
9572         tables of predefined primitives).
9573         (Make_Secondary_DT): Add support to handle access to dispatch tables of
9574         predefined primitives.
9575         (Make_Tags): Add entities to Access_Dispatch_Table associated with
9576         access to dispatch tables containing predefined primitives.
9577
9578         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
9579         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
9580         this change.
9581         (Register_Predefined_DT_Entry): Updated to handle the new contents
9582         of attribute Access_Disp_Table (pointers to dispatch tables containing
9583         predefined primitives).
9584
9585         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
9586         subprogram.
9587         (Find_Interface_ADT): Updated to skip the new contents of attribute
9588         Access_Dispatch_Table (pointers to dispatch tables containing predefined
9589         primitives).
9590
9591         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
9592         concurrent types.
9593         (Set_Convention): Use new function Is_Access_Subprogram_Type
9594         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
9595         Access_Dispatch_Table (pointers to dispatch tables containing predefined
9596         primitives).
9597
9598         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
9599         expanded code avoiding calls to Build_Predef_Prims.
9600         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
9601         call to Build_Get_Predefined_Prim_Op_Address.
9602
9603 2008-03-26  Javier Miranda  <miranda@adacore.com>
9604
9605         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
9606         subprogram Corresponding_Runtime_Package to know the runtime package
9607         that will provide support to a given protected type.
9608
9609         * exp_ch9.adb (Add_Private_Declarations,
9610         Build_Protected_Subprogram_Call,
9611         Build_Protected_Entry, Build_Simple_Entry_Call,
9612         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9613         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
9614         cleanup using the new centralized subprogram Corresponding_Runtime
9615         Package to know the runtime package that provides support to
9616         a given protected type.
9617
9618 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9619
9620         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
9621         assignment is within the initialization procedure for a packed array,
9622         and Initialize_Scalars is enabled, compile right-hand side with checks
9623         off, because the value is purposely out of range.
9624
9625 2008-03-26  Vincent Celier  <celier@adacore.com>
9626
9627         * gnatcmd.adb: Add processing for GNAT SYNC
9628
9629         * vms_conv.ads: (Command_Type): Add command Sync
9630
9631         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
9632
9633         * vms_data.ads: Add entries for -gnatw.w
9634         Add qualifier for gnatstub --header-file option
9635         Add switches for GNAT SYNC
9636
9637         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
9638         (Add_Package_Name): New procedure
9639         (Package_Name_List): New function
9640         (Initialize): Add known package names to the list
9641         (Register_New_Package): Add the new package name to the list
9642
9643 2008-03-26  Robert Dewar  <dewar@adacore.com>
9644
9645         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
9646         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
9647         Raise_Exception by "raise with" construct.
9648
9649 2008-03-26  Pascal Obry  <obry@adacore.com>
9650
9651         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
9652         supported platforms.
9653
9654         * Makefile.rtl: Add g-sercom.o.
9655
9656         * impunit.adb: Add g-sercom.adb.
9657
9658         * s-crtl.ads (open): New routine.
9659         (close): Likewise.
9660         (write): Likewise.
9661
9662         * s-osinte-mingw.ads (BYTE): New type.
9663         (CHAR): Likewise.
9664         (OVERLAPPED): Likewise.
9665         (GENERIC_READ): New constant.
9666         (GENERIC_WRITE): Likewise.
9667         (OPEN_EXISTING): Likewise.
9668         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
9669         type instead.
9670         (CreateFile): New routine.
9671         (WriteFile): Likewise.
9672         (ReadFile): Likewise.
9673         (CloseHandle): Move next to the other file oriented routines.
9674
9675         * g-sercom.ads: New unit.
9676
9677         * g-sercom.adb: Default implementation, calls to this unit will raise
9678         a program error exception.
9679
9680         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
9681         GNU/Linux implementations.
9682
9683 2008-03-26  Robert Dewar  <dewar@adacore.com>
9684
9685         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
9686
9687         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
9688         unchecked conversion for different conventions only for subprogram
9689         pointers or on VMS.
9690
9691 2008-03-26  Vincent Celier  <celier@adacore.com>
9692
9693         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
9694         to check if the specified object file is correct.
9695
9696 2008-03-26  Thomas Quinot  <quinot@adacore.com>
9697
9698         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
9699         Comes_From_Source to exclude primitives from being checked. We want to
9700         exclude predefined primitives only, so use the appropriate specific
9701         predicate. Also, flag a formal parameter of an anonymous
9702         access-to-subprogram type as illegal for a primitive operation of a
9703         remote access to class-wide type.
9704
9705 2008-03-26  Vincent Celier  <celier@adacore.com>
9706
9707         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
9708         known, check if it may be a missspelling of a known package name. In
9709         not verbose, not mode, issue warnings only if the package name is a
9710         possible misspelling.
9711         In verbose mode, always issue a warning for a not known package name,
9712         plus a warning if the name is a misspelling of a known package name.
9713
9714         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
9715         limited withs or limited withs are parse during one call.
9716         (Parse_Single_Project): Post parse context clause in two passes: non
9717         limited withs before current project and limited withs after current
9718         project.
9719
9720         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
9721         project with the name With_Name, even if it is only extended indirectly.
9722         (Recursive_Process): Process projects in order: first single withs, then
9723         current project, then limited withs.
9724
9725         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
9726         project with the name With_Name, even if it is only extended indirectly.
9727
9728 2008-03-26  Robert Dewar  <dewar@adacore.com>
9729
9730         * scn.adb (Initialize_Scanner): Format messages belong on standard error
9731
9732 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9733
9734         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
9735         a generic subprogram that is imported, do not attempt to compile
9736         non-existent body.
9737
9738         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
9739         imported, do not generate a raise_program_error for the non-existent
9740         body.
9741         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
9742         perform minimal name resolution on the generic to avoid spurious
9743         warnings.
9744         (Find_Actual_Type): the designated type of the actual in a child unit
9745         may be declared in a parent unit without being an actual.
9746
9747 2008-03-26  Robert Dewar  <dewar@adacore.com>
9748
9749         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
9750         * sinfo.ads, sinfo.adb (From_At_End): New flag
9751
9752 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9753
9754         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
9755         operations that have an interface parameter.
9756         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
9757         Don't treat No_Return call as raise.
9758
9759         * sem_disp.adb (Check_Dispatching_Operations): apply check for
9760         non-primitive interface primitives to access parameters, not to all
9761         parameters of an access type.
9762
9763 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
9764
9765         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
9766         declarations of a parent unit are made visible when compiling a child
9767         instance, the parent is not a hidden open scope, even though it may
9768         contain other pending instance.
9769
9770         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
9771         hidden open scope for some child instance, it does affect the
9772         visibility status of other stach entries.
9773         (Analyze_Object_Renaming): Check that a class-wide object cannot be
9774         renamed as an object of a specific type.
9775
9776 2008-03-26  Robert Dewar  <dewar@adacore.com>
9777
9778         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
9779         recursion and raise SE directly.
9780         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
9781         set for formal type for IN mode parameter.
9782
9783 2008-03-26  Robert Dewar  <dewar@adacore.com>
9784
9785         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
9786         (Initialize): New procedure
9787         (Output_Warnings_Off_Warnings): New procedure
9788         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
9789         (Output_Non_Modifed_In_Out_Warnings): Ditto
9790         (Warn_On_Unreferenced_Entity): Ditto
9791
9792 2008-03-26  Vincent Celier  <celier@adacore.com>
9793
9794         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
9795         readable.
9796
9797 2008-03-26  Matthew Heaney  <heaney@adacore.com>
9798
9799         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
9800         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
9801         Marked with clauses as private, and controlled operations as overriding
9802
9803 2008-03-26  Robert Dewar  <dewar@adacore.com>
9804
9805         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
9806
9807 2008-03-26  Robert Dewar  <dewar@adacore.com>
9808
9809         * back_end.adb, back_end.ads: Minor reformatting
9810
9811         * bindgen.adb: Minor clarification of comments
9812
9813         * fname.ads: Minor comment fixes
9814
9815         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
9816         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
9817
9818         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
9819         xsnames.adb: Remove warnings off pragma no longer needed
9820
9821         * a-catizo.ads, a-calari.ads, a-calfor.adb,
9822         a-calfor.ads: Fix header.
9823
9824 2008-03-26  Tristan Gingold  <gingold@adacore.com>
9825
9826         * init.c: Do not adjust pc for HPARITH on alpha/vms.
9827
9828 2008-03-26  Robert Dewar  <dewar@adacore.com>
9829
9830         * lib-xref.adb: (OK_To_Set_Reference): New function
9831         (Generate_Reference): Don't set referenced from occurrence in Warnings,
9832         Unmodified, or Unreferenced pragma
9833
9834 2008-03-26  Robert Dewar  <dewar@adacore.com>
9835
9836         * alloc.ads: Add entries for Warnings_Off_Pragmas table
9837
9838 2008-03-26  GNAT Script  <nobody@adacore.com>
9839
9840         * Make-lang.in: Makefile automatically updated
9841
9842 2008-03-26  Robert Dewar  <dewar@adacore.com>
9843
9844         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
9845         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
9846         removed, use Chars (Pragma_Identifier (..  instead, adjustments
9847         throughout to accomodate this change.
9848
9849         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
9850
9851         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
9852         Einfo.Set_Needs_Debug_Info)
9853
9854 2008-03-26  Robert Dewar  <dewar@adacore.com>
9855
9856         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
9857         Add description for the new gnatstub option '--header-file'
9858         clarification of -gnatwz/-gnatwZ
9859         Add a "Irix-Specific Considerations" section to document the need to
9860         set LD_LIBRARY_PATH when using the default shared runtime library.
9861         Added documentation for both gcov and gprof.
9862
9863         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
9864         messages that are not suppressed when clients are compiled.
9865         Add documentation of s-pooglo s-pooloc
9866         Document the new GNAT.Serial_Communications API.
9867         Add documentation for 'Old attribute
9868         Add description of pragma Optimize_Alignment
9869
9870         * ug_words: Add entries for -gnatw.w -gnatw.W
9871
9872         * usage.adb: Add line for -gnatw.w (warn on warnings off)
9873
9874 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
9875
9876         Revert
9877         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
9878         PR ada/35186
9879         * decl.c (maybe_pad_type): Avoid padding an integral type when
9880         bumping its alignment is sufficient.
9881
9882 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
9883
9884         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
9885         Fix wrong formatting (lines too long)
9886
9887 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9888
9889         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
9890         a-calend-vms.adb, a-calend.adb, a-calend.ads,
9891         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
9892         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
9893         a-cohama.ads, a-comlin.ads, a-coorse.adb,
9894         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
9895         a-except-2005.ads, a-except.adb, a-except.ads,
9896         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
9897         a-exextr.adb, a-filico.ads, a-finali.ads,
9898         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
9899         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
9900         a-sequio.ads, a-strbou.ads, a-strfix.adb,
9901         checks.adb, exp_ch3.adb, exp_ch4.adb,
9902         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
9903         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
9904         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
9905         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
9906         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
9907
9908 2008-03-24  Robert Dewar  <dewar@adacore.com>
9909
9910         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9911         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9912         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9913         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9914         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9915         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9916         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9917         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9918         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9919         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9920         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9921         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9922         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9923         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9924         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
9925         double spaced if it fits on one line and otherwise single spaced.
9926
9927 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9928
9929         PR documentation/15479
9930         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
9931         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
9932         (doc/gnat_ugn.info): Renamed from ...
9933         (doc/gnat_ugn_unw.info): ... this.
9934         (doc/gnat_ugn.dvi): Renamed from ...
9935         (doc/gnat_ugn_unw.dvi): ... this.
9936         (doc/gnat_ugn.pdf): Renamed from ...
9937         (doc/gnat_ugn_unw.pdf): ... this.
9938         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
9939         Adjusted.
9940         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
9941         unconditionally to gnat_ugn.info.  Fix cross references to the
9942         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
9943         and GNU make manuals to be proper texinfo links.
9944         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
9945
9946 2008-03-21  Olivier Hainque  <hainque@adacore.com>
9947
9948         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
9949         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
9950
9951 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9952
9953         * trans.c (addressable_p): Add notes on addressability issues.
9954
9955 2008-03-21  Olivier Hainque  <hainque@adacore.com>
9956             Ed Schonberg  <schonberg@adacore.com>
9957
9958         * trans.c (addressable_p): Accept COND_EXPR when both arms
9959         are addressable.
9960         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
9961         (call_to_gnu): Do not use name reference in the error message
9962         for a misaligned by_reference_parameter. The actual may be a
9963         general expression.
9964
9965 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
9966
9967         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
9968
9969 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9970
9971         * gnat_rm.texi (Implementation Defined Characteristics)
9972         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
9973         appropriate.
9974         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
9975         (Switches for gnatchop, Installing a library): Likewise.
9976
9977 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
9978
9979         * trans.c (emit_range_check): Do not emit the check if the base type
9980         of the expression is the type against which its range must be checked.
9981
9982 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
9983
9984         * decl.c (maybe_pad_type): Use value_factor_p.
9985
9986 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
9987
9988         * lang.opt (nostdlib): Move around.
9989         * misc.c (gnat_handle_option): Fix formatting.
9990         (gnat_dwarf_name): Move around.
9991         * trans.c (Case_Statement_to_gnu): Fix formatting.
9992         (gnat_to_gnu): Likewise.
9993         * utils.c (aggregate_type_contains_array_p): Likewise.
9994         (create_subprog_decl): Likewise.
9995
9996 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
9997
9998         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
9999         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
10000
10001 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10002
10003         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
10004         BIGGEST_ALIGNMENT when capping the alignment of records with
10005         strict alignment and size clause.
10006
10007 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10008
10009         * lang-specs.h: Pass -gnatwa if -Wall is passed.
10010         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
10011         and -Wuninitialized.
10012         (gnat_post_options): Clear warn_unused_parameter.
10013
10014 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10015
10016         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
10017         aligned bit-fields, bumping the alignment of the record type if deemed
10018         profitable.
10019         (value_factor_p): Return false instead of 0.
10020
10021 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10022
10023         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
10024         for scalar types with small alignment.
10025
10026 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
10027
10028         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
10029         from that of the front-end's end label.
10030         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
10031         from that of the loop label.
10032
10033 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
10034
10035         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
10036         comment for the packed array type case.
10037         * utils.c (build_template): Use a loop to strip padding or
10038         containing records for justified modular types.
10039
10040 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
10041
10042         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
10043         large alignments specified for types.
10044         (validate_alignment): Minor cleanup.
10045
10046 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
10047
10048         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
10049         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
10050         the component for packing, if possible, as well as if a component
10051         size clause is specified.
10052         <E_Record_Subtype>: For an array type used to implement a packed
10053         array, get the component type from the original array type.
10054         Try to get a smaller form of the component for packing, if possible,
10055         as well as if a component size clause is specified.
10056         (round_up_to_align): New function.
10057         (make_packable_type): Add in_record parameter.
10058         For a padding record, preserve the size.  If not in_record and the
10059         size is too large for an integral mode, attempt to shrink the size
10060         by lowering the alignment.
10061         Ditch the padding bits of the last component.
10062         Compute sizes and mode manually, and propagate the RM size.
10063         Return a BLKmode record type if its size has shrunk.
10064         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
10065         Use Original_Array_Type to retrieve the type in case of an error.
10066         Adjust call to make_packable_type.
10067         (gnat_to_gnu_field): Likewise.
10068         (concat_id_with_name): Minor tweak.
10069         * trans.c (larger_record_type_p): New predicate.
10070         (call_to_gnu): Compute the nominal type of the object only if the
10071         parameter is by-reference.  Do the conversion actual type -> nominal
10072         type if the nominal type is a larger record.
10073         (gnat_to_gnu): Do not require integral modes on the source type to
10074         avoid the conversion for types with identical names.
10075         (addressable_p): Add gnu_type parameter.  If it is specified, do not
10076         return true if the expression is not addressable in gnu_type.
10077         Adjust recursive calls.
10078         * utils.c (finish_record_type): Remove dead code.
10079
10080 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
10081
10082         PR ada/35186
10083         * decl.c (maybe_pad_type): Avoid padding an integral type when
10084         bumping its alignment is sufficient.
10085
10086 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10087
10088         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
10089         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
10090         statement.
10091         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
10092         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
10093         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
10094         code output strings.
10095         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
10096         system-vms_64.ads: Fix typos in ada source code comments.
10097         * sinfo-cn.adb: Remove incomplete sentence.
10098
10099         PR documentation/15479
10100         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
10101
10102 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
10103
10104         PR ada/22255
10105         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
10106
10107 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
10108
10109         PR ada/34799
10110         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
10111         that underlying type is present.
10112
10113 2008-02-26  Tom Tromey  <tromey@redhat.com>
10114
10115         * misc.c (internal_error_function): Remove test of
10116         USE_MAPPED_LOCATION.
10117         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
10118         (Sloc_to_locus): Remove old location code.
10119
10120 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10121
10122         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
10123         `i.e.' by adding comma or `@:' as appropriate.
10124         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
10125         plain characters `C', use `@samp{C}'.
10126         * gnat_ugn.texi (File Naming Rules, About gnatkr)
10127         (Krunching Method): Likewise.
10128
10129         * gnat_ugn.texi (Conventions): List environment variables and
10130         metasyntactic variables.
10131         (Compiling Programs): Fix notation of metasyntactic variables.
10132         Add @file where appropriate.  Use @file for file extensions,
10133         @samp for strings.
10134         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
10135         instead of @file, @env instead of @code.
10136
10137 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10138
10139         PR documentation/15479
10140         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
10141         and `...' with `@dots{}' or `@enddots{}'.
10142
10143         PR documentation/15479
10144         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
10145         use @command instead of @code, @option instead of @samp or @code,
10146         @code instead of @var, @samp instead of @file.
10147
10148         PR documentation/15479
10149         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
10150         in Makefile rules, by using `&&' rather than `;'.
10151
10152 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10153
10154         PR documentation/15479
10155         * gnat_ugn.texi: In non-code, avoid space before colon.
10156         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
10157         (Examples of gnatxref Usage): Use @command{vi} instead of
10158         @file{vi}.
10159         (Character Set Control): Do not use @code for UTF-8.
10160         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
10161         use @code for IEEE.
10162         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
10163         sample.
10164         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
10165
10166 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
10167
10168         PR ada/35143
10169         * env.c: Add __rtems__ to if defined.
10170         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
10171         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
10172         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
10173         pragma Convention as required.
10174         * gsocket.h: Make compile in and out of RTS.
10175         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
10176         Use g-soccon-rtems.ads.
10177         * g-soccon-rtems.ads, system-rtems.ads: New files.
10178
10179 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10180
10181         PR other/35107
10182         * Make-lang.in (gnat1): Add $(GMPLIBS).
10183
10184 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
10185
10186         * decl.c (components_to_record): Improve comment.
10187
10188 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10189
10190         * decl.c (components_to_record): Do not reuse the empty union type
10191         if there is a representation clause on the record.
10192         * trans.c (addressable_p): Return true for INTEGER_CST.
10193
10194 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
10195
10196         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
10197         in pointer arithmetics.
10198         * utils2.c (build_allocator): Likewise.
10199
10200 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10201
10202         * utils.c (build_function_stub): Properly build the call expression.
10203
10204 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
10205
10206         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
10207         before converting the expression to the type of the object.
10208         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
10209         Stabilize constructors for special wrapping types.
10210
10211 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
10212
10213         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
10214         when necessary.  Merge some conditional statements.  Update comments.
10215         Rename unchecked_convert_p local variable to suppress_type_conversion.
10216         Do not suppress conversions in the In case.
10217         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
10218         into account on non strict-alignment platforms.
10219
10220 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10221
10222         * utils.c (aggregate_type_contains_array_p): New predicate.
10223         (create_field_decl): In a packed record, force byte alignment
10224         for fields without specified position that contain an array.
10225
10226 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10227
10228         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
10229
10230 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
10231
10232         PR ada/34466
10233         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
10234         sysconf call.
10235         (bit_field): New packed boolean type used by cpu_set_t.
10236         (cpu_set_t): New type corresponding to the C type with
10237         the same name. Note that on the Ada side we use a bit
10238         field array for the affinity mask. There is not need
10239         for the C macro for setting individual bit.
10240         (pthread_setaffinity_np): New imported routine.
10241
10242 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
10243
10244         PR ada/34647
10245         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10246         on OpenBSD as is done on other BSD systems.
10247
10248         PR ada/34645
10249         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
10250         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
10251         I/O.
10252
10253         PR ada/34644
10254         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
10255         clearenv().
10256
10257         PR ada/34646
10258         * init.c (__gnat_error_handler, __gnat_install_handler,
10259         __gnat_init_float): Define for OpenBSD.
10260
10261         * initialize.c (__gnat_initialize): Define for OpenBSD.
10262
10263 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
10264
10265         PR ada/34553
10266         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10267         instead of mktemp() or tmpnam() on NetBSD.
10268
10269 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
10270
10271         * trans.c (call_to_gnu): Make the temporary for non-addressable
10272         In parameters passed by reference.
10273         (addressable_p): Return true for STRING_CST and CALL_EXPR.
10274
10275 2007-12-19  Robert Dewar  <dewar@adacore.com>
10276
10277         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
10278         Add pragma Warnings (Off) for unassigned IN OUT arguments
10279
10280         * sem_warn.adb (Output_Reference): Suppress messages for internal names
10281         (Check_References): Extensive changes to tune up warnings
10282         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
10283         (Has_Pragma_Unmodifed_Check_Spec): New function
10284         (Check_References): Implement pragma Unmodified
10285         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
10286
10287         * par-prag.adb: Dummy entry for pragma Unmodified
10288
10289         * sem_prag.adb: Implement pragma Unmodified
10290
10291         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
10292         (Proc_Next_Component_Or_Discriminant): Fix typo.
10293         Update comments.
10294
10295         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
10296         Unmodified.
10297         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
10298         because the former already takes care of discarding the result.
10299         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
10300         Add comment.
10301
10302         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
10303
10304 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
10305
10306         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
10307         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10308         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
10309         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
10310         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10311         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10312         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10313         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10314         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10315         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
10316         (Dynamic_Trampolines_Used): Delete.
10317
10318         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
10319         Turn on stack probing mechanism on LynxOS.
10320
10321 2007-12-19  Bob Duff  <duff@adacore.com>
10322
10323         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
10324         the resulting tail recursion by hand. This prevents running out of
10325         memory on deeply nested concatenations, since Field2 is where the left
10326         operand of concatenations is stored.
10327         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
10328         clarify that it can only return OK or Abandon.
10329
10330         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
10331         operand by iteration, in order to avoid running out of memory on
10332         deeply-nested concatenations. Use the Parent pointer to get back up the
10333         tree.
10334         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
10335          Resolve_Op_Concat_Rest): New procedures split out of
10336         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
10337         clearer.
10338
10339         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
10340         Traverse_Func, because the former already takes care of discarding the
10341         result.
10342
10343         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
10344         because the former already takes care of discarding the result.
10345         (Remove_Warning_Messages): Use appropriate subtype for Status and
10346         Discard
10347
10348 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10349
10350         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
10351         discriminants forces expansion of the aggregate into assignments.
10352         (Init_Record_Controller):  If the type of the aggregate is untagged and
10353         is not inherently limited, the record controller is not limited either.
10354
10355 2007-12-19  Robert Dewar  <dewar@adacore.com>
10356
10357         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
10358         handling compile time known size of record or array (case of front end
10359         layout active, e.g. in GNAAMP).
10360
10361 2007-12-19  Javier Miranda  <miranda@adacore.com>
10362
10363         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
10364         that forces the construction of static dispatch tables in case of
10365         record subtypes.
10366
10367 2007-12-19  Robert Dewar  <dewar@adacore.com>
10368
10369         * exp_ch9.adb (Null_Statements): Moved to library level
10370         (Trivial_Accept_OK): New function
10371         (Expand_Accept_Declaration): Use Trivial_Accept_OK
10372         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
10373
10374 2007-12-19  Robert Dewar  <dewar@adacore.com>
10375
10376         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
10377         in complex case where array is Volatile.
10378
10379 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10380
10381         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
10382         properly the Ada2005 rules concerning when the current instance of a
10383         record type is aliased.
10384
10385 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10386
10387         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
10388         mangled declaration
10389         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
10390         declarations.
10391         (P_Variant_Part): Cleaner patch for parenthesized discriminant
10392
10393 2007-12-19  Vincent Celier  <celier@adacore.com>
10394
10395         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
10396         package is not known
10397
10398         * prj-attr.ads (Unknown_Package): New constant
10399         Do not crash when an unknown package is in several projects
10400
10401         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
10402         ignored
10403
10404         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
10405         existing package Language_Processing.
10406
10407 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10408             Gary Dismukes  <dismukes@adacore.com>
10409             Samuel Tardieu  <sam@rfc1149.net>
10410
10411         PR ada/15803, ada/15805
10412         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
10413         illegal access subtypes when there is a constrained partial view.
10414         (Check_For_Premature_Usage): New procedure inside
10415         Access_Subprogram_Declaration for checking that an access-to-subprogram
10416         type doesn't reference its own name within any formal parameters or
10417         result type (including within nested anonymous access types).
10418         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
10419         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
10420         context is an access_to_variable, the expression cannot be an
10421         access_to_constant.
10422
10423 2007-12-19  Bob Duff  <duff@adacore.com>
10424
10425         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
10426         (Analyze_Concatenation): Use iteration instead of recursion in order
10427         to avoid running out of stack space for deeply nested concatenations.
10428
10429 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
10430             Gary Dismukes  <dismukes@adacore.com>
10431
10432         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
10433         whose renamed entity is a subprogram that requires overriding.
10434         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
10435         issuing an error for premature usage and issue a message that says
10436         'type' rather than 'object'.
10437
10438 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
10439
10440         PR ada/34149
10441         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
10442         presence of a statically tagged operand (Present (Static_Tag)) with
10443         test for Indeterm_Ancestor_Call when determining whether to propagate
10444         the static tag to tag-indeterminate operands (which forces dispatching
10445         on such calls).
10446         (Check_Controlling_Formals): Ada2005, access parameters can have
10447         defaults.
10448         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
10449         not insert subprogram in list of primitive operations if already there.
10450
10451 2007-12-19  Tristan Gingold  <gingold@adacore.com>
10452
10453         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
10454         global variable.
10455
10456 2007-12-19  Thomas Quinot  <quinot@adacore.com>
10457
10458         Part of PR ada/33688
10459         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
10460         datagram info on Linux.
10461
10462 2007-12-19  Vincent Celier  <celier@adacore.com>
10463
10464         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
10465         that the source path name is always found in the dependencies.
10466
10467 2007-12-19  Robert Dewar  <dewar@adacore.com>
10468
10469         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
10470         Fix name of Wide_Wide_Latin_1/9 file names
10471         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
10472         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
10473         Add missing documentation for Ada.Command_Line.Response_File
10474         Update list of warning letters for Warnings pragma
10475         Add documentation for pragma Unmodified
10476
10477 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
10478
10479         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
10480
10481 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
10482
10483         * s-vxwork-alpha.ads: Removed, no longer used.
10484
10485 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
10486
10487         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
10488
10489 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
10490
10491         PR ada/34360
10492         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
10493         mlib-tgt-specific.adb.
10494
10495 2007-12-13  Bob Duff  <duff@adacore.com>
10496
10497         * trans.c (Attribute_to_gnu): Check for violations of the
10498         No_Implicit_Dynamic_Code restriction. This checking used to be done in
10499         the front end, but is moved here so we can make it more accurate.
10500
10501 2007-12-13  Pascal Obry  <obry@adacore.com>
10502
10503         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
10504          version is provided for older GNU/Linux distribution not
10505          supporting thread affinity sets.
10506
10507         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
10508         call.
10509         (bit_field): New packed boolean type used by cpu_set_t.
10510         (cpu_set_t): New type corresponding to the C type with
10511         the same name. Note that on the Ada side we use a bit
10512         field array for the affinity mask. There is not need
10513         for the C macro for setting individual bit.
10514         (pthread_setaffinity_np): New imported routine.
10515
10516         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
10517         no null.
10518         (Create_Task): Set the processor affinity mask if information
10519         is present.
10520
10521         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
10522
10523 2007-12-13  Robert Dewar  <dewar@adacore.com>
10524
10525         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10526         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
10527         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
10528         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
10529         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
10530         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
10531         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
10532         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
10533         for subprogram pointers.
10534
10535         * g-ctrl_c.adb: New file.
10536
10537         * g-ctrl_c.ads (Install_Handler): New body.
10538
10539         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
10540         instead of obsolete function Is_Always_Inlined.
10541         (Freeze_Entity): check for tagged type in imported C subprogram
10542         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
10543         (Freeze_Entity): check for convention Ada subprogram pointer in
10544         imported C subprogram.
10545         (Freeze_Fixed_Point_Type): In the case of a base type where the low
10546         bound would be chopped off and go from negative to zero, force
10547         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
10548         bound) so that the size computation for the base type will take
10549         negative values into account.
10550
10551 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
10552             Bob Duff  <duff@adacore.com>
10553             Tristan Gingold  <gingold@adacore.com>
10554
10555         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10556         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10557         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10558         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10559         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10560         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10561         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10562         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
10563         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10564         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
10565         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
10566         (Always_Compatible_Rep): New flag to control trampolines globally.
10567         (Dynamic_Trampolines_Used): New flag for implementing the
10568         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
10569         and not yet set correctly for some targets).
10570
10571         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
10572         Simply indirectly call s-stchop when a task is created.
10573
10574         * ali.ads:
10575         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
10576         appears as an argument (entries A) in an ALI file.
10577
10578         * fe.h (Stack_Check_Limits): Declare new target parameter.
10579         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
10580
10581         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
10582         This variable is declared in C to be sure not subject to elaboration
10583         code.
10584         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
10585         Storage_Error.
10586
10587         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
10588         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
10589
10590         * s-stchop.ads: Add comments.
10591
10592         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
10593         limit method of stack checking.
10594
10595         * s-stchop-limit.ads: New file.
10596
10597 2007-12-13  Robert Dewar  <dewar@adacore.com>
10598
10599         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
10600         a-cihama.adb, g-awk.adb,
10601         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
10602         warnings
10603
10604         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
10605
10606         * sem.adb: Update handling of assigned value/unreferenced warnings
10607
10608         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
10609
10610         * lib-xref.ads: Improve documentation for k xref type
10611
10612         * lib-xref.adb:
10613         Update handling of assigned value/unreferenced warnings
10614         (Generate_Reference): Warning for reference to entity for which a
10615         pragma Unreferenced has been given should be unconditional.
10616         If the entity is a discriminal, mark the original
10617         discriminant as referenced.
10618
10619         * sem_warn.ads, sem_warn.adb
10620         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
10621         no entities referenced in package
10622         (Check_One_Unit): Don't give message about no entities referenced in
10623         a package if a pragma Unreferenced has appeared.
10624         Handle new warning flag -gnatw.a/-gnatw.A
10625         Update handling of assigned value/unreferenced warnings
10626
10627         * atree.h: Add flags up to Flag247
10628         (Flag231): New macro.
10629
10630 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
10631
10632         * adaint.h: (__gnat_plist_init): Not defined for RTX.
10633
10634         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
10635         RTX systems.
10636
10637         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
10638         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
10639         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
10640         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
10641
10642         * mingw32.h:
10643         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
10644
10645         * sysdep.c (winflush_function for RTX): Procedure that does nothing
10646         since we only have problems with Windows 95/98, which are not
10647         supported by RTX.
10648         (__gnat_ttyname): Return the empty string on Nucleus, just as
10649         done on vxworks.
10650
10651 2007-12-13  Robert Dewar  <dewar@adacore.com>
10652
10653         * a-textio.adb, a-textio.ads:
10654         Extensive changes to private part for wide character encoding
10655
10656         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
10657         (Look_Ahead): Fix mishandling of encoded sequences
10658         Move declaration of Wch_Con to private part (should not be visible)
10659
10660         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
10661         UTF-8. Probably this is never used, but if it is, brackets is
10662         clearly correct.
10663
10664         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
10665         setting wide character encoding for no main program case and when
10666         encoding is specified using -W?
10667         Initialize stack limit of environment task if stack limit method of
10668         stack checking is enabled.
10669         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
10670         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
10671         (Get_Main_Unit_Name): New function.
10672         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
10673         (Gen_Output_File): Set Bind_Main_Program to True for .NET
10674
10675         * bindusg.adb: Add line for -Wx switch
10676
10677         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
10678         Add comments
10679         Add new useful constant WC_Longest_Sequences
10680
10681         * switch-b.adb: Clean up handling of -Wx switch
10682         For -gnatWx, set Wide_Character_Encoding_Method_Specified
10683
10684         * switch-c.adb: -gnatg activates warning on assertion errors
10685         For -gnatWx, set Wide_Character_Encoding_Method_Specified
10686
10687         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
10688
10689 2007-12-13  Robert Dewar  <dewar@adacore.com>
10690             Ed Schonberg  <schonberg@adacore.com>
10691
10692         * a-ngcoty.adb: New pragma Fast_Math
10693
10694         * opt.adb: New pragma Fast_Math
10695
10696         * par-prag.adb:
10697         Add Implemented_By_Entry to the list of pragmas which do not require any
10698         special processing.
10699         (Favor_Top_Level): New pragma.
10700         New pragma Fast_Math
10701
10702         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
10703         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
10704         Expand_Allocator_Expression): Take into account VM_Target
10705         (Expand_Attribute, case 'Identity):  Handle properly the case where
10706         the prefix is a task interface.
10707         New pragma Fast_Math
10708
10709         * par.adb (Next_Token_Is): New function
10710         (P_Pragma): Add Skipping parameter
10711         (U_Left_Paren): New procedure
10712         (U_Right_Paren): New procedure
10713         New pragma Fast_Math
10714
10715         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
10716         subunit
10717         New pragma Fast_Math
10718
10719         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
10720         Implemented_By_Entry.
10721         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
10722         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
10723         items, since it can apply to more than one overloadable entity. Set
10724         new flag Has_Pragma_Inline_Always for Inline_Always case.
10725         (Analyze_Pragma, case Complex_Representation): Improve error message.
10726         (Analyze_Pragma, case Assert): When assertions are disabled build the
10727         rewritten code with Sloc of expression rather than pragma, so new
10728         warning about failing is not deleted.
10729         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
10730         protected types and update error message to reflect that. Test whether
10731         the protected type is allowed for the pragma (an error is issued if the
10732         type has any entries, or components that do not have preelaborable
10733         initialization).
10734         New pragma Fast_Math
10735         (Analyze_Pragma, case No_Return): Handle generic instance
10736
10737         * snames.h, snames.ads, snames.adb:
10738         Add new predefined name for interface primitive _Disp_Requeue.
10739         New pragma Fast_Math
10740
10741         * a-tags.ads, a-tags.adb: New calling sequence for
10742         String_To_Wide_[Wide_]String
10743         (Secondary_Tag): New subprogram.
10744
10745         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
10746         from Exp_Attr
10747         New calling sequence for String_To_Wide_[Wide_]String
10748         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
10749         the use of the secondary stack for image routines.
10750
10751         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
10752         calling sequence for String_To_Wide_[Wide_]String
10753
10754         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
10755         Ada 95 mode
10756         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
10757         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10758
10759         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
10760         (P_Formal_Part): Use Skipping parameter in P_Pragma call
10761         to improve error recovery
10762
10763         * par-util.adb (Next_Token_Is): New function
10764         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
10765
10766         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
10767         semicolon if missing
10768         (P_Pragma): Implement new Skipping parameter
10769         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10770         Fix location of flag for unrecognized pragma message
10771
10772         * par-tchk.adb (U_Left_Paren): New procedure
10773         (U_Right_Paren): New procedure
10774
10775 2007-12-13  Geert Bosch  <bosch@adacore.com>
10776
10777         * a-tifiio.adb:
10778         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
10779         the second or later Scaled_Divide would omit leading zeroes,
10780         resulting in too few digits produced and a Layout_Error as result.
10781         (Put): Initialize Pos.
10782
10783 2007-12-13  Robert Dewar  <dewar@adacore.com>
10784
10785         atree.ads, atree.adb (Flag231..Flag247): New functions
10786         (Set_Flag231..Set_Flag247): New procedures
10787         (Basic_Set_Convention): Rename Set_Convention to be
10788         Basic_Set_Convention
10789         (Nkind_In): New functions
10790         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10791
10792         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
10793         instead
10794          of obsolete function Is_Always_Inlined
10795         (Register_Predefined_DT_Entry): Initialize slots of the second
10796         secondary dispatch table.
10797         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10798         (Expand_N_Function_Call): Remove special provision for stack checking.
10799
10800         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
10801         Include _Disp_Requeue in the list of predefined operations.
10802         (Find_Interface_ADT): Modified to fulfill the new specification.
10803         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10804
10805         * par-ch4.adb, nlists.ads, nlists.adb:
10806         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10807
10808         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
10809         Fix location of flag for unrecognized pragma message
10810
10811         * sem_ch7.adb: Use Nkind_In
10812
10813 2007-12-13  Vincent Celier  <celier@adacore.com>
10814
10815         * opt.ads:
10816         Indicate what flags are used by the Project Manager, gprbuild and
10817         gprclean.
10818         (Opt.Follow_Links_For_Dirs): New flag
10819         (Warn_On_Assertion_Failure): New flag
10820         (Wide_Character_Encoding_Method_Specified): New flag
10821         (Suppress_All_Inlining): New switch set by -fno-inline
10822         (Real_VMS_Target): New flag
10823         New pragma Fast_Math
10824
10825 2007-12-13  Robert Dewar  <dewar@adacore.com>
10826
10827         * back_end.adb: Recognize -fno-inline
10828
10829 2007-12-13  Robert Dewar  <dewar@adacore.com>
10830
10831         * checks.adb: Fix optimization problem with short-circuited form
10832
10833 2007-12-13  Bob Duff  <duff@adacore.com>
10834
10835         * clean.adb (Usage): Add line for -aP
10836         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
10837         with a parameter "procedure Usage", instead of passing a pointer to a
10838         procedure. This is to eliminate trampolines (since the Usage procedure
10839         is often nested in a main procedure, and it would be inconvenient to
10840         unnest it).
10841
10842         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
10843         to be generic, with a parameter "procedure Callback (...)", instead of
10844         passing a pointer to a procedure. This is to eliminate trampolines
10845         (since the Callback procedure is usually nested).
10846
10847         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
10848         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
10849         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
10850
10851         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
10852         Use the generic Heap_Sort_G instead of Heap_Sort_A.
10853
10854 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
10855
10856         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
10857         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
10858         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
10859         (Renamed_In_Spec): New flag
10860         (Has_Pragma_Inline_Always): New flag
10861         Add missing doc for pragma Obsolescent_Warning
10862         Add missing doc for 17 additional unused flags (230-247)
10863         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
10864         Alphabetize with clauses.
10865         Separate Is_Thunk and Has_Thunks flags
10866         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
10867         (Related_Interface): Renamed to Related_Type.
10868         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
10869         (Set_Is_Flag): Restrict the assertion.
10870
10871 2007-12-13  Vincent Celier  <celier@adacore.com>
10872
10873         * errout.adb (Output_Source_Line): Do not keep a trailing space after
10874         the source line number if the source line is empty.
10875
10876 2007-12-13  Geert Bosch  <bosch@adacore.com>
10877
10878         * eval_fat.adb (Decompose_Int): Handle argument of zero.
10879         (Compose): Remove special casing of zero.
10880         (Exponent): Likewise.
10881         (Fraction): Likewise.
10882         (Machine): Likewise.
10883         (Decompose): Update comment.
10884
10885 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
10886
10887         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
10888         limited ancestor part, initialize controllers of enclosing record
10889         before expanding ancestor aggregate.
10890         (Gen_Assign): If a component of the aggregate is box-initialized, add
10891         code to call Initialize if the component is controlled, and explicit
10892         assignment of null if the component is an access type.
10893
10894         Handle properly aggregates for limited types that appear in object
10895         declarations when the aggregate contains controlled values such as
10896         protected types.
10897         When expanding limited aggregates into individual components, do not
10898         call Adjust on controlled components that are limited.
10899
10900 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
10901
10902         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
10903
10904 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
10905
10906         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
10907         predefined primitive _Disp_Requeue.
10908         (Make_Predefined_Primitive_Specs): Create the spec for predefined
10909         primitive _Disp_Requeue.
10910         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
10911         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
10912         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
10913         an interface type. In case of limited interfaces we now declare all the
10914         predefined primitives associated with synchronized interfaces as
10915         abstract.
10916         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
10917         declarations.
10918         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
10919         tagged type is an interface type and there is no user-defined equality
10920         function.
10921         Add also bodies of predefined primitives associated with synchronized
10922         interfaces.
10923         (Freeze_Record_Type): Do not build bodies of predefined primitives of
10924         interface types because they are now defined abstract.
10925         Add missing documentation.
10926         (Expand_Record_Controller): Update occurrence of Related_Interface
10927         to Related_Type.
10928         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
10929         (Expand_N_Object_Declaration): Take into account VM_Target when handling
10930         class wide interface object declaration.
10931         (Expand_Previous_Access_Type): Do not create a duplicate master entity
10932         if the access type already has one.
10933         (Expand_N_Object_Declaration): Defend against attempt to validity check
10934         generic types. Noticed for -gnatVcf specified with previous errors.
10935
10936 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
10937
10938         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
10939         Expand_Allocator_Expression): Take into account VM_Target
10940
10941         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
10942         secondary stack when VM_Target /= No_VM
10943
10944 2007-12-13  Javier Miranda  <miranda@adacore.com>
10945             Ed Schonberg  <schonberg@adacore.com>
10946
10947         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
10948         Is_Complation_Unit by Is_Library_Level_Entity in the code
10949         that decides if the static dispatch tables need to be built.
10950         (Wrap_Transient_Declaration): Do not generate a finalization call if
10951         this is a renaming declaration and the renamed object is a component
10952         of a controlled type.
10953
10954 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
10955
10956         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
10957         In the case where the renamed subprogram is a dereference, call
10958         Force_Evaluation on the prefix.
10959
10960 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
10961             Ed Schonberg  <schonberg@adacore.com>
10962
10963         * exp_ch9.adb (Expand_N_Asynchronous_Select,
10964         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
10965         comment reformatting.
10966         (Set_Privals): Inherit aliased flag from formal. From code reading.
10967         (Build_Simple_Entry_Call): Out parameters of an access type are passed
10968         by copy and initialized from the actual. This includes entry parameters.
10969         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
10970         and Ada 2005 models of requeue.
10971         (Null_Statements): Still connsider do-end block null if it contains
10972         Unreferenced and Warnings pragmas.
10973         (Expand_N_Accept_Statement): Do not optimize away null do end if
10974         dispatching policy is other than defaulted.
10975         (Expand_N_Timed_Entry_Call): When the triggering statement is a
10976         dispatching call, manually analyze the delay statement.
10977         (Find_Parameter_Type): Move subprogram to Sem_Util.
10978
10979 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
10980             Javier Miranda  <miranda@adacore.com>
10981
10982         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
10983         _Disp_Requeue occupies dispatch table slot number 15. Move
10984         _Disp_Timed_Select to slot 16.
10985         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
10986         generate the spec and body of _Disp_Reqeueue.
10987         (Make_DT): Build and initialize the second dispatch table.
10988         Handle initialization of RC_Offset when the parent
10989         is a private type with variable size components.
10990         (Make_Secondary_DT): Complete documentation. Add support to
10991         initialize the second dispatch table.
10992         (Make_Tags): Generate the tag of the second dispatch table.
10993         (Register_Primitive): Add support to register primitives in the
10994         second dispatch table.
10995
10996 2007-12-13  Pascal Obry  <obry@adacore.com>
10997
10998         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
10999         Windows. This signal is used by gnatmake to kill child processes for
11000         example.
11001
11002 2007-12-13  Javier Miranda  <miranda@adacore.com>
11003
11004         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11005         support for generic dispatching constructor calls in which we need to
11006         locate the tag of a secondary dispatch table associated with an
11007         interface type to properly dispatch the call.
11008         (Expand_N_Attribute_Reference [case Address],
11009         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
11010         handling of VM targets.
11011
11012 2007-12-13  Robert Dewar  <dewar@adacore.com>
11013             Ed Schonberg  <schonberg@adacore.com>
11014
11015         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
11016         assert fail
11017
11018         * ug_words: Add entries for -gnatw.a -gnatw.A
11019
11020         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
11021         literal is a subtype with non-static constraints, use the base type of
11022         the context as the base of the string subtype, to prevent type
11023         mismatches in gigi.
11024         (Resolve_Actuals): If the actual is an entity name, generate a
11025         reference before the actual is resolved and expanded, to prevent
11026         spurious warnings on formals of enclosing protected operations.
11027         (Analyze_Overloaded_Selected_Component): If type of prefix if
11028         class-wide, use visible components of base type.
11029         (Resolve_Selected_Component): Ditto.
11030         (Resolve_Short_Circuit): Detect case of pragma Assert argument
11031         evaluating to False, and issue warning message.
11032
11033         * usage.adb: Add lines for -gnatw.a and -gnatw.A
11034
11035 2007-12-13  Emmanuel Briot  <briot@adacore.com>
11036
11037         * g-calend.ads (No_Time): New constant, to represent an uninitialized
11038         time value
11039
11040         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
11041         formats.
11042         (Month_Name_To_Number): New subprogram
11043
11044         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
11045         letter to upper-case.
11046
11047 2007-12-13  Robert Dewar  <dewar@adacore.com>
11048             Ed Schonberg  <schonberg@adacore.com>
11049
11050         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
11051
11052         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
11053         context is a limited view, use non-limited view when available. If the
11054         non-limited view is an unconstrained array, this enforces consistency
11055         requirements in 3.10.2 (27).
11056         (Layout_Type): For an access type whose designated type is a limited
11057         view, examine its declaration to determine if it is an unconstrained
11058         array, and size the access type accordingly.
11059         (Layout_Type): Do not force 32-bits for convention c subprogram
11060         pointers in -gnatdm mode, only if real vms target.
11061
11062         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
11063         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11064         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
11065         violations of the No_Implicit_Dynamic_Code restriction.
11066         (Resolve_Attribute, case 'Access): If designated type of context is a
11067         limited view, use non-limited view when available. If the non-limited
11068         view is an unconstrained array, this enforces consistency requirements
11069         in 3.10.2 (27).
11070         (Layout_Type): For an access type whose designated type is a limited
11071         view, examine its declaration to determine if it is an unconstrained
11072         array, and size the access type accordingly.
11073
11074 2007-12-13  Vincent Celier  <celier@adacore.com>
11075
11076         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
11077         object directory of main project does not exist.
11078         On VMS, correctly set then environment variable for the source
11079         directories.
11080
11081 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
11082
11083         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
11084         set to True this procedure will create the value of type REG_EXPAND_SZ.
11085         It was only possible to create REG_SZ values before.
11086
11087 2007-12-13  Robert Dewar  <dewar@adacore.com>
11088
11089         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
11090         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
11091         namet-sp.adb, namet-sp.ads: New files.
11092
11093         * g-speche.adb: Use generic routine in g-spchge
11094
11095         * s-wchcnv.ads, s-wchcnv.adb:
11096         Minor code cleanup (make formal type consistent with spec)
11097
11098         * namet.adb: Update comments.
11099
11100         * par-endh.adb (Evaluate_End_Entry): Use new
11101         Namet.Sp.Is_Bad_Spelling_Of function
11102
11103         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
11104
11105         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
11106         ancestor is an access type initialized with a box, set its type
11107         explicitly, for use in subsequent expansion.
11108         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
11109         function
11110
11111 2007-12-13  Robert Dewar  <dewar@adacore.com>
11112
11113         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
11114         access Vstring)
11115
11116 2007-12-13  Robert Dewar  <dewar@adacore.com>
11117
11118         * inline.adb (Back_End_Cannot_Inline): Use new flag
11119         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11120
11121         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
11122         Has_Pragma_Inline_Always instead.
11123         of obsolete function Is_Always_Inlined
11124         (Build_Body_To_Inline): Same change
11125         (Cannot_Inline): Same change
11126         Do not give warning on exception raise in No_Return function
11127
11128         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
11129         component has two inconsistent component clauses in the same record
11130         representation clause, favor the message that complains about
11131         duplication rather than inconsistency.
11132         Update comments.
11133         (Record_Representation_Clause): Do not warn on missing component
11134         clauses for inherited components of a type extension.
11135         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
11136         an overloadable item if it is a pragma that can apply to multiple
11137         overloadable entities (e.g. Inline) because a pragma cannot be on
11138         more than one chain at a time.
11139         (Validate_Unchecked_Conversion): Add code to warn on unchecked
11140         conversion where one of the operands is Ada.Calendar.Time.
11141         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
11142         For now, ignore Component_Size clause on VM targets, as done for
11143         pragma Pack.
11144
11145 2007-12-13  Emmanuel Briot  <briot@adacore.com>
11146             Vincent Celier  <celier@adacore.com>
11147
11148         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
11149         string
11150         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
11151         prj.ads
11152         (Hash): Move instantiation of System.HTable.Hash from spec to body
11153         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
11154         systems, since we do not need to recompute the Name_Id for the canonical
11155         file name.
11156         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11157         as a parameter. This parameter is in fact always "ada" in all calls, and
11158         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
11159         while loading a project with 40000 files
11160
11161         * prj-attr.adb: Fix name of attribute Dependency_Driver
11162         Change the kind of indexing for attribute Root
11163
11164         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
11165         variables already declared, in case constructions.
11166
11167         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
11168         Current_Object_Path_File to No_Path.
11169
11170         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
11171         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
11172
11173         * prj-makr.adb: new parameter Current_Dir
11174
11175         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
11176         Ada sources when language is not Ada.
11177         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11178         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
11179         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
11180         (Locate_Directory): Always resolve links when computing Canonical_Path
11181         (Look_For_Sources): Make sure that Name_Buffer contains the file name
11182         in Source_Files before checking for the presence of a directory
11183         separator.
11184         Optimize calls to Name_Find when on case sensitive systems.
11185         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11186         as a parameter.
11187         (Prj.Nmsc.Check): new parameter Current_Dir
11188         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
11189         cannot be empty and the spec suffix cannot be the same as the body or
11190         separate suffix.
11191         (Get_Unit): When a file name can be of several unit kinds (spec, body or
11192         subunit), always consider the longest suffix.
11193         (Check_Configuration): Do not issue an error if there is no compiler
11194         for a language. Just issue a warning and ignore the sources for the
11195         language.
11196         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
11197         not empty.
11198         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
11199         (Unit_Exceptions): New hash table
11200         (Check_Naming_Schemes): Check if a file that could be a unit because of
11201         the naming scheme is not in fact a source because there is an exception
11202         for the unit.
11203         (Look_For_Sources): Put the unit exceptions in hash table
11204         Unit_Exceptions
11205         (Get_Unit_Exceptions): Give initial value No_Source to local variable
11206         Other_Part to avoid exception when code is compiled with validity
11207         checking.
11208         (Get_Sources_From_File): Check that there is no directory information
11209         in the file names.
11210         (Look_For_Sources): Check that there is no directory information in the
11211         list of file names in Source_Files.
11212         (Look_For_Sources): In multi-language mode, do not allow exception file
11213         names that are excluded.
11214         (Excluded_Sources_Htable): New hash table
11215         (Search_Directories.Check_File): New procedure to simplify
11216         Search_Directories.
11217         (Search_Directories): Do not consider excluded sources
11218         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
11219         Search_Directories.
11220         (Get_Exceptions): Set component Lang_Kind of Source_Data
11221         (Get_Unit_Exceptions): Ditto
11222         (Search_Directories): Ditto
11223
11224         * prj-pars.adb: new parameter Current_Dir
11225
11226         * prj-part.ads, prj-part.adb:
11227         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11228         (Opt.Follow_Links_For_Dirs): New flag
11229         (Project_Path_Name_Of): Cache information returned by this routine as
11230         Locate_Regular_File is a costly routine. The code to output a log
11231         information and the effective call to Locate_Regular_File is now
11232         factorized into a routine (code clean-up).
11233         (Parse, Parse_Single_Project): new parameter Current_Dir
11234         When main project file cannot be found, indicate in the error
11235         message the project path that was used to do the search.
11236
11237         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
11238         (Prj.Proc.Process*): new parameter Current_Dir
11239
11240         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
11241
11242 2007-12-13  Bob Duff  <duff@adacore.com>
11243
11244         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
11245         procedure to be called from the back end to check the
11246         No_Implicit_Dynamic_Code restriction.
11247
11248 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
11249
11250         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
11251         Fixes another case where RTE_Available_Call was ignored instead of being
11252         taken into account.
11253         (Load_Fail): Ditto.
11254
11255         * rtsfind.ads: Add new entries.
11256
11257 2007-12-13  Robert Dewar  <dewar@adacore.com>
11258
11259         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
11260         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
11261
11262         * scn.adb: Implement BOM recognition
11263
11264 2007-12-13  Thomas Quinot  <quinot@adacore.com>
11265             Ed Schonberg  <schonberg@adacore.com>
11266
11267         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
11268         subprogram body that acts as its own spec may not have a non-private
11269         WITH clause on a private sibling.
11270         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
11271         child unit is a renaming, create an implicit with_clause on that
11272         parent, and not on the unit it renames, to prevent visibility errors
11273         in the current unit.
11274
11275 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
11276
11277         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
11278         renaming declaration, use the Slocs of the formal parameters from the
11279         declaration of the formal subprogram when creating the formal parameter
11280         entities in the renaming declaration.
11281         (Analyze_Formal_Type_Declaration): Change the placement of the error
11282         message concerning illegal known discriminants. It is now posted on the
11283         type rather than on the first discriminant. This change ensures early
11284         error report.
11285         (Freeze_Subprogram_Body): If the generic subprogram is nested within
11286         the package body that contains the instance, do not generate an
11287         out-of-place freeze node for the enclosing package.
11288         (Collect_Previous_Instantiations): Ignore internal instantiations
11289         generated for formal packages.
11290         (Validate_Derived_Type_Instance): Add a check that when a formal
11291         derived type is Known_To_Have_Preelab_Init then the actual type must
11292         have preelaborable initialization, and issue an error when this
11293         condition is violated.
11294
11295 2007-12-13  Robert Dewar  <dewar@adacore.com>
11296
11297         * s-imenne.adb, s-imenne.ads: New files.
11298
11299         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
11300         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
11301         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
11302         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
11303         s-imgwch.ads: New calling sequence for Image routines to avoid sec
11304         stack usage.
11305
11306 2007-12-13  Javier Miranda  <miranda@adacore.com>
11307             Ed Schonberg  <schonberg@adacore.com>
11308
11309         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
11310         generation of spurious error if parent is an interface type; caused
11311         because predefined primitive bodies will be generated later by
11312         Freeze_Record_Type.
11313         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
11314         flag.
11315         (Derive_Subprograms): Handle derivations of predefined primitives
11316         after all the user-defined primitives to ensure that they are
11317         found in proper order in instantiations.
11318         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
11319         of Related_Interface to Related_Type.
11320         (Record_Type_Declaration): Minor reordering of calls to decorate the
11321         Tag component because the entity must have set its Ekind attribute
11322         before setting its Is_Tag attribute.
11323         (Analyze_Subtype_Declaration): In the case of subtypes with
11324         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
11325
11326 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11327             Ed Schonberg  <schonberg@adacore.com>
11328
11329         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
11330         statement to the list of contexts where a selected component with a
11331         concurrent tagged type prefix should yield a primitive operation.
11332         (Find_Primitive_Operation): Handle case of class-wide types.
11333         (Analyze_Overloaded_Selected_Component): If type of prefix is
11334         class-wide, use visible components of base type.
11335         (Resolve_Selected_Component): Ditto.
11336         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
11337         formal of a generic subprogram. find candidate interpretations by
11338         scanning the list of generic formal declarations.:
11339         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
11340         type from a limited_with_clause, and the full view is available, use it
11341         for subsequent semantic checks.
11342         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
11343         (Find_Primitive_Operation): New function.
11344         (Analyze_Overloaded_Selected_Component): insert explicit dereference
11345         only once if several interpretations of the prefix yield an access type.
11346         (Try_Object_Operation): Code and comment cleanup.
11347         (Analyze_Selected_Component): Reorder local variables. Minot comment and
11348         code reformatting. When the type of the prefix is tagged concurrent, a
11349         correct interpretation might be available in the primitive and
11350         class-wide operations of the type.
11351
11352 2007-12-13  Robert Dewar  <dewar@adacore.com>
11353             Ed Schonberg  <schonberg@adacore.com>
11354
11355         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
11356         renaming entry as subprogram using rename-as-body if subprogram spec
11357         frozen.
11358         (Use_One_Type): The clause is legal on an access type whose designated
11359         type has a limited view.
11360         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11361         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11362         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
11363         operation denoted by a selected component.
11364         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
11365         it can be an expression, possibly overloaded, that returns a task or
11366         an access to one.
11367
11368 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11369             Gary Dismukes  <dismukes@adacore.com>
11370
11371         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
11372         requeue statement is dispatching. Do not emit an error when the name is
11373         not an entry and the context is a dispatching select. Add code to
11374         perform subtype conformance between the formals of the current entry
11375         and those of the target interface primitive.
11376         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
11377         Timed_Entry_Call): Analyze the triggering statement as the first step of
11378         the processing. If this is a dispatching select, postpone the analysis
11379         of all select statements until the Expander transforms the select. This
11380         approach avoids generating duplicate identifiers after the Expander has
11381         replicated some of the select statements. In case the Expander is
11382         disabled, perform regular analysis.
11383         (Check_Triggering_Statement): New routine.
11384         (Analyze_Requeue): Exclude any interpretations that are not entries when
11385         checking overloaded names in a requeue. Also test type conformance for
11386         matching interpretations rather than requiring subtype conformance at
11387         that point to conform with the RM's resolution rule for requeues.
11388
11389 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
11390
11391         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
11392         inherited operation is a defaulted tag-indeterminate call, and there is
11393         a statically tagged actual, use the static tag as a controlling actual
11394         for the defaulted actual.
11395
11396 2007-12-13  Geert Bosch  <bosch@adacore.com>
11397
11398         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
11399         context, so do not call Check_Non_Static_Context.
11400
11401 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
11402
11403         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
11404         whether formal E is an entity which may have parameters.
11405
11406 2007-12-13  Bob Duff  <duff@adacore.com>
11407             Javier Miranda  <miranda@adacore.com>
11408             Robert Dewar  <dewar@adacore.com>
11409
11410         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
11411         (Set_Convention): New procedure to set the Convention flag, and in
11412         addition make sure the Favor_Top_Level flag is kept in sync (all
11413         foreign-language conventions require Favor_Top_Level = True).
11414         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
11415         to Related_Type.
11416         (Collect_Interfaces_Info): Minor update to handle the two secondary
11417         dispatch tables. Update occurrence of Related_Interface to Related_Type.
11418         (Generate_Parent_Ref): Add parameter to specify entity to check
11419         (Is_Preelaborable_Expression): Allow the name of a discriminant to
11420         initialize a component of a type with preelaborable initialization.
11421         This includes the case of a discriminal used in such a context.
11422         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
11423         latest Ada 2005 rules about renaming and 'Access of
11424         discriminant-dependent components.
11425         (Check_Nested_Access): Add handling when there are no enclosing
11426         subprograms (e.g. case of a package body).
11427         (Find_Parameter_Type): Factor routine from several other compiler files.
11428         Remove routine from Find_Overridden_Synchronized_Primitive.
11429
11430 2007-12-13  Thomas Quinot  <quinot@adacore.com>
11431
11432         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
11433         an invalid access to an uninitialized slot in the
11434         Source_File_Index_Table.
11435
11436 2007-12-13  Thomas Quinot  <quinot@adacore.com>
11437
11438         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
11439
11440 2007-12-13  Bob Duff  <duff@adacore.com>
11441
11442         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
11443         access-to-subprogram types in this package.
11444
11445 2007-12-13  Olivier Hainque  <hainque@adacore.com>
11446
11447         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
11448         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
11449         Stack_Overlay_Address and document that we are using an internal
11450         abstraction.
11451         (Byte_Size, Unsigned_32_Size): Remove, now useless.
11452         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
11453         consistently throughout the various implementation pieces.
11454
11455         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
11456         overlay we are using to fill the stack area with patterns.
11457         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
11458         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
11459         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
11460
11461 2007-12-13  Robert Dewar  <dewar@adacore.com>
11462
11463         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
11464
11465 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
11466
11467         * s-tassta.adb:
11468         (Create_Task): Take into account tasks created by foreign threads.
11469         Code clean up: use constants instead of hard coded values.
11470
11471 2007-12-13  Robert Dewar  <dewar@adacore.com>
11472
11473         * styleg.adb (Check_Comment): More liberal rules for comment placement
11474
11475 2007-12-13  Olivier Hainque  <hainque@adacore.com>
11476
11477         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
11478         of Procedure Value instead of Frame Pointer as the invocation
11479         identifier associated with the instruction pointer in each traceback
11480         entry.
11481
11482         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
11483         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
11484         Pointer as the invocation identifier passed to tbk$symbolize.
11485
11486         * s-traent-vms.ads, s-traent-vms.adb
11487         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
11488         Procedure Value instead of Frame Pointer as the invocation identifier
11489         passed to tbk$symbolize.
11490
11491 2007-12-13  Robert Dewar  <dewar@adacore.com>
11492
11493         * tbuild.ads, tbuild.adb:
11494         Fix location of flag for unrecognized pragma message
11495
11496 2007-12-13  Robert Dewar  <dewar@adacore.com>
11497
11498         * treepr.ads, treepr.adb: (pl): implement use of positive value
11499         shorthands
11500
11501 2007-12-13  Robert Dewar  <dewar@adacore.com>
11502
11503         * xeinfo.adb: Remove warnings
11504         * xnmake.adb: Remove warnings
11505         * xsinfo.adb: Remove warnings
11506         * xtreeprs.adb: Remove warnings
11507         * xsnames.adb: Remove warnings
11508
11509         * a-ngcoar.adb: Fix typo.
11510         * s-interr.adb: Minor reformatting
11511         * env.c: Minor reformatting.
11512         * g-bytswa.adb: Minor reformatting.
11513         * g-rannum.ads: Minor documentation improvements
11514         * s-tasinf-mingw.adb: Minor header fix
11515         * a-clrefi.adb: Minor reformatting
11516         * g-sttsne.ads: Minor documentation improvement
11517         * g-sttsne-locking.ads: Minor documentation improvement
11518         * g-soliop-solaris.ads: Minor documentation improvement
11519         * g-soliop-mingw.ads: Minor documentation improvement
11520         * g-soliop.ads: Minor documentation improvement
11521         * exp_aggr.ads: Minor reformatting
11522         * debug.adb: Add documentation for the gprbuild debug flags
11523         * exp_ch2.adb: Use Nkind_In to simplify code throughout
11524         * exp_pakd.adb: Minor reformatting
11525
11526         * g-altive.ads, g-alleve.adb: Remove assertions.
11527         Add comment about minor differences between targets regarding
11528         floating-point operations.
11529
11530         * g-thread.adb: Remove pragma unreferenced.
11531         * lib.ads: Minor reformatting
11532         * par-ch9.adb: Minor reformatting of error messages
11533         * sem_case.adb: Minor reformatting
11534         * s-fileio.adb: Minor reformattinng
11535         * s-vmexta.ads: Minor typo
11536         * vxaddr2line.adb:
11537         Take into account 'Success' value as per new GNAT warning.
11538
11539 2007-12-13  Vincent Celier  <celier@adacore.com>
11540
11541         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
11542         even on Windows
11543
11544 2007-12-13  Robert Dewar  <dewar@adacore.com>
11545             Bob Duff  <duff@adacore.com>
11546
11547         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
11548         Document that suffixes may be terminations of each others
11549         Add doc for -gnatw.a and -gnatw.A
11550         Document gnatbind -Wx switch
11551         Document BOM recognition
11552         Document pragma Implemented_By_Entry.
11553         Document new units.
11554
11555         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
11556         Add doc for pragma Unreferenced suppressing no entities referenced msg
11557         Add documentation of GNAT.Directory_Operations.Iteration
11558         Add documentation of GNAT.Random_Numbers
11559         Add documentation for pragma Shared.
11560         Correct documentation for Bit_Order
11561         Add documentation for the Pool_Address attribute.
11562         Fix and improve documentation of pragma machine_attribute.
11563         New pragma Fast_Math
11564         Document BOM recognition
11565
11566         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
11567         Add /Wide_Character_Encoding for binder
11568         Add qualifier for the new gnatpp option --no-separate-loop-then
11569
11570 2007-12-13  Matthew Heaney  <heaney@adacore.com>
11571
11572         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
11573         which generic formal operations are called for each operation.
11574
11575 2007-12-13  Olivier Hainque  <hainque@adacore.com>
11576
11577         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
11578         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
11579
11580 2007-12-13  Emmanuel Briot  <briot@adacore.com>
11581
11582         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
11583         Reference_Dir unless we actually need it.
11584
11585 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
11586             Tristan Gingold  <gingold@adacore.com>
11587
11588         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
11589
11590         * s-osprim-vms.adb,
11591         a-calend-vms.adb: Remove pragma warning off and add pragma
11592         unreferenced.
11593
11594 2007-12-13  Robert Dewar  <dewar@adacore.com>
11595
11596         * impunit.adb: Add entries for missing units
11597
11598         * Makefile.rtl: Add new run-time units.
11599
11600         * Make-lang.in:  Update dependencies.
11601
11602 2007-12-13  Bob Duff  <duff@adacore.com>
11603
11604         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
11605         types, set Can_Use_Internal_Rep appropriately, based on
11606         Always_Compatible_Rep_On_Target.
11607
11608 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
11609             Arnaud Charlet  <charlet@adacore.com>
11610
11611         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
11612         it to the front end and setting the aamp_target environment variable
11613         to the switch's argument to ensure that gnaampbind and gnaamplink will
11614         take the specified library into account.
11615         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
11616         target, since the CIL compiler supports an "object" file (.il files).
11617
11618 2007-12-13  Vincent Celier  <celier@adacore.com>
11619
11620         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
11621         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
11622
11623 2007-12-13  Geert Bosch  <bosch@adacore.com>
11624
11625         * s-parame-vxworks.adb:
11626         Update comments to reflect usage of this package by Nucleus.
11627
11628 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
11629
11630         * i-vxwork.ads: Kill new warning on Convention C, since changing the
11631         spec would break code.
11632
11633         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
11634
11635         * system-vxworks-alpha.ads: Removed.
11636
11637 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
11638
11639         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
11640
11641 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
11642
11643         PR ada/34366
11644         * sem_ch3.adb (Designates_T): New function.
11645         (Mentions_T): Factor reusable part of the logic into Designates_T.
11646         Consider non-access parameters and access and non-access result.
11647         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
11648         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
11649
11650         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
11651
11652 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
11653
11654         PR ada/34361
11655         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
11656         the new implementation of target-specific calls.
11657
11658 2007-12-07  Olivier Hainque  <hainque@adacore.com>
11659
11660         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
11661         the designated full view, only follow a second level Full_View link
11662         for Non_Limited_Views of from_limited_with references.
11663
11664 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
11665
11666         PR ada/15805
11667         * sem_ch6.adb (Process_Formals): Prevent an access type formal
11668         to be initialized with an access to constant object.
11669
11670         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
11671         when an access to constant is used to initialize an access
11672         value.
11673
11674         PR ada/21346
11675         * a-direct.adb (Compose): Containing_Directory can be an empty string.
11676
11677 2007-12-07  Olivier Hainque  <hainque@adacore.com>
11678
11679         PR ada/34173
11680         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
11681         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
11682         this is from an alignment clause on the GNAT entity.
11683         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
11684         to distinguish the case where we set it from the type's alignment.
11685         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
11686         whether this alignment was set from an explicit alignment clause.
11687
11688 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         * decl.c (make_packable_type): Revert last change.
11691         (gnat_to_gnu_field): Avoid setting size and position multiple times.
11692         * utils.c (finish_record_type): Retrieve the real name of the type.
11693
11694 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
11695
11696         * trans.c (lvalue_required_p): Take base node directly instead
11697         of its parent.  Rename second parameter to 'gnu_type'.
11698         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
11699         <N_Slice>: Likewise.
11700         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
11701         Adjust calls to lvalue_required_p.
11702
11703 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
11704
11705         PR ada/21489
11706         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
11707         parameters of an entry call.
11708
11709 2007-12-03  Robert Dewar  <dewar@adacore.com>
11710             Samuel Tardieu  <sam@rfc1149.net>
11711
11712         PR ada/34287
11713         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
11714         of variables declared in a library-level package.
11715
11716 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
11717
11718         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
11719         of Empty_String'Unchecked_Access.
11720
11721         * Makefile.in: Add support for sh4-linux.
11722
11723         * system-linux-sh4.ads: New file.
11724
11725 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
11726
11727         PR ada/33722
11728         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
11729         and its argument must not be free()ed.
11730
11731 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
11732
11733         * decl.c (make_packable_type): Retrieve the real name of the type.
11734         (maybe_pad_type): Simplify similar code.
11735
11736 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
11737
11738         PR ada/15804
11739         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
11740         than an identifier is used after "case" in a variant_part.
11741
11742         PR ada/17318
11743         * par-ch4.adb (Is_Parameterless_Attribute): New map.
11744         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
11745         attribute name or not depending on the new map.
11746
11747         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
11748         returning a string or a type will not be called with improper
11749         arguments.
11750
11751         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
11752
11753         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
11754
11755         PR ada/32792
11756         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
11757         Signal an error when attribute argument is a fixed-point value of
11758         an unknown type.
11759
11760         PR ada/22559
11761         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
11762         a derived ordinary fixed point type.
11763
11764         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
11765         RM_Size when a Small clause is found.
11766
11767 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
11768
11769         PR 34081/C++
11770         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
11771         Pass 'false' for the new allocate_struct_function parameter.
11772         * utils.c (build_function_stub): Likewise.
11773
11774 2007-11-25  Richard Guenther  <rguenther@suse.de>
11775
11776         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
11777         (gnat_poplevel): Likewise.
11778
11779 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
11780
11781         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
11782         strict alignment, no alignment clause and a known static size, cap
11783         the type alignment to the greatest power of 2 factor of the size.
11784         (gnat_to_gnu_field): If the field has a component clause, is aliased
11785         or of a type with strict alignment, require that its size be equal to
11786         that of the type.
11787         (validate_size): Use the type size as the minimum size for a type with
11788         strict alignment.
11789
11790 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
11791
11792         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
11793         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
11794         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
11795         Use 'Access instead of 'Unchecked_Access in second and third
11796         arguments of pthread_sigmask.
11797
11798 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
11799
11800         * decl.c (ceil_alignment): New function.
11801         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
11802         (make_packable_type): Likewise.
11803
11804 2007-11-22  Olivier Hainque  <hainque@adacore.com>
11805
11806         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
11807         to fit in 80 columns.
11808
11809 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
11810
11811         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
11812         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
11813
11814 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
11815
11816         PR ada/34098
11817         * misc.c (gnat_adjust_rli): Delete.
11818         (gnat_init): Do not initialize the translation code here.
11819         Do not call set_lang_adjust_rli.
11820         * trans.c (init_code_table): Make static.
11821         (gnat_init_stmt_group): Delete.
11822         (gigi): Initialize the translation code entirely here.
11823         Emit debug info for the common types here instead of...
11824         * utils.c (gnat_init_decl_processing): ...here.
11825         * gigi.h (init_code_table): Delete.
11826         (gnat_init_stmt_group): Likewise.
11827
11828 2007-11-16  Olivier Hainque  <hainque@adacore.com>
11829
11830         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
11831         retrieving an allocator return value from a super-aligned address from
11832         here to ...
11833         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
11834         expect a super-aligned address for a fat or thin pointer.
11835
11836 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
11837
11838         * trans.c (call_to_gnu): Always set the source location on the call
11839         expression.  If the function returns-by-target, also set it on the
11840         address expression.
11841
11842 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
11843
11844         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
11845         sections of non-supported Interix target.
11846
11847         * s-osinte-interix.ads: Removed.
11848
11849         * i-cstrin.ads (chars_ptr): Make it a C convention type.
11850
11851 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
11852
11853         * a-tasatt.adb: Add a comment at the beginning of the package
11854         explaining why in general 'Unchecked_Access must be used instead
11855         of 'Access.
11856
11857         * sem_prag.adb (Process_Convention): Move the test for the
11858         entity on which the Convention pragma applies down to also
11859         forbid pragma Convention on enumeration literals reached
11860         through renamings.
11861
11862 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
11863
11864         * a-tasatt.adb: Revert previous change for this file as it will
11865         generate an error when this package is instantiated from a
11866         local context.
11867
11868 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
11869
11870         * a-tasatt.adb: Type Wrapper should be declared in comment instead
11871         of already declared type Node_Access.
11872         Use 'Access instead of 'Unchecked_Access when applicable. Local
11873         lifetime is the one of the package.
11874         (Set_Value): W is allocated on the heap.
11875
11876         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
11877         applicable.
11878         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
11879         access type.
11880         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
11881         access type.
11882
11883         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
11884         applicable.
11885         (elaboration code): Timer_Queue lifetime is the one of the
11886         package.
11887
11888         * tracebak.c (i386 alternative): Remove useless comparaison
11889         which is always false; LOWEST_ADDRESS is 0 and is never greater
11890         than an unsigned integer.
11891
11892         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
11893         embedded check for "Ada_Version >= Ada_05".
11894
11895 2007-11-07  Olivier Hainque  <hainque@adacore.com>
11896
11897         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
11898         craft and expand comment.
11899
11900 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
11901
11902         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
11903
11904 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
11905
11906         * misc.c (gnat_handle_option): Replace call to abort with
11907         call to gcc_unreachable.
11908         (gnat_init): Likewise.
11909         (gnat_expand_expr): Likewise.
11910         (fp_prec_to_size): Likewise.
11911         (fp_size_to_prec): Likewise.
11912
11913 2007-10-23  Richard Guenther  <rguenther@suse.de>
11914
11915         PR bootstrap/33608
11916         * tracebak.c: #undef abort after including system.h.
11917
11918 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
11919
11920         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
11921         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
11922         for win32 targets.
11923         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
11924
11925 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
11926
11927         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
11928         Set the protection status of the guard page based on the value of On.
11929
11930         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
11931
11932         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
11933         (Exit_Task): Pass False to Hide_Yellow_Zone.
11934
11935 2007-10-15  Robert Dewar  <dewar@adacore.com>
11936
11937         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
11938         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
11939         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
11940         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
11941         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
11942         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
11943         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
11944         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
11945         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
11946         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
11947         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
11948         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
11949         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
11950         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
11951         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
11952         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
11953         Minor reformatting.
11954         Add Unreferenced and Warnings (Off) pragmas for cases of
11955         variables modified calls where they are IN OUT or OUT parameters and
11956         the resulting values are not subsequently referenced. In a few cases,
11957         we also remove redundant code found by the new warnings.
11958
11959         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
11960         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
11961         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
11962         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
11963         warning controlled by -gnatw.o that warns on cases of out parameter
11964         values being ignored.
11965
11966 2007-10-15  Geert Bosch  <bosch@adacore.com>
11967
11968         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
11969
11970         * expect.c: Initial port to arm-mentor-nucleus.
11971         Use kill for __gnat_kill() on VMS.
11972
11973 2007-10-15  Emmanuel Briot  <briot@adacore.com>
11974
11975         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
11976         value.
11977         (Xref_Record): Change type for Line, since in the case of a reference to
11978         a predefined entity (as happens for array index types), the line is set
11979         to 0.
11980         Add support for parsing multiple array index types info, or
11981         multiple inherited interfaces info. This information cannot be stored
11982         in Xref_Entity_Record, which only supports a single instance of Tref_*,
11983         and is therefore stored in the list of references instead. It has a
11984         special treatement later on in tools that use this information.
11985
11986 2007-10-15  Tristan Gingold  <gingold@adacore.com>
11987
11988         * debug.adb: Document use of -gnatd.a and -gnatd.I
11989
11990         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
11991
11992 2007-10-15  Javier Miranda  <miranda@adacore.com>
11993
11994         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
11995         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
11996         care of access to class-wide interface types plus removal of bizarre
11997         conversion of tagged object to access type (reported by Gary
11998         Dismukes). After this patch there is no need to perform any
11999         additional management on these nodes in Expand_Interface_Actuals.
12000
12001         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
12002         that handles use of 'Access and 'Unchecked_Access applied to
12003         actuals covering interface types. Such code is now
12004         centralized in Expand_N_Attribute_Reference.
12005
12006 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
12007
12008         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
12009         of tagged types whose ultimate ancestor is a CPP type.
12010         (Freeze_Array_Type): For a packed array type, generate an initialization
12011         procedure if the type is public, to handle properly a client that
12012         specifies Normalize_Scalars.
12013
12014 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
12015
12016         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
12017         inside a generic body, retrieve the full view of the entry family
12018         discrete subtype if available.
12019
12020 2007-10-15  Thomas Quinot  <quinot@adacore.com>
12021
12022         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
12023         attempt to generate stubs for hidden primitive operations.
12024
12025 2007-10-15  Vincent Celier  <celier@adacore.com>
12026
12027         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
12028         returning None, used when there is no platform specific body for
12029         MLib.Tgt.Specific.
12030
12031 2007-10-15  Bob Duff  <duff@adacore.com>
12032
12033         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
12034         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
12035         the generic Heap_Sort_G, in order to avoid trampolines.
12036
12037 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
12038             Jose Ruiz  <ruiz@adacore.com>
12039
12040         * vx_stack_info.c: New file.
12041
12042         * i-forbla-unimplemented.ads: New file.
12043
12044         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
12045         for unsupported configurations; use it on VMS targets instead of the
12046         real one.
12047         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
12048         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
12049         used by VxWorks targets to have access to task-specific data and be
12050         able to extract the stack boundaries for stack checking.
12051         Use system-vms-ia64.ads on ivms.
12052
12053         * Make-lang.in: Update dependencies.
12054
12055         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
12056         (vx_stack_info.c).
12057
12058 2007-10-15  Vincent Celier  <celier@adacore.com>
12059
12060         * snames.adb, snames.ads: Add new standard name runtime_library_dir
12061
12062         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
12063
12064         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
12065
12066         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
12067         the source is unknown.
12068
12069         * prj-ext.adb: Spelling error fix
12070
12071         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
12072         95 reserved word in its name.
12073         (Process_Project_Level_Array_Attributes): Process new attribute
12074         Runtime_Library_Dir.
12075
12076         * prj-part.adb (Parse_Single_Project): Do not check the name of the
12077         config project against the user project names.
12078
12079         * prj-proc.adb (Expression): In multi-language mode, indexes that do
12080         not include a dot are always case insensitive.
12081         (Process_Declarative_Items): Ditto
12082         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
12083         detected.
12084
12085         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
12086         True, compare both indexes in lower case.
12087
12088 2007-10-15  Robert Dewar  <dewar@adacore.com>
12089
12090         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
12091
12092 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
12093
12094         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
12095         association for an access component, add an association with null as
12096         the expression. Remove testing for array subtypes and the setting in
12097         that case of Ctyp to the array component type, which prevented proper
12098         inclusion of an association for null-initialized arrays. Collapse
12099         condition that tests for array subtypes into just a test of
12100         Is_Partially_Initialized_Type (which already covers arrays anyway).
12101
12102 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
12103
12104         * sem_ch12.adb: Minor code reformatting.
12105         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
12106         find the parent package which may have been hidden by local
12107         declarations.
12108
12109 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
12110
12111         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
12112         flag of derived concurrent types, taking into account the flag setting
12113         on the parent subtype and any new set of discriminants.
12114
12115 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
12116
12117         * sem_ch4.adb: Minor code and comment reformatting.
12118         (Analyze_Allocator): When the designated type of an unconstrained
12119         allocator is a record with unknown discriminants or an array with
12120         unknown range bounds, emit a detailed error message depending on the
12121         compilation mode and whether the designated type is limited.
12122
12123 2007-10-15  Tristan Gingold  <gingold@adacore.com>
12124
12125         * system-vms-ia64.ads: New file.
12126
12127         * system-vms_64.ads: Minor comment fix.
12128
12129 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
12130
12131         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
12132         body generated for a function with a controlling result that is a null
12133         extension, discard the generated body in favor of the current explicit
12134         one.
12135
12136 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
12137
12138         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
12139         examining its original form, to handle properly operator calls that
12140         have been rewritten.
12141
12142 2007-10-15  Olivier Hainque  <hainque@adacore.com>
12143
12144         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
12145         instead of a procedure value in each traceback entry.
12146
12147         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
12148         instead of procedure value to TBK$SYMBOLIZE.
12149
12150         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
12151         field.
12152         (TB_Entry_For): Account for the PV/FP renaming.
12153
12154         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
12155         add comment.
12156         (Null_TB_Entry): Account for change of component name.
12157         (PV_For): Rename as FP_For.
12158
12159 2007-10-15  Tristan Gingold  <gingold@adacore.com>
12160
12161         * trans.c (gnat_to_gnu): Remove the padding structure more often.
12162         This optimize assignment to over-aligned record.
12163
12164 2007-10-15  Emmanuel Briot  <briot@adacore.com>
12165
12166         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
12167         interfaces.
12168
12169         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
12170         type, for dispatching calls.
12171
12172 2007-10-15  Vincent Celier  <celier@adacore.com>
12173             Robert Dewar  <dewar@adacore.com>
12174
12175         * gnat_ugn.texi: Add documentation for switches --version and --help
12176         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
12177         gnatxref, gnatfind, gnatls, and gnatclean.
12178         Document -gnatw.o.
12179         Mention attribute Excluded_Source_Dirs
12180         Replace obsolescent attribute Locally_Removed_Files with attribute
12181         Excluded_Source_Files.
12182         Improve documentation of -u (gnatbind)
12183         Document how to do reliable stack checking for the environmental task
12184         on iVMS.
12185
12186         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
12187         Document attribute Excluded_Source_Files and indicate that attribute
12188         Locally_Removed_Files is obsolescent.
12189
12190 2007-10-15  Thomas Quinot  <quinot@adacore.com>
12191
12192         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
12193
12194         * gen-soccon.c:
12195         Update documentation to note that OpenVMS 8.3 or later must be used
12196         to generate g-soccon-vms.ads.
12197
12198         * atree.adb: Add ??? comment
12199
12200         * exp_util.adb: Minor reformatting.
12201         Add ??? comment in Kill_Dead_Code.
12202
12203 2007-10-15  Robert Dewar  <dewar@adacore.com>
12204
12205         * errout.ads: Comment clarification
12206
12207         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
12208         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
12209
12210         * lib.ads: Comment update
12211
12212         * init.c: Minor reformatting.
12213
12214         * sem_attr.adb: Minor formatting
12215
12216         * osint-b.ads: Minor reformatting
12217
12218         * sem_ch9.adb: Implement -gnatd.I switch
12219
12220         * g-comlin.adb: (Start): Fix handling of empty command line.
12221
12222         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
12223         even when -rules follows the -cargs section.
12224
12225 2007-10-08  Ollie Wild  <aaw@google.com>
12226
12227         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
12228         gnat_return_tree.
12229         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
12230         gnat_return_tree.
12231         (gnat_eh_runtime_type): Removed.
12232         (gnat_return_tree): New function.
12233
12234 2007-10-08  Ben Elliston  <bje@au.ibm.com>
12235
12236         PR ada/33454
12237         Revert:
12238         2007-08-31  Ben Elliston  <bje@au.ibm.com>
12239
12240         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
12241         when compiling for powerpc64-*-linux.
12242         * system-linux-ppc64.ads: New file.
12243
12244 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
12245
12246         Mapped location support
12247         * back_end.adb (Call_Back_End): Pass information about source
12248         files instead of units to gigi.
12249         * gigi.h (struct File_Info_Type): New.
12250         (gigi): Rename and change type of number_units parameter, change
12251         type of file_info_ptr parameter.
12252         * trans.c (number_files): New global variable.
12253         (gigi): Rename and change type of number_units parameter, change
12254         type of file_info_ptr parameter.
12255         If mapped location support is enabled, create the isomorphic mapping
12256         between source files and line maps.
12257         (Sloc_to_locus): If mapped location support is enabled, translate
12258         source location into mapped location.
12259         (annotate_with_node): Rename into set_expr_location_from_node.
12260         Call set_expr_location instead of annotate_with_locus.
12261         (Pragma_to_gnu): Adjust for above change.
12262         (Loop_Statement_to_gnu): Likewise.
12263         (call_to_gnu): Likewise.
12264         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
12265         (gnat_to_gnu): Likewise.
12266         (add_stmt_with_node): Likewise.
12267         (add_cleanup): Likewise.
12268         * utils.c (gnat_init_decl_processing): Do not set input_line.
12269
12270 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
12271
12272         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
12273         (Applicable_Use): Emit a warning when a package tries to use itself.
12274         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
12275         is already in use or the package where it is declared is in use or is
12276         declared in the current package.
12277         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
12278
12279         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
12280         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
12281         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
12282
12283 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
12284
12285         * a-calend-vms.adb, a-calend.adb:
12286         Add a section on leap seconds control along with two entities used to
12287         enable and disable leap seconds support. The array Leap_Second_Times is
12288         now constant and contains hard time values pre-generated. Remove
12289         all elaboration code used to populate the table of leap seconds.
12290
12291         * bindgen.adb:
12292         Add entity Leap_Seconds_Support to the list of global run-time variables
12293         along with a comment on its usage and values.
12294         (Gen_Adainit_Ada): Add code to generate the declaration and import of
12295         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
12296         or one (enabled) depending on the presence of binder switch "-y".
12297         (Gen_Adainit_C): Add code to generate the declaration of external int
12298         __gl_leap_seconds_support. Set is value to zero (disabled) or one
12299         (enabled) depending on the presence of binder switch "-y".
12300
12301         * init.c: Add __gl_leap_seconds_support to the list of global values
12302         computed by the binder.
12303
12304 2007-09-26  Jerome Guitton  <guitton@adacore.com>
12305
12306         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
12307         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
12308          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12309         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
12310
12311         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
12312
12313         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
12314         function which can be called by the debugger to interrupt the tasks of
12315         an Ada application asynchronously, as needed on VxWorks.
12316         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
12317
12318         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
12319         renamed from Stop_All_Tasks. Update comments.
12320         (Stop_All_tasks): New function declaration.
12321
12322 2007-09-26  Olivier Hainque  <hainque@adacore.com>
12323
12324         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
12325         #include <utime.h> and #define GCC_RESOURCE_H before
12326         #include <sys/wait.h>.
12327         Add more protections in __gnat_translate_vms.
12328
12329         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
12330         #include <sys/wait.h>.
12331
12332 2007-09-26  Thomas Quinot  <quinot@adacore.com>
12333             Sergey Rybin  <rybin@adacore.com>
12334
12335         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
12336
12337         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12338         where it belongs.
12339
12340         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12341
12342         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12343         where it belongs.
12344
12345         * sem_dist.ads: Minor comment fix
12346
12347         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12348
12349 2007-09-26  Javier Miranda  <miranda@adacore.com>
12350             Eric Botcazou  <ebotcazou@adacore.com>
12351
12352         * a-tags.adb:
12353         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
12354          indirection added to the HT_Link component of the TSD. This is required
12355          to statically allocate the TSD.
12356
12357         * a-tags.ads:
12358         Minor reordering of the declarations in the private part. Required to
12359         add a level of indirection to the contents of the TSD component HT_Link.
12360         This is required to statically allocate the TSD.
12361
12362         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
12363         Is_Statically_Allocated set from constant objects.
12364         Do not make exported constants created by the compiler volatile.
12365         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
12366         as read-only.
12367
12368         * trans.c (Identifier_to_gnu): For constants, unshare initializers
12369         before returning them.
12370
12371         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
12372         public part of the package.
12373         (Make_DT): Move HT_Link component out of the TSD record. For this
12374         purpose Make_DT now declares a separate object that stores the
12375         HT_Link value, and initializes the TSD component with the address
12376         of this new object. The addition of this level of indirection is
12377         required to statically allocate the TSD because the TSD cannot
12378         have variable components.
12379         (Expand_Interface_Conversion): Improve the expanded code.
12380         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
12381
12382         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
12383         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
12384         if we are building static dispatch tables then we must not generate
12385         extra code to register the primitive because the dispatch table will
12386         be built at the end of the library package; otherwise we notify that
12387         we cannot build the static dispatch table.
12388
12389 2007-09-26  Robert Dewar  <dewar@adacore.com>
12390
12391         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
12392         overlays.
12393
12394         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
12395         (Analyze_Record_Representation_Clause): Suppress junk warning for
12396         missing component clause.
12397         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
12398         tests for controlled type overlay to composites with controlled
12399         components.
12400         (Analyze_Record_Representation_Clause): Add reference for component name
12401
12402 2007-09-26  Javier Miranda  <miranda@adacore.com>
12403             Gary Dismukes  <dismukes@adacore.com>
12404
12405         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
12406         for thunks associated with interface types.
12407
12408         * einfo.ads: Improve documentatation of Is_Internal
12409         (Is_Thunk): New attribute applicable to subprograms. True for thunks
12410         associated with interface types.
12411         Extensive comment fixes regarding flags that appear in all entities. The
12412         documentation is now consistent for all such flags (there were a number
12413         of errors in the documentation in this regard).
12414
12415         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
12416
12417         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
12418         of these procedures are passed a function call that already has
12419         build-in-place actuals (testing new flag
12420         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
12421         the case where processing continues.
12422         (Expand_Call): If the call is generated from a thunk body then we
12423         propagate the extra actuals associated with the accessibility
12424         level of the access type actuals.
12425
12426         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
12427         of each extra formal of a protected operation to reference the
12428         corresponding extra formal of the subprogram denoted by the
12429         operation's Protected_Body_Subprogram.
12430
12431         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
12432         N_Function_Call nodes.
12433
12434 2007-09-26  Robert Dewar  <dewar@adacore.com>
12435
12436         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
12437
12438         * debug.adb: Add d.s flag.
12439
12440 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
12441
12442         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
12443         debug variable so that it won't be initialized when pragma
12444         Initialize_Scalars is in effect.
12445
12446 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
12447
12448         * freeze.adb (Freeze_Entity): Remove check for preelaborable
12449         initialization of a full view. This is moved to
12450         Analyze_Package_Specification.
12451
12452         * sem_ch7.adb (Analyze_Package_Specification): Add check for
12453         preelaborable initialization of a full view in entity loop.
12454         (Uninstall_Declarations): If entity is a use-visible compilation unit,
12455         its child units are use-visible only if they are visible child units.
12456
12457         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
12458         whether an expression can be used within a type declaration that
12459         requires preelaborable init.
12460         (Check_Components): Replace inline code that does partial checking for
12461         preelaborable default expressions with call to
12462         Is_Preelaborable_Expression.
12463         (Has_Preelaborable_Initialization): In the case of a generic actual
12464         subtype, (that is, Is_Generic_Actual is True), return the result of
12465         applying Has_Preelaborable_Initialization to the generic actual's base
12466         type.
12467
12468 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
12469
12470         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
12471         call to Jan_1_Day _Of_Week to optimize its performance.
12472         (Is_Leap): Move the routine to the scope of Week_In_Year.
12473         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
12474         weekday on which January 1 falls of Year - 1 and Year + 1. This function
12475         avoids calling Time_Of and Split, thus making it more efficent.
12476         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
12477
12478         * g-calend.ads (Week_In_Year): Change comment to reflect new
12479         implementation.
12480
12481 2007-09-26  Emmanuel Briot  <briot@adacore.com>
12482
12483         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
12484         Command_Line): New types
12485         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
12486         support for defining how switches can be grouped on a command line (as
12487         is the case for -gnatw... for GNAT), and how simple switches can be
12488         used as aliases for more complex switches (-gnatwa is same as
12489         -gnatwbcef...)
12490         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
12491         (Start, Current_*): New subprograms
12492         Added support for parsing an array of strings in addition to the real
12493         command line.
12494         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
12495          be moved from the body to the private part of the spec.
12496         (*): All subprograms now have an extra parameter with default value to
12497         specify which parser should be used. For backward compatibility, it
12498         defaults to parsing the command line of the application. They were also
12499         modified to properly handle cases where each of the argument does not
12500         start at index 1 (which is always true for Ada.Command_Line, but not
12501         when processing any Argument_List).
12502         (Free): New subprogram
12503         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
12504         Argument): New subprograms
12505         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
12506         special characters like ':', '=',... are now handled in a single place,
12507         which makes the code more extensible eventually.
12508         (Getopt, Full_Switch): When the switch was returned as part of the
12509         special character '*', make sure it is prepended by the switch character
12510         ('-' in general), so that the application knows whether "foo" or "-foo"
12511         was specified on the command line.
12512
12513 2007-09-26  Florian Villoing  <villoing@adacore.com>
12514
12515         * g-dirope.adb (Remove_Dir): In case we are removing directories
12516         recursively, make sure that if an exception is raised during the
12517         processing, the current working directory is reset to its initial
12518         value before propagating the exception.
12519
12520 2007-09-26  Vincent Celier  <celier@adacore.com>
12521
12522         * gnatbind.adb: If there are several ALI files specified and there is
12523         a main program to bind, the first ALI is expected to contain the main
12524         subprogram and the names of the binder generated files will be derived
12525         from the first ALI file name.
12526         (Gnatbind): Fix insertion character in invocation of Error_Msg
12527
12528 2007-09-26  Vincent Celier  <celier@adacore.com>
12529
12530         * gnatcmd.adb (Check_Files): Do not include sources that have been
12531         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
12532
12533 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
12534
12535         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
12536         information about each of its index types, following the type
12537         reference for its component type.
12538
12539 2007-09-26  Vincent Celier  <celier@adacore.com>
12540
12541         * make.adb: (Kill): New procedure (__gnat_kill imported)
12542         (Running_Compile, Outstanding_Compiles): Global variables that
12543         were previously local to procedure Compile_Sources.
12544         (Sigint_Intercepted): Send signal SIGINT to all outstanding
12545         compilation processes.
12546
12547         (Gnatmake): If project files are used, create the mapping of all the
12548         sources, so that the correct paths will be found.
12549
12550         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
12551
12552 2007-09-26  Vincent Celier  <celier@adacore.com>
12553
12554         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
12555
12556         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
12557         Replace components Compiler_Min_Options and Binder_Min_Options with
12558         Compiler_Required_Switches and Binder_Required_Switches in record
12559         Language_Config.
12560         Remove components Default_Language and Config in Project_Tree_Data,
12561         no longer used.
12562
12563         * prj-attr.adb: New attributes Required_Switches (<language>) in
12564         packages Compiler and Binder.
12565
12566         * prj-nmsc.adb: Major rewrite of the processing of configuration
12567         attributes for gprbuild. No impact on GNAT tools.
12568
12569         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
12570         process configuration attributes: this is done in Prj.Nmsc.Check.
12571         (Recursive_Process): Make a full copy of packages inherited from project
12572         being extended, instead of a shallow copy.
12573         (Process_Project_Tree_Phase_1): New procedure
12574         (Process_Project_Tree_Phase_1): New procedure
12575         (Process): Implementation now uses the two new procedures
12576
12577         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
12578         from the project config, not the tree config that no longer exists.
12579
12580 2007-09-26  Vincent Celier  <celier@adacore.com>
12581
12582         * Make-lang.in: Update dependencies..
12583
12584 2007-09-26  Vincent Celier  <celier@adacore.com>
12585
12586         * osint.adb, osint.ads: Minor reformatting
12587
12588         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
12589
12590 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
12591
12592         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
12593         message to cite use of <> in aggregate component associations rather
12594         than wrongly indicating use of limited aggregates.
12595
12596 2007-09-26  Robert Dewar  <dewar@adacore.com>
12597
12598         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
12599         Address_Taken.
12600
12601 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
12602
12603         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
12604         ancestor of the derived type, the operations are inherited from the
12605         primary dispatch table of the parent.
12606         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
12607         when the context is an explicit type conversion.
12608
12609 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
12610
12611         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
12612         rule for qualified expressions properly, to detect improper conversions
12613         and resolve some cases of overloading.
12614
12615 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
12616
12617         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
12618         proper kind of reference to the primitive operation, for better source
12619         navigation.
12620         (Valid_Conversion): A tagged conversion is legal if both operands are
12621         tagged.
12622
12623 2007-09-26  Robert Dewar  <dewar@adacore.com>
12624
12625         * sem_warn.adb (Check_References): Catch more cases of unreferenced
12626         packages.
12627
12628 2007-09-26  Vincent Celier  <celier@adacore.com>
12629
12630         * snames.adb, snames.ads: Change Include_Option to Include_Switches
12631
12632 2007-09-26  Robert Dewar  <dewar@adacore.com>
12633
12634         * s-wchstw.adb: provide messages for run time unit exceptions
12635
12636         * a-witeio.adb: Minor reformatting
12637
12638         * exp_ch13.adb: Minor reformatting
12639
12640 2007-09-26  Sergey Rybin  <rybin@adacore.com>
12641
12642         * vms_data.ads: Revise gnatmetric qualifiers.
12643         Add qualified for the new gnatbind option '-y'
12644
12645         * gnat_ugn.texi: Revise the gnatmetric section.
12646         Add entry for new gnatbind option '-y'.
12647
12648         * gnat_rm.texi: Minor spelling correction.
12649         Document restriction on overlaying controlled types
12650
12651 2007-09-26  Vincent Celier  <celier@adacore.com>
12652
12653         * makegpr.adb (Link_Executables): Do not fail when the root project has
12654         no sources, but is an extending project.
12655
12656 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
12657
12658         * trans.c: Fix misplaced #define.
12659
12660 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
12661
12662         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
12663         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
12664
12665 2007-09-21  Olivier Hainque  <hainque@adacore.com>
12666
12667         * utils.c (type_for_nonaliased_component_p): Return false for
12668         all AGGREGATE_TYPEs.
12669
12670 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12671
12672         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
12673         object covered by 13.3(19) volatile.
12674
12675 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
12676
12677         PR ada/26797
12678         PR ada/32407
12679         * utils.c (unchecked_convert): Use a subtype as the intermediate type
12680         in the special VIEW_CONVERT_EXPR case.
12681
12682 2007-09-12  Robert Dewar  <dewar@adacore.com>
12683
12684         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
12685
12686         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
12687         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
12688         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
12689         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
12690         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
12691         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
12692         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
12693         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
12694         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
12695         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
12696         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
12697         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
12698         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
12699         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
12700         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
12701         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
12702         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
12703         pragma Compiler_Unit and adds it to relevant library units.
12704
12705 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
12706
12707         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
12708         a box need not correspond to any component.
12709
12710 2007-09-12  Robert Dewar  <dewar@adacore.com>
12711
12712         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
12713         the tasking version of the Ada run time when foreign threads are
12714         present and there are no explicit Ada tasks or tasking constructs.
12715
12716         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
12717
12718 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
12719
12720         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
12721         the usage of switch -y.
12722
12723         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
12724         when switch -y is present.
12725
12726         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
12727         leap seconds in Ada.Calendar and its children.
12728
12729 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
12730
12731         * a-extiti.ads (Timer): The discriminant is a "not null access
12732         constant" in the Reference Manual.
12733         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
12734
12735 2007-09-12  Robert Dewar  <dewar@adacore.com>
12736
12737         * a-swuwha.adb: Remove junk RM header
12738
12739 2007-09-12  Vincent Celier  <celier@adacore.com>
12740
12741         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
12742         indicator
12743
12744         * g-bytswa.ads: Minor reformatting
12745
12746 2007-09-12  Thomas Quinot  <quinot@adacore.com>
12747
12748         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
12749         Add new constant Thread_Blocking_IO, always True by default, set False
12750         on a per-runtime basis.
12751         (Need_Netdb_Buffer): New constant.
12752
12753 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
12754
12755         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
12756         Added renames for corresponding functions in System.Partition_Interface.
12757
12758 2007-09-12  Doug Rupp  <rupp@adacore.com>
12759
12760         * Makefile.in: Remove VMS specific System.CRTL packages which are no
12761         longer needed.
12762
12763         * s-crtl-vms64.ads: Removed.
12764
12765 2007-09-12  Olivier Hainque  <hainque@adacore.com>
12766
12767         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
12768         with discriminant constraints, generalize the code for BIT_FIELDs
12769         to PACKED fields of constant size and propagate DECL_PACKED.
12770
12771 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
12772
12773         * decl.c (array_type_has_nonaliased_component): New predicate.
12774         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
12775         set the TYPE_NONALIASED_COMPONENT flag on the type.
12776         <E_Array_Subtype>: Likewise.
12777         * gigi.h (type_for_nonaliased_component_p): Declare.
12778         * utils.c (type_for_nonaliased_component_p): New predicate.
12779         (create_field_decl): Invoke the above predicate to set the
12780         DECL_NONADDRESSABLE_P flag on the field.
12781
12782 2007-09-11  Javier Miranda  <miranda@adacore.com>
12783
12784         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
12785         in library level record type entities if we are generating statically
12786         allocated dispatch tables.
12787
12788         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
12789         importing/exporting the _tag declaration by new code
12790         importing/exporting the dispatch table wrapper. This change allows us
12791         to statically allocate of the TSD.
12792         (Make_DT.Export_DT): New procedure.
12793         (Build_Static_DT): New function.
12794         (Has_DT): New function.
12795
12796         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
12797         True_Constant and Current_Value. Required to statically
12798         allocate the dispatch tables.
12799         (Check_Allocator): Make function iterative instead of recursive.
12800         Also return inner allocator node, when present, so that we do not have
12801         to look for that node again in the caller.
12802
12803 2007-09-11  Jan Hubicka  <jh@suse.cz>
12804
12805         * misc.c (gnat_expand_body): Kill.
12806         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
12807
12808 2007-09-10  Robert Dewar  <dewar@adacore.com>
12809
12810         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
12811         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12812         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
12813         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
12814         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
12815         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
12816         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
12817         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
12818         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
12819         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
12820         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
12821         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
12822         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
12823         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
12824         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
12825         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
12826         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
12827         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
12828         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
12829         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
12830         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
12831         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
12832         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
12833         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
12834         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
12835         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
12836         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
12837         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
12838         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
12839         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
12840         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
12841         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
12842         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
12843         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
12844         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
12845         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
12846         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
12847         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
12848         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
12849         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
12850         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
12851         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
12852         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
12853         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
12854         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
12855         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
12856         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
12857         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
12858         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
12859         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
12860         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
12861         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
12862         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
12863         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
12864         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
12865         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
12866         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
12867         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
12868         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
12869         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
12870         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12871         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
12872         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
12873         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
12874         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
12875         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
12876         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
12877         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
12878         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
12879         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
12880         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
12881         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
12882         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
12883         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
12884         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
12885         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
12886         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
12887         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
12888         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
12889         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
12890         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
12891         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
12892         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
12893
12894 2007-09-10  Emmanuel Briot  <briot@adacore.com>
12895
12896         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
12897         classes ("[]").
12898
12899 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
12900
12901         * adaint.c (__gnat_translate_vms): new function.
12902
12903 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
12904             Thomas Quinot  <quinot@adacore.com>
12905
12906         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
12907         create an abstract subprogram in the case of 'Input. For 'Output we now
12908         create a real spec/body when the type is abstract, since it can
12909         potentially be called.
12910         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
12911         body for 'Output when the type is abstract (only the creation of the
12912         body for 'Input is excluded when the type is abstract).
12913         (Stream_Operation_OK): Add an additional condition in the return
12914         statement, so that False will be returned for TTS_Stream_Input if the
12915         associated tagged type is an abstract extension. Add comments for
12916         return statement.
12917         (Expand_N_Object_Declaration): For the case of a shared passive
12918         variable, insert init proc call only after the shared variable
12919         procedures have been processed, because the IP call needs to undergo
12920         shared passive variable reference expansion, which requires these
12921         procedures to be available (and elaborated).
12922
12923 2007-09-10  Vincent Celier  <celier@adacore.com>
12924
12925         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
12926         parameter Runtime_Project.
12927
12928 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
12929
12930         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
12931         given a box association, the type of the component is discriminated,
12932         and the value of the discriminant is the discriminant of the enclosing
12933         type, retrieve its value from the aggregate itself, where it must have
12934         been supplied.
12935
12936         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
12937         to remove other spurious ambiguities on arithmetic operations involving
12938         literals and addresses, on systems where Address is a visible integer
12939         type, when the operator is called in functional notation.
12940         (Try_Primitive_Operation): Within an instance, a call in prefixed form
12941         is legal when the types match, even if the operation is currently
12942         hidden.
12943
12944 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
12945
12946         * sem_ch12.adb (Build_Local_Package): A formal package with no
12947         associations is legal if all formals have defaults. It is not
12948         equivalent to a formal declared with a box.
12949
12950 2007-09-10  Sergey Rybin  <rybin@adacore.com>
12951
12952         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
12953
12954 2007-09-10  Sergey Rybin  <rybin@adacore.com>
12955
12956         * gnat_ugn.texi: Add description of the new '-lratio' option
12957         Update 7.3.1 section about availability of the feature.
12958
12959 2007-09-10  Thomas Quinot  <quinot@adacore.com>
12960
12961         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
12962         inserted node.
12963
12964 2007-09-10  Olivier Hainque  <hainque@adacore.com>
12965
12966         * Makefile.in: (mips-irix section): Activate build of libgmem.
12967
12968 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
12969
12970         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
12971         x87 registers.
12972
12973 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
12974
12975         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
12976         a debug renaming declaration specially.
12977
12978 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
12979
12980         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
12981         which a constant renaming is treated as a normal object declaration.
12982         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
12983         the N_Indexed_Component case.
12984         <N_Indexed_Component>: Fall through to above case.
12985         <N_Object_Renaming_Declaration>: Return true for all composite types.
12986
12987 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
12988
12989         * decl.c (make_packable_type): If the new type has been given BLKmode,
12990         try again to get an integral mode for it.
12991
12992 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
12993
12994         Re-apply accidentally reverted change:
12995
12996         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
12997
12998         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
12999         get_action_description_for): Replace _Unwind_Word with _uleb128_t
13000         and _Unwind_SWord with _sleb128_t.
13001
13002 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13003
13004         * trans.c (convert_with_check): Update call to real_2expN.
13005
13006 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
13007
13008         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
13009         * utils.c (end_subprog_body): Likewise.
13010
13011 2007-09-03  Nick Clifton  <nickc@redhat.com>
13012
13013         * Make-lang.in: Change copyright header to refer to version 3 of
13014         the GNU General Public License and to point readers at the
13015         COPYING3 file and the FSF's license web page.
13016         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
13017         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
13018         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
13019         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
13020         Likewise.
13021
13022 2007-08-31  Vincent Celier  <celier@adacore.com>
13023
13024         PR ada/4720
13025
13026         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
13027         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
13028         (Check_Version_And_Help): New procedure in package Switch to process
13029         switches --version and --help.
13030         Use Check_Version_And_Help in GNAT tools
13031
13032         * make.adb:  Ditto.
13033         (Compile_Sources): Make sure that sources that are "excluded" are not
13034         compiled.
13035         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
13036         project file is used.
13037         (Version_Switch): Remove, moved to Switch
13038         (Help_Switch): Remove, moved to Switch
13039         (Display_Version): Remove, moved to Switch
13040
13041         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
13042         package Switch to process switches --version and --help.
13043         (Display_Version): New procedure
13044
13045         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
13046
13047 2007-08-31  Javier Miranda  <miranda@adacore.com>
13048
13049         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
13050         internal tags.
13051
13052 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
13053
13054         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
13055         (Mark_Non_Null): If the node for which we just generated an access check
13056         is a reference to an *in* parameter and the reference appears in the
13057         declarative part of a subprogram body, mark the node as known non null.
13058
13059 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
13060
13061         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
13062         structure of E_Exception to reflect the new flag.
13063         (Is_Raised, Set_Is_Raised): New inlined routines.
13064         Update the usage of available flag to reflect the addition of Is_Raised.
13065         (Is_Raised, Set_Is_Raised): Bodies of new routines.
13066         (Write_Entity_Flags): Write the status of flag Is_Raised.
13067         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
13068         spurious ambiguities when integer literals appear in the context of an
13069         address type that is a visible integer type.
13070
13071         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
13072         exceptions never being raised.
13073         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
13074         explicitly raised.
13075
13076 2007-08-31  Javier Miranda  <miranda@adacore.com>
13077
13078         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
13079         statement when compiling under restriction No_Exceptions_Proparation.
13080
13081 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
13082
13083         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
13084         initialization aggregate for the type, generate itype references for
13085         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
13086
13087 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
13088
13089         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
13090         library-level package renaming, pass the declaration associated with
13091         the renaming's special debug variable to Qualify_Entity_Names to ensure
13092         that its encoded name is properly qualified.
13093
13094         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
13095         occurring in the list of entities to qualify, and do not attempt to
13096         traverse an entity list in that case. Variables associated with
13097 `       library-level package renamings can now occur in the table.
13098
13099         * exp_dbug.ads: Revise documentation of the encoding for renaming
13100         declarations.
13101
13102 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13103
13104         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
13105         access type points to an unconstrained array.
13106
13107 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
13108
13109         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
13110         conversion.
13111
13112         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
13113         simple redundant qualifications. The check is performed whenever the
13114         expression is a non-overloaded identifier.
13115         (Resolve_Type_Conversion): Enchance the redundant type conversion check
13116         to include loop parameters.
13117         (Valid_Conversion): Avoid generation of spurious error message.
13118
13119 2007-08-31  Bob Duff  <duff@adacore.com>
13120
13121         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
13122         concatenations of string literals into a single literal, in order to
13123         avoid very deep recursion in the front end, which was causing stack
13124         overflow.
13125
13126         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
13127         string, and the right operand is a string literal (the case of "" &
13128         "..."), optimize by avoiding copying the right operand -- just use the
13129         value of the right operand directly.
13130
13131         * stringt.adb (Store_String_Chars): Optimize by growing the
13132         String_Chars table all at once, rather than appending characters one by
13133         one.
13134         (Write_String_Table_Entry): If the string to be printed is very long,
13135         just print the first few characters, followed by the length. Otherwise,
13136         doing "pn(n)" in the debugger can take an extremely long time.
13137
13138         * sem_prag.adb (Process_Interface_Name): Replace loop doing
13139         Store_String_Char with Store_String_Chars.
13140
13141 2007-08-31  Vincent Celier  <celier@adacore.com>
13142
13143         * prj-attr.adb: Add new attribute Excluded_Source_Files
13144
13145         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
13146         Locally_Removed_Files.
13147
13148         * snames.ads, snames.adb: New standard name Excluded_Source_Files
13149
13150 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
13151
13152         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
13153         clauses of subunits, ignore limited_with_clauses that are illegal and
13154         have not been fully analyzed.
13155
13156 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
13157
13158         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
13159         flag, for effiency. It is called when analyzing arithmetic operators
13160         and also for actuals in calls that are universal_integers. The flag is
13161         set for the predefined type address, and for any type or subtype
13162         derived from it.
13163
13164         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
13165         Universal_Integer, when the formal is a descendent of address and the
13166         call appears in user code.
13167         (Analyze_Selected_Component): if the prefix is a private extension, the
13168         tag component is visible.
13169
13170         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
13171         entity flag.
13172
13173 2007-08-31  Robert Dewar  <dewar@adacore.com>
13174
13175         * s-fileio.adb (Open): Normalize file name to lower case in non-case
13176         sensitive file name systems to avoid unexpected mismatch in Vista.
13177
13178 2007-08-31  Vincent Celier  <celier@adacore.com>
13179
13180         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
13181
13182 2007-08-31  Vincent Celier  <celier@adacore.com>
13183
13184         * symbols-vms.adb (Initialize): Read symbol files with continuation
13185         lines
13186         (Finalize): If symbol is long, split the line
13187
13188 2007-08-31  Vincent Celier  <celier@adacore.com>
13189
13190         * fmap.ads: Minor comment updates
13191
13192 2007-08-31  GNAT Script  <nobody@adacore.com>
13193
13194         * Make-lang.in: Makefile automatically updated
13195
13196 2007-08-31  Bob Duff  <duff@adacore.com>
13197
13198         * sinfo.ads: Minor comment fix.
13199
13200 2007-08-31  Thomas Quinot  <quinot@adacore.com>
13201
13202         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
13203         with implementation.
13204         Documentation cleanup only.
13205
13206 2007-08-31  Sergey Rybin  <rybin@adacore.com>
13207
13208         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
13209         gnatpp '--separate-stmt-name' option.
13210         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
13211         option.
13212
13213         * gnat_ugn.texi: Add description for the new gnatpp
13214         '--separate-stmt-name' and '--use-on-new-line' options.
13215
13216 2007-08-31  Ben Elliston  <bje@au.ibm.com>
13217
13218         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
13219         when compiling for powerpc64-*-linux.
13220         * system-linux-ppc64.ads: New file.
13221
13222 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
13223
13224         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
13225         NetBSD.
13226
13227 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13228
13229         * misc.c (gnat_type_max_size): Constify.
13230
13231 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
13232
13233         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
13234         associated with Standard_Debug_Renaming_Type, to be used as the type of
13235         the special variables whose names provide debugger encodings for
13236         renaming declarations.
13237
13238         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
13239         (Set_Debug_Renaming_Link): Change to set Node25.
13240         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
13241         (Write_Field25_Name): Add case for E_Variable to output
13242         "Debug_Renaming_Link".
13243         (Write_Field23_Name): Correct the output string for "Limited_View".
13244
13245         * exp_dbug.adb: Add with and use of Tbuild.
13246         (Debug_Renaming_Declaration): Replace creation of an enumeration type
13247         and literal with creation of a variable of type
13248         Standard_Debug_Renaming_Type whose name encodes both the renamed object
13249         and the entity of the renaming declaration.
13250         (Qualify_Entity_Name): Add the delayed qualification of the entity name
13251         part of the name of a variable that has a Debug_Renaming_Link.
13252
13253         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
13254         special type to be associated with variables that provide debugger
13255         encodings for renaming declarations.
13256
13257 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
13258             Ed Schonberg  <schonberg@adacore.com>
13259             Javier Miranda  <miranda@adacore.com>
13260
13261         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
13262         ancestor part given by an aggregate to test for an unchecked conversion,
13263         since this can occur in some cases when the ancestor part is a function
13264         call, and we don't want to fall into the recursive call to this
13265         procedure in that case.
13266
13267         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
13268         stream attributes on limited types to account for user-specified
13269         attributes as well as whether Input (resp. Output) becomes available
13270         due to Read (resp. Write) being available for the type. Change Boolean
13271         variable to the more accurate name
13272         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
13273         double-"not" predicate at beginning of return statement to more
13274         understandable form.
13275
13276         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
13277         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
13278         in a block statement and use that as the first statement of the
13279         expanded return rather than incorrectly using the handled sequence as
13280         the first statement.
13281
13282         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
13283         operation, generate an explicit freeze node for it rather than
13284         generating extra formals, to ensure that gigi has the proper order of
13285         elaboration for anonymous subtypes in the signature of the subprograms.
13286         (Build_In_Place_Formal): Move assertion to beginning of loop.
13287         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
13288         applied to a function call (occurs for some cases of 'Input).
13289         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
13290         applied to a function call (occurs for some cases of 'Input).
13291
13292         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
13293         2005, generate an extended return statement enclosing the result object
13294         and 'Read call.
13295
13296         * freeze.adb (Freeze_Record_Type): Extend the current management of
13297         components that are access type with an allocator as default value: add
13298         missing support to the use of qualified expressions of the
13299         allocator (which also cause freezing of the designated type!)
13300         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
13301         dispatching operation, since extra formals may be needed by calls to
13302         build-in-place functions (such as stream 'Input).
13303
13304         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
13305         formals for 'Constrained and accessibility level in the case of a
13306         predefined dispatching operation.
13307
13308         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
13309         point, no need to find the parent node.
13310
13311 2007-08-16  Javier Miranda  <miranda@adacore.com>
13312
13313         * exp_attr.adb (Attribute_Priority): Add missing support for entries
13314         and entry barriers.
13315
13316 2007-08-16  Javier Miranda  <miranda@adacore.com>
13317
13318         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
13319         is not really required and can introduce regression with the debugger.
13320         The original problem is fixed with the patch written for checks.adb.
13321
13322 2007-08-16  Thomas Quinot  <quinot@adacore.com>
13323
13324         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
13325         Range_Check on Allocated_Table.
13326
13327 2007-08-16  Vincent Celier  <celier@adacore.com>
13328
13329         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
13330         Including_Non_Switch set to False.
13331         (Gnatmake): For the compiler, call Test_If_Relative_Path with
13332         Including_Non_Switch set to False.
13333
13334         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
13335         parameter Including_Non_Switch, defaulted to True. When
13336         Including_Non_Switch is False, options that are not switches and
13337         appear as relative path are not converted to absolute paths.
13338
13339 2007-08-16  Nicolas Roche  <roche@adacore.com>
13340
13341         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
13342         makefiles
13343
13344         * Make-lang.in: Update dependencies
13345
13346 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
13347
13348         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
13349         currently inspected is a selected component, retrieve the entity of
13350         its selector.
13351         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
13352         from the immediate ancestor of Main_Unit_Entity.
13353         (Install_Limited_Withed_Unit): Do not install the limited view of
13354         package P if P is reachable through an ancestor chain from package C
13355         and C also has a with clause for P in its body.
13356         (Has_Limited_With_Clause): New routine.
13357         (Has_With_Clause): New routine.
13358
13359 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
13360
13361         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
13362         generic for an enclosing instance is a global reference, even though
13363         its scope is the enclosing instance.
13364
13365 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
13366             Javier Miranda  <miranda@adacore.com>
13367
13368         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
13369         initialize a limited object.
13370         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
13371         13/2 and 14/2.
13372         Make sure Has_Complex_Representation is inherited by derived type.
13373
13374 2007-08-16  Robert Dewar  <dewar@adacore.com>
13375
13376         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
13377         exception case
13378
13379 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
13380
13381         * sem_disp.adb (Check_Dispatching_Operation): If the operation
13382         implements an operation inherited from a progenitor interface, verify
13383         that they are subtype-conformant.
13384
13385 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
13386             Bob Duff  <duff@adacore.com>
13387             Nicolas Setton  <setton@adacore.com>
13388
13389         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
13390         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
13391         the statement which is being resolved comes from a predefined library
13392         unit, all non-predefined library interpretations are skipped.
13393         (Resolve_Op_Concat): If string concatenation was folded in the parser,
13394         but the "&" is user defined, give an error, because the folding would
13395         be wrong.
13396
13397         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
13398         the parser has folded a long sequence of concatenations of string
13399         literals.
13400
13401         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
13402         and "JMP_BUF" variables as artificial.
13403         (N_String_Literal): Do not use alloca for very long string literals. Use
13404         xmalloc/free instead. Otherwise the stack might overflow.
13405
13406         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
13407         compiler.
13408
13409 2007-08-16  Vincent Celier  <celier@adacore.com>
13410
13411         * vms_conv.adb (Process_Argument): Ensure that project related options
13412         are not put in the -cargs section when using GNAT COMPILE.
13413
13414 2007-08-16  Robert Dewar  <dewar@adacore.com>
13415
13416         * gnat_ugn.texi: Add note on preprocessing (output file not written)
13417
13418 2007-08-16  Thomas Quinot  <quinot@adacore.com>
13419
13420         * a-tags.adb: Minor reformatting.
13421
13422 2007-08-16  Bob Duff  <duff@adacore.com>
13423
13424         * sem_type.ads, sem_ch4.adb: Minor reformatting.
13425
13426 2007-08-14  Thomas Quinot  <quinot@adacore.com>
13427
13428         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
13429         s-osinte-interix.ads, system-interix.ads: Removed.
13430
13431 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
13432
13433         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
13434         calls to Check_Within_Time_Bounds.
13435         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
13436         (Difference): Account for possible rounding of the resulting difference
13437
13438 2007-08-14  Robert Dewar  <dewar@adacore.com>
13439
13440         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
13441         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
13442         s-osinte-solaris.adb, s-osinte-solaris.ads,
13443         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
13444
13445         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
13446         switch -gnatyS. Enable -gnatyS in GNAT style check mode
13447
13448 2007-08-14  Robert Dewar  <dewar@adacore.com>
13449             Ed Schonberg  <schonberg@adacore.com>
13450
13451         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
13452         Suppress unmodified in-out parameter warning in some cases
13453         This patch is a also fairly significant change to the way suppressible
13454         checks are handled.
13455
13456         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
13457         needed for access to concurrent record types generated by the expander.
13458         (Generate_Range_Check): When generating a temporary to capture the
13459         value of a conversion that requires a range check, set the type of the
13460         temporary before rewriting the node, so that the type is always
13461         properly placed for back-end use.
13462         (Apply_Float_Conversion_Check): Handle case where the conversion is
13463         truncating.
13464         (Get_Discriminal): Code reformatting. Climb the scope stack looking
13465         for a protected type in order to examine its discriminants.
13466
13467 2007-08-14  Robert Dewar  <dewar@adacore.com>
13468             Gary Dismukes  <dismukes@adacore.com>
13469             Ed Schonberg  <schonberg@adacore.com>
13470             Thomas Quinot  <quinot@adacore.com>
13471
13472         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
13473         a-stwisu.adb, a-strsup.adb: Fix warnings for range
13474         tests optimized out.
13475
13476         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
13477         (Get_Allocator_Final_List): For the case of an anonymous access type
13478         that has a specified Associated_Final_Chain, do not go up to the
13479         enclosing scope.
13480         (Expand_N_Type_Conversion): Test for the case of renamings of access
13481         parameters when deciding whether to apply a run-time accessibility
13482         check.
13483         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
13484         aggregate code before allocator, and ahead of declaration for
13485         temporary, to prevent access before elaboration when the allocator is
13486         an actual for an access parameter.
13487         (Expand_N_Type_Conversion): On an access type conversion involving an
13488         access parameter, do not apply an accessibility check when the
13489         operand's original node was an attribute other than 'Access. We now
13490         create access conversions for the expansion of 'Unchecked_Access and
13491         'Unrestricted_Access in certain cases and clearly accessibility should
13492         not be checked for those.
13493
13494         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
13495         includes a type conversion of a packed component that has been expanded,
13496         recover the original expression for the object, and use this expression
13497         in the post-call assignment statement, so that the assignment is made
13498         to the object and not to a back-end temporary.
13499         (Freeze_Subprogram): In case of primitives of tagged types not defined
13500         at the library level force generation of code to register the primitive
13501         in the dispatch table. In addition some code reorganization has been
13502         done to leave the implementation clear.
13503         (Expand_Call): When expanding an inherited implicit conversion,
13504         preserve the type of the inherited function after the intrinsic
13505         operation has been expanded.
13506
13507         * exp_ch2.ads, exp_ch2.adb
13508         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
13509         of an entry formal appearing in an assignment statement does not assign
13510         to the formal.
13511         (Expand_Current_Value): Instead of calling a routine to determine
13512         whether the prefix of an attribute reference should be optimized or
13513         not, prevent the optimization of such prefixes all together.
13514
13515         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
13516         component whose prefix is known to be of an access type is an implicit
13517         dereference and does not assign to the prefix.
13518
13519 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
13520             Robert Dewar  <dewar@adacore.com>
13521
13522         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
13523         itype is visited, make an entry into table to link associated node and
13524         new itype.
13525         Add comments and correct harmless error in Build_NCT_Hash_Tables
13526         (Array_Aggr_Subtype): Associate each itype created for an index type to
13527         the corresponding range construct, and not to the aggregate itself. to
13528         maintain a one-to-one correspondence between itype and its associated
13529         node, to prevent errors when complex expression is copied.
13530         Fix mishandling of multiple levels of parens
13531
13532         * sem_aggr.adb: Create a limited view of an incomplete type, to make
13533         treatment of limited views uniform for all visible declarations in a
13534         limited_withed package.
13535         (New_Copy_Tree): If hash table is being used and itype is visited,
13536         make an entry into table to link associated node and new itype.
13537         (Resolve_Record_Aggregate): Do not add an others box association for a
13538         discriminated record component that has only discriminants, when there
13539         is a box association for the component itself.
13540
13541         * par-ch4.adb: Fix mishandling of multiple levels of parens
13542
13543 2007-08-14  Robert Dewar  <dewar@adacore.com>
13544
13545         * comperr.adb: Fix problem with suppressing warning messages from gigi
13546
13547         * erroutc.ads, erroutc.adb, errout.ads,
13548         errout.adb (Write_Eol): Remove trailing spaces before writing the line
13549         (Write_Eol_Keep_Blanks): New procedure to write a line, including
13550         possible trailing spaces.
13551         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
13552         Fix problem with suppressing warning messages from back end
13553         Improve handling of deleted warnings
13554
13555         * gnat1drv.adb:
13556         Fix problem with suppressing warning messages from back end
13557         Handle setting of Static_Dispatch_Tables flag.
13558
13559         * prepcomp.adb:
13560         Fix problem with suppressing warning messages from back end
13561
13562         * exp_intr.adb: Improve handling of deleted warnings
13563
13564 2007-08-14  Robert Dewar  <dewar@adacore.com>
13565
13566         * debug.adb: Improve -gnatdI to cover all cases of serialization
13567         Add documentation of dZ, d.t
13568
13569         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
13570         serialization.
13571         (Sprint_Node_Actual): Generate new output associated with implicit
13572         importation and implicit exportation of object declarations.
13573
13574 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
13575             Robert Dewar  <dewar@adacore.com>
13576             Javier Miranda  <miranda@adacore.com>
13577             Gary Dismukes  <dismukes@adacore.com>
13578
13579         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
13580         to make treatment of limited views uniform for all visible declarations
13581         in a limited_withed package.
13582         Improve warnings for in out parameters
13583         (Set_Related_Interaface/Related_Interface): Allow the use of this
13584         attribute with constants.
13585         (Write_Field26_Name): Handle attribute Related_Interface in constants.
13586         Warn on duplicate pragma Preelaborable_Initialialization
13587
13588         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
13589         generation of a freezing node to ensure proper management of null
13590         excluding access types in the backend.
13591         (Create_Extra_Formals): Test base type of the formal when checking for
13592         the need to add an extra accessibility-level formal. Pass the entity E
13593         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
13594         originally being done in a couple of cases), to ensure that the
13595         Extra_Formals list gets set on the entity E when the first entity is
13596         added.
13597         (Conforming_Types): Add missing calls to Base_Type to the code that
13598         handles anonymous access types. This is required to handle the
13599         general case because Process_Formals builds internal subtype entities
13600         to handle null-excluding access types.
13601         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13602         functions that need it, even when not marked Requires_Overriding.
13603         Improve warnings for in out parameters
13604         (Analyze_Function_Return): Warn for disallowed null return
13605         Warn on return from procedure with unset out parameter
13606         Ensure consistent use of # in error messages
13607         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
13608         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
13609         the implicit conversion of the expression done for anonymous access
13610         types. This is required to generate the code of the null excluding
13611         check (if required).
13612
13613         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
13614         A formal parameter is never publicly referenceable outside of its body.
13615         (Check_References): For an unreferenced formal parameter in an accept
13616         statement, use the same warning circuitry as for subprogram formal
13617         parameters.
13618         (Warn_On_Unreferenced_Entity): New subprogram, taken from
13619         Output_Unreferenced_Messages, containing the part of that routine that
13620         is now reused for entry formals as described above.
13621         (Goto_Spec_Entity): New function
13622         (Check_References): Do not give IN OUT warning for dispatching operation
13623         Improve warnings for in out parameters
13624         (Test_Ref): Check that the entity is not undefinite before calling
13625         Scope_Within, in order to avoid infinite loops.
13626         Warn on return from procedure with unset out parameter
13627         Improved warnings for unused variables
13628
13629 2007-08-14  Robert Dewar  <dewar@adacore.com>
13630             Javier Miranda  <miranda@adacore.com>
13631             Gary Dismukes  <dismukes@adacore.com>
13632
13633         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
13634         (Expand_N_Attribute_Reference): Further unify the handling of the
13635         three forms of access attributes, using common code now for all three
13636         cases. Add a test for the case of applying an access attribute to
13637         an explicit dereference when the context is an access-to-interface
13638         type. In that case we need to apply the conversion to the prefix
13639         of the explicit dereference rather than the prefix of the attribute.
13640         (Attribute_Version, UET_Address): Set entity as internal to ensure
13641         proper dg output of implicit importation.
13642         (Expand_Access_To_Type): Removed.
13643         (Expand_N_Attribute_Reference): Merge the code from the three cases
13644         of access attributes, since the processing is largely identical for
13645         these cases. The substantive fix here is to process the case of a
13646         type name prefix (current instance case) before handling the case
13647         of interface prefixes.
13648
13649 2007-08-14  Thomas Quinot  <quinot@adacore.com>
13650             Ed Schonberg  <schonberg@adacore.com>
13651             Javier Miranda  <miranda@adacore.com>
13652             Robert Dewar  <dewar@adacore.com>
13653
13654         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
13655         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
13656         type that is an anonymous access to controlled object, establish
13657         an associated finalization chain to avoid corrupting the global
13658         finalization list when a dynamically allocated object designated
13659         by such a component is deallocated.
13660         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13661         functions that need it, even when not marked Requires_Overriding.
13662         (Initialize_Tag): Replace call to has_discriminants by call to
13663         Is_Variable_Size_Record in the circuitry that handles the
13664         initialization of secondary tags.
13665         (Is_Variable_Size_Record): New implementation.
13666         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
13667         Suppress_Initialization pragma for a derived type.
13668         (Is_Variable_Size_Record): New subprogram.
13669         (Build_Offset_To_Top_Functions): New implementation that simplifies the
13670         initial version of this routine and also fixes problems causing
13671         incomplete initialization of the table of interfaces.
13672         (Build_Init_Procedure): Improve the generation of code to initialize the
13673         the tag components of secondary dispatch tables.
13674         (Init_Secondary_Tags): New implementation that simplifies the previous
13675         version of this routine.
13676         (Make_DT): Add parameter to indicate when type has been frozen by an
13677         object declaration, for diagnostic purposes.
13678         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
13679         diagnose attemps to freeze a subprogram when some untagged type of its
13680         profile is a private type whose full view has not been analyzed yet.
13681         (Freeze_Array_Type): Generate init proc for packed array if either
13682         Initialize or Normalize_Scalars is set.
13683         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
13684         constructing the new profile, copy the null_exclusion indicator for each
13685         parameter, to ensure full conformance of the new body with the spec.
13686
13687         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
13688         Create wrappers for constructor functions that need it, even when not
13689         marked Requires_Overriding.
13690         (Covers): Handle properly designated types of anonymous access types,
13691         whose non-limited views are themselves incomplete types.
13692         (Add_Entry): Use an entity to store the abstract operation which hides
13693         an interpretation.
13694         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
13695         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
13696         initialization aggregate.
13697         (Function_Interp_May_Be_Hidden): Rename to
13698         Function_Interp_Has_Abstract_Op.
13699         (Has_Compatible_Type): Remove machinery that skips interpretations if
13700         they are labeled as potentially hidden by an abstract operator.
13701         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
13702         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
13703         (Write_Overloads): Output the abstract operator if present.
13704         (Add_Entry): Before inserting a new entry into the interpretation table
13705         for a node, determine whether the entry will be disabled by an abstract
13706         operator.
13707         (Binary_Op_Interp_May_Be_Hidden): New routine.
13708         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
13709         aggregate.
13710         (Function_Interp_May_Be_Hidden): New routine.
13711         (Has_Compatible_Type): Do not consider interpretations hidden by
13712         abstract operators when trying to determine whether two types are
13713         compatible.
13714         (Has_Hidden_Interp): New routine.
13715         (Set_May_Be_Hidden_Interp): New routine.
13716         (Write_Overloads): Write the status of flag May_Be_Hidden.
13717
13718 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
13719             Javier Miranda  <miranda@adacore.com>
13720
13721         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
13722         types declared in the declarative part of a nested package body or in
13723         the proper body of a stub.
13724         (Set_All_DT_Position): Add missing check to avoid wrong assignation
13725         of the same dispatch table slot to renamed primitives.
13726         (Make_Select_Specific_Data_Table): Handle private types.
13727         (Tagged_Kind): Handle private types.
13728         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
13729         output of implicit importation and exportation.
13730         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
13731         first formal of the thunk is always associated with the controlling
13732         type. In addition perform the following code cleanup: remove formal
13733         Thunk_Alias which is no longer required, cleanup evaluation of the
13734         the controlling type, and update the documentation.
13735         Replace occurrence of Default_Prim_Op_Count by
13736         Max_Predef_Prims. Addition of compile-time check to verify
13737         that the value of Max_Predef_Prims is correct.
13738         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
13739         (Make_DT): Add parameter to indicate when type has been frozen by an
13740         object declaration, for diagnostic purposes.
13741         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
13742         construction of statically allocated dispatch tables.
13743         (Make_DT): In case of library-level tagged types export the declaration
13744         of the primary tag. Remove generation of tags (now done by Make_Tags).
13745         Additional modifications to handle non-static generation of dispatch
13746         tables. Take care of building tables for asynchronous interface types
13747         (Make_Tags): New subprogram that generates the entities associated with
13748         the primary and secondary tags of Typ and fills the contents of Access_
13749         Disp_Table. In case of library-level tagged types imports the forward
13750         declaration of the primary tag that will be declared later by Make_DT.
13751         (Expand_Interface_Conversion): In case of access types to interfaces
13752         replace an itype declaration by an explicit type declaration to avoid
13753         problems associated with the scope of such itype in transient blocks.
13754
13755 2007-08-14  Robert Dewar  <dewar@adacore.com>
13756             Ed Schonberg  <schonberg@adacore.com>
13757             Javier Miranda  <miranda@adacore.com>
13758
13759         * exp_util.ads, exp_util.adb:
13760         This patch replaces a number of occurrences of explicit tests for N_Null
13761         with calls to Known_Null. This improves tracking of null values, since
13762         Known_Null also catches null constants, and variables currently known to
13763         be null, so we get better tracking.
13764         (Ensure_Defined): create an itype reference only in the scope of the
13765         itype.
13766         (Side_Effect_Free): A selected component of an access type that
13767         denotes a component with a rep clause must be treated as not
13768         side-effect free, because if it is part of a linked structure its
13769         value may be affected by a renaming.
13770         (Expand_Subtype_From_Expr): For limited objects initialized with build
13771         in place function calls, do nothing; otherwise we prematurely introduce
13772         an N_Reference node in the expression initializing the object, which
13773         breaks the circuitry that detects and adds the additional arguments to
13774         the called function. Bug found working in the new patch for statically
13775         allocated dispatch tables.
13776         (Is_Library_Level_Tagged_Type): New subprogram.
13777         (Remove_Side_Effects): If the expression of an elementary type is an
13778         operator treat as a function call.
13779         (Make_Literal_Range): If the index type of the array is not integer, use
13780         attributes properly to compute the constraint on the resulting aggregate
13781         which is a string.
13782
13783         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
13784         class-wide type whose base type is an incomplete private type, leave
13785         class-wide type unfrozen so that freeze nodes can be generated
13786         properly at a later point.
13787         (Freeze_Entity, array case): Handle case of pragma Pack and component
13788         size attributre clause for same array.
13789
13790 2007-08-14  Vincent Celier  <celier@adacore.com>
13791
13792         * prj.ads, prj.adb: Update Project Manager to new attribute names for
13793         gprbuild.
13794         Allow all valid declarations in configuration project files
13795         (Reset): Initialize all tables and hash tables in the project tree data
13796         Major update of the Project Manager and of the project aware tools,
13797         including gprmake, so that the same sources in the GNAT repository
13798         can be used by gprbuild.
13799         (Slash_Id): Change type to be Path_Name_Type
13800         (Slash): Return a Path_Name_Type instead of a File_Name_Type
13801
13802         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
13803         gprbuild.
13804         Update Project Manager to new attribute names for ghprbuild
13805         Allow all valid declarations in configuration project files
13806         Major update of the Project Manager and of the project aware tools,
13807         including gprmake, so that the same sources in the GNAT repository
13808         can be used by gprbuild.
13809
13810         * prj-com.ads:
13811         Major update of the Project Manager and of the project aware tools,
13812         including gprmake, so that the same sources in the GNAT repository
13813         can be used by gprbuild.
13814
13815         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
13816         insensitive flag for attributes with optional index.
13817         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
13818         array attribute, put the index in lower case.
13819         Update Project Manager to new attribute names for ghprbuild
13820         Allow all valid declarations in configuration project files
13821         Major update of the Project Manager and of the project aware tools,
13822         including gprmake, so that the same sources in the GNAT repository
13823         can be used by gprbuild.
13824
13825         * prj-env.ads, prj-env.adb:
13826         Major update of the Project Manager and of the project aware tools,
13827         including gprmake, so that the same sources in the GNAT repository
13828         can be used by gprbuild.
13829         (Get_Reference): Change type of parameter Path to Path_Name_Type
13830
13831         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
13832         removing '-' from the path to start with the first character of the
13833         next directory.
13834         Major update of the Project Manager and of the project aware tools,
13835         including gprmake, so that the same sources in the GNAT repository
13836         can be used by gprbuild.
13837         Major update of the Project Manager and of the project aware tools,
13838         including gprmake, so that the same sources in the GNAT repository
13839         can be used by gprbuild.
13840
13841         * prj-nmsc.ads, prj-nmsc.adb:
13842         Update Project Manager to new attribute names for ghprbuild
13843         Allow all valid declarations in configuration project files
13844         (Search_Directories): Detect subunits that are specified with an
13845         attribute Body in package Naming. Do not replace a source/unit in the
13846         same project when the order of the source dirs are known. Detect
13847         duplicate sources/units in the same project when the order of the
13848         source dirs are not known.
13849         (Check_Ada_Name): Allow all identifiers that are not reserved words
13850         in Ada 95.
13851         Major update of the Project Manager and of the project aware tools,
13852         including gprmake, so that the same sources in the GNAT repository
13853         can be used by gprbuild.
13854         (Look_For_Sources): If the list of sources is empty, set the object
13855         directory of non extending project to nil.
13856         Change type of path name variables to be Path_Name_Type
13857         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
13858         otherwise creating missing directories will fail.
13859
13860         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
13861         prj-part.ads, prj-part.adb:
13862         Major update of the Project Manager and of the project aware tools,
13863         including gprmake, so that the same sources in the GNAT repository
13864         can be used by gprbuild.
13865
13866         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
13867         insensitive flag for attributes with optional index.
13868         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
13869         array attribute, put the index in lower case.
13870         (Parse_Variable_Reference): Allow the current project name to be used in
13871         the prefix of an attribute reference.
13872
13873         * prj-util.ads, prj-util.adb
13874         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
13875         defaulted to False. When True, always check against indexes in lower
13876         case.
13877
13878         * snames.ads, snames.h, snames.adb:
13879         Update Project Manager to new attribute names for gprbuild
13880         Allow all valid declarations in configuration project files
13881
13882 2007-08-14  Robert Dewar  <dewar@adacore.com>
13883             Ed Schonberg  <schonberg@adacore.com>
13884
13885         * opt.ads: Warning for non-local exception propagation now off by
13886         default
13887         New switch -gnatI to disable representation clauses
13888         Implement new pragma Implicit_Packing
13889
13890         * usage.adb:
13891         Warning for non-local exception propagation now off by default
13892         Add warning for unchecked conversion of pointers wi different
13893         conventions.
13894         New switch -gnatI to disable representation clauses
13895
13896         * usage.adb: new switch -gnatyS
13897
13898         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
13899         note that aggregates of anonymous array types are not flagged.
13900         -gnatwc now includes membership tests optimized away
13901         -gnatw.x warnings are now off by default
13902         Added conditional compilation Appendix
13903         Add documentation of -gnatI
13904         Add documentation for new -gnatyS style check
13905         Update documentation about SAL and auto-init on Windows.
13906
13907         * gnat_rm.texi:
13908         Add documentation for pragma Check_Name and 'Enabled attribute
13909         Document that Eliminate on dispatching operation is ignored
13910         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
13911         Document pragma Main
13912         Document pragma Implicit_Packing
13913
13914         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
13915         different conventions
13916         New switch -gnatI to disable representation clauses
13917
13918         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
13919         recognized, report the invalid characters including "-gnat" instead of
13920         just the first character in the switch.
13921         New switch -gnatI to disable representation clauses
13922         Set Warn_On_Object_Renames_Function true for -gnatg
13923
13924         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
13925         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
13926         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
13927         to switch -aP (add directory to project search dir).
13928
13929         * par-prag.adb: Implement new pragma Implicit_Packing
13930
13931         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
13932         type as having a non-standard representation, to force expansion on
13933         conversion to related types.
13934         (Analyze_Pragma): Warn on misspelled pragma
13935         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
13936         Ensure consistent use of # in error messages
13937         Implement pragma Implicit_Packing
13938
13939 2007-08-14  Olivier Hainque  <hainque@adacore.com>
13940             Eric Botcazou  <ebotcazou@adacore.com>
13941
13942         * targtyps.c (get_target_maximum_default_alignment): New function.
13943         Maximum alignment
13944         that the compiler might choose by default for a type or object.
13945         (get_target_default_allocator_alignment): New function. Alignment known
13946         to be honored by the target default allocator.
13947         (get_target_maximum_allowed_alignment): New function. Maximum alignment
13948         we might accept for any type or object on the target.
13949         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
13950
13951         * gigi.h (get_target_maximum_default_alignment): Declare new function.
13952         (get_target_default_allocator_alignment): Likewise.
13953         (get_target_maximum_allowed_alignment): Likewise.
13954
13955         PR ada/19037
13956         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
13957         result of a function call, first try to use a stabilized reference for
13958         a constant renaming too.
13959         (validate_alignment): Use target_maximum_allowed_alignment instead of
13960         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
13961         (gnat_to_gnu_entity): Use common nodes directly.
13962         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
13963         alignment and size for the object.
13964         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
13965         and N_Procedure_Call_Statement.
13966         (takes_address): Rename to lvalue_required_p, add third parameter
13967         'aliased' and adjust recursive calls.
13968         <N_Indexed_Component>: Update 'aliased' from the array type.
13969         <N_Selected_Component>: New case.
13970         <N_Object_Renaming_Declaration>: New Likewise.
13971         (Identifier_to_gnu): Adjust for above changes.
13972         (maybe_stabilize_reference) <CONST_DECL>: New case.
13973
13974         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
13975         between type variants.
13976         (build_simple_component_ref): Likewise.
13977         (build_call_alloc_dealloc): Use target_default_allocator_alignment
13978         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
13979         aligning type circuitry for allocations from the default storage pool.
13980         (build_allocator): Likewise.
13981         (build_simple_component_ref): Manually fold the reference for a
13982         constructor if the record type contains a template.
13983
13984         * utils.c (value_zerop): Delete.
13985         (gnat_init_decl_processing): Emit debug info for common types.
13986         (rest_of_record_type_compilation): If a union contains a field
13987         with a non-constant qualifier, treat it as variable-sized.
13988         (finish_record_type): Give the stub TYPE_DECL a name.
13989         (rest_of_record_type_compilation): Likewise.
13990         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
13991         types are equivalent array types.
13992         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
13993         even if the type is not passed by reference.
13994         (static_ctors, static_dtors): Delete.
13995         (end_subprog_body): Do not record constructors and destructors.
13996         (build_global_cdtor): Delete.
13997         (gnat_write_global_declarations): Do not call build_global_cdtor.
13998
13999         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
14000         -fRTS=rtp is specified.
14001         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
14002         specified.
14003
14004         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
14005         of the personality function with SJLJ exceptions.
14006
14007         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
14008         the name of the personality function with SJLJ exceptions.
14009
14010 2007-08-14  Robert Dewar  <dewar@adacore.com>
14011             Ed Schonberg  <schonberg@adacore.com>
14012
14013         * par.ads, par.adb: Improve handling of extra right parens.
14014         (Par): Remove flag From_Limited_With_Clause.
14015
14016         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
14017         Improve handling of extra right parens.
14018
14019 2007-08-14  Robert Dewar  <dewar@adacore.com>
14020
14021         * par-tchk.adb (TF_Semicolon): Improve error recovery
14022
14023 2007-08-14  Robert Dewar  <dewar@adacore.com>
14024             Ed Schonberg  <schonberg@adacore.com>
14025
14026         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
14027         enumeration type, mark all literals as referenced.
14028         (Eval_Attribute, case 'Image): If the argument is an enumeration
14029         literal and names are available, constant-fold but mark nevertheless as
14030         non-static.
14031         Clean up function names.
14032         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
14033         comment.
14034         (Requires_Simple_Name_Prefix): Removed.
14035
14036 2007-08-14  Robert Dewar  <dewar@adacore.com>
14037             Ed Schonberg  <schonberg@adacore.com>
14038
14039         * sem_ch11.adb: Improved warnings for unused variables
14040
14041         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
14042         is a synchronized interface, the derived type is limited.
14043         (Analyze_Object_Declaration): Mark the potential coextensions in the
14044         definition and expression of an object declaration node.
14045         (Build_Derived_Type): For the completion of a private type declaration
14046         with a derived type declaration, chain the parent type's representation
14047         items to the last representation item of the derived type (not the
14048         first one) if they are not present already.
14049         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
14050         object declaration of forward references to tags.
14051         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
14052         subprogram types can appear as access discriminants of synchronized
14053         types.
14054         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
14055         given in prefixed form as a selected component.
14056         (Process_Discriminants): If not all discriminants have defaults, place
14057         error message on a default that is present.
14058         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
14059         extend a synchronized tagged type.
14060         Improved warnings for unused variables
14061         (Is_Visible_Component): Fix a visibility hole on a component inherited
14062         by a private extension when parent is itself declared as a private
14063         extension, and the derivation is in a child unit.
14064         (Find_Hidden_Interface): Move spec from the package body.
14065
14066 2007-08-14  Robert Dewar  <dewar@adacore.com>
14067             Ed Schonberg  <schonberg@adacore.com>
14068
14069         * sem_ch5.adb: Improve warnings on redundant assignments
14070
14071         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
14072         parameter
14073         (Is_Synchronized_Tagged_Type): New subprogram that returns true
14074         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
14075         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
14076         is set to False. Improves handling of Known_[Not_]Null.
14077         (Wrong_Type): Special case address arithmetic attempt
14078         (Collect_Abstract_Interfaces): Add new formal to allow collecting
14079         abstract interfaces just using the partial view of private types.
14080         (Has_Abstract_Interfaces): Add new formal to allow checking types
14081         covering interfaces using the partial view of private types.
14082         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
14083         component still needs to be defined in this case, but is never
14084         initialized as VMs are using other dispatching mechanisms.
14085         (Abstract_Interface_List): For a protected type, use base type to get
14086         proper declaration.
14087         Improve warnings on redundant assignments
14088         (Is_Variable): Handle properly an implicit dereference of a prefixed
14089         function call.
14090         (Build_Actual_Subtype): If this is an actual subtype for an
14091         unconstrained formal parameter, use the sloc of the body for the new
14092         declaration, to prevent anomalises in the debugger.
14093
14094 2007-08-14  Robert Dewar  <dewar@adacore.com>
14095
14096         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
14097         dispatching operation
14098
14099 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14100             Gary Dismukes  <dismukes@adacore.com>
14101
14102         * exp_aggr.ads,
14103         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
14104         expanded aggregate code before allocator, and ahead of declaration for
14105         temporary, to prevent access before elaboration when the allocator is
14106         an actual for an access parameter.
14107         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
14108         the TSD and the table of interfaces.
14109         (Convert_To_Assignments): Augment the test for delaying aggregate
14110         expansion for limited return statements to include the case of extended
14111         returns, to prevent creation of an unwanted transient scope.
14112         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
14113         (Expand_Array_Aggregate): Handle aggregates associated with
14114         statically allocated dispatch tables.
14115         (Expand_Record_Aggregate): Handle aggregates associated with
14116         statically allocated dispatch tables.
14117         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
14118         of anonymous access type.
14119
14120 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14121
14122         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
14123         is a variable that renames a slice, use the variable itself in the
14124         expannsion when the renamed expression itself may be modified between
14125         the declaration of the renaming and the array assignment.
14126
14127 2007-08-14  Jerome Guitton  <guitton@adacore.com>
14128
14129         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
14130         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
14131         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
14132         New functions; dummy implementations.
14133
14134         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
14135         functions, used to implement the multi-tasks mode routines on VxWorks.
14136
14137         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
14138         New functions, thin
14139         binding to the VxWorks routines which have changed between VxWorks 5
14140         and 6.
14141         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
14142         which are not callable from a RTP.
14143
14144         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
14145         implemented for the multi-tasks mode on VxWorks 5 and 6.
14146
14147         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
14148
14149         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
14150         functions.
14151
14152 2007-08-14  Vincent Celier  <celier@adacore.com>
14153
14154         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
14155         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
14156         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
14157         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14158         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
14159         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
14160         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
14161         procedure.
14162         (Major_Id_Name): New function.
14163         mlib-tgt.ads/mlib.tgt.adb:
14164         (Library_Major_Minor_Id_Supported): New function, default returns True
14165         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
14166         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
14167         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
14168         Implementation of Library_Major_Minor_Id_Supported returns False
14169         clean.adb:
14170         (Clean_Library_Directory): If major/minor ids are supported, clean all
14171         library files.
14172         Major update of the Project Manager and of the project aware tools,
14173         including gprmake, so that the same sources in the GNAT repository
14174         can be used by gprbuild.
14175
14176 2007-08-14  Olivier Hainque  <hainque@adacore.com>
14177
14178         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
14179         (GCC_ZCX_Support): Switch to True.
14180
14181         * s-intman-solaris.adb (Notify_Exception): Call
14182         Adjust_Context_For_Raise before raising, as expected for signal
14183         handlers in general.
14184
14185         * s-intman-posix.adb (Notify_Exception): Remove declaration of
14186         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
14187         to other implementation bodies.
14188
14189         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
14190         be visible by multiple implementation bodies.
14191
14192         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
14193         only for conditions coming from hardware.
14194         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
14195         adjustments to signal context prior to exception raise from signal
14196         handler.
14197         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
14198         mode.
14199         Solaris section: (__gnat_adjust_context_for_raise): New function.
14200         Implementation of the machine context adjustments to perform prior to
14201         raise from a signal handler. Version for both sparc and x86.
14202         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
14203         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
14204         prior to raising as expected for any handler, before possible nested
14205         faults to make sure all the contexts in a chain have been adjusted by
14206         the time we propagate.
14207
14208 2007-08-14  Pascal Obry  <obry@adacore.com>
14209
14210         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
14211         (SYSTEM_INFO): New record.
14212         (SetThreadIdealProcessor): New imported routine needed for supporting
14213         task_info pragma on Windows.
14214
14215         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
14216         info can be applied to the current host.
14217         (Create_Task): Set the ideal processor if information is present.
14218
14219         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
14220         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
14221
14222 2007-08-14  Olivier Hainque  <hainque@adacore.com>
14223
14224         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
14225         stack size and initial stack pointer value for a given task.
14226         (Enter_Task): Get the stack attributes of the task we are entering and
14227         let the stack checking engine know about them.
14228
14229         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
14230         Let the stack-checking engine know about the initial sp value and stack
14231         size associated with the current task.
14232         (Set_Stack_Info): If a stack base has been notified for the current
14233         task, honor it. Fallback to the previous less accurate method otherwise.
14234
14235         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
14236
14237 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14238
14239         * sem_ch10.adb: Create a limited view of an incomplete type, to make
14240         treatment of limited views uniform for all visible declarations in a
14241         limited_withed package.
14242         Set flag indicating that a subprogram body for a child unit has a
14243         generated spec.
14244         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
14245         separate declaration, remove the unit name from visibility after
14246         compilation, so that environment is clean for subsequent compilations.
14247         (Install_Limited_Context_Clauses): Do not install a
14248         limited_private_with_clause unless the current unit is a body or a
14249         private child unit.
14250         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
14251         in the same fashion.
14252         (Install_Limited_Withed_Unit): Do not install a limited with clause if
14253         it applies to the declaration of the current package body.
14254         (Remove_Private_With_Clauses): If there is a regular with_clause for
14255         the unit, delete Private_With_Clause from context, to prevent improper
14256         hiding when processing subsequent nested packages and instantiations.
14257
14258 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
14259
14260         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
14261         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
14262         representing absolute path names.
14263         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
14264
14265         * cstreams.c (__gnat_full_name for VxWorks): Use
14266         __gnat_is_absolute_path to detect whether we need to add the current
14267         directory to normalize the path.
14268
14269 2007-08-14  Javier Miranda  <miranda@adacore.com>
14270
14271         * a-tags.ads,
14272         a-tags.adb (Displace): Associate a message with the raised CE
14273         exception.
14274         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
14275         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
14276         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
14277         spec.
14278         (Default_Prim_Op_Count): Removed.
14279         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
14280         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
14281         Remove pragma Inline_Always.
14282
14283         * rtsfind.ads (Default_Prim_Op_Count): Removed
14284         (Max_Predef_Prims): New entity
14285         (RE_Expanded_Name): Removed
14286         (RE_HT_Link): Removed
14287         (RE_Iface_Tag): Remmoved
14288         (RE_Ifaces_Table): Removed
14289         (RE_Interfaces_Array): Removed
14290         (RE_Interface_Data_Element): Removed
14291         (RE_Nb_Ifaces): Removed
14292         (RE_RC_Offset): Removed
14293         (RE_Static_Offset_To_Top): Removed
14294
14295         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
14296         formal.
14297         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
14298         Prim_Op_Count by Max_Predef_Prims.
14299
14300 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14301             Vincent Celier  <celier@adacore.com>
14302
14303         * binde.adb (Elab_All_Links): Remove unnecessary call to
14304         Generic_Separately_Compiled (if a unit satisfies this predicate, there
14305         won't be an associated Afile).
14306         (Elab_All_Links): Fail if a referenced unit cannot be found
14307
14308         * bindgen.adb:
14309         Fix comments in bindgen regarding consistency checks done in Bcheck:
14310         the checks are made across units within a partition, not across several
14311         partitions.
14312         Fix generation of C binder file for VxWorks.
14313
14314         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
14315         Generic_May_Lack_ALI, more descriptive of the current use of the
14316         predicate, and update documentation.
14317
14318         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
14319         reorganization and documentation update for the case of predefined
14320         library generics (for which we do not reference an Afile).
14321
14322 2007-08-14  Robert Dewar  <dewar@adacore.com>
14323
14324         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
14325         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
14326         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
14327         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
14328         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
14329         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
14330         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
14331         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
14332         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
14333         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
14334         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
14335         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
14336         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
14337         g-altcon.adb: Minor reformatting
14338
14339         ada-tree.h: Delete empty line.
14340
14341         ali.ads: Minor reformatting
14342         Clarification of comments.
14343         Minor spelling correction
14344
14345         * exp_dbug.adb: Add Warnings Off to suppress new warning
14346
14347         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14348         formal
14349
14350         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
14351         value
14352
14353         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
14354
14355         * a-textio.ads: Reorder the standard input/output/error declarations
14356         for consistency.
14357
14358         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
14359
14360         * par-ch2.adb: Recognize RM specially in errout
14361         Change 'R'M to RM in all error messages
14362
14363         * scng.adb: Recognize RM specially in errout
14364
14365         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
14366         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
14367
14368         * s-direio.adb: Add missing routine header box.
14369
14370         * sem_attr.ads: Add ??? comments
14371
14372         * sem_eval.adb: Recognize RM specially in errout
14373         Change 'R'M to RM in all error messages
14374
14375         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
14376
14377         * s-tasinf.ads: Fix minor comment typo.
14378
14379         * a-cihama.adb: Minor comment addition
14380
14381         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14382         formal
14383
14384         * s-tasinf-tru64.ads: Fix minor comment typo.
14385
14386         * itypes.ads: Comment update.
14387
14388         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
14389         anymore.
14390
14391         * argv.c: Added protection against null gnat_argv and gnat_envp.
14392
14393         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
14394         warning message when Tolerate_Consistency_Errors is True.
14395
14396         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
14397         Any_Id, as this subprogram is only applicable to *type* entities (it
14398         sets RM_Size). Instead initialize just Esize and Alignment.
14399
14400 2007-08-14  Bob Duff  <duff@adacore.com>
14401
14402         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
14403         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
14404         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
14405         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
14406         a-coorse.ads (Next): Applied pragma Inline.
14407         Make all Containers packages Remote_Types (unless they are already
14408         Pure).
14409         (Previous): applied pragma Inline
14410         (Elements_Type): is now a record instead of an array
14411
14412 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14413
14414         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
14415         of Set_Item.
14416         (Set_Item): When the new item is an element of the currently allocated
14417         table passed by reference, save a copy on the stack if we're going
14418         to reallocate. Also, in Table.Set_Item, make sure we test the proper
14419         variable to determine whether to call Set_Last.
14420
14421         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
14422         symbols-vms.adb, symbols-processing-vms-alpha.adb,
14423         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
14424         some occurrences of the pattern
14425            T.Increment_Last;
14426            T.Table (T.Last) := Value;
14427         with a cleaner call to
14428            T.Append (Value);
14429
14430 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14431             Gary Dismukes  <dismukes@adacore.com>
14432             Thomas Quinot  <quinot@adacore.com>
14433
14434         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
14435         derived type with interface progenitors use the analyzed formal as the
14436         parent of the actual, to create renamings for all the inherited
14437         operations in Derive_Subprograms.
14438         (Collect_Previous_Instances): new procedure within of
14439         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
14440         unit being loaded, to ensure that the generation of global symbols is
14441         consistent in different compilation modes.
14442         (Is_Tagged_Ancestor): New function testing the ancestor relation that
14443         takes progenitor types into account.
14444         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
14445         traversing over the primitives of the formal and actual types to locate
14446         any abstract subprograms of the actual type that correspond to a
14447         nonabstract subprogram of the formal type's ancestor type(s), and issue
14448         an error if such is found.
14449         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
14450         Instantiate_Package_Body, Instantiate_Subprogram_Body):
14451         Remove bogus guard around calls to Inherit_Context.
14452         (Reset_Entity): If the entity is the selector of a selected component
14453         that denotes a named number, propagate constant-folding to the generic
14454         template only if the named number is global to the generic unit.
14455         (Set_Instance_Env): Only reset the compilation switches when compiling
14456         a predefined or internal unit.
14457
14458 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14459
14460         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
14461         parameter to determine whether operation applies to the prefix.
14462         (Complete_Object_Operation): If actual has an access type and
14463         controlling formal is not an in_parameter, reject the actual if it is
14464         an access_to_constant type.
14465         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
14466         type, the candidate operations are found in the scope of declaration of
14467         the type, because the type has no primitive subprograms.
14468         (Analyze_Selected_Component): If prefix is class-wide, and root type is
14469         a private extension, only examine visible components before trying to
14470         analyze as a prefixed call.
14471         Change Entity_List to Type_To_Use, for better readability.
14472         (Has_Fixed_Op): Use base type when checking whether the type of an
14473         operator has a user-defined multiplication/division
14474         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
14475         user-defined operators are available for fixed-point types.
14476
14477 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14478             Ed Schonberg  <schonberg@adacore.com>
14479
14480         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
14481         formal At_Any_Place indicating, when True, that we want to test for
14482         availability of the stream attribute at any place (as opposed to the
14483         current visibility context only).
14484         (Missing_Read_Write_Attributes): A stream attribute is missing for the
14485         purpose of enforcing E.2.2(8) only if it is not available at any place.
14486         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
14487         when checking the legality of an extension aggregate in a preelaborable
14488         package. Treat the literal null as a valid default expression in a
14489         component declaration for a type with preelaborable initialization.
14490         A limited interface is a legal progenitor for the designated type of a
14491         remote access to class-wide type.
14492
14493 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14494             Ed Schonberg  <schonberg@adacore.com>
14495
14496         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
14497         reference): Use correct entity as denoted entity for the selector of
14498         the rewritten node.
14499         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
14500         setting the Referenced_As_LHS flag for entities that are implicitly
14501         dereferenced.
14502         (Find_Type): If the type is an internally generated incomplete type,
14503         mark the full view as referenced, to prevent spurious warnings.
14504         (Find_Selected_Component, Has_Components): Handle properly non-limited
14505         views that are themselves incomplete types.
14506         Handle interfaces visible through limited-with clauses.
14507         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
14508         subprogram generic actual for which we have generated a renaming.
14509         Warn when the renaming introduces a homonym of
14510         the renamed entity, and the renamed entity is directly visible.
14511
14512 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14513             Hristian Kirtchev  <kirtchev@adacore.com>
14514
14515         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
14516         appear in the subtree to the current allocator if it is not a static
14517         coextension.
14518         (Resolve_Allocator): Perform cleanup if resolution has determined that
14519         the allocator is not a coextension.
14520         (Resolve): Skip an interpretation hidden by an abstract operator only
14521         when the type of the interpretation matches that of the context.
14522         (Resolve): When looping through all possible interpretations of a node,
14523         do not consider those that are hidden by abstract operators.
14524         (Resolve_Actuals): When verifying that an access to class-wide object
14525         is an actual  for a controlling formal, ignore anonymous access to
14526         subprograms whose return type is an access to class_wide type.
14527         (Resolve_Slice): If the prefix of the slice is a selected component
14528         whose type depends on discriminants, build its actual subtype before
14529         applying range checks on the bounds of the slice.
14530         (Valid_Conversion): In an instance or inlined body, compare root types,
14531         to prevent anomalies between private and public views.
14532         (Resolve): Improve error message for ambiguous fixed multiplication
14533         expressions that involve universal_fixed multiplying operations.
14534
14535 2007-08-14  Javier Miranda  <miranda@adacore.com>
14536             Hristian Kirtchev  <kirtchev@adacore.com>
14537
14538         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
14539         location to allow the correct generation of errors in case of
14540         restrictions applied to the expanded code.
14541         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
14542         function if the condition does not reference them.
14543         (Expand_Entry_Body_Declarations): Mark the index constant as having a
14544         valid value.
14545
14546 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14547             Pablo Oliveira  <oliveira@adacore.com>
14548
14549         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
14550         typecode parameters for a union (in a variant record), remove
14551         extraneous layer of Any wrapping for member label.
14552         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
14553         elabration statements, register the package with the name server
14554         at the beginning, not at the end, of the elaboration statements so
14555         that they can create remote access to subprogram values that designate
14556         remote subprograms from the package.
14557
14558 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
14559
14560         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
14561         values to compute the number of seconds since the Unix Epoc in order to
14562         account for Daylight Savings Time. Perform special processing for dates
14563         that are earlier than the Unix Epoc to obtain a negative number.
14564
14565 2007-08-14  Emmanuel Briot  <briot@adacore.com>
14566
14567         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
14568         switches.
14569
14570 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
14571
14572         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
14573         binder-generated file is not in Ada.
14574         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
14575         recorded in the ALI file.
14576         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
14577
14578 2007-08-14  Vincent Celier  <celier@adacore.com>
14579
14580         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
14581         (Output_Source): Do nothing if parameter is No_Sdep_Id
14582
14583         * make.adb (Gnatmake): Do not rebuild an archive simply because a
14584         shared library it imports has a later time stamp.
14585         (Check): Resolve the symbolic links in the path name of the object
14586         directory.
14587         Check that the ALI file is in the correct object directory
14588         Check if a file name does not correspond to the mapping of units
14589         to file names.
14590         (Display_Version): New procedure
14591         (Initialize): Process switches --version and --help
14592         Use type Path_Name_Type for path name
14593
14594 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
14595
14596         * impunit.adb: Re-organize System.Random_Numbers and
14597         GNAT.Random_Numbers and add to builds.
14598
14599         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
14600
14601         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
14602
14603         * a-assert.ads, a-assert.adb: New files.
14604
14605 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
14606
14607         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
14608         if AAMP_On_Target is True, then the size of the type encompasses two
14609         addresses (a static link and a subprogram address), except in the case
14610         of library-level access types.
14611
14612 2007-08-14  Vincent Celier  <celier@adacore.com>
14613
14614         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
14615         writing the line.
14616         (Write_Eol_Keep_Blanks): New procedure to write a line, including
14617         possible trailing spaces.
14618         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
14619
14620 2007-08-14  Javier Miranda  <miranda@adacore.com>
14621
14622         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
14623         null-excluding access types.
14624
14625 2007-08-14  Javier Miranda  <miranda@adacore.com>
14626
14627         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
14628         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
14629         of private types add missing check on matching interfaces in the
14630         partial and full declarations.
14631         (Analyze_Protected_Type): Code cleanup.
14632         (Analyze_Task_Type): Code cleanup.
14633
14634 2007-08-14  Javier Miranda  <miranda@adacore.com>
14635
14636         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
14637         generated interface thunk.
14638
14639 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14640
14641         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
14642         obsolescent warning on application of 'Class to an incomplete type.
14643
14644         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
14645         prevent obsolescent warning on application of 'Class to an incomplete
14646         type.
14647
14648 2007-08-14  Pascal Obry  <obry@adacore.com>
14649
14650         * s-fileio.adb (Is_Open): Add check for usability of the underlying
14651         file stream.
14652
14653 2007-08-14  Cyrille Comar  <comar@adacore.com>
14654
14655         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
14656         since it is potentially used in cases implying double finalization of
14657         the same object.
14658
14659 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
14660
14661         * s-tasini.adb (Get_Stack_Info): Move this function to
14662         System.Soft_Links.Tasking because it is common to the full and the
14663         restricted run times.
14664         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
14665         in SSL.Tasking.Init_Tasking_Soft_Links.
14666
14667         * s-solita.adb (Get_Stack_Info): Function moved from
14668         System.Tasking.Initialization because it is common to the full and the
14669         restricted run times.
14670         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
14671
14672 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
14673
14674         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
14675         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
14676         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
14677         parameter.
14678
14679         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
14680         guard to 12K.
14681
14682 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
14683
14684         * s-veboop.adb (SU): New named number initialized to
14685         System.Storage_Unit.
14686         (True_Val): The initialization expression is revised to use SU (=
14687         Storage_Unit) rather than assuming 8 for the component size of an
14688         unpacked Boolean array.
14689
14690 2007-08-14  Tristan Gingold  <gingold@adacore.com>
14691
14692         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
14693
14694         * tb-ivms.c: New file.
14695
14696         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
14697
14698 2007-08-14  Geert Bosch  <bosch@adacore.com>
14699
14700         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
14701         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
14702         Add required linker pragmas for automatically linking with the gnalasup
14703         linear algebra support library, and the systems math library.
14704         Rename cdot to cdotu and zdot to zdotu.
14705         Update header comment to describe purpose of package.
14706
14707 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14708
14709         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
14710         an explicitly specified Associated_Final_Chain, use that list.
14711         (Expand_N_Package_Body): Build dispatch tables of library level tagged
14712         types.
14713         (Expand_N_Package_Declaration): Build dispatch tables of library level
14714         tagged types. Minor code cleanup.
14715
14716 2007-08-14  Vincent Celier  <celier@adacore.com>
14717
14718         * gnatchop.adb (Terminate_Program): Remove exception and use
14719         Types.Terminate_Program instead.
14720
14721         * osint.ads, osint.adb (Current_Exit_Status): New global variable
14722         (Find_Program_Name): Added protection against empty name.
14723         (OS_Exit_Through_Exception): New procedure
14724
14725         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
14726         (OS_Exit_Default): New procedure that contains the previous
14727         implementation of procedure OS_Exit.
14728         (Final_Value): Remove obsolete Interix stuff.
14729
14730 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14731
14732         * g-socket.ads: Reorganize example code so that it also works on
14733         Windows XP.
14734
14735 2007-08-14  Tristan Gingold  <gingold@adacore.com>
14736
14737         * g-trasym.ads: AIX now supports symbolic backtraces.
14738
14739 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14740
14741         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
14742         units being loaded to detect circularities. A circularity may be
14743         present even if the current chain of pending units to load starts from
14744         a limited_with_clause.
14745
14746         * lib-load.ads: Change profile of Load_Unit to use a with_clause
14747         rather than a boolean flag, in order to detect circularities in
14748         with_clauses.
14749
14750         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
14751         than propagating the From_Limited_With flag, in order to handle
14752         properly circularities involving with_clauses.
14753
14754 2007-08-14  Nicolas Setton  <setton@adacore.com>
14755
14756         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
14757         warnings.
14758
14759 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
14760
14761         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
14762         to build for libgnala.
14763         libgnat: Add rules to build libgnala.a
14764         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
14765         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
14766         Add s-osinte-vxworks-kernel.adb to the target pairs of the
14767         kernel run-time lib for VxWorks 6, which would provide a different
14768         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
14769         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
14770         running ZCX by default.
14771         Add g-sttsne-locking to LynxOS version.
14772         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
14773         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
14774
14775         * system-darwin-x86.ads: New file.
14776
14777         * Make-lang.in: Delete files before copying onto them, so if they are
14778         read-only, the copy won't fail.
14779         Update dependencies
14780
14781 2007-08-14  Pascal Obry  <obry@adacore.com>
14782
14783         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
14784         naming scheme.
14785
14786 2007-08-14  Vincent Celier  <celier@adacore.com>
14787
14788         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
14789         (Gcc): Initialize Gcc_Name at the first call
14790
14791 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
14792
14793         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
14794         with_clauses of the enclosing unit when analyzing the package
14795         specification of a nested instance.
14796
14797 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
14798
14799         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
14800         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
14801         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
14802         layout of N_Allocator.
14803
14804 2007-08-14  Thomas Quinot  <quinot@adacore.com>
14805
14806         * rtsfind.adb (Check_RPC): Add PCS version check.
14807
14808         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
14809         (Gnat_Free_Software): New function.
14810
14811         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
14812         the PCS_Version value from s-parint, used to check that it is consistent
14813         with what exp_dist expects.
14814
14815         * s-parint.ads (PCS_Version): New entity for checking consistency
14816         between exp_dist and PCS.
14817
14818         * gen-soccon.c: (SO_REUSEPORT): New constant.
14819
14820 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
14821
14822         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
14823         variable Sub_Second to Duration in order to accomodate a larger range
14824         of arithmetic operations.
14825
14826 2007-08-14  Bob Duff  <duff@adacore.com>
14827
14828         * g-sttsne-locking.ads: Move comments from spec to body.
14829         * g-sttsne-locking.adb: Move comments from spec to body.
14830         * g-sttsne-vxworks.ads: Removed.
14831         * g-sttsne-vxworks.adb: Removed.
14832
14833 2007-08-11  Ian Lance Taylor  <iant@google.com>
14834
14835         * misc.c (gnat_get_alias_set): Change return type to
14836         alias_set_type.
14837
14838 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14839
14840         * decl.c, utils2.c: Fix whitespace in last change.
14841
14842 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14843
14844         * decl.c (compare_field_bitpos): Constify.
14845         * utils2.c (compare_elmt_bitpos): Likewise.
14846
14847 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
14848
14849         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
14850         anonymous access type.
14851         (pthread_sigmask): Now take an access sigset_t.
14852
14853 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
14854
14855         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
14856
14857 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
14858
14859         PR tree-optimization/25737
14860         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
14861
14862 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14863
14864         * trans.c (Attribute_to_gnu): When subtracting an
14865         offset from a pointer, use POINTER_PLUS_EXPR with
14866         NEGATE_EXPR instead of MINUS_EXPR.
14867         (gnat_to_gnu): Likewise.
14868         * utils.c (convert): When converting between
14869         thin pointers, use POINTER_PLUS_EXPR and sizetype
14870         for the offset.
14871         * utils2.c (known_alignment): POINTER_PLUS_EXPR
14872         have the same semantics as PLUS_EXPR for alignment.
14873         (build_binary_op): Add support for the semantics of
14874         POINTER_PLUS_EXPR's operands.
14875         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
14876
14877 2007-06-11  Rafael Ávila de Espíndola  <espindola@google.com>
14878
14879         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
14880         of get_signed_or_unsigned_type.
14881         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
14882
14883 2007-06-11  Bob Duff  <duff@adacore.com>
14884             Thomas Quinot  <quinot@adacore.com>
14885
14886         * g-stsifd-sockets.adb (Create): Work around strange behavior of
14887         'bind' on windows that causes 'connect' to fail intermittently, by
14888         retrying the 'bind'.
14889         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14890
14891 2007-06-10  Duncan Sands  <baldrick@free.fr>
14892
14893         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
14894         than to void, for the fields when making a new fat pointer type.
14895         (gnat_substitute_in_type): Now substitute_in_type.
14896         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
14897         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
14898         * utils.c (update_pointer_to): Update fat pointers by updating the
14899         dummy node pointers used for the fields.
14900
14901 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14902             Bob Duff  <duff@adacore.com>
14903
14904         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
14905         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14906         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
14907         constant Thread_Blocking_IO, always True by default, set False
14908         on a per-runtime basis.
14909         (Need_Netdb_Buffer): New constant.
14910
14911         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
14912         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
14913         files.
14914
14915         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
14916         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
14917         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
14918         child package Task_Safe_NetDB
14919         (Host_Error_Messages): Add stub body.
14920         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14921
14922         * g-soccon-mingw.ads: Add Windows-specific constants.
14923         (Need_Netdb_Buffer): New constant.
14924         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
14925         wrapper and import inet_addr(3) from the standard sockets library
14926         directly instead.
14927         (In_Addr): Add alignment clause.
14928         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14929
14930 2007-06-06  Robert Dewar  <dewar@adacore.com>
14931
14932         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14933         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
14934         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
14935         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
14936         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
14937         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
14938         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
14939         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
14940         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
14941         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
14942         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
14943         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
14944         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
14945         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
14946         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
14947         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
14948         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
14949         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
14950         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
14951         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
14952         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
14953         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
14954         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
14955         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
14956         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
14957         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
14958         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
14959         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
14960         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
14961         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
14962         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
14963         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
14964         Unchecked_* by Ada.Unchecked_*
14965
14966 2007-06-06  Robert Dewar  <dewar@adacore.com>
14967
14968         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
14969         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
14970         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
14971         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
14972         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
14973         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
14974
14975         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
14976         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
14977         s-tasloc.adb, s-tasloc.ads: New files.
14978
14979 2007-06-06  Bob Duff  <duff@adacore.com>
14980
14981         * g-expect-vms.adb:
14982         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
14983         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
14984         (Send_Signal, Close): Raise Invalid_Process if the process id is
14985         invalid.
14986         (Pattern_Matcher_Access): Is now a general access type to be able to
14987         use aliased string.
14988
14989 2007-06-06  Thomas Quinot  <quinot@adacore.com>
14990             Arnaud Charlet  <charlet@adacore.com>
14991
14992         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
14993         (SIGEMT is now used instead of SIGTERM on AIX).
14994
14995         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
14996         (Time_Slice_Supported): Set to True.
14997         Use SIGEMT instead of SIGTERM as SIGADAABORT.
14998
14999 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
15000
15001         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
15002         (Time, Time)): Use To_Relative_Time rather than manual calculation to
15003         express the bounds of Duration as Time. Raise Time_Error when the
15004         result is greater or equal to the higher bound of Duration (on the
15005         margin case).
15006         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
15007         Ada_High_And_Leaps.
15008         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
15009         Ada_High_And_Leaps.
15010         ("-" (Time, Time)): Reorder code.
15011         (All_Leap_Seconds): Removed.
15012         (Arithmetic_Operations.Add): Remove sign related kludge.
15013         (Arithmetic_Operations.Difference): Control the leaps seconds processing
15014         with flag Leap_Support.
15015         (Arithmetic_Operations.Subtract): Remove sign related kludge.
15016         (Check_Within_Time_Bounds): New procedure.
15017         (Clock): Control the leap seconds processing with flag Leap_Support.
15018         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
15019         (Formatting_Operations.Split): Control the leap seconds processing with
15020         flag Leap_Support.
15021         (Formatting_Operations.Time_Of): Control the leaps seconds processing
15022         with flag Leap_Support. Adjust the year, month and day (if applicable)
15023         when the value of day seconds designates a new day.
15024         (Split): Use parameter associations for better readability. Integrate
15025         flag Is_Ada_05.
15026         (Time_Of): Use parameter associations for better readability. Integrate
15027         flag Is_Ada_05.
15028
15029         * a-calfor.adb (Split): Use parameter associations for better
15030         readability. Integrate flag Is_Ada_05.
15031         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
15032         better readability. Integrate flag Is_Ada_05.
15033
15034 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15035
15036         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
15037         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
15038         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
15039         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
15040         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
15041         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
15042         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
15043         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
15044         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
15045         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
15046         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
15047         time when entering this routine to detect a backward clock setting
15048         (manual setting or DST adjustment), to avoid waiting for a longer delay
15049         than needed.
15050         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
15051         Remove handling of deferred priority change, and replace by setting the
15052         task priority directly, as required by AI-188.
15053         Update comments.
15054         (Max_Task_Image_Length): New constant.
15055         Replace Warnings (Off) by Unreferenced pragma, cleaner.
15056         (Dynamic_Priority_Support): Removed, no longer needed.
15057         (Poll_Base_Priority_Change): Ditto.
15058         (Set_Ceiling): Add this procedure to change the ceiling priority
15059         associated to a lock. This is a dummy implementation because dynamic
15060         priority ceilings are not supported by the underlying system.
15061
15062         * a-dynpri.adb (Set_Priority): Take into account case where Target is
15063         accepting a RV with its priority boosted.
15064         Remove handling of deferred priority change, and replace by setting the
15065         task priority directly, as required by AI-188.
15066
15067         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
15068         Succeeded = True.
15069         Remove handling of deferred priority change, and replace by setting the
15070         task priority directly, as required by AI-188.
15071         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
15072         of Self_Id earlier.
15073
15074         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
15075         (Poll_Base_Priority_Change): Removed.
15076         Code clean up: use SSL.Current_Target_Exception.
15077
15078         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
15079         to run as this is a potentially dispatching point.
15080         (Call_Synchronous): Use Local_Defer_Abort.
15081         (Callable): Relax assertion.
15082         (Selective_Wait): Relax assertion in case abort is not allowed.
15083         Remove handling of deferred priority change, and replace by setting the
15084         task priority directly, as required by AI-188.
15085
15086         * s-tasuti.adb (Make_Passive): Adjust assertions.
15087         Remove handling of deferred priority change, and replace by setting the
15088         task priority directly, as required by AI-188.
15089
15090 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15091
15092         * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15093         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15094         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
15095         system-vxworks-mips.ads, system-vxworks-alpha.ads,
15096         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
15097         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
15098         system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
15099         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
15100         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
15101         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
15102         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
15103         This patch changes the largest non-binary modulus from 2**31-1 to
15104         2**32-1.
15105         (Compiler_System_Version): Removed, no longer used.
15106         Clean up system files by removing flags only used on a single target.
15107         Also remove obsolete flags, only used during bootstrap from system.ads
15108         (Address): Add a pragma Preelaborable_Initialization.
15109
15110         * system-aix.ads:  Ditto.
15111         (GCC_ZCX_Support): Set to true.
15112         Update priority range on AIX and map Ada priorities to target
15113         priorities appropriately for different scheduling policies.
15114
15115         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
15116
15117 2007-06-06  Vincent Celier  <celier@adacore.com>
15118
15119         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
15120         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
15121
15122         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
15123         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
15124         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
15125         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15126         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
15127         MLib.Tgt, containing the default versions of the exported subprograms.
15128         For each platform, create a specific version of the body of new child
15129         package MLib.Tgt.Specific that contains only the body of subprograms
15130         that are different from the default.
15131         (Archive_Builder_Append_Options): New function.
15132
15133 2007-06-06  Matthew Gingell  <gingell@adacore.com>
15134
15135         * s-osinte-aix.adb: Map Ada priorities to target priorities
15136         appropriately for different scheduling policies.
15137
15138 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15139
15140         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
15141         its C counterpart.
15142         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
15143         Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
15144
15145 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
15146
15147         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
15148         Noop on VMS, added for interface commonality.
15149
15150 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15151             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15152             Olivier Hainque  <hainque@adacore.com>
15153
15154         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
15155         renamed expression of a full renaming at toplevel.
15156         (gnat_to_gnu_entity, case object): If not defining, do not look inside
15157         the values the constant is initialized to if it is an N_Allocator.
15158         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
15159         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
15160         (make_aligning_type): Accept an extra ROOM argument for storage to be
15161         made available before the aligned field, and an extra BASE_ALIGN
15162         argument for callers to pass the alignment guaranteed to be honored for
15163         the whole aligning object. Avoid call to finish_record_type, which only
15164         interferes with the sizes we want to set.
15165         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
15166         make_aligning_type for super-aligned objects on stack.
15167         (components_to_record): Pass the adjusted size of the type when creating
15168         fields in the qualified union for the variant part.
15169         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
15170         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
15171         packed array type.
15172         (maybe_pad_type): Set TYPE_USER_ALIGN.
15173         (make_aligning_type): Likewise.
15174         ALIGN argument is unsigned int.
15175         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
15176         (gnat_to_gnu_param): Likewise, for parameters.
15177         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
15178         if it is constant and stems from a function call.
15179         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
15180         of the record is specified.  Adjust accordingly.
15181         (adjust_packed): New static function.
15182         (gnat_to_gnu_field): Use it to adjust the packedness setting.
15183         (components_to_record): Likewise.
15184         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
15185         side-effects if the object is deemed constant.
15186         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
15187         type instead of merely finalizing it.  Tidy.
15188         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
15189         <E_Access_Type>: Likewise.
15190         (defer_debug_incomplete_list): Rename to defer_finalize_list.
15191         (defer_debug_level): Delete.
15192         (gnat_to_gnu_entity) <debug_deferred>: Likewise
15193         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
15194         type.
15195         <E_Record_Type>: Do not explicitly defer finalizing the type.
15196         Adjust for write_record_type_debug_info renaming.
15197         <E_Subprogram_Type>: Likewise.
15198         Finalize deferred types right after deferred incomplete types are
15199         expanded.
15200         (rest_of_type_decl_compilation): New global function.
15201         (components_to_record): Rename defer_debug parameter to do_not_finalize.
15202         (components_to_record): Propagate the packedness to the fields of the
15203         qualified union type if there is a variant part.
15204         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
15205         instead of inline code to adjust the XUT field offsets.
15206         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
15207         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
15208         and write the debug info if the type derives from a discriminated one.
15209         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
15210         <E_Array_Subtype>: Likewise.
15211         <E_String_Literal_Subtype>: Likewise.
15212         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
15213         an alignment clause.
15214         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
15215         before giving warning.
15216         (prepend_one_attribute_to): New function, helper to prepend an attribute
15217         to an attribute list.
15218         (gnat_to_gnu_entity) <E_Procedure>: Use it.
15219         (prepend_attributes): Likewise.
15220         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
15221         <E_Array_Type>: Declare the padding type for the element type, if any.
15222         <E_Array_Subtype>: Likewise.
15223         (defer_limited_with): New variable.
15224         (Gigi_Equivalent_Type): New function.
15225         (gnat_to_gnu_entity): Use it at start and use result throughout.
15226         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
15227         Gigi_Equivalent_Type, support Limited_With, allow two levels of
15228         indirection, precompute if unconstrained array to simplify logic, and
15229         use defer_limited_with to defer elaboration of some types from limited
15230         with.
15231         (finalize_from_with_types): New function.
15232
15233 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
15234             Eric Botcazou  <ebotcazou@adacore.com>
15235             Tristan Gingold  <gingold@adacore.com>
15236             Olivier Hainque  <hainque@adacore.com>
15237
15238         * trans.c (Identifier_to_gnu): Change test for deferred constant by
15239         adding guard that the entity is an E_Constant before testing presence
15240         of Full_view (and remove unnecessary test that entity is not a type).
15241         For a CONST_DECL used by reference, manually retrieve
15242         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
15243         (struct language_function): Move from utils.c to here.
15244         (struct parm_attr): New structure.
15245         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
15246         (f_parm_attr_cache): New macro.
15247         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
15248         expressions for the 'First, 'Last and 'Length attributes of the
15249         unconstrained array IN parameters.
15250         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
15251         Allocate the information structure for the function earlier, as well
15252         as the language-specific part.
15253         If the parameter attributes cache has been populated, evaluate the
15254         cached expressions on entry.
15255         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
15256         N_Procedure_Call_Statement and N_Indexed_Component.
15257         (Pragma_to_gnu): Translate inspection_point to an asm statement
15258         containaing a comment and a reference to the object (either its address
15259         for BLKmode or its value).
15260         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
15261         to go to DECL_INITIAL. Together with the size constraint relaxation
15262         in create_var_decl, enlarges the set of situations in which an
15263         identifier may be used as an initializer without implying elaboration
15264         code.
15265         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
15266         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
15267         node.
15268         (maybe_stabilize_reference): Remove lvalues_only parameter.
15269         (gnat_stabilize_reference): Adjust for above change.
15270         (gnat_to_gnu): Do not set location information on the result
15271         if it is a reference.
15272         (add_cleanup): Add gnat_node parameter and set the location of the
15273         cleanup to it.
15274         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
15275         (Exception_Handler_to_gnu_zcx): Likewise.
15276         (gigi): Remove the cgraph node if the elaboration procedure is empty.
15277         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
15278         the former right after the latter.
15279         (start_stmt_group): Make global.
15280         (end_stmt_group): Likewise.
15281         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
15282         vars.
15283         (gnu_program_error_label_stack): Likewise.
15284         (gigi): Initialize them.
15285         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
15286         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
15287         New cases.
15288         (push_exception_label_stack): New function.
15289         (takes_address): New function.
15290
15291         * utils.c (struct language_function): Move to trans.c from here.
15292         (unchecked_convert): Do not wrap up integer constants in
15293         VIEW_CONVERT_EXPRs.
15294         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
15295         the latter for aggregate types, unexpected by later passes, and relax an
15296         arbitrary size constraint on the former.
15297         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
15298         to compare the sizes.
15299         (convert_vms_descriptor): When converting to a fat pointer type, be
15300         prepared for a S descriptor at runtime in spite of a SB specification.
15301         (shift_unc_components_for_thin_pointers): New function.
15302         (write_record_type_debug_info): For variable-sized fields, cap the
15303         alignment of the pointer to the computed alignment.
15304         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
15305         If REP_LEVEL is 2, do not compute the sizes.
15306         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
15307         (build_unc_object_type): Likewise.
15308         (declare_debug_type): New function.
15309
15310         * ada-tree.def: USE_STMT: removed (not emitted anymore).
15311
15312         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
15313         no statement is expandable anymore.
15314         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
15315         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
15316         when the user requested it explicitely.
15317         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
15318         to 0 for Ada.
15319         (get_alias_set): Return alias set 0 for a type if
15320         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
15321
15322         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
15323         (DECL_FUNCTION_STUB): New accessor macro.
15324         (SET_DECL_FUNCTION_STUB): New setter macro.
15325
15326         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
15327
15328         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
15329         declarations.
15330
15331 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
15332
15333         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
15334         Rename to Abort_Task_Interrupt to be able to keep the same interface
15335         as the rest of the targets.
15336
15337         * s-osinte-vxworks.ads s-osinte-vxworks.adb
15338         (To_VxWorks_Priority): Remove explicit "in" mode indicator
15339
15340         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
15341         New files.
15342
15343 2007-06-06  Robert Dewar  <dewar@adacore.com>
15344
15345         * a-chahan.ads: Remove obsolescent pragmas
15346
15347         * a-chlat1.ads: Minor reformatting
15348
15349 2007-06-06  Robert Dewar  <dewar@adacore.com>
15350
15351         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
15352         for Errout
15353
15354         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
15355         implementation
15356
15357         * errout.ads (Finalize): Changed interface
15358         (Output_Messages): New procedure
15359         (Compilation_Errors): New Interface
15360
15361         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
15362         Finalize/Output_Messages interface for Errout
15363         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
15364         Errout.
15365
15366 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15367             Olivier Hainque  <hainque@adacore.com>
15368             Robert Dewar  <dewar@adacore.com>
15369
15370         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
15371         check.
15372         (Raise_Current_Excep): Call Debug_Raise_Exception just before
15373         propagation starts, to let debuggers know about the event in a reliable
15374         fashion.
15375         (Local_Raise): Moved to System.Exceptions
15376         More convenient to have this as a separate unit
15377
15378         * s-except.adb, s-except.ads: New files.
15379
15380         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
15381         Debug_Unhandled_Exception in System.Exceptions where it belongs
15382         together with a couple of other debug helpers.
15383         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
15384         the former Unhandled_Exception.
15385
15386         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
15387         (Warn_No_Exception_Propagation): New procedure
15388         (Warn_If_No_Propagation): Rewritten for new warning generation
15389         (Expand_Exception_Handlers): New warning generation
15390         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
15391         (Add_Exception_Label): Use Special_Exception_Package_Used for test
15392         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
15393         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
15394         even if restriction is set (makes life easier in Check_Returns)
15395         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
15396         checking exception identities.
15397         (Expand_Local_Exception_Handlers): Do not optimize when all others case
15398         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
15399         block for handler (used by Check_Returns)
15400         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
15401         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
15402         remove all exception handlers when optimizing local raise statements.
15403         (Find_Local_Handler): Use Get_Renamed_Entity
15404         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
15405         marked analyzed after expanding exception handlers, do not generate
15406         redundant cleanup actions, because they have been constructed already.
15407
15408 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15409
15410         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
15411         presence of this categorization pragma is mandated by the language.
15412         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
15413         for this type.
15414
15415 2007-06-06  Vincent Celier  <celier@adacore.com>
15416             Robert Dewar  <dewar@adacore.com>
15417
15418         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
15419         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15420         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
15421         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
15422         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
15423         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
15424         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
15425         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
15426         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
15427         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
15428         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
15429         ali.ads, ali.adb:
15430         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
15431         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
15432         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
15433         Use variables of types File_Name_Type and Unit_Name_Type in error
15434         messages.
15435         (Get_Name): Add parameter Ignore_Special, and set it reading file name
15436         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
15437         here.
15438         Define flags Flag217-Flag230 with associated subprograms
15439         (Flag_Word5): New record type.
15440         (Flag_Word5_Ptr): New access type.
15441         (To_Flag_Word5): New unchecked conversion.
15442         (To_Flag_Word5_Ptr): Likewise.
15443         (Flag216): New function.
15444         (Set_Flag216): New procedure.
15445
15446 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15447
15448         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
15449         instead of 'Size.
15450
15451         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
15452
15453 2007-06-06  Javier Miranda  <miranda@adacore.com>
15454
15455         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
15456         the package.
15457         (Object_Specific_Data_Array): This is now internal to the package.
15458         (Object_Specific_Data): This is now internal to the package.
15459         (Select_Specific_Data_Element): This is now internal to the package.
15460         (Select_Specific_Data_Array): This is now internal to the package.
15461         (Select_Specific_Data): This is now internal to the package.
15462         (Offset_To_Top_Function_Ptr): This is now public.
15463         (To_Offset_To_Top_Function_Ptr): Removed.
15464         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
15465          local to subprogram Offset_To_Top.
15466         (Predefined_DT): Removed.
15467         (Typeinfo_Ptr): Removed.
15468         (OSD): This function is now internal to this package.
15469         (SSD): This function is now internal to this package.
15470         (DT): New function that displaces the pointer to the table of primitives
15471          to get access to the enclosing wrapper record.
15472         (IW_Membership): Code cleanup.
15473         (Offset_To_Top): Code cleanup.
15474         (Predefined_DT): Removed.
15475         (Register_Interface_Tag): Removed.
15476         (Set_Interface_Table): Removed.
15477         (Set_Offset_Index): Removed.
15478         (Set_Offset_To_Top): Code cleanup.
15479         (Set_OSD): Removed.
15480         (Set_Signature): Removed.
15481         (Set_SSD): Removed.
15482         (Set_Tagged_Kind): Removed.
15483         (Typeinfo_Ptr): Removed.
15484         (TSD): Removed.
15485         (Displace): Add missing check on null actual.
15486
15487         * exp_disp.ads, exp_disp.adb
15488         (Select_Expansion_Utilities): Removed.
15489         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
15490         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
15491         the interface requires a new parameter.
15492         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
15493         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
15494         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
15495         Done to remove package Select_Expansion_Utilities.
15496         (Make_DT): New implementation for statically allocated dispatch tables.
15497         (Make_Secondary_DT): Moved to the scope of Make_DT.
15498         (Register_Primitive): Code cleanup plus incoporate the use of the new
15499         function DT_Address_Attribute.
15500         (Expand_Interface_Thunk): The profile of this subprogram has been
15501         changed to return the Thunk_Id and the corresponding code.
15502         (Fill_DT_Entry): Removed. Its functionality is now provided by
15503         subprogram Register_Primitive.
15504         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
15505         subprogram Register_Primitive.
15506         (Register_Primitive): New subprogram that incorporates the previous
15507         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
15508         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
15509         was only required to call Make_DT_Access_Action, which is now removed.
15510         (Ada_Actions): Removed
15511         (Action_Is_Proc): Removed
15512         (Action_Nb_Arg): Removed
15513         Replace all the calls to Make_DT_Access_Action by direct calls to
15514         Make_Procedure_Call_Statement or Make_Function_Call.
15515         (Set_DTC_Entity_Value): New subprogram.
15516         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
15517         (Expand_Interface_Thunk): Add missing support for primitives that are
15518         functions with a controlling result (case in which there is no need
15519         to generate the thunk).
15520
15521         * exp_atag.ads, exp_atag.adb
15522         (Build_DT): New subprogram that displaces the pointer to reference the
15523         base of the wrapper record.
15524         (Build_Typeinfo_Offset): Removed.
15525         (RTE_Tag_Node): Removed.
15526         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
15527         (Build_Get_RC_Offset): Removed.
15528         (Build_Inherit_Predefined_Prims): Removed.
15529         (Build_Inherit_TSD: Removed.
15530         (Build_New_TSD): Removed.
15531         (Build_Set_External_Tag): Removed.
15532         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
15533         (Build_Set_Prim_Op_Address): Add documentation.
15534         (Build_Set_TSD): Removed.
15535
15536         * rtsfind.ads, rtsfind.adb
15537         (Load_Fail): If load fails and we are not in configurable run-time
15538         mode, then raise Unrecoverable_Error.
15539         (Text_IO_Kludge): Generate an error message if a run-time library is
15540         not available in a given run-time (ie. zfp run-time).
15541         (RTE_Record_Component): Add code to check that the component we search
15542         for is not found in two records in the given run-time package.
15543         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
15544         (RE_DT_Predef_Prims_Offset): New entity
15545         (RE_Static_Offset_To_Top): New entity
15546         (RE_HT_Link): New entity.
15547         (System_Address_Image): Addition of this run-time package.
15548         (RE_Address_Image): New entity.
15549         (RE_Abstract_Interface): Removed.
15550         (RE_Default_Prim_Op_Count): Removed.
15551         (RE_DT_Entry_Size): Removed.
15552         (RE_DT_Min_Prologue_Size): Removed.
15553         (RE_DT_Prologue_Size): Removed.
15554         (RE_Ifaces_Table_Ptr): Removed.
15555         (RE_Interface_Data_Ptr): Removed.
15556         (RE_Type_Specific_Data): Removed.
15557         (RE_Primary_DT): Removed.
15558         (RE_Register_Interface_Tag): Removed.
15559         (RE_Set_Offset_Index): Removed.
15560         (RE_Set_OSD): Removed.
15561         (RE_Set_SSD): Removed.
15562         (RE_Set_Signature): Removed.
15563         (RE_Set_Tagged_Kind): Removed.
15564         (RE_Address_Array): New entity.
15565         (RE_DT): New entity.
15566         (RE_Iface_Tag): New entity.
15567         (RE_Interfaces_Table): New entity.
15568         (RE_No_Dispatch_Table): New entity.
15569         (RE_NDT_Prims_Ptr): New entity.
15570         (RE_NDT_TSD): New entity.
15571         (RE_Num_Prims): New entity.
15572         (RE_Offset_To_Top_Function_Ptr): New entity.
15573         (RE_OSD_Table): New entity.
15574         (RE_OSD_Num_Prims): New entity.
15575         (RE_Predef_Prims): New entity
15576         (RE_Predef_Prims_Table_Ptr): New entity.
15577         (RE_Primary_DT): New entity.
15578         (RE_Signature): New entity.
15579         (RE_SSD): New entity.
15580         (RE_TSD): New entity.
15581         (RE_Type_Specific_Data): New entity.
15582         (RE_Tag_Kind): New entity.
15583
15584 2007-06-06  Thomas Quinot  <quinot@adacore.com>
15585
15586         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
15587         C imported variable.
15588         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
15589         on entry.
15590
15591 2007-06-06  Robert Dewar  <dewar@adacore.com>
15592
15593         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
15594         character
15595
15596 2007-06-06  Vincent Celier  <celier@adacore.com>
15597
15598         * a-tifiio.adb (Put, internal): For negative numbers, check that there
15599         is room for at least one digit and the minus sign.
15600         (Put.Put_Character): Never put a character outside of the range of
15601         string To.
15602
15603 2007-06-06  Olivier Hainque  <hainque@adacore.com>
15604             Eric Botcazou  <ebotcazou@adacore.com>
15605
15606         * utils2.c (build_allocator): Provide the extra arguments to
15607         make_aligning_type for super-aligned objects allocated from the default
15608         pool. Leave enough room for a pointer before the aligning field, and
15609         store the system's allocator return value there.
15610         (build_call_alloc_dealloc): When releasing a super-aligned object,
15611         retrieve the system's allocator return value from where build_allocator
15612         has stored it, just ahead of the adjusted address we are passed.
15613         (build_call_raise): Handle properly the generation of line numbers when
15614         the node is marked No_Location.
15615         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
15616         by using DECL_UID on ties.
15617         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
15618         main variant.
15619         (build_call_raise): Handle converting exception into goto; support new
15620         argument KIND.
15621         (build_component_ref): Add new arg to build_call_raise.
15622
15623 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
15624
15625         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
15626         "." in the case of nnn.xxx when nnn terminates with an underscore.
15627         Parse the remaining "#" or ":" in the case of nnn#.xxx#
15628
15629 2007-06-06  Robert Dewar  <dewar@adacore.com>
15630
15631         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
15632
15633 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
15634             Vincent Celier  <celier@adacore.com>
15635             Robert Dewar  <dewar@adacore.com>
15636
15637         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
15638         needed.
15639         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
15640         ((destructor)) for adafinal, even when switch -a is used.
15641         Do not issue pragma Linker_Destructor for adafinal when switch -a is
15642         used.
15643         (Gen_Object_Files_Options): Add formatting of Linker Options, when
15644         Output_Linker_Option_List is set. Suppress this formatting when
15645         Zero_Formatting is set.
15646         Add case for CLI_Target.
15647         (System_Restrictions_Used): New flag, used to avoid generating with of
15648         System_Restrictions and initialization of the data unless there is
15649         some use of System.Restrictions in the partition.
15650         (Check_System_Restrictions_Used): New procedure
15651
15652         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
15653         since we only with this unit in the binder file if it is used elsewhere
15654         in the partition.
15655
15656 2007-06-06  Vincent Celier  <celier@adacore.com>
15657
15658         * bindusg.adb: Add line for @<response file>
15659         Add lines for new switches -R and -Z
15660
15661         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
15662         hierarchy in the list of files of the closure when -R is used
15663         (Gnatbind): Accept arguments starting with '@' to indicate response
15664         files and take the arguments from the response files.
15665         If List_Closure is set, display the referenced files
15666
15667 2007-06-06  Javier Miranda  <miranda@adacore.com>
15668             Robert Dewar  <dewar@adacore.com>
15669             Ed Schonberg  <schonberg@adacore.com>
15670
15671         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
15672         which the address-clause is applied to in-mode actuals (allowed by
15673         13.1(22)).
15674         (Apply_Discriminant_Check): Do not generate a check if the type is
15675         constrained by a current instance.
15676         (Activate_Division_Check): New procedure
15677         (Activate_Overflow_Check): New procedure
15678         (Activate_Range_Check): New procedure
15679         Call these new Activate procedures instead of setting flags directly
15680         (Apply_Array_Size_Check): Removed, no longer needed.
15681         Code clean up: remove obsolete code related to GCC 2.
15682         (Get_E_Length): Protect against bomb in case scope is standard
15683         (Selected_Range_Checks): If the node to be checked is a conversion to
15684         an unconstrained array type, and the expression is a slice, use the
15685         bounds of the slice to construct the required constraint checks.
15686         Improve NOT NULL error messages
15687         (Apply_Constraint_Check): If the context is a null-excluding access
15688         type, diagnose properly the literal null.
15689
15690 2007-06-06  Pascal Obry  <obry@adacore.com>
15691
15692         * clean.adb (Clean_Archive): Use untouched casing for the archive name
15693         and the corresponding .deps file.
15694         (Clean_Interface_Copy_Directory): Use untouched casing for the library
15695         src directory. Minor code-clean-up. Use untouched casing for files
15696         read into the library src dir.
15697         (Clean_Library_Directory): Idem.
15698         (Parse_Cmd_Line): Accept new switch -aP
15699
15700 2007-06-06  Javier Miranda  <miranda@adacore.com>
15701             Ed Schonberg  <schonberg@adacore.com>
15702             Robert Dewar  <dewar@adacore.com>
15703             Eric Botcazou  <ebotcazou@adacore.com>
15704             Arnaud Charlet  <charlet@adacore.com>
15705
15706         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
15707         applicable to types that have the With_Type flag set. Returns the
15708         non-limited view of the type, if available, otherwise the type itself.
15709         For class-wide types, there is no direct link in the tree, so we have
15710         to retrieve the class-wide type of the non-limited view of the Etype.
15711         New attributes Static_Initialization and Static_Elaboration_Desired.
15712         Remove the pragma Thread_Body, and the associated flag
15713         Is_Thread_Body in entities, and all related code.
15714         (Suppress_Value_Tracking_On_Call): New flag
15715         E_Exception has Esize and Alignment fields
15716         (Universal_Aliasing): New function.
15717         (Set_Universal_Aliasing): New procedure.
15718         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
15719         (Check_Nested_Access): New procedure.
15720         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
15721         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
15722         (Related_Interface): New attribute. Present in dispatch table pointer
15723         components of records. Set to point to the entity of the corresponding
15724         interface type.
15725         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
15726         (Original_Access_Type): Remove, not needed.
15727         (Root_Type): Handle properly subtypes of class-wide-types.
15728         Update comments.
15729
15730         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
15731         class-wide types visible through limited-with clauses.
15732         (Try_Primitive_Operation): When examining all primitive operations of a
15733         tagged type, do not consider subprograms labeled as hidden unless they
15734         belong to a private generic type with a tagged parent.
15735         (Try_Object_Operation): Extensive rewriting, to handle properly various
15736         overloading cases, when several ancestors may have class-wide operations
15737         that are possible candidates, and when the overloaded functions return
15738         array types and have defaulted parameters so that the call may be
15739         interpreted as an indexing.
15740         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
15741         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
15742         successive actuals before analyzing the call itself.
15743         (Try_Primitive_Operation): A primitive operation is compatible with the
15744         prefix if the prefix has a synchronized type and the type of the formal
15745         is its corresponding record, as can be the case when the primitive
15746         operation is declared outside of the body of the type.
15747         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
15748         perform homonym traversal, looking for class-wide operation matches
15749         (formerly done in statements of Try_Class_Wide_Operation). Matches on
15750         access parameters are now restricted to anonymous access types.
15751         (Mark_Allocator): An allocator with a discriminant association parent is
15752         a coextension.
15753         (Try_One_Prefix_Interpretation): If the type of the object is
15754         incomplete, as can be happen when it is a limited view obtained through
15755         a limited_with_clause, the selected component is not part of a prefixed
15756         call.
15757         (Complete_Object_Operation): Diagnose properly an object that is not
15758         aliased when the corresponding controlling formal is an access
15759         parameter.
15760         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
15761         ambiguous calls in prefixed notation, where two primitives differ only
15762         in that the controlling argument of one is an access parameter.
15763
15764         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
15765         whether a function that returns an unconstrained type can be inlined.
15766         (Process_Formals): Diagnose properly the illegal use of an incomplete
15767         type in the profile of an access_to_subprogram declaration.
15768         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
15769         operations are attached to the corresponding record.
15770         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
15771         When processing a primitive of a concurrent type which implements an
15772         interface change the type of all controlling formals to that of the
15773         corresponding record type.
15774         (Check_Synchronized_Overriding): Relax the conditional logic when trying
15775         to determine the tagged type to which a primitive belongs.
15776         (Check_Conventions): Capture condition to ignore a primitive operation
15777         (which is shared between the loop in Check_Conventions and the one in
15778         Check_Convention) in a new local function Skip_Check.
15779         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
15780         confusion with Check_Conventions' own Prim_Op local variable.
15781         (Create_Extra_Formals): Test for a tagged result type rather than a
15782         controlling result when determining whether to add a BIP_Alloc_Form
15783         formal and a BIP_Final_List formal to the function.
15784         (Check_Conformance); For parameters that are anonymous access types,
15785         subtype conformance requires that the not null and the constant
15786         indicators must match
15787         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
15788         to retrieve the appropriate type when processing a concurrent type
15789         declared within a generic. Minor comment reformatting. Change invocation
15790         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
15791         mitive.
15792         (Analyze_Subprogram_Body): If the return type of a function is an
15793         anonymous access to the limited view of a class-wide type, and the
15794         non-limited view of the type is available, update the type of the
15795         function so that code can be generated.
15796         (Process_Formals): In case of access-subtype itype whose designated
15797         type is also an itype (situation that happens now with access to
15798         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
15799         attribute to avoid backend problems.
15800         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
15801         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
15802         anonymous types' designated types are same before testing
15803         Subtypes_Statically_Match.
15804         (Create_Extra_Formals): Test for a named access parameter that is a
15805         controlling formal as an additional condition for adding an
15806         accessibility level formal. This can occur in the subp type created for
15807         dispatching calls in Expand_Dispatching_Call, and allows calling
15808         Create_Extra_Formals from that procedure rather than special-casing the
15809         extra formals there.
15810         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
15811         when the function has a controlling result.
15812         (Check_Returns): Add much more knowledge of the optimization of local
15813         raise statements to gotos, to retain proper warnings in this case.
15814         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
15815         nodes when looking for last statement.
15816
15817         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
15818         class-wide types visible through limited with clauses.
15819         (Add_One_Interp): If the operands are anonymous access types, the
15820         predefined operator on universal_access is immediately visibles
15821         (Find_Unique_Type): Handle anonymous access to subprogram types just as
15822         other anonymous access types.
15823         (Disambiguate): Take into account CIL convention.
15824         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
15825
15826 2007-06-06  Robert Dewar  <dewar@adacore.com>
15827
15828         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
15829         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
15830         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
15831         Fix lower bound of tables.
15832         Add rep clauses.
15833
15834         * nlists.adb: Ditto.
15835         (Prev_Node, Next_Node): Change index type to Int so that it properly
15836         covers the range First_Node_Id - 1 up.
15837
15838 2007-06-06  Javier Miranda  <miranda@adacore.com>
15839             Ed Schonberg  <schonberg@adacore.com>
15840             Bob Duff  <duff@adacore.com>
15841             Hristian Kirtchev  <kirtchev@adacore.com>
15842
15843         * exp_aggr.ads, exp_aggr.adb:
15844         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
15845         in extension aggregates.
15846         (Flatten): Other conditions being met, an aggregate is static if the
15847         low bound given by component associations is different from the low
15848         bound of the base index type.
15849         (Packed_Array_Aggregate_Handled): If the component type is itself a
15850         packed array or record, the front-end must expand into assignments.
15851         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
15852         Init_Pr, instead of Ancestor_Is_Expression.
15853         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
15854         coextension chain root, either generate a list controller or use the
15855         already existing one.
15856         (Static_Array_Aggregate): New procedure to construct a positional
15857         aggregate that can be handled by the backend, when all bounds and
15858         components are compile-time known constants.
15859         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
15860         types covering interface types into assignments.
15861         (Replace_Type): move to Build_Record_Aggr_Code.
15862         (Expand_Record_Aggr_Code): if the target of the aggregate is an
15863         interface type, convert to the definite type of the aggregate itself,
15864         so that needed components are visible.
15865         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
15866         components and the context is an extended return statement do not
15867         create a transient block for it, to prevent premature finalization
15868         before the return is executed.
15869         (Gen_Assign): Do not generate a call to deep adjust routine if the
15870         component type is itself an array of controlled (sub)-components
15871         initialized with an inner aggregate.
15872         (Component_Check): New name for Static_Check. This name is now more
15873         appropriate, and documentation is added which was missing.
15874         (Component_Check): Add test for bit aligned component value
15875         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
15876         Tagged_Comps, name is more appropriate given added function below.
15877         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
15878
15879 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
15880             Javier Miranda  <miranda@adacore.com>
15881             Robert Dewar  <dewar@adacore.com>
15882
15883         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
15884         Terminated: Add unchecked type conversion from System.Address to
15885         System.Tasking.Task_Id when calling the predefined primitive
15886         _disp_get_task_id.
15887         Disable new Ada 05 accessibility check for JVM.NET targets, which
15888         cannot be implemented in a practical way.
15889         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
15890         the sources always references the tag of the actual object. Therefore,
15891         if 'Tag is applied in the sources to class-wide interface objects we
15892         generate code that displaces "this" to reference the base of the object.
15893         (Expand_N_Attribute_Reference, case Size): Return specified size if
15894         known to front end.
15895         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
15896         has code that displaces the pointer of the object to manage interface
15897         types. However this code must not be executed when the prefix is a
15898         subprogram. This bug caused the wrong expansion of the internally
15899         generated assignment that fills the dispatch table when the primitive
15900         is a function returning a class-wide interface type.
15901         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
15902         Set_Attribute_Name for Name_Unaligned_Valid.
15903
15904 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
15905             Gary Dismukes  <dismukes@adacore.com>
15906
15907         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
15908         If the initialization is the equivalent aggregate of the initialization
15909         procedure of the type, do not remove it.
15910         (Expand_N_Attribute_Definition_Clause): Exclude access variables
15911         initialized to null from having their expression reset to empty and
15912         note this exception in the comment.
15913
15914 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
15915             Robert Dewar  <dewar@adacore.com>
15916             Ed Schonberg  <schonberg@adacore.com>
15917             Gary Dismukes  <dismukes@adacore.com>
15918
15919         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
15920         Add "with" and "use" clauses for Sem_Attr.
15921         (Expand_Current_Value): Do not replace occurences of attribute
15922         references where the prefix must be a simple name.
15923
15924         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
15925         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
15926         Attribute_Requires_Simple_Name_Prefix.
15927         (Name_Modifies_Prefix): Body of new function.
15928         (Requires_Simple_Name_Prefix): Body of new function.
15929         (Resolve_Attribute, case Access): Improve error message for case of
15930         mismatched conventions.
15931         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
15932         incomplete type.
15933         (Analyze_Attribute, case 'Access): If the type of the prefix is a
15934         constrained subtype for a nominal unconstrained type, use its base type
15935         to check for conformance with the context.
15936         (Resolve_Attribute): Remove test of the access type being associated
15937         with a return statement from condition for performing accessibility
15938         checks on access attributes, since this case is now captured by
15939         Is_Local_Anonymous_Access.
15940         (Analyze_Access_Attribute): Set Address_Taken on entity
15941         (Analyze_Attribute, case Address): Set Address_Taken on entity
15942         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
15943         validating an access attribute whose prefix is a current instance.
15944         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
15945         applied to dispatching operations, if freezing is required then we set
15946         the attribute Has_Delayed_Freeze in the prefix's entity.
15947         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
15948         current scope if access of local subprogram taken
15949         (Analyze_Access_Attribute): Check legality of self-reference even if the
15950         expression comes from source, as when a single component association in
15951         an aggregate has a box association.
15952         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
15953         the prefix if it is a protected operation and the attribute is
15954         Unrestricted_Access.
15955         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
15956         reference to the base type of the context, to force a constraint check
15957         when the context is an access subtype with an explicit constraint.
15958         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
15959         node is rewritten as an interface conversion. leave unanalyzed after
15960         resolution, to ensure that type checking against the context will take
15961         place.
15962
15963 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
15964             Javier Miranda  <miranda@adacore.com>
15965             Robert Dewar  <dewar@adacore.com>
15966
15967         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
15968         wrapper when the full view of the controlling type of an inherited
15969         function that dispatches on result implements interfaces.
15970         (Expand_N_Object_Declaration): In cases where the type of the
15971         declaration is anonymous access, create finalization list for it.
15972         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
15973         if the object has no explicit initialization, to match description of
15974         functionality of pragam Persistent_BSS.
15975         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
15976         new function to build static aggregates, to replace initialization call
15977         when static initialization is desired.
15978         (Freeze_Type): Generate a list controller for an access type whenever
15979         its designated type has controlled anonymous access discriminants.
15980         (Build_Equivalent_Aggregate): New procedure to compute a static
15981         aggregate to be used as default initialization for composite types,
15982         instead of a generating a call to the initialization procedure for the
15983         type.
15984         (Build_Initialization_Call): When available, replace a call to the
15985         initialization procedure with a copy of the equivalent static aggregate
15986         for the type.
15987         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
15988         declarations for objects of a class-wide interface type, rather than
15989         just identifiers, to prevent visibility problems.
15990         (Expand_N_Object_Declaration): When expanding the declaration for an
15991         object of a class-wide interface type, preserve the homonym chain of
15992         the original entity before exchanging it with that of the generated
15993         renaming declaration.
15994         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
15995         active, because there is no way to handle the exception.
15996         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
15997         to do a minimum decoration of the Access_Disp_Table list.
15998         (Expand_Record_Controller): Avoid the addition of the controller between
15999         the component containing the tag of a secondary dispatch table and its
16000         adjacent component that stores the offset to the base of the object.
16001         This latter component is only generated when the parent type has
16002         discriminants ---documented in Add_Interface_Tag_Components).
16003         (Apply_Array_Size_Check): Removed, no longer needed.
16004         (Expand_N_Full_Type_Declaration): If the type has anonymous access
16005         components, create a Master_Entity for it only if it contains tasks.
16006         (Build_Init_Procedure): Suppress the tag assignment compiling under
16007         no run-time mode.
16008         (Freeze_Record_Type): Remove code associated with creation of dispatch
16009         table.
16010         (Init_Secondary_Tags): Update type of actuals when generating calls to
16011         Ada.Tags.Set_Offset_To_Top
16012         (Stream_Operation_OK): Disable use of streams compiling under no
16013         run-time mode
16014         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
16015         if Has_Init_Expression set.
16016         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
16017         Register_Primitive, which provides the same functionality.
16018         (Requires_Init_Proc): Return false in case of interface types.
16019         (Add_Secondary_Tables): Use the new attribute Related_Interface to
16020         cleanup the code.
16021         (Predefined_Primitive_Freeze): Do not assume that an internal entity
16022         is always associated with a predefined primitive because the internal
16023         entities associated with interface types are not predefined primitives.
16024         Therefore, the call to Is_Internal is replaced by a call to the
16025         function Is_Predefined_Dispatching_Operation.
16026         (Make_Eq_If): When generating the list of comparisons for the
16027         components of a given variant, omit the controller component that is
16028         present if the variant has controlled components.
16029
16030 2007-06-06  Javier Miranda  <miranda@adacore.com>
16031             Hristian Kirtchev  <kirtchev@adacore.com>
16032             Bob Duff  <duff@adacore.com>
16033
16034         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
16035         handle the creation of finalization lists and calls for nested
16036         coextensions when the root of the chains is part of a return statement.
16037         (Inside_A_Return_Statement): New function inside Complete_Coextension_
16038         Finalization.
16039         (Expand_Record_Equality): Skip components that are interface types.
16040         (Displace_Allocator_Pointer): Add missing support for interface subtypes
16041         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
16042         with Rewrite_Coextension. Change the condition for detecting coextension
16043         root nodes.
16044         (Is_Local_Access_Discriminant): Removed.
16045         (Rewrite_Coextension): New routine which rewrites a static coextension
16046         as a temporary and uses its unrestricted access in the construction of
16047         the outer object.
16048         (Complete_Coextension_Finalization): New routine. Generate finalization
16049         attachment calls to all delayed coextensions.
16050         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
16051         the allocator is not a coextension itself and has delayed coextensions.
16052         If the current allocator is controlled, but also a coextension, delay
16053         the generation of the finalization attachment call.
16054         Rename local variable "Node" to "Nod" in order to avoid confusion with
16055         "Elists.Node".
16056         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
16057         limited types that are not inherently limited. Such an allocator is
16058         illegal, but is generated by the expander for a return statement, to
16059         copy the result onto the secondary stack. This is the only case where a
16060         limited object can be copied. Generate code to displace the pointer
16061         to the object if the qualified expression is a class-wide interface
16062         object. Such displacement was missing and hence the copy of the object
16063         was wrong.
16064         (Apply_Accessibility_Check): Handle allocated objects initialized in
16065         place.
16066         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
16067         and Expand_Allocator_Expression. Allocating class-wide interface objects
16068         this routine displaces the pointer to the allocated object to reference
16069         the component referencing the corresponding secondary dispatch table.
16070         Expand_Allocator_Expression): Add missing support to allocate class-wide
16071         interface objects initialized with a qualified expression.
16072         (Get_Allocator_Final_List): Test for an anonymous access type that is a
16073         function result type, and use the finalization list associated with the
16074         function scope in that case (such an anonymous type should not be
16075         treated like an access parameter's type).
16076
16077 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16078             Gary Dismukes  <dismukes@adacore.com>
16079             Javier Miranda  <miranda@adacore.com>
16080
16081         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
16082         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
16083         required exception handler.
16084         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
16085         properly the case of a function whose return type is a limited
16086         class-wide interface type. Modify the code of the accessibility
16087         check to handle class-wide interface objects. In this case we need to
16088         displace "this" to reference the primary dispatch table to get access
16089         to the TSD of the object (to evaluate its accessibility level).
16090         (Expand_N_Extended_Return_Statement): Test for a tagged result type
16091         rather than a controlling result as one of the conditions for
16092         generating tests of the implicit BIP_Alloc_Form formal. The
16093         initialization assignment is also handled according to whether the
16094         result is tagged instead of controlling.
16095         In the case where the init assignment is inserted in the "then" part of
16096         the allocation conditional, rewrite the target to be a dereference of
16097         the implicit BIP_Object_Access formal.
16098         If the returned value is unconstrained and created on the secondary
16099         stack, mark the enclosing block and function so that the secondary
16100         stack is not reclaimed on return.
16101         Treat returns from functions with controlling results similarly to
16102         returns from functions with unconstrained result subtypes.
16103         If the object returned is unconstrained, and an allocator must be
16104         created for it, analyze the allocator once the block for the extended
16105         return is installed, to ensure that finalizable components
16106         of the expression use the proper finalization list. Guard the call to
16107         Move_Final_List with a check that there is something to finalize.
16108         (Make_Tag_Ctrl_Assignment): Use "old" handling
16109         of controlled type assignment for virtual machines, since new code uses
16110         unsupported features (such as direct access to bytes in memory).
16111
16112 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
16113             Ed Schonberg  <schonberg@adacore.com>
16114
16115         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
16116         accessibility actual, check for the case of an aliased object that has
16117         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
16118         we fall into processing for the attribute rather than the name of the
16119         object.
16120         (Expand_Inline_Call): If an actual is a literal, and the corresponding
16121         formal has its address taken in the body, create a temporary to capture
16122         value.  If the return type is a limited interface, do not treat the
16123         return value as Controlled.
16124         (Is_In_Place_Function):  If the return type is a limited interface,
16125         treat as returning in place. The actual returned object may not always
16126         be limited, but the caller has to assume that it is returned in place.
16127         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
16128         context of an allocator, use the correct finalization chain (that is,
16129         the chain belonging to the access type, rather than the chain belonging
16130         to the current scope).
16131         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
16132         result type rather than a controlling result as a precondition for
16133         adding an allocation form actual to a build-in-place call.
16134         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
16135         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
16136         primitive in the dispatch tables. This work is now done by Make_DT when
16137         the type is frozen.
16138         (Register_Predefined_DT_Entry): Removed.
16139         (Add_Return): If end label is not present, use sloc of last statement
16140         for generated return statement in procedure, for better gdb behavior
16141         on expanded code.
16142         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
16143         object address nodes to ensure proper processing by routines like
16144         Insert_After*.
16145         (Expand_Call): Fix generation of validity check for parameter
16146         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
16147         the allocation form parameter if the result subtype is constrained,
16148         except when the function has a controlling result.
16149         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
16150         rather than Is_Controlled and Has_Controlled_Component, since we want to
16151         include class-wide result types in this treatment. Also test for a
16152         controlling result, since that also requires passing a finalization
16153         list.
16154         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
16155         even when the result subtype is constrained, to handle calls involving
16156         controlling results.
16157         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
16158         is now called even when the result subtype is constrained, to handle
16159         calls involving controlling results.
16160         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
16161         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
16162         now performs the test).
16163         (Make_Build_In_Place_Call_In_Object_Declaration):
16164         Add_Alloc_Form_Actual_* is now called even when the result subtype is
16165         constrained, to handle calls involving controlling results.
16166         (Add_Return): Accomodate rewritten pattern from local raise to goto
16167         transformation, so that we still recognize an transfer statement
16168         and do the right thing here in that case.
16169         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
16170         and end of subprogram code.
16171         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
16172         support for primitives that are functions (without formals) with a
16173         controlling result.
16174         (Inherited_From_Formal): If the actual subtype has not generic parent
16175         type, it is not an actual for a formal derived type, and there is no
16176         operation to inherit from the formal.
16177
16178 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16179             Thomas Quinot  <quinot@adacore.com>
16180
16181         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
16182         inserted cleanup code appropriately for GDB use.
16183         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
16184         exception handler for Deep_Adjust or Deep_Finalize.
16185         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
16186         Raise_From_Controlled_Operation is available, use a call to that
16187         subprogram instead of a plain "raise Program_Error" node to raise
16188         Program_Error if an exception is propagated from an Adjust or Finalize
16189         operation.
16190         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
16191         appears in the optional statement list of a triggering alternative, the
16192         scope actions can be inserted directly there, and not in the list that
16193         includes the asynchronous select itself.
16194
16195 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16196             Robert Dewar  <dewar@adacore.com>
16197             Hristian Kirtchev  <kirtchev@adacore.com>
16198
16199         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
16200         generated exception handler appropriately when debugging generated code.
16201         Deal properly with No_Exception_Propagation restriction mode.
16202         (Expand_N_Abort_Statement): Add an unchecked type conversion from
16203         System.Address to System.Tasking.Task_Id when processing the result of
16204         the predefined primitive _disp_get_task_id.
16205         (Expand_N_Asynchronous_Select): Clarify comment.
16206         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
16207         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
16208         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
16209         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
16210         privals and for generated call to Complete_Entry_Body, for better gdb
16211         behavior.
16212         (Copy_Result_Type): Utility to construct a parameter and result profile
16213         for protected functions whose return type is an anonymous access to
16214         subprogram.
16215         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
16216         call the above.
16217         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
16218         point when the local-raise-to-goto transformation has taken place.
16219
16220 2007-06-06  Javier Miranda  <miranda@adacore.com>
16221             Nicolas Setton  <setton@adacore.com>
16222
16223         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
16224         functionality when the backend is generating code.
16225         Otherwise any serious error
16226         reported by the backend calling the frontend routine Error_Msg
16227         changes the Compilation_Mode to Check_Semantics, disables the
16228         functionality of this routine and causes the generation of
16229         spureous additional errors.
16230
16231         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
16232         debugging information now generated by the compiler for fat-pointer
16233         types.
16234         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
16235         DWARF2/3.
16236         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
16237
16238 2007-06-06  Thomas Quinot  <quinot@adacore.com>
16239
16240         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
16241         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16242         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16243         For a remote call to a function with a classwide return type, apply an
16244         E.4(18) check to the returned value.
16245         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
16246         stream attributes of the designated type of an RACW, as they are not
16247         dispatching primitive operations.
16248
16249 2007-06-06  Geert Bosch  <bosch@adacore.com>
16250
16251         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
16252         negative literal
16253         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
16254         positive
16255         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
16256         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
16257         positive
16258         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
16259
16260 2007-06-06  Javier Miranda  <miranda@adacore.com>
16261
16262         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
16263         attribute compiling package Ada.Tags under No_Run_Time_Mode.
16264
16265 2007-06-06  Javier Miranda  <miranda@adacore.com>
16266
16267         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
16268         deallocation of class-wide interface objects.
16269         (Expand_Dispatching_Constructor_Call): Take into account that if the
16270         result of the dispatching constructor is an interface type, the
16271         function returns a class-wide interface type; otherwise the returned
16272         object would be actual. The frontend previously accepted returning
16273         interface types because Expand_Interface_Actuals silently performed
16274         the management of the returned type "as if" it were a class-wide
16275         interface type.
16276         (Expand_Dispatching_Constructor_Call): Replace call to
16277         Make_DT_Access_Action by direct call to Make_Function_Call.
16278
16279 2007-06-06  Robert Dewar  <dewar@adacore.com>
16280             Ed Schonberg  <schonberg@adacore.com>
16281
16282         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
16283         compute masking constant, since we now set Esize properly to the
16284         underlying size.
16285         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
16286         to match the alignment.
16287         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
16288         packed arrays of 8 bits or less.
16289
16290         * freeze.adb (Freeze_Entity): When freezing the formals of a
16291         subprogram, freeze the designated type of a parameter of an access type
16292         only if it is an access parameter.
16293         Increase size of C convention enumeration object
16294         (Freeze_Entity, array type case): Make sure Esize value is properly
16295         adjusted for the alignment if it is known.
16296         (Freeze_Entity, array type case): When checking bit packed arrays for
16297         the size being incorrect, check RM_Size, not Esize.
16298         (Freeze_Record_Type): Check for bad discriminated record convention
16299         (In_Exp_Body): Return true if the body is generated for a subprogram
16300         renaming, either an attribute renaming or a renaming as body.
16301         (Check_Itype): If the designated type of an anonymous access component
16302         is a non-protected subprogram type, indicate that it is frozen, to
16303         prevent out-of-scope freeze node at some subsequent call.
16304         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
16305         only if the subprogram is neither imported nor exported, as well as the
16306         NCA descriptor class if the subprogram is exported.
16307
16308 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16309             Arnaud Charlet  <charlet@adacore.com>
16310             Robert Dewar  <dewar@adacore.com>
16311             Gary Dismukes  <dismukes@adacore.com>
16312
16313         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
16314         default initialization on an imported object, when there is no
16315         initialization call generated for it.
16316         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
16317         restriction
16318
16319         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
16320         Static_Elaboration_Desired.
16321         Remove pragma Thread_Body.
16322         Implement a new pragma No_Body
16323         Removes the Explicit_Overriding pragma
16324         Remove Optional_Overriding pragma
16325         (Prag): Deal with Universal_Aliasing.
16326         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16327         Pragma_CIL_Constructor): New names.
16328
16329         * sem_cat.adb (Validate_Object_Declaration): An initialization that
16330         uses the equivalent aggregate of a type must be treated as an implicit
16331         initialization.
16332         (Get_Categorization): Check a unit for pragma Preelaborate only if it
16333         has none of the other categories.
16334         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
16335         to apply Import to an object renaming declaration.
16336
16337         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
16338         from a C++ class should be declared as limited and that it will be
16339         considererd limited.
16340         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
16341         should be declared as limited and that it will be considererd limited.
16342         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
16343         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
16344         (Analyze_Pragma): Deal with Universal_Aliasing.
16345         (Sig_Flags): Likewise.
16346         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
16347         (Overflow_Checks_Unsuppressed): New flag.
16348         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16349         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
16350         case of JVM or .NET targets, and compiling user code.
16351         Add debugging convenience routine rv
16352
16353 2007-06-06  Robert Dewar  <dewar@adacore.com>
16354
16355         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
16356         are interface type.
16357         (Build_Elementary_Input_Call): For floating-point use right type in the
16358         absence of strange size or stream size clauses.
16359         (Build_Elementary_Write_Call): Same fix
16360         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
16361         set to value that does not match base type size.
16362
16363 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16364
16365         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
16366         object of a limited type can be initialized with a call to a function
16367         that returns in place. If the limited type has unknown discriminants,
16368         and the underlying type is a constrained composite type, build an actual
16369         subtype from the function call, as is done for private types.
16370         (Side_Effect_Free): An expression that is the renaming of an object or
16371         whose prefix is the renaming of a object, is not side-effect free
16372         because it may be assigned through the renaming and its value must be
16373         captured in a temporary.
16374         (Has_Controlled_Coextensions): New routine.
16375         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
16376         as is done for other limited types.
16377         (Non_Limited_Designated_Type): new predicate.
16378         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
16379         objects.
16380         Remove all handling of with_type clauses.
16381
16382         * par-ch10.adb: Remove all handling of with_type clauses.
16383
16384         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
16385         checksum if the main source could not be parsed.
16386         (Loat_Unit): When processing a child unit, determine properly whether
16387         the parent unit is a renaming when the parent is itself a child unit.
16388         Remove handling of with_type clauses.
16389
16390         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
16391         (Set_Is_Static_Coextension): New procedure.
16392         (Has_Local_Raise): New function
16393         (Set_Has_Local_Raise): New procedure
16394         (Renaming_Exception): New field
16395         (Has_Init_Expression): New flag
16396         (Delay_Finalize_Attach): Remove because flag is obsolete.
16397         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
16398         Remove all handling of with_type clauses.
16399         (Exception_Junk): Can now be set in N_Block_Statement
16400
16401 2007-06-06  Vincent Celier  <celier@adacore.com>
16402             Robert Dewar  <dewar@adacore.com>
16403
16404         * frontend.adb (Frontend): Return immediately if the main source could
16405         not be parsed, because of preprocessing errors.
16406
16407         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
16408         (Gnat1drv): Exit with errors if the main source could not be parsed,
16409         because of preprocessing errors.
16410         (Check_Rep_Info): New procedure
16411
16412 2007-06-06  Robert Dewar  <dewar@adacore.com>
16413
16414         * g-hesorg.ads, g-heasor.ads,
16415         g-busorg.ads, g-bubsor.ads: Update documentation
16416         GNAT.Heap/Bubble_Sort_G is now pure
16417
16418 2007-06-06  Robert Dewar  <dewar@adacore.com>
16419
16420         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
16421
16422 2007-06-06  Robert Dewar  <dewar@adacore.com>
16423             Ed Schonberg  <schonberg@adacore.com>
16424
16425         * g-comlin.ads, g-comlin.adb:
16426         Add new warning for renaming of function return objects
16427
16428         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
16429         (Tree_Read): Use size of object instead of type'object_size, since the
16430         latter is incorrect for packed array types.
16431         (Tree_Write): Same fix
16432
16433         * opt.ads: Add new warning for renaming of function return objects
16434         (Generating_Code): New boolean variable used to indicate that the
16435         frontend as finished its work and has called the backend to process
16436         the tree and generate the object file.
16437         (GCC_Version): Is now private
16438         (Static_Dispatch_Tables): New constant declaration.
16439         (Overflow_Checks_Unsuppressed): New flag.
16440         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16441         (List_Closure): New flag for gnatbind (-R)
16442         Zero_Formatting: New flag for gnatbind (-Z)
16443         (Special_Exception_Package_Used): New flag.
16444         (Warn_On_Unrepped_Components): New flag.
16445
16446         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
16447         unit is a compilation unit, rather than relying on its scope, so that
16448         Standard can be renamed.
16449         (Analyze_Object_Renaming): Add new warning for renaming of function
16450         return objects.
16451         Also reject attempt to rename function return object in Ada 83 mode.
16452         (Attribute_Renaming): In case of tagged types, add the body of the
16453         generated function to the freezing actions of the type.
16454         (Find_Type): A protected type is visible right after the reserved word
16455         "is" is encountered in its type declaration. Set the entity and type
16456         rather than emitting an error message.
16457         (New_Scope): Properly propagate Discard_Names to inner scopes
16458         (Check_Nested_Access): New procedure.
16459         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
16460         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16461
16462         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
16463         Add new warning for renaming of function return objects
16464         (Check_References): Suppress warnings for objects whose type or
16465         base type has Warnings suppressed.
16466         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
16467         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
16468
16469 2007-06-06  Vincent Celier  <celier@adacore.com>
16470             Emmanuel Briot  <briot@adacore.com>
16471             Olivier Hainque  <hainque@adacore.com>
16472
16473         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
16474         absolute value of Header.Block_Size when displaying the freed physical
16475         memory in traces.
16476         (Allocate): Compute Storage_Address using Integer_Address, not
16477         Storage_Offset, because the range of Storage_Offset may not be large
16478         enough.
16479         (Configure): New parameter Low_Level_Traces
16480         (Allocate, Deallocation, Free_Physically): Added low-level traces
16481         (Configure): new parameter Errors_To_Stdout.
16482         (Output_File): new subprogram
16483         (Deallocate, Dereference): Send error messages to the proper stream
16484         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
16485         documented. Previous code would send it to the current output file
16486         defined in GNAT.IO, which might not be stdout
16487         (Is_Valid): Adjust comment to mention that a positive reply means that
16488         Header_Of may be used to retrieve the allocation header associated with
16489         the subprogram Storage address argument. Return False early if this
16490         address argument is misaligned.
16491
16492 2007-06-06  Vincent Celier  <celier@adacore.com>
16493
16494         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
16495         switch -P
16496         (ASIS_Main): New global variable
16497         (Get_Closure): New procedure
16498         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
16499         check, metric or pretty. Call Get_Closure in this case.
16500         (Check_Files): For GNAT LIST, check all sources of all projects when
16501         All_Projects is True.
16502         (GNATCmd): Accept -U for GNAT LIST
16503
16504 2007-06-06  Vincent Celier  <celier@adacore.com>
16505
16506         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
16507         has been specified
16508         Correct error message when invocation of the linker fails
16509         Add explicit size clause for the C imported variables
16510         Object_List_File_Supported and Using_GNU_Linker to emphasize that
16511         we expect char size.
16512         Read target parameters earlier, since this is needed to set
16513         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
16514         targets.
16515
16516 2007-06-06  Vincent Celier  <celier@adacore.com>
16517
16518         * gnatls.adb:
16519         Add 3 spaces before the default project directory when displaying
16520         the project search path.
16521         Add new command line switch '-l' to display license information.
16522
16523 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
16524
16525         * gmem.c: Add support for timestamps on memory operations.
16526
16527         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
16528         operations (not used currently, just foundation for future
16529         enhancements). Add possibility to perform full dump of gmem.out file.
16530         (Print_Back_Traces): Declare accesses to root arrays constants since
16531         they aren't modified.
16532         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
16533
16534 2007-06-06  Vincent Celier  <celier@adacore.com>
16535
16536         * gnatsym.adb: Update Copyright notice
16537         (Parse_Cmd_Line): Accept new switch -D
16538         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
16539          file.
16540
16541         * prj.ads (Policy): New policy Direct
16542         (Yes_No_Unknown): New enumeration type
16543         (Project_Data): New component Libgnarl_Needed
16544
16545         * prj-nmsc.adb (Check_For_Source): When recording a source file make
16546         use the untouched pathname casing.
16547         (Get_Directories): Ensure that the Display_Exec_Directory is using the
16548         proper casing on non case-sensitive platforms like Windows.
16549         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
16550         on all platforms, as it is not possible to know which one is allowed
16551         before processing the project files.
16552         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
16553         specified when symbol policy is Direct. Check that when there is a
16554         symbol file defined (either by default or with attribute
16555         Library_Symbol_File) it is not the same as the reference symbol file.
16556         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
16557         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
16558         extending projects.
16559         (Record_Ada_Source): Record a source that has been locally removed in an
16560         imported project.
16561
16562         * symbols.ads (Policy): New policy Direct
16563
16564         * symbols-vms.adb (Initialize): Take new policy Direct in case
16565         statement
16566
16567 2007-06-06  Vincent Celier  <celier@adacore.com>
16568
16569         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
16570         Correct obvious bug (return Dir; instead of return Directory;).
16571         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
16572
16573 2007-06-06  Thomas Quinot  <quinot@adacore.com>
16574
16575         * g-pehage.adb (Produce): Open output files in Binary mode, so that
16576         they have UNIX line endings (LF only) even on Windows, and thus pass
16577         all GNAT style checks.
16578
16579 2007-06-06  Emmanuel Briot  <briot@adacore.com>
16580
16581         * g-regpat.adb (Quote): Fix improper quoting of '.'
16582
16583 2007-06-06  Thomas Quinot  <quinot@adacore.com>
16584
16585         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
16586         default, set False on a per-runtime basis.
16587         (Need_Netdb_Buffer): New constant.
16588
16589         * g-socket.ads, g-socket.adb: Import new package
16590         GNAT.Sockets.Thin.Task_Safe_NetDB.
16591         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
16592         binding to obtain proper message.
16593         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
16594         Replace various occurrences of Arry (Arry'First)'Address with the
16595         equivalent Arry'Address (GNAT always follows implementation advice from
16596         13.3(14)).
16597         (Get_Host_By_Address, Get_Host_By_Name,
16598         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
16599         instead, rely on platform-specific task safe netdb operations provided
16600         by g-socthi.
16601
16602         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
16603         parameter Process_Blocking_IO.
16604         (Host_Error_Messages): Add stub body.
16605         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16606         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
16607         Safe_Getservbyport): Move functions into new child package
16608         Task_Safe_NetDB.
16609         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
16610         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
16611         (In_Addr): Add alignment clause.
16612
16613 2007-06-06  Robert Dewar  <dewar@adacore.com>
16614
16615         * g-trasym.ads, g-traceb.ads: Update list of supported targets
16616         Add note about symbolic traceback
16617
16618 2007-06-06  Pascal Obry  <obry@adacore.com>
16619
16620         * hostparm.ads (Normalized_CWD): Use the host directory separator
16621         instead of the hardcoded forward slash which is not the proper
16622         character on Windows for example.
16623         (Java_VM): Removed.
16624
16625 2007-06-06  Vincent Celier  <celier@adacore.com>
16626             Arnaud Charlet  <charlet@adacore.com>
16627
16628         * a-clrefi.adb, a-clrefi.ads: New files
16629
16630         * impunit.adb: Add s-os_lib in the list of user visible units.
16631         (Non_Imp_File_Names_95): Add a-clrefi to this list
16632         Remove obsolete run-time entries.
16633         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
16634          "a-exetim" -- Ada.Execution_Time
16635          "a-extiti" -- Ada.Execution_Time.Timers
16636
16637         * mlib-prj.ads, mlib-prj.adb
16638         (Build_Library): Use untouched object dir and library dir. At the
16639         same time makes sure that the checks are done using the canonical
16640         form. Removes hard-coded directory separator and use the proper host
16641         one instead.
16642         (Process_Project): Do not look in object directory to check if libgnarl
16643         is needed for a library, if there is no object directory.
16644         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
16645         linking.
16646         (Build_Library): When invoking gnatbind, use a response file if the
16647         total size of the arguments is too large.
16648
16649         * Makefile.rtl: (g-sttsne): New object file.
16650         Add entry for a-clrefi, s-utf_32, System.Exceptions
16651
16652         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
16653         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
16654         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
16655         Change g-string to s-string, g-os_lib to s-os_lib
16656         Change all g-utf_32 references to s-utf_32
16657
16658 2007-06-06  Tristan Gingold  <gingold@adacore.com>
16659             Olivier Hainque  <hainque@adacore.com>
16660
16661         * init.c: Do not adjust IP of an imported VMS exception of ia64.
16662         LIB$STOP is called to raise an exception and the IP of the exception
16663         is the instruction right after the call.
16664         (__gnat_adjust_context_for_raise, AIX): Implement.
16665         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
16666          adjust_context_for_raise before Raise_From_Signal_Hanler.
16667         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
16668         siginfo is passed to the handler, necessary to let the zcx propagation
16669         engine unwind past it.
16670
16671 2007-06-06  Olivier Hainque  <hainque@adacore.com>
16672
16673         * initialize.c (__gnat_initialize for vxworks):  Update documentation
16674         on the ZCX support, using different sets of crtstuff objects than with
16675         GCC 3.4.
16676
16677 2007-06-06  Robert Dewar  <dewar@adacore.com>
16678
16679         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
16680         spec from body
16681         (Layout_Type): Fix recomputation of size from alignment.
16682
16683 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16684             Javier Miranda  <miranda@adacore.com>
16685
16686         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
16687         association in an instance.
16688         (Copy_Generic_Node): If the node is a string literal, no need to copy
16689         its descendants.
16690         (Is_Generic_Formal): For a formal subprogram, the declaration is the
16691         grandparent of the entity.
16692         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
16693         to simplify handling of formal interfaces that derive from other formal
16694         interfaces.
16695         (Instantiate_Subprogram_Body): The defining unit name of the body of
16696         the instance should be a defining identifier.
16697         (Install_Formal_Packages): make global to the package, for use in
16698         instantiations of child units.
16699         (Analyze_Package_Instantiation): Do not attempt to set information on an
16700         enclosing master of an entry when expansion is disabled.
16701         (Instantiate_Type): If the actual is a tagged synchronized type and the
16702         generic ancestor is an interface, create a generic actual for the
16703         corresponding record.
16704         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
16705         declaration, to ensure that the interface list is processed correctly.
16706         (Inline_Instance_Body): If enclosing scope is an instance body, remove
16707         its entities from visibiility as well.
16708         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
16709         given with a named association, analyze the expression only, not the
16710         discriminant association itself.
16711         (Reset_Entity): If the analysis of a selected component is transformed
16712         into an expanded name in the prefix of a call with parameters, do not
16713         transform the original node into an expanded name, to prevent visibility
16714         errors in the case of nested generics.
16715         (Check_Private_View): For an array type, check whether the index types
16716         may need exchanging.
16717
16718 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
16719             Vincent Celier  <celier@adacore.com>
16720
16721         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
16722         since both are separated.
16723         Add support for imported CIL packages.
16724         Add further special handling of "value_type" for CIL.
16725         Add special handling of pragma Import for CIL.
16726
16727         * make.ads, make.adb: When switch -eS is used, direct all outputs to
16728         standard output instead of standard error, except errors.
16729         (Absolute_Path): Use untouched casing for the parent directory.
16730         (Add_Library_Search_Dir): Use the untouched directory name.
16731         (Add_Source_Search_Dir): Idem.
16732         (Change_To_Object_Directory): Update output to use proper casing.
16733         (Create_Binder_Mapping_File): Use the untouched filename to set
16734         ALI_Name.
16735         (Gnatmake): Use untouched library and executable directory names.
16736         (Insert_Project_Sources): Use untouched filename for spec and body.
16737         (Is_In_Object_Directory): Use untouched object directory.
16738         (Mark_Directory): Idem.
16739         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
16740         contains the non-canonical filename in all cases.
16741         (Change_To_Object_Directory): In verbose mode, display the name of the
16742         object directory we're changing to.
16743         (Compile_Sources): Make sure, when a project file is used, to compile
16744         the body of the unit, when there is one, even when only the spec is
16745         recorded in an ALI file.
16746         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
16747         spec to the body.
16748         (Report_Compilation_Failed): New procedure
16749         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
16750         procedures moved from the spec to the body.
16751         (Extract_Failure): Removed, not used
16752         Replace explicit raises of exception Bind_Failed and Link_Failed with
16753         calls to Make_Failed with the proper message.
16754         Replace explicit raises of exception Compilation_Failed with calls to
16755         procedure Report_Compilation_Failed.
16756         (Initialize): Create mapping files unconditionally when using project
16757         files.
16758
16759         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16760         Pragma_CIL_Constructor): New names.
16761
16762         * targparm.ads, targparm.adb
16763         (Compiler_System_Version): Removed, no longer used.
16764         (Get_Target_Parameters): Relax checks on system.ads validity. Add
16765         handling of two new system flags: JVM and CLI.
16766
16767 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
16768             Arnaud Charlet  <charlet@adacore.com>
16769
16770         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
16771         time, use the default s-interr body that provides interrupt support
16772         based on signals.
16773         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
16774         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
16775         g-soccon.ads, and s-taprop.adb for the marte run time.
16776         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
16777         timers are supported on marte.
16778         (EH_MECHANISM for marte): Do not use ZCX.
16779         (THREADSLIB for marte): Use -lmarte.
16780         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
16781         Add mlib-tgt-specific.o to gnatmake objects
16782         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
16783         longer of MLib.Tgt.
16784         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
16785         6, either kernel or rtp, use a specialized version of s-osinte.ads.
16786
16787 2007-06-06  Pascal Obry  <obry@adacore.com>
16788
16789         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
16790
16791 2007-06-06  Vincent Celier  <celier@adacore.com>
16792
16793         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
16794         separator, use instead the proper host directory separator.
16795         (Copy_ALI_Files): Make sure that an already existing ALI file in the
16796         ALI copy dir is writable, before doing the copy.
16797
16798         * mlib-utl.ads, mlib-utl.adb:
16799         (Gcc): If length of command line is too long, put the list of object
16800         files in a response file, if this is supported by the platform.
16801         (Ar): If invocation of the archive builder is allowed to be done in
16802         chunks and building it in one shot would go above an OS dependent
16803         limit on the number of characters on the command line, build the archive
16804         in chunks.
16805
16806 2007-06-06  Vincent Celier  <celier@adacore.com>
16807
16808         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
16809         of specified object file is not equal to base name of source.
16810
16811 2007-06-06  Javier Miranda  <miranda@adacore.com>
16812             Hristian Kirtchev  <kirtchev@adacore.com>
16813             Ed Schonberg  <schonberg@adacore.com>
16814
16815         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
16816         the full type declaration.
16817         (Analyze_Component_Declaration): Add local variable E to capture the
16818         initialization expression of the declaration. Replace the occurences of
16819         Expression (N) with E.
16820         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
16821         limited interface object with a function call.
16822         (Array_Type_Declaration): If the declaration lacks subtype marks for
16823         indices, create a simple index list to prevent cascaded errors.
16824         (Is_Null_Extension): Ignore internal components created for secondary
16825         tags when checking whether a record extension is a null extension.
16826         (Check_Abstract_Interfaces): Add missing support for interface subtypes
16827         and generic formals.
16828         (Derived_Type_Declaration): Add missing support for interface subtypes
16829         and generic formals.
16830         (Analyze_Object_Declaration): If an initialization expression is
16831         present, traverse its subtree and mark all allocators as static
16832         coextensions.
16833         (Add_Interface_Tag_Component): When looking for components that may be
16834         secondary tags, ignore pragmas that can appear within a record
16835         declaration.
16836         (Check_Abstract_Overriding): an inherited function that dispatches on
16837         result does not need to be overriden if the controlling type is a null
16838         extension.
16839         (Mentions_T): Handle properly a 'class attribute in an anonymous access
16840         component declaration, when the prefix is an expanded name.
16841         (Inherit_Component): If the derivation is for a private extension,
16842         inherited components remain visible and their ekind should not be set
16843         to Void.
16844         (Find_Type_Of_Object): In the case of an access definition, always set
16845         Is_Local_Anonymous_Access. We were previously not marking the anonymous
16846         access type of a return object as a local anonymous type.
16847         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
16848         range with character literal bounds.
16849         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
16850         (Access_Subprogram_Declaration): Indicate that the type declaration
16851         depends on an incomplete type only if the incomplete type is declared
16852         in an open scope.
16853         (Analyze_Subtype_Declaration): Handle properly subtypes of
16854         synchronized types that are tagged, and that may appear as generic
16855         actuals.
16856         (Access_Subprogram_Declaration): An anonymous access to subprogram can
16857         appear as an access discriminant in a private type declaration.
16858         (Add_Interface_Tag_Components): Complete decoration of the component
16859         containing the tag of a secondary dispatch table and the component
16860         containing the offset to the base of the object (this latter component
16861         is only generated when the parent type has discriminants --as documented
16862         in this routine).
16863         (Inherit_Components): Use the new decoration of the tag components to
16864         improve the condition that avoids inheriting the components associated
16865         with secondary tags of the parent.
16866         (Build_Discriminanted_Subtype): Indicate to the backend that the
16867         size of record types associated with dispatch tables is known at
16868         compile time.
16869         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
16870         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
16871         to include task, protected, and synchronized interfaces as limited
16872         interfaces.
16873         (Process_Discriminants): Remove the setting of
16874         Is_Local_Anonymous_Access on the type of (anonymous) access
16875         discriminants of nonlimited types.
16876         (Analyze_Interface_Type_Declaration): Complete the decoration of the
16877         class-wide entity it is is already present. This situation occurs if
16878         the limited-view has been previously built.
16879         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
16880         field.
16881         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
16882         Related_Interface.
16883
16884 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16885
16886         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
16887         of the type that specify the position of interface tags when the type
16888         inherits discriminated array components from the parent type.
16889         If a component is initialized with a box, check for the presence of a
16890         default expression in its declaration before using its default
16891         initialization procedure.
16892         (Resolve_Record_Aggregate): If a component is box-initialized, and the
16893         component type has a discriminants, create a partial aggregate for it
16894         by copying the discriminants of the component subtype.
16895         Reject attempt to initialize a discriminant with a box.
16896         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
16897         associated with dispatch tables is known at compile time.
16898         (Get_Value): If an association in a record aggregate has a box
16899         association, and the corresponding record component has a default
16900         expression, always copy the default expression, even when the
16901         association has a single choice, in order to create a proper
16902         association for the expanded aggregate.
16903
16904 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
16905             Robert Dewar  <dewar@adacore.com>
16906
16907         * par-ch12.adb (P_Generic_Associations): The source position of an
16908         Others association is that of the others keyword, not that of the token
16909         that follows the box.
16910         (P_Formal_Type_Definition): Handle formal access types that carry a
16911         not null indicator.
16912
16913         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
16914         multiple identifier are present, save Scan_State before scanning the
16915         colon, to ensure that separate trees are constructed for each
16916         declaration.
16917         (P_Identifier_Declarations): For object declaration, set new flag
16918         Has_Init_Expression if initialization expression present.
16919         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
16920         Improve NOT NULL error messages
16921
16922 2007-06-06  Robert Dewar  <dewar@adacore.com>
16923
16924         * par-ch4.adb: (P_Name): Recover from literal used as name
16925
16926 2007-06-06  Vincent Celier  <celier@adacore.com>
16927
16928         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
16929         defaulted to False.
16930         In the "not" case, recursive call with Complemented set to True.
16931         Do not allow "or" or "and" operators when Complemented is True.
16932
16933 2007-06-06  Vincent Celier  <celier@adacore.com>
16934
16935         * prj.adb (Project_Empty): Gives default value for new component
16936         Libgnarl_Needed
16937
16938         * prj-attr.ads: Minor reformatting
16939
16940         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
16941         directory using the untouched casing.
16942         (For_All_Source_Dirs): Idem.
16943
16944         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
16945         directories specified with switches -aP.
16946         (Add_Search_Project_Directory): New procedure
16947         (Initialize_Project_Path): Put the directories in table
16948         Search_Directories in the project search path.
16949         (Initialize_Project_Path): For VMS, transform into canonical form the
16950         project path.
16951
16952 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
16953
16954         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
16955         true if configurable run-time or No_Run_Time is set.
16956         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
16957         processing an unit which is not the one being compiled.
16958
16959 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
16960
16961         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
16962         Replace UC by Ada.UC
16963
16964         * s-bitops.adb: Get rid of System.Pure_Exceptions.
16965         Replace UC by Ada.UC
16966
16967 2007-06-06  Robert Dewar  <dewar@adacore.com>
16968
16969         * scng.adb: (Check_End_Of_Line): Deal with very long lines
16970
16971 2007-06-06  Robert Dewar  <dewar@adacore.com>
16972
16973         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
16974         Remove no longer used nodes.
16975
16976 2007-06-06  Javier Miranda  <miranda@adacore.com>
16977             Ed Schonberg  <schonberg@adacore.com>
16978             Robert Dewar  <dewar@adacore.com>
16979
16980         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
16981         on obsolescent withed unit in case of limited-withed units.
16982         (Analyze_Compilation_Unit): Add guard to code that removed an
16983         instantiation from visibility, to prevent compiler aborts when
16984         instantiation is abandoned early on.
16985         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
16986         current unit being analyzed, and Distinguish local incomplete types
16987         from limited views of types declared elsewhere.
16988         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
16989         to state that the class-wide entity is shared by the limited-view
16990         and the full-view.
16991         (Analyze_With_Clause): Improve placement of flag for case of
16992         unimplemented unit.
16993         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
16994         manner similar to GNAT.Current_Exception. This is a violation of
16995         restriction (No_Exception_Propagation), and also inhibits the
16996         optimization of local raise to goto.
16997         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
16998         and if so set Most_Recent_Exception_Used flag in Opt, and also check
16999         for violation of restriction No_Exception_Propagation.
17000
17001 2007-06-06  Javier Miranda  <miranda@adacore.com>
17002             Hristian Kirtchev  <kirtchev@adacore.com>
17003             Gary Dismukes  <dismukes@adacore.com>
17004
17005         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
17006         use of entity Exception_Occurrence if it is not available in the
17007         target run-time.
17008
17009         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
17010         concurrent types are declared within an Ada 2005 generic, build their
17011         corresponding record types since they are needed for overriding-related
17012         semantic checks.
17013         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
17014         protected type does not implement a task interface or a nonlimited
17015         interface.
17016         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
17017         type does not implement a protected interface or a nonlimited interface.
17018         (Single_Task_Declaration, Single_Protected_Declaration): use original
17019         entity for variable declaration, to ensure that debugging information
17020         is correcty generated.
17021         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
17022         routines if the expander is not active.
17023         (Analyze_Task_Body): Mark all handlers to stop optimization of local
17024         raise, since special things happen for task exception handlers.
17025
17026         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
17027         concurrent types declared within a generic.
17028         (Check_Dispatching_Operation): Do not emit warning about late interface
17029         operations in the context of an instance.
17030         (Check_Dispatching_Call): Remove restriction against calling a
17031         dispatching operation with a limited controlling result.
17032         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
17033         Register_Interface_DT_Entry by calls to Register_Primitive.
17034         (Check_Dispatching_Formals): Handle properly a function with a
17035         controlling access result.
17036
17037 2007-06-06  Robert Dewar  <dewar@adacore.com>
17038             Arnaud Charlet  <charlet@adacore.com>
17039
17040         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
17041         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
17042         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
17043         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
17044         message when using a VM, since this attribute is not supported.
17045         (Analyze_Record_Representation_Clause): Give unrepped component warnings
17046
17047         * usage.adb: Add new warning for renaming of function return objects
17048         Indicate that -gnatwp and -gnatwP concern front-end inlining
17049         Add line for -gnatyg
17050         Add usage information for -gnatw.c/C
17051
17052 2007-06-06  Robert Dewar  <dewar@adacore.com>
17053             Ed Schonberg  <schonberg@adacore.com>
17054
17055         * sem_ch5.adb
17056         (Find_Var): Do not consider function call in test for infinite loop
17057         warning if warnings set off for function entity.
17058         (One_Bound): Do not create a temporary for a loop bound if it is a
17059         character literal.
17060         (Analyze_Assignment): Traverse the right hand side of an assignment and
17061         mark all allocators as static coextensions.
17062         (Analyze_Assignment): Exempt assignments involving a dispatching call
17063         to a function with a controlling access result from the check requiring
17064         the target to be class-wide.
17065
17066 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
17067             Ed Schonberg  <schonberg@adacore.com>
17068             Robert Dewar  <dewar@adacore.com>
17069             Javier Miranda  <miranda@adacore.com>
17070
17071         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
17072         chain of coextensions when an allocator serves as the root of such a
17073         chain.
17074         (Propagate_Coextensions): Remove the test for the root being an
17075         allocator.
17076         (Resolve_Allocator): Add condition to ensure that all future decoration
17077         occurs on an allocator node. Add processing and cleanup for static
17078         coextensions.
17079         (Valid_Conversion): If the operand type is the limited view of a
17080         class-wide type, use the non-limited view is available to determine
17081         legality of operation.
17082         (Ambiguous_Character): move to spec, for use elsewhere.
17083         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
17084         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
17085         character literals.
17086         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
17087         Do_Division_Check flag explicitly.
17088         (Resolve_Actuals): If the actual is of a synchronized type, and the
17089         formal is of the corresponding record type, this is a call to a
17090         primitive operation of the type, that is declared outside of the type;
17091         the actual must be unchecked-converted to the type of the actual
17092         (Resolve_Call): Kill all current values for any subprogram call if
17093         flag Suppress_Value_Tracking_On_Call is set.
17094         (Resolve_Type_Conversion): Generate error message the the operand
17095         or target of interface conversions come from a limited view.
17096         (Check_Infinite_Recursion): Ignore generated calls
17097         (Check_Allocator_Discrim_Accessibility): New procedure for checking
17098         that an expression that constrains an access discriminant in an
17099         allocator does not denote an object with a deeper level than the
17100         allocator's access type.
17101         (Resolve_Allocator): In the case of an allocator initialized by an
17102         aggregate of a discriminated type, check that associations for any
17103         access discriminants satisfy accessibility requirements by calling
17104         Check_Allocator_Discrim_Accessibility.
17105         (Resolve_Equality_Op): Handle comparisons of anonymous access to
17106         subprogram types in the same fashion as other anonymous access types.
17107         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
17108         message that is not a continuation message.
17109         (Resolve_Type_Conversion): Add missing support for conversion to
17110         interface type.
17111         (Resolve_Actuals): Introduce a transient scope around the call if an
17112         actual is a call to a function returning a limited type, because the
17113         resulting value must be finalized after the call.
17114         (Resolve_Actuals): If the call was given in prefix notations, check
17115         whether an implicit 'Access reference or implicit dereference must be
17116         added to make the actual conform to the controlling formal.
17117
17118 2007-06-06  Robert Dewar  <dewar@adacore.com>
17119             Javier Miranda  <miranda@adacore.com>
17120
17121         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
17122         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
17123         overriding of an inherited private subprogram now there is no need to
17124         inherit its dispatching slot and reduce the size of the dispatch table.
17125         Set_All_DT_Position now ensures that the same slot is now assigned to
17126         both entities. This is required to statically build the dispatch table.
17127         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
17128         of calling Set_All_DT_Position to re-evaluate the position of the
17129         entries in the dispatch table. Such reevaluation is not desired if
17130         the tagged type is already frozen.
17131
17132 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
17133             Gary Dismukes  <dismukes@adacore.com>
17134             Robert Dewar  <dewar@adacore.com>
17135             Javier Miranda  <miranda@adacore.com>
17136
17137         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
17138         reference acts as an lvalue when the attribute name modifies the prefix
17139         (Is_Coextension_Root): New routine.
17140         (Mark_Static_Coextensions): New routine.
17141         (Type_Access_Level): Revise code for checking the level of the
17142         anonymous access type of a return object.
17143         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
17144         (Matches_Prefixed_View_Profile): Remove the no longer necessary
17145         retrieval of the corresponding controlling record type.
17146         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
17147         concurrent types declared within a generic as well as class wide types.
17148         Emit a mode incompatibility error whenever a protected entry or routine
17149         override an interface routine whose first parameter is not of mode
17150         "out", "in out" or access to variable.
17151         (Overrides_Synchronized_Primitive): Rename to
17152         Find_Overridden_Synchronized_Primitive.
17153         (Collect_Interface_Components): New subprogram that collects all the
17154         components of a tagged record containing tags of secondary dispatch
17155         tables.
17156         (Add_Global_Declaration): New procedure
17157         (Abstract_Interface_List): Handle properly the case of a subtype of a
17158         private extension.
17159         (Type_Access_Level): In the case of a type whose parent scope is a
17160         return statement, call Type_Access_Level recursively on the enclosing
17161         function's result type to determine the level of the return object's
17162         type.
17163         (Build_Elaboration_Entity): Build name of elaboration entity from the
17164         scope chain of the entity, rather than the unit name of the file name.
17165         (Check_Nested_Access): New procedure.
17166         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
17167         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17168         (Get_Renamed_Entity): Utility routine for performing common operation
17169         of chasing the Renamed_Entity field of an entity.
17170
17171 2007-06-06  Robert Dewar  <dewar@adacore.com>
17172
17173         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
17174         elaboration model
17175         (Check_A_Call): Add check for entry call which was causing blowup
17176
17177 2007-06-06  Olivier Hainque  <hainque@adacore.com>
17178
17179         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
17180         special code on ia64-vms to handle major incompatibilities between the
17181         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
17182         this routine with a very different set of arguments and expectations on
17183         the return value.
17184
17185 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17186
17187         * socket.c (__gnat_close_signalling_fd): New function.
17188         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
17189         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
17190         New supporting functions for task safe Netdb operations.
17191
17192 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17193             Olivier Hainque  <hainque@adacore.com>
17194
17195         * a-except-2005.ads, a-except-2005.adb
17196         (Raise_From_Controlled_Operation): New procedure in
17197         (private part of) Ada.Exceptions (standard runtime version). Used to
17198         provide informational exception message when Program_Error is raised as
17199         a result of an Adjust or Finalize operation propagating an exception.
17200         (Rmsg_28): Fix description for E.4(18) check.
17201         (Raise_Current_Excep): Call Debug_Raise_Exception just before
17202         propagation starts, to let debuggers know about the event in a reliable
17203         fashion.
17204         Take the address of E and dereference to make sure it is homed on stack
17205         and prevent the stores from being deleted, necessary for proper
17206         debugger behavior on "break exception" hits.
17207         (Local_Raise): Moved to System.Exceptions
17208
17209         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
17210         exception message from the current occurrence and raise Program_Error
17211         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
17212
17213 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
17214             Arnaud Charlet  <charlet@adacore.com>
17215
17216         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
17217         lock, if needed.
17218
17219         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
17220         priority associated to a lock.
17221
17222         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
17223         assertion to take into account case of no abort restriction.
17224         (Initialize_Protection_Entries): Add initialization for the field
17225         New_Ceiling associated to the protected object.
17226         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
17227         needed.
17228
17229         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17230         since this function needs to be set consistently with Update_Exception.
17231
17232         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17233         since this function needs to be set consistently with Update_Exception.
17234
17235         * s-taskin.ads: Update comments on
17236         Interrupt_Server_Blocked_On_Event_Flag.
17237         (Unbind_Handler): Fix handling of server_task wakeup
17238         (Server_Task): Set self's state so that Unbind_Handler can take
17239         appropriate actions.
17240         (Common_ATCB): Now use a constant from System.Parameters to determine
17241         the max size of the Task_Image field.
17242
17243         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
17244         Initialize_Analyzer function.
17245         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
17246         take into account case of no abort restriction.
17247         ([Vulnerable_]Complete_Master): Modify assertion.
17248
17249         * s-tataat.adb (Finalize): Use the nestable versions of
17250         Defer/Undefer_Abort.
17251
17252         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
17253
17254         * s-tpobop.ads: Update comments.
17255
17256         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
17257         of locking the object manually, to avoid inconsistencies between
17258         Lock/Unlock_Entry assertions.
17259
17260         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
17261         terminating
17262         application and System.Parameters.No_Abort is True.
17263         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
17264         (Unbind_Handler): Fix handling of server_task wakeup
17265         (Server_Task): Set self's state so that Unbind_Handler can take
17266         appropriate actions.
17267
17268 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17269
17270         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
17271         declarations instead of an explicit null body, for conciseness.
17272
17273 2007-06-06  Robert Dewar  <dewar@adacore.com>
17274
17275         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
17276         illegal aggregate and the type is still Any_Composite.
17277         (Subtypes_Statically_Match): Fix problem of empty discriminant list
17278
17279 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
17280
17281         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
17282         to prevent subsequent expansion.
17283
17284 2007-06-06  Robert Dewar  <dewar@adacore.com>
17285
17286         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
17287
17288 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
17289             Robert Dewar  <dewar@adacore.com>
17290
17291         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
17292         exceptions.
17293         (Write_Itype): Handle case of string literal subtype, which
17294         comes up in this context.
17295         (Update_Itype): when debugging expanded code, update sloc of itypes
17296         associated with defining_identifiers and ranges, for gdb use.
17297         (Sprint_Node_Actual): Add static keyword to object or exception
17298         declaration output if Is_Statically_Allocated is True.
17299         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
17300         or task body, so that the tree carries the proper Sloc information for
17301         debugging use.
17302         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
17303
17304 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
17305
17306         * s-secsta.adb (Chunk): Ensure this object has a static size known at
17307         compile time, to avoid dynamic memory allocation
17308         (Elaboration code): Only use dynamic memory allocation when needed.
17309
17310 2007-06-06  Quentin Ochem  <ochem@adacore.com>
17311
17312         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
17313         "Overflow_Guard".
17314         (Stack_Analyzer): Added field "Overflow_Guard"
17315         (Task_Result): Added field "Overflow_Guard".
17316         (Index_Str): New constant.
17317         (Task_Name_Str): New constant.
17318         (Actual_Size_Str): New constant.
17319         (Pattern_Array_Element_Size): New constant.
17320         (Get_Usage_Range): New subprogram.
17321         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
17322         Now align the output.
17323         Added comments.
17324         (Initialize): Added value for Overflow_Guard.
17325         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
17326         Update the value of the overflow guard according to the actual
17327         beginning of the pattern array.
17328         (Initialize_Analyzer): Added parameter Overflow_Guard.
17329         Take this parameter into accound when computing the max size.
17330         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
17331         (Report_Result): Removed extra useless procedure.
17332         Updated call to Output_Result.
17333         Moved full computation of the Task_Result here.
17334
17335 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17336
17337         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
17338         Thread_Blocking_IO, always True by default, set False on a per-runtime
17339         basis.
17340         Add Windows-specific constants
17341         Add new constant Need_Netdb_Buffer.
17342         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17343         not, whether to use getXXXbyYYY_r.
17344
17345         * gsocket.h: Add new constant Need_Netdb_Buffer.
17346         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17347         not, whether to use getXXXbyYYY_r.
17348
17349 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17350
17351         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
17352         than their first call.
17353         Add type Dummy_Communication_Block used in the generation of the pre-
17354         defined dispatching primitive _disp_asynchronous_select.
17355         (Storage_Element): Put Pragma Universal_Aliasing on it.
17356
17357 2007-06-06  Vincent Celier  <celier@adacore.com>
17358
17359         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
17360         function.
17361
17362         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
17363         letter if it is not followed by a '/' or a '\'.
17364         (Windows): New Boolean function
17365
17366         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
17367         Ada 2005.
17368         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
17369         drive letter.
17370         (Containing_Directory): Raise Use_Error when the directory is a root
17371         directory.
17372         (Extension): When returning the result, use a conversion to Result_Type,
17373         not a qualification.
17374
17375 2007-06-06  Robert Dewar  <dewar@adacore.com>
17376
17377         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
17378         (Set_Style_Check_Options): Recognize new -gnatyg style switch
17379
17380         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
17381         Warn_On_Non_Local_Exception to False, to turn off warnings for
17382         No_Exception_Propagation in ZFP runtime.
17383         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
17384         back-ends.
17385         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
17386
17387 2007-06-06  Vincent Celier  <celier@adacore.com>
17388
17389         * switch-b.adb (Scan_Binder_Switches): Add processing for new
17390         switches -R and -Z
17391
17392         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
17393         (Scan_Make_Switches): Recognize new switch -aP
17394
17395 2007-06-06  Matthew Gingell  <gingell@adacore.com>
17396             Jose Ruiz  <ruiz@adacore.com>
17397
17398         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
17399         VxWorks task descriptor in the Ada run time, call a C subprogram
17400         (__gnat_get_stack_info) that extracts the required information.
17401
17402         * sysdep.c: Back out temporary lynxos workaround.
17403         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
17404         time the stack information associated to the currently executing task.
17405         Only VxWorks systems require this function.
17406
17407 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17408
17409         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
17410         add the stack bias if the offset is computed from a frame address.
17411         (__gnat_backtrace): Adjust for above change.
17412
17413 2007-06-06  Thomas Quinot  <quinot@adacore.com>
17414
17415         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
17416         PE_Non_Transportable_Actual.
17417         (By_Descriptor_Last): New constant.
17418         (By_Copy_Return): Likewise.
17419
17420 2007-06-06  Vincent Celier  <celier@adacore.com>
17421
17422         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
17423         is.
17424
17425         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
17426         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
17427         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
17428         Add missing comment for /OPTIMIZE=SPACE
17429         Add entry for OPTIMIZE=SPACE
17430         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
17431         Add documentation for new qualifiers corresponding to -gnatw.c/.C
17432
17433 2007-06-06  Vincent Celier  <celier@adacore.com>
17434             Robert Dewar  <dewar@adacore.com>
17435
17436         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
17437         -gnatw.C)
17438
17439         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
17440         Document gnatbind switch -a
17441         (case Constructions): Document that variables declarations are allowed
17442         for previously declared variables.
17443         Fix external lib project example
17444         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
17445         Indicate that "#if not X or Y then" is not allowed in input files to
17446         gnatprep.
17447         Document gnatw.x and gnatw.X warning flags
17448         Mention -Winline switch to activate warnings when back-end inlining is
17449         ineffective.
17450         Add gnatcheck rule descriptions
17451         Describe how to use the GNAT driver to call a tool on a closure.
17452         Describe how to run project-wide checks or metrics.
17453         Document gnatbind's -R option
17454         Updated to account for Ada 2005 support
17455
17456         * gnat_rm.texi (Case Construction): Allow variable declarations for
17457         previously declared variables.
17458         (Representation Clauses and Pragmas): Lift restriction on alignment
17459         clauses for record types.
17460         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
17461         Document No_Exception_Propagation restriction
17462         Document No_Body pragma
17463         Updated to account for Ada 2005 support; corrected some typos
17464         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
17465
17466         * gnat-style.texi: Make it clear that we never use mode IN for
17467         procedures or functions
17468
17469         * ug_words: Add entries for -gnatw.x and -gnatw.X
17470         Add entries for -gnatw.c/.C
17471
17472 2007-06-06  Pascal Obry  <obry@adacore.com>
17473             Vincent Celier  <celier@adacore.com>
17474
17475         * makegpr.adb (Add_Archive_Path): Use untouched object and library
17476         dirs and library name.
17477         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
17478         comments.
17479         (Build_Library): Idem.
17480         (Compile_Individual_Sources): Idem.
17481         (Compile_Link_With_Gnatmake): Idem.
17482         (Compile_Sources): Idem.
17483         (Get_Imported_Directories): Idem.
17484         (Link_Executables): Idem. Same change for the executable dir.
17485         (Check_Compilation_Needed): C_Source_Path new variable containing
17486         the canonical form of Source_Path to check against the source names
17487         in the dependency file.
17488         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
17489         verbose mode, display the name of the object directory we're changing
17490         to.
17491         (Saved_Switches): New name of table X_Switches
17492         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
17493         (Usage): New line for switch -aP
17494         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
17495         testing if a directory should be added to the search path.
17496
17497 2007-06-06  Javier Miranda  <miranda@adacore.com>
17498
17499         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
17500         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
17501         declaration after freezing point of all its associated tagged types;
17502         otherwise such types are frozen too early.
17503
17504 2007-06-06  Robert Dewar  <dewar@adacore.com>
17505
17506         * a-reatim.adb: Documentation addition
17507
17508         * g-cgideb.adb: Minor code reorganization
17509
17510         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
17511         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
17512         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
17513
17514         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
17515         function.  Change name New_Scope to Push_Scope
17516         (Get_Debug_Flag_K): Remove unused obsolete function.
17517
17518         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
17519         Push_Scope.
17520
17521         * makeusg.adb: Update Copyright notice
17522         Add line for switch -aP
17523
17524         * makeusg.adb: Fix wording of some usage messages
17525
17526         * s-assert.adb (Raise_Assert_Failure): Add call to
17527         Debug_Raise_Assert_Failure.
17528
17529         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
17530         (2, Standard'Alignment) for compatibility with AAMP (where alignment
17531         is restricted to 1).
17532
17533         * s-wchjis.adb: Remove use of System.Pure_Exceptions
17534
17535         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
17536         node location to No_Location when we're not debugging the expanded
17537         code.
17538
17539 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
17540
17541         * misc.c (enumerate_modes): Consider log2_b to always be one.
17542
17543 2007-05-14  Rafael Ávila de Espíndola  <espindola@google.com>
17544
17545         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17546
17547 2007-05-02  Pascal Obry  <obry@adacore.com>
17548
17549         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
17550         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
17551         encoding support of Stream_IO.
17552         (Write_Unit): Idem.
17553
17554         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
17555         filename and corresponding encoding to match the OS requirement.
17556         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
17557         routine will fail on specific devices like CON: AUX: ...
17558
17559         PR ada/29856: Add missing braces
17560
17561 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17562
17563         PR ada/31660
17564         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
17565
17566 2007-04-21  Jan Hubicka  <jh@suse.cz>
17567
17568         * misc.c (gnat_expand_body): Don't call target for destructors,
17569         avoid redundant check on syntax errors.
17570
17571 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17572
17573         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
17574         instead of checking GIMPLE_STMT_P in chain_next.
17575
17576 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
17577
17578         PR ada/31576
17579         * system-linux-alpha.ads: Disable constant condition warning for the
17580         Default_Bit_Order variable.
17581         * system-linux-s390.ads: Likewise.
17582         * system-linux-s390x.ads: Likewise.
17583         * system-linux-sparc.ads: Likewise.
17584
17585 2007-04-06  Javier Miranda  <miranda@adacore.com>
17586             Matt Heaney  <heaney@adacore.com>
17587             Robert Dewar  <dewar@adacore.com>
17588
17589         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
17590         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
17591         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
17592         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
17593         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
17594         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
17595         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
17596         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
17597         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
17598         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
17599         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
17600         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
17601         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
17602         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
17603         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
17604         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
17605         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
17606         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
17607         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
17608         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
17609         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
17610         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
17611         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
17612         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
17613         s-taprop-tru64.adb, s-taprop-irix.adb,
17614         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
17615         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
17616         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
17617         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
17618         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
17619         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
17620         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
17621         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
17622         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
17623         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
17624         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
17625         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
17626         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
17627         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
17628         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
17629         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
17630         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
17631         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
17632         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
17633         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
17634         access types.
17635         Update documentation.
17636         Minor rewording.
17637
17638 2007-04-06  Robert Dewar  <dewar@adacore.com>
17639
17640         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
17641         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
17642         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
17643         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17644         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
17645         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17646         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
17647         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
17648         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
17649         system-hpux-ia64.ads, targparm.adb,
17650         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
17651
17652         * system.ads: Move Functions_Return_By_DSP to obsolete section,
17653         kept for bootstrap purposes only.
17654
17655 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
17656
17657         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
17658         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
17659         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
17660         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
17661
17662 2007-04-06  Robert Dewar  <dewar@adacore.com>
17663
17664         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
17665         (Local_Raise): New dummy procedure called when a raise is converted
17666         to a local goto. Used for debugger to detect that the exception
17667         is raised.
17668
17669         * debug.adb: Document new d.g flag (expand local raise statements to
17670         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
17671
17672         * exp_sel.adb: Use Make_Implicit_Exception_Handler
17673
17674         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
17675         suppress warnings for unused handlers.
17676         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
17677         warnings for raise statements not handled locally.
17678         (Get_RT_Exception_Entity): New function
17679         (Get_Local_Call_Entity): New function
17680         (Find_Local_Handler): New function
17681         (Warn_If_No_Propagation): New procedure
17682         (Expand_At_End_Handler): Call Make_Implicit_Handler
17683         (Expand_Exception_Handlers): Major additions to deal with local handlers
17684         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
17685         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
17686         for local raise
17687
17688         * exp_ch11.ads (Get_RT_Exception_Entity): New function
17689         (Get_Local_Call_Entity): New function
17690
17691         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
17692         of restrictions that the binder will never suggest adding.
17693
17694         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
17695         to No_Elist.
17696
17697         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
17698         be with'ed in the presence of pragma Restriction
17699         (No_Exception_Propagation).
17700
17701         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
17702
17703         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
17704         parameter, then the handler is not a suitable target for a local raise,
17705         and this is a violation of restriction No_Exception_Propagation.
17706         (Analyze_Handled_Statements): Analyze choice parameters in exception
17707         handlers before analyzing statement sequence (needed for proper
17708         detection of local raise statements).
17709         (Analyze_Raise_Statement): Reraise statement is a violation of the
17710         No_Exception_Propagation restriction.
17711
17712         * s-rident.ads: Add new restriction No_Exception_Propagation
17713
17714         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
17715         function, like Make_Exception_Handler but sets Local_Raise_Statements
17716         to No_List.
17717         (Add_Unique_Serial_Number): Deal with case where this is called during
17718         processing of configuration pragmas.
17719
17720 2007-04-06  Thomas Quinot  <quinot@adacore.com>
17721             Pat Rogers  <rogers@adacore.com>
17722             Pascal Obry  <obry@adacore.com>
17723
17724         * g-stsifd-sockets.adb: New file.
17725
17726         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
17727         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
17728         g-socthi-vms.adb: Move signalling
17729         fd management to a nested package, so that they can conveniently be
17730         moved to a subunit that is shared across Windows, VMS, and VxWorks
17731         (Ada implementation) or completed with imported bodies from socket.c
17732         (UNIX case).
17733         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
17734         subprograms.
17735         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
17736         the signalling file descriptor.
17737         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
17738         signalling file descriptor.
17739         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
17740         instead of creating a pair of sockets for signalling here.
17741
17742         * g-socthi.adb: Ditto.
17743         Set the runtime process to ignore SIGPIPEs on platforms that support
17744         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
17745
17746         * g-socthi-mingw.adb: Ditto.
17747         (WS_Version): Use Windows 2.2.
17748         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
17749
17750         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
17751         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
17752
17753         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
17754         added GNAT byte swapping facility
17755         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
17756
17757         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
17758
17759         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
17760         New subprograms.
17761         (__gnat_create_signalling_fds): New subprogram.
17762         Set the runtime process to ignore SIGPIPEs on platforms that support
17763         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
17764
17765 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
17766             Vincent Celier  <celier@adacore.com>
17767
17768         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
17769         New version of Ada.Calendar which supports the new upper bound of Ada
17770         time (2399-12-31 86_399.999999999).
17771         The following modifications have been made to the package:
17772          - New representation of time as count of nanoseconds since the start of
17773            Ada time (1901-1-1 0.0).
17774          - Target independent Split and Time_Of routines which service both
17775            Ada 95 and Ada 2005 code.
17776          - Target independent interface to the Ada 2005 children of Calendar.
17777          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
17778          - Handling of non-leap centenial years.
17779          - Updated clock function.
17780          - Updated arithmetic and comparison operators.
17781
17782         * a-caldel.adb (To_Duration): Add call to target independent routine in
17783         Ada.Calendar to handle the conversion of time to duration.
17784
17785         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
17786         (UTC Offset).
17787         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
17788         set off to 0.
17789         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
17790         targets do not have a natural time zone, GMT is used as a default.
17791         (__gnat_get_task_options): New.
17792
17793         * a-direct.adb (Modification_Time): Add with and use clauses for
17794         Ada.Calendar and Ada.
17795         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
17796         since it is no longer needed.
17797         (Duration_To_Time): Removed.
17798         (OS_Time_To_Long_Integer): Removed.
17799         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
17800         Formatting Time_Of routines which automatically handle time zones,
17801         buffer periods and leap seconds.
17802
17803         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
17804         target independent routines in Ada.Calendar.
17805
17806         * a-calfor.ads, a-calfor.adb:
17807         Code cleanup and addition of validity checks in various routines.
17808         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
17809         Ada.Calendar.
17810
17811         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
17812         independent routine in Ada.Calendar.
17813
17814 2007-04-06  Olivier Hainque  <hainque@adacore.com>
17815
17816         * adaint.c:
17817         (convert_addresses): Adjust prototype and dummy definition to expect an
17818          extra file_name argument.
17819
17820         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
17821         filling the now expected file_name argument with the appropriate
17822         argv[0] expansion.
17823         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
17824         (tracebk): Array of void * instead of char *, corresponding to what
17825          convert_addresses expects.
17826         (exename): New static global, to hold the executable file name to be
17827         used in all convert_addresses invocations.
17828         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
17829         change.
17830         (__gnat_gmem_a2l_initialize): Resolve exename.
17831         (__gnat_convert_addresses): Use exename as the convert_addresses
17832         file_name argument.
17833
17834         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
17835         "convert_addresses", now expecting a filename argument. Import the
17836         necessary entities to compute the filename to use and pass it to
17837         convert_addresses.
17838
17839 2007-04-06  Matt Gingell  <gingell@adacore.com>
17840
17841         * system-aix.ads: Back out previous change.
17842         (Functions_Return_By_DSP): Removed
17843
17844 2007-04-06  Pascal Obry  <obry@adacore.com>
17845
17846         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
17847         or the monotonic used by Ada.Real_Time) to compute the sleep duration
17848         on Windows.
17849
17850 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
17851
17852         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
17853         function. Its value changes in different VxWorks versions, and it is
17854         now handled by the function __gnat_get_task_options.
17855
17856         * s-taprop-vxworks.adb (Create_Task): Call the function
17857         __gnat_get_task_options to get the required options for creating a task.
17858
17859 2007-04-06  Pascal Obry  <obry@adacore.com>
17860             Thomas Quinot  <quinot@adacore.com>
17861
17862         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
17863         dealing with filename.
17864         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
17865         filename from a standard string to a wide-string depending on the
17866         encoding value.
17867         (__gnat_freopen): Idem.
17868         (__gnat_current_time): New function (wrapper for time(3) standard C
17869         function).
17870
17871         * g-os_lib.ads (Current_Time): New function. Returns the current
17872         system time as an OS_Time value.
17873
17874         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
17875         (Monotonic_Clock): Same.
17876
17877 2007-04-06  Quentin Ochem  <ochem@adacore.com>
17878
17879         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
17880         not on a natural.
17881         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
17882
17883 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
17884
17885         * a-retide.adb: Add elaboration code to ensure that the tasking run
17886         time is initialized when using delay operations even when no task is
17887         created.
17888
17889 2007-04-06  Javier Miranda  <miranda@adacore.com>
17890
17891         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
17892         component Num_Prim_Ops.
17893         (Set_Num_Prim_Ops): Removed.
17894         Remove all the assertions because all the routines of this
17895         package are inline always.
17896         (Get_Offset_Index): Add support to primary dispatch tables.
17897         Move the documentation about the dispatch table to a-tags.ads
17898         (Set_External_Tag): Removed
17899         (Inherit_TSD): Removed.
17900         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
17901         moved to a-tags.ads
17902         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
17903         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
17904         of the TSD field "Table" because this field has been renamed to
17905         "Ifaces_Table".
17906         (Inherit_CPP_DT): Removed.
17907         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
17908         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
17909         declarations have been moved to a-tags.ads
17910         (Check_Size): Removed.
17911         (Expanded_Name): Updated to get access to the new field of TSD
17912         containing the address of the expanded name.
17913         (Get_Access_Level/Set_Access_Level): Removed.
17914         (Get_Predefined_Prim_Op_Address): Removed.
17915         (Set_Predefined_Prim_Op_Address): Removed.
17916         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
17917         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
17918         (Set_Expanded_Name): Removed.
17919         (Inherit_DT): Removed.
17920         (Inherit_CPP_DT): Removed.
17921         (Set_RC_Offset): Removed.
17922         (Set_TSD): Removed.
17923         (Base_Address): New function that displaces "this" to point to the base
17924         of the object (that is, to point to the primary tag of the object).
17925
17926 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
17927             Javier Miranda  <miranda@adacore.com>
17928
17929         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
17930         anonymous access component, do not create a master_id if type already
17931         has one, as may happen if the type is a subcomponent of a packed array
17932         type.
17933         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
17934         Initialize_Tag): Remove code associated with the old CPP pragmas.
17935         CPP_Virtual and CPP_Vtable are no longer supported.
17936         (Build_Offset_To_Top_Internal): Add support for concurrent record types
17937         (Build_Offset_To_Top_Functions): Add support for concurrent record types
17938         (Freeze_Record_Type): Remove call to
17939         Init_Predefined_Interface_Primitives.
17940         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
17941         code required to initialize the tags of the secondary dispatch tables.
17942         This leaves the algoritm more clear.
17943         (Init_Secondary_Tags): Add support for concurrent record types
17944         (Make_Predefined_Primitive_Specs): Code cleanup.
17945         (Predefined_Primitive_Bodies): Code cleanup.
17946         (Build_Master_Renaming): New local subprogram.
17947         (Expand_N_Full_Type_Declaration): Build the master_id associated with
17948         anonymous access to task type components.
17949         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
17950         subtype indication are resolved during analysis, and must not be done
17951         here.
17952         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
17953
17954 2007-04-06  Geert Bosch  <bosch@adacore.com>
17955             Ed Schonberg  <schonberg@adacore.com>
17956             Javier Miranda  <miranda@adacore.com>
17957             Bob Duff  <duff@adacore.com>
17958
17959         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
17960         for conversion of a Float_Type'Truncation to integer.
17961
17962         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
17963         check if a node is an attribute that can be handled directly by the
17964         back end.
17965         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
17966         attributes that can be handled directly by the back end.
17967         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
17968         use new predicate Is_Access_Protected_Subprogram_Type.
17969         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
17970         and Unchecked_Union if it is generated as part of the default  Output
17971         procedure for a type with default discriminants.
17972         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
17973         if we are compiling under restriction No_Dispatching_Calls.
17974         (Constrained): Use Underlying_Type, in case the type is private without
17975         discriminants, but the full type has discriminants.
17976         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
17977         call to Build_Get_Access_Level.
17978         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
17979         interface objects requires a call to the run-time subprogram that
17980         returns the base address of the object.
17981         (Valid_Conversion): Improve error message on illegal attempt to store
17982         an anonymous access to subprogram value into a record component.
17983
17984         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
17985         null".
17986         (Simplify_Type_Conversion): New procedure that performs simplification
17987         of Int_Type (Float_Type'Truncation (X)).
17988         (Resolve_Type_Conversion): Call above procedure after resolving operand
17989         and before performing checks. This replaces the existing ineffective
17990         code in Exp_Ch4.
17991         (Set_String_Literal_Subtype): When creating the internal static lower
17992         bound subtype for a string literal, use a newly created copy of the
17993         subtree representing the lower bound.
17994         (Resolve_Call): Exclude build-in-place function calls from transient
17995         scope treatment. Update comments to describe this exception.
17996         (Resolve_Equality_Op): In case of dispatching call check violation of
17997         restriction No_Dispatching_Calls.
17998         (Resolve_Call): If the call returns an array, the context imposes the
17999         component type of the array, and the function has one non-defaulted
18000         parameter, rewrite the call as the indexing of a call with a single
18001         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
18002         in prefix form.
18003         (Resolve_Actuals): If an actual is an allocator for an access parameter,
18004         the master of the created object is the innermost enclosing statement.
18005         (Remove_Conversions): For a binary operator, check if type of second
18006         formal is numeric, to check if an abstract interpretation is present
18007         in the case of exponentiation as well.
18008
18009 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18010             Bob Duff  <duff@adacore.com>
18011
18012         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
18013         copying a parameter list in a call, set properly the First_Named_Formal
18014         and Next_Named_Formal fields in the new list and in the enclosing call.
18015         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
18016         names, to ease typing in the debugger. Improve comments.
18017         (Watch_Node): New variable, intended to be set in the debugger.
18018         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
18019         called when the watched node is created.
18020         (New_Node_Debugging_Output): Combined version of local procedures
18021         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
18022         with a parameter so that conditional breakpoints like "if Node = 12345"
18023         work.
18024         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
18025         Add Elist1 function
18026
18027 2007-04-06  Thomas Quinot  <quinot@adacore.com>
18028             Ed Schonberg  <schonberg@adacore.com>
18029             Gary Dismukes  <dismukes@adacore.com>
18030
18031         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
18032         required for a conversion between two access-to-unconstrained-array
18033         types.
18034         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
18035         to discriminant constraints on discriminant objects. This rule must
18036         apply as well to discriminants of protected types in private components.
18037         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
18038         object of a null-excluding access type then don't require the
18039         the object declaration to have an expression and don't emit a
18040         run-time check.
18041
18042 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
18043             Eric Botcazou  <botcazou@adacore.com>
18044
18045         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
18046         and made constant.
18047
18048         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
18049         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
18050         carry any.
18051
18052         * fe.h (Compiler_Abort): Add third parameter.
18053
18054         * misc.c (internal_error_function): Build third argument from current
18055         input location and pass it to Compiler_Abort.
18056
18057 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
18058
18059         * cstand.adb (Create_Standard): When the target's storage unit size is
18060         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
18061         Standard_String.
18062
18063 2007-04-06  Nicolas Roche  <roche@adacore.com>
18064
18065         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
18066         absolute path can have the following form: device:/a/b. In this case
18067         '/' should be inserted between the path and the filename.
18068
18069 2007-04-06  Olivier Hainque  <hainque@adacore.com>
18070             Eric Botcazou  <botcazou@adacore.com>
18071
18072         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
18073         VAR_DECL to a CONST_DECL we make for a public constant when we know the
18074         corresponding definition has created the so made visible variable.
18075         Handle anonymous access to protected subprogram.
18076         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
18077         object with an address clause volatile.  Re-enable original fix.
18078         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
18079         too.
18080         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
18081         associated with either the Equivalent or Root type, instead of the
18082         naked type node.
18083         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
18084         subtree for every field of a global record type.
18085         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
18086         discriminants, invoke again variable_size on its newly computed sizes.
18087
18088 2007-04-06  Robert Dewar  <dewar@adacore.com>
18089             Thomas Quinot  <quinot@adacore.com>
18090             Ed Schonberg  <schonberg@adacore.com>
18091             Bob Duff  <duff@adacore.com>
18092
18093         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
18094         (Next_Component_Or_Discriminant): New function and procedure
18095         (First_Index, First_Literal, Master_Id,
18096         Set_First_Index, Set_First_Literal, Set_Master_Id):
18097         Add missing Ekind assertions.
18098         (Is_Access_Protected_Subprogram_Type): New predicate.
18099         (Has_RACW): New entity flag, set on package entities to indicate that
18100         the package contains the declaration of a remote accecss-to-classwide
18101         type.
18102         (E_Return_Statement): This node type has the Finalization_Chain_Entity
18103         attribute, in case the result type has controlled parts.
18104         (Requires_Overriding): Add this new flag, because "requires
18105         overriding" is subtly different from "is abstract" (see AI-228).
18106         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
18107         Is_Abstract_Type. Make sure these are called only when appropriate.
18108         (Has_Pragma_Unreferenced_Objects): New flag
18109
18110         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
18111         class-wide, the tag of the right-hand side must be an exact match, not
18112         an ancestor of that of the object on left-hand side.
18113         (Move_Activation_Chain): New procedure to create the call to
18114         System.Tasking.Stages.Move_Activation_Chain.
18115         (Expand_N_Extended_Return_Statement): Generate code to call
18116         System.Finalization_Implementation.Move_Final_List at the end of a
18117         return statement if the function's result type has controlled parts.
18118         Move asserts to Build_In_Place_Formal.
18119         (Move_Final_List): New function to create the call statement.
18120         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
18121         tagged type, replace generation of call to the run-time subprogram
18122         CW_Membership by call to Build_CW_Membership.
18123         (Expand_N_Return_Statement): Replace generation of call to the run-time
18124         subprogram Get_Access_Level by call to Build_Get_Access_Level.
18125         (Expand_N_Simple_Function_Return): Replace generation of call to the
18126         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18127
18128         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
18129         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
18130         access to protected operations.
18131         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
18132         master and chain actual parameters to a build-in-place function call
18133         involving tasks.
18134         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
18135         statement.
18136         (Make_Build_In_Place_Call_In_Allocator,
18137         Make_Build_In_Place_Call_In_Anonymous_Context,
18138         Make_Build_In_Place_Call_In_Assignment,
18139         Make_Build_In_Place_Call_In_Object_Declaration): Call
18140         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
18141         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
18142         stubbed procedure with a null body, replace the call with a null
18143         statement without using the full inlining machinery, for efficiency
18144         and to avoid invalid values in source file table entries.
18145
18146         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
18147         renamings of calls to build-in-place functions.
18148
18149         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
18150         provides the functionality of RTE_Available to record components.
18151         (RTU_Entity): The function Entity has been renamed to RTU_Entity
18152         to avoid undesired overloading.
18153         (Entity): New subprogram that returns the entity for the referened
18154         unit. If this unit has not been loaded, it returns Empty.
18155         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
18156         Remove no longer used entities.
18157         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
18158         (RE_Type_Specific_Data): New entity.
18159         (RE_Move_Any_Value): New entity.
18160         (RE_TA_A, RE_Get_Any_Type): New entities.
18161         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
18162          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
18163          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
18164         (Entity): New subprogram that returns the entity for the referened
18165         unit. If this unit has not been loaded, it returns Empty.
18166         (RTE): Addition of a new formal that extends the search to the scopes
18167         of the record types found in the chain of the package.
18168
18169         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
18170         "abstract subprograms must be visible" message, whether or not the type
18171         is an interface; that is, remove the special case for interface types.
18172         (Analyze_Function_Return): Remove error message "return of task objects
18173         is not yet implemented" because this is now implemented.
18174         (Create_Extra_Formals): Add the extra master and activation chain
18175         formals in case the result type has tasks.
18176         Remove error message "return of limited controlled objects is not yet
18177         implemented".
18178         (Create_Extra_Formals): Add the extra caller's finalization list formal
18179         in case the result type has controlled parts.
18180         (Process_Formals): In case of access formal types there is no need
18181         to continue with the analysis of the formals if we already notified
18182         errors.
18183         (Check_Overriding_Indicator): Add code to check overriding of predefined
18184         operators.
18185         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
18186         flags for formals that do not require them,.
18187         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
18188         hidden entity is use visible or directly visible.
18189         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
18190         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
18191         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
18192         New_Overloaded_Entity): Split Is_Abstract flag into
18193         Is_Abstract_Subprogram and Is_Abstract_Type.
18194
18195         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
18196         a return statement's finalization list to the caller's list, used for
18197         build-in-place functions with result type with controlled parts.
18198         Remove no longer used entities.
18199
18200         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
18201         longer needed, because the full type is now limited, and therefore a
18202         pass-by-reference type.
18203         (Foreign_Task_Level): New constant.
18204
18205         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
18206         move tasks from the activation chain belonging to a return statement to
18207         the one passed in by the caller, and update the master to the one
18208         passed in by the caller.
18209         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
18210         of unactivated tasks, so we don't kill the ones that are being returned
18211         by a build-in-place function.
18212         (Create_Task): Ignore AI-280 for foreign threads.
18213
18214 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18215             Robert Dewar  <dewar@adacore.com>
18216             Bob Duff  <duff@adacore.com>
18217             Gary Dismukes  <dismukes@adacore.com>
18218
18219         * errout.adb (Unwind_Internal_Type): Use predicate
18220         Is_Access__Protected_Subprogram_Type.
18221
18222         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
18223         (Freeze_Entity, packed array case): Do not override explicitly set
18224         alignment and size clauses.
18225         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
18226         the enclosing subprogram is a child unit body that acts as a spec.
18227         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
18228         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
18229         Remove all code for DSP option
18230
18231         * layout.adb (Layout_Record_Type): Use First/
18232         Next_Component_Or_Discriminant
18233         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
18234         to handle properly the anonymous access case.
18235
18236         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
18237         for all access attributes, because overload resolution should work the
18238         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
18239         causes the error message for the ambiguous "X'Access = Y'Access" and
18240         "X'Unrestricted_Access = Y'Access" and so forth to match.
18241         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
18242         now that anonymous access to protected operations have their own kind.
18243         (Resolve_Attribute): In case of dispatching call check the violation of
18244         restriction No_Dispatching_Calls.
18245         (Check_Array_Type): Check new -gnatyA array index style option
18246
18247         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
18248         attempt to derive from a synchronized tagged type.
18249         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
18250         type, inherit the class-wide type already created, because it may
18251         already have been used in a self-referential anonymous access component.
18252         (Mentions_T): Recognize self-referential anonymous access components
18253         that use (a subtype of) the class-wide type of the enclosing type.
18254         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
18255         Derived_Type for Prev formal on call to
18256         Check_Anonymous_Access_Components rather than Empty.
18257         (Make_Incomplete_Type_Declaration): Add test for case where the type has
18258         a record extension in deciding whether to create a class-wide type,
18259         rather than just checking Tagged_Present.
18260         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
18261         to stand-alone object declarations as well as component declarations.
18262         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
18263         prevent accidental overwriting when enclosing package appears in
18264         a limited_with_clause.
18265         (Array_Type_Declaration): If the component type is an anonymous access,
18266         the associated_node for the itype is the type declaration itself.
18267         (Add_Interface_Tag_Components): Modified to support concurrent
18268         types with abstract interfaces.
18269         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
18270         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
18271         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
18272         to complete the decoration of synchronized interface types. Add also
18273         a call to Check_Abstract_Interfaces to verify the ARM rules.
18274         (Derive_Interface_Subprograms): Modified to support concurrent types
18275         with abstract interfaces.
18276         (Analyze_Subtype_Indication): Resolve the range with the given subtype
18277         mark, rather than delaying the full resolution depending on context.
18278         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
18279         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
18280         Array_Type_Declaration,Build_Derived_Record_Type,
18281         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
18282         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
18283         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
18284         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18285         called only when appropriate.
18286         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
18287         to private type.
18288         (Analyze_Subtype_Declaration): For an access subtype declaration, create
18289         an itype reference for the anonymous designated subtype, to prevent
18290         scope anonmalies in gigi.
18291         (Build_Itype_Reference): New utility, to simplify construction of such
18292         references.
18293
18294 2007-04-06  Vincent Celier  <celier@adacore.com>
18295
18296         * errutil.adb (Initialize): Initialize warnings table, if all warnings
18297         are suppressed, supply an initial dummy entry covering all possible
18298         source locations.
18299
18300         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
18301         and start with only one, such as "-RTS=none".
18302         (Collect_Arguments): Do not check for sources outside of projects.
18303         Do not collect arguments if project is externally built.
18304         (Compile_Sources): Do nothing, not even check if the source is up to
18305         date, if its project is externally built.
18306         (Compile): When compiling a predefined source, add -gnatpg
18307         as the second switch, after -c.
18308         (Compile_Sources): Allow compilation of Annex J renames without -a
18309         (Is_In_Object_Directory): Check if the ALI file is in the object
18310         even if there is no project extension.
18311         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
18312         gnatbind if the ALI file effectively exists.
18313         (Initialize): Add the directory where gnatmake is invoked in front of
18314         the path if it is invoked from a bin directory, even without directory
18315         information, so that the correct GNAT tools will be used when spawned
18316         without directory information.
18317
18318         * makeusg.adb: Change switch -S to -eS
18319         Add lines for new switches -we, -wn and -ws
18320         Add line for new switch -p
18321
18322         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
18323         Treat_As_Error and there are warnings.
18324
18325         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
18326         -gnatww Change gnatmake switch -S to -eS
18327         (Scan_Make_Switches): Code reorganisation. Process separately multi
18328         character switches and single character switches.
18329         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
18330         False when switch is not recognized by gnatmake.
18331         (Scan_Make_Switches): Set Setup_Projects True when -p or
18332         --create-missing-dirs is specified.
18333
18334         * fname.adb (Is_Predefined_File_Name): Return True for annex J
18335         renamings Calendar, Machine_Code, Unchecked_Conversion and
18336         Unchecked_Deallocation only when Renamings_Included is True.
18337
18338         * par.adb: Allow library units Calendar, Machine_Code,
18339         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
18340         when -gnatg is not specified.
18341         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18342         there is no need to generate always a record_definition_node in case
18343         of synchronized interface types.
18344         (SIS_Entry_Active): Initialize global variable to False
18345         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
18346         indicate cases where AI-447 says "not null" is legal.
18347
18348         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
18349
18350         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
18351         files with with several lines starting with the object fileb name.
18352         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
18353         is specified.
18354         (Initialize): Add the directory where gprmake is invoked in front of the
18355         path, if it is invoked from a bin directory or with directory
18356         information, so that the correct GNAT tools will be used when invoked
18357         directly.
18358         (Check_Compilation_Needed): Process correctly backslashes on Windows.
18359
18360         * vms_data.ads: Update switches/qualifiers
18361
18362 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18363             Thomas Quinot  <quinot@adacore.com>
18364
18365         * exp_aggr.adb:
18366         If the array component is a discriminated record, the array aggregate
18367         is non-static even if the component is given by an aggregate with
18368         static components.
18369         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
18370         (Convert_Aggr_In_Allocator): If the allocator is for an access
18371         discriminant and the type is controlled. do not place on a finalization
18372         list at this point. The proper list will be determined from the
18373         enclosing object.
18374         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
18375         initialize record controller if needed, before the components, to ensure
18376         that they are properly finalized.
18377         (Build_Record_Aggr_Code): For the case of an array component that has a
18378         corresponding array aggregate in the record aggregate, perform sliding
18379         if required.
18380
18381 2007-04-06  Javier Miranda  <miranda@adacore.com>
18382             Gary Dismukes  <dismukes@adacore.com>
18383             Ed Schonberg  <schonberg@adacore.com>
18384
18385         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
18386         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
18387
18388         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
18389         accessibility on class-wide allocators if the allocator occurs at the
18390         same scope level as the allocator's type. The check is guaranteed to
18391         succeed in that case, even when the expression originates from a
18392         parameter of the containing subprogram.
18393         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
18394         under No_Dispatching_Calls restriction. During the semantic analysis
18395         we already notified such violation.
18396         (Tagged_Membership): Constant folding. There is no need to check
18397         the tag at run-time if the type of the right operand is non
18398         class-wide abstract.
18399         Replace call to Is_Ancestor by call to Is_Parent
18400         to support concurrent types with interface types.
18401         (Expand_N_Allocator): Add an assertion associated with the generation
18402         of the master_id.
18403         (Expand_N_Slice): Do not enable range check to nodes associated
18404         with the frontend expansion of the dispatch table.
18405         (Is_Local_Access_Discriminant): Subsidiary function to
18406         Expand_N_Allocator.
18407         (Tagged_Membership): Replace generation of call to the run-time
18408         subprogram CW_Membership by call to Build_CW_Membership.
18409         (Expand_Allocator_Expression): Replace generation of call to the
18410         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18411
18412         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
18413         initialize most the TSD components by means of an aggregate.
18414         Modify the declaration of the object containing the TSD
18415         because we now expand code that has a higher level of abstraction.
18416         The TSD has a discriminant containing the Inheritance Depth Level,
18417         value that is used in the membership test but also to fix the size
18418         of the table of ancestors.
18419         (Expand_Interface_Conversion): Insert function body at the closest place
18420         to the conversion expression, to prevent access-before-elaboration
18421         errors in the backend.
18422         Code improved to reduce the size of the dispatch table if
18423         compiling under restriction No_Dispatching_Calls plus code cleanup.
18424         Code reorganization plus removal of calls to Set_Num_Prim_Ops
18425         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
18426         (Expand_Dispatching_Call): Minor code reorganization plus addition of
18427         code to return immediately if compiling under No_Dispatching_Calls
18428         restriction.
18429         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
18430         CPP_Virtual and CPP_Vtable are no longer supported.
18431         (Expand_Interface_Conversion): Add missing support for interface type
18432         derivations.
18433         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
18434         Is_Parent to support concurrent types with interfaces.
18435         (Init_Predefined_Interface_Primitives): Removed.
18436         (Make_Secondary_DT): Modified to support concurrent record types.
18437         (Set_All_DT_Position): Modified to support concurrent record types.
18438         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18439         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
18440         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
18441         with CW_Membership.
18442         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18443         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
18444         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
18445         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
18446         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
18447         (Expand_Dispatching_Call): Replace generation of call to the run-time
18448         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
18449         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
18450         Address.
18451         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
18452         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
18453         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
18454         Build_Set_Prim_Op_Address.
18455         (Get_Remotely_Callable): Subprogram removed.
18456         (Init_Predefined_Interface_Primitives): Replace generation of call to
18457         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
18458         Prims.
18459
18460         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
18461         First (Parameter_Associations ()) with the call to First_Actual that
18462         returns an actual parameter expression for both named and positional
18463         associations.
18464
18465         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
18466         check violation of restriction No_Dispatching_Calls.
18467         (Check_Controlling_Type): A formal of a tagged incomplete type is a
18468         controlling argument.
18469
18470         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
18471         First/Next_Component_Or_Discriminant
18472         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
18473         (Find_Implemented_Interface): Removed. All the calls to this subprogram
18474         specify Any_Limited_Interface, and this functionality is already
18475         provided by the function Has_Abstract_Interfaces.
18476         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
18477         support concurrent types implementing interfaces.
18478         (Find_Implemented_Interface): Removed. All the calls to this subprogram
18479         specify kind Any_Limited_Interface, and this functionality is already
18480         provided by the function Has_Abstract_Interfaces.
18481         (Remove_Side_Effects): replace Controlled_Type by
18482         CW_Or_Controlled_Type whenever the issue is related to
18483         using or not the secondary stack.
18484
18485         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
18486         P_Interface_Type_Definition to fulfill the new interface (the formal
18487         Is_Synchronized is no longer required).
18488
18489         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
18490         Update dependencies.
18491
18492         * exp_atag.ads, exp_atag.adb: New file
18493
18494 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18495             Bob Duff  <duff@adacore.com>
18496             Cyrille Comar  <comar@adacore.com>
18497
18498         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
18499         anonymous, use finalization list of enclosing dynamic scope.
18500         (Expand_N_Package_Declaration): For a library package declaration
18501         without a corresponding body, generate RACW subprogram bodies in the
18502         spec (just as we do for the task activation call).
18503         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
18504         Is_Abstract_Type. Make sure these are called only when appropriate.
18505         Remove all code for DSP option
18506         (CW_Or_Controlled_Type): new subprogram.
18507
18508 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
18509             Ed Schonberg  <schonberg@adacore.com>
18510             Gary Dismukes  <dismukes@adacore.com>
18511
18512         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
18513         parameter. If it is set to true, return a result capped according to
18514         the global upper bound for the index of an entry family.
18515         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
18516         (Build_Find_Body_Index): Adjust for above change.
18517         (Entry_Index_Expression): Likewise.
18518         (Is_Potentially_Large_Family): New function extracted from...
18519         (Collect_Entry_Families): ...here. Call it to detect whether the family
18520         is potentially large.
18521         (Build_Entry_Count_Expression): If the family is potentially large, call
18522         Family_Size with 'Cap' set to true.
18523         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
18524         a protected version of an operation declared in the private part of
18525         a protected object, because they may be invoked through a callback.
18526         (Set_Privals): If the type of a private component is an anonymous access
18527         type, do not create a new itype for each protected body.
18528         If the body of a protected operation creates
18529         controlled types (including allocators for class-widetypes), the
18530         body of the corresponding protected subprogram must include a
18531         finalization list.
18532         (Build_Activation_Chain_Entity): Build the chain entity for extended
18533         return statements.
18534         (Type_Conformant_Parameters): Use common predicate Conforming_Types
18535         to determine whether operation overrides an inherited primitive.
18536         (Build_Wrapper_Spec): Add code to examine the parents while looking
18537         for a possible overriding candidate.
18538         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
18539         hold an actual parameter value since its initialization is separated
18540         from the the declaration. Prevents errors on null-excluding access
18541         formals.
18542
18543 2007-04-06  Thomas Quinot  <quinot@adacore.com>
18544             Pablo Oliveira  <oliveira@adacore.com>
18545
18546         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
18547         Do an Unchecked_Conversion to handle the passage from the Underlying
18548         Type to the Base Type when calling Build_To_Any_Call and
18549         Build_From_Any_Call.
18550         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
18551         E_Constant, depending upon Variable formal.
18552         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18553         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
18554         parameter that requires an extra constrained parameter, declare
18555         temporary for actual as a variable, not a constant.
18556         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
18557         the unit being compiled is the one that contains the stub type.
18558         Change primitive operation name for the RACW associated with a RAS
18559         from Call to _Call so it cannot clash with any legal identifier.
18560         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
18561         Is_RAS.
18562         (Append_RACW_Bodies): New subprogram.
18563         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
18564         Add_Receiving_Stubs_To_Declarations functions.
18565         When expanding a package body, this list correspond to the
18566         statements in the HSS at the end of the pacakge.
18567         When expanding a package spec, this list correspond to the
18568         spec declarations.
18569         (Add_Receiving_Stubs_To_Declarations): Append the function
18570         registering the receiving stubs at the end of the 'Stmts' list.
18571         (RCI_Package_Locator): Pass the new Version generic formal when
18572         instantiating a RCI_Locator package.
18573         (Build_From_Any_Function): To compute the High bound for an
18574         unconstrained array actual, we add the Low bound with the length.
18575         Thus we must convert the low bound and the length to an appropriate
18576         type before doing the sum.
18577         (Build_Subprogram_Receiving_Stubs, PolyORB):
18578          * Retrieve the extra formals parameters at the
18579            end of the parameter stream.
18580          * Use Move_Any_Value to write back out parameters
18581            after executing the request as it is more efficient
18582            than Copy_Any_Value.
18583          * Build the any containing Extra Formals with the
18584            appropriate typecode.
18585         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
18586         empty Component_List.
18587         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
18588         the tree the declaration for an object that serves as actual parameter
18589         in server-side stubs.
18590         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18591         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
18592         Use Build_Actual_Object_Declaration to prepare the actuals.
18593         (Add_Parameter_To_NVList): Set the parameter mode to In for
18594         Extra Constrained Parameters.
18595         (Build_General_Calling_Stubs): Set the parameter type to boolean for
18596         Extra Constrained parameters.
18597         (Build_To_Any_Function, Build_From_Any_Function,
18598         Built_TypeCode_Function): When Typ is implicit, call the correct
18599         function with the first not implicit parent type.
18600         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
18601         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
18602         typecode from the Etype. Therefore we retrieve the correct typecode
18603         with a call to Get_Any_Type.
18604         (Copy_Specification): Do controlling formal type substitution based on
18605         Is_Controlling_Formal flag, instead of caller-provided object type.
18606         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
18607         a RACW primitive operation, we might get a subprogram declaration for an
18608         ancestor of the RACW designated type (not for the designated type
18609         itself), in the case where this operation is inherited. In this case we
18610         have no easy means of determining the original tagged type for which
18611         the primitive was declared, so instead we now rely on
18612         Copy_Specification to use the Is_Controlling_Formal flag to determine
18613         which formals require type substitution.
18614
18615 2007-04-06  Robert Dewar  <dewar@adacore.com>
18616             Ed Schonberg  <schonberg@adacore.com>
18617
18618         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
18619         GNAT.Current_Exception are not allowed if pragma Restrictions
18620         (No_Exception_Propagation) is set and in any case make the associated
18621         handler unsuitable as a target for a local raise statement.
18622         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
18623         run-time subprogram CW_Membership by call to Build_CW_Membership.
18624         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
18625         by a function call, a temporary must be created before expanding the
18626         Constructor_Call itself, to prevent out-of-order elaboration in the
18627         back-end when stack checking is enabled..
18628
18629 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18630
18631         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
18632         result are the bounds of the left operand, not the right.
18633
18634 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18635
18636         * exp_strm.adb
18637         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
18638          discriminant defaults.
18639         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
18640         (Make_Component_List_Attributes): Ditto.
18641
18642 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18643             Bob Duff  <duff@adacore.com>
18644
18645         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
18646         an association with a box as providing a value even though the
18647         initialization procedure for the type is not available.
18648         (Resolve_Record_Aggregate): Check that a choice of an association with a
18649         box corresponds to a component of the type.
18650         (Resolve_Record_Aggregate): Split Is_Abstract flag into
18651         Is_Abstract_Subprogram and Is_Abstract_Type.
18652
18653         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
18654         assert.
18655
18656         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
18657         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18658         called only when appropriate.
18659
18660 2007-04-06  Olivier Hainque  <hainque@adacore.com>
18661
18662         * g-alleve.ads (Low Level Vector type definitions): Map each to the
18663         associated vector view instead of all to the unsigned char view.
18664
18665         * g-altcon.adb (Generic_Conversions): New internal generic package,
18666         offering facilities for all the Vector/View conversion routines
18667         implemented by this unit.
18668         (To_View/To_Vector - all versions): Reimplemented in a systematic
18669         manner, using the internal Generic_Conversions facilities.
18670
18671 2007-04-06  Pascal Obry  <obry@adacore.com>
18672
18673         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
18674         string.
18675         (Create): Free the source string before storing the new one.
18676
18677 2007-04-06  Vincent Celier  <celier@adacore.com>
18678
18679         * g-debpoo.adb (Validity): New package with a complete new
18680         implementation of subprograms Is_Valid and Set_Valid.
18681         (Is_Valid): Move to local package Validity
18682         (Set_Valid): Move to local package Validity
18683
18684 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
18685             Pablo Oliveira  <oliveira@adacore.com>
18686
18687         * g-expect.adb (Get_Command_Output): When expanding the output buffer
18688         we must ensure that there is enough place for the new data we are going
18689         to copy in.
18690
18691 2007-04-06  Thomas Quinot  <quinot@adacore.com>
18692
18693         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
18694         computation.
18695
18696 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
18697             Vincent Celier  <celier@adacore.com>
18698
18699         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
18700         (Stack_String): Add this String that contains the name of the Stack
18701         package in the project file.
18702         (Packages_To_Check_By_Stack): Add this list that contains the packages
18703         to be checked by gnatstack, which are the naming and the stack packages.
18704         (Check_Files): If no .ci files were specified for gnatstack we add all
18705         the .ci files belonging to the projects, including binder generated
18706         files.
18707         (Non_VMS_Usage): Document that gnatstack accept project file switches.
18708         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
18709         Add gnatstack to the list of commands that use project file related
18710         switches, and get the single attribute Switches from the stack package
18711         in a project file when calling gnatstack. Parse the -U flag for
18712         processing files belonging to all projects in the project tree.
18713         Remove all processing for command Setup
18714
18715         * prj-attr.adb: Add new package Stack with single attribute Switches
18716
18717         * vms_conv.ads (Command_Type): Add command Stack.
18718         Move to body declarations that are only used in the body: types Item_Id,
18719         Translation_Type, Item_Ptr, Item and its subtypes.
18720
18721         * vms_conv.adb: (Initialize): Add data for new command Stack.
18722         Add declarations moved from the spec: types Item_Id, Translation_Type,
18723         Item_Ptr, Item and its subtypes.
18724         (Cargs_Buffer): New table
18725         (Cargs): New Boolean global variable
18726         (Process_Buffer): New procedure to create arguments
18727         (Place): Put character in table Buffer or Cargs_Buffer depending on the
18728          value of Cargs.
18729         (Process_Argument): Set Cargs when processing qualifiers for GNAT
18730         COMPILE
18731         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
18732         empty, for table Cargs_Buffer.
18733         (Initialize): Remove component Setup in Command_List
18734
18735 2007-04-06  Vincent Celier  <celier@adacore.com>
18736
18737         * gprep.adb (Process_Files.Process_One_File): Use full file name when
18738         issuing pragma Source_Reference.
18739
18740 2007-04-06  Emmanuel Briot  <briot@adacore.com>
18741
18742         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
18743         [[:xdigit:]] character class.
18744         Also raise an exception when an invalid character class is used.
18745
18746 2007-04-06  Pascal Obry  <obry@adacore.com>
18747
18748         * i-cstrea.ads: (fopen): Add encoding parameter.
18749         (freopen): Idem.
18750         Change reference from a-sysdep.c to sysdep.c in comment.
18751         Update copyright notice.
18752         This set of patch add support for the encoding form parameter.
18753
18754         * mingw32.h (S2WSU): New macro to convert from a string to a
18755         wide-string using the UTF-8 encoding. The S2WS macro supports now only
18756         standard 8bits encoding.
18757         (WS2SU): As above but converting from wide-sring to string.
18758         This is needed as it is necessary to have access to both versions in the
18759         runtime for the form parameter encoding support.
18760         This set of patch add support for the encoding form parameter.
18761         (S2WS): Improve implementation to handle cases where the filename is not
18762         UTF-8 encoded. In this case we default to using the current code page
18763         for the conversion.
18764
18765         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
18766         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
18767         the constants defined in adaint.h.
18768         (fopen): Add encoding parameter.
18769         (freopen): Idem.
18770
18771         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
18772         encoding. This is needed for the Reset routine (freopen low level-call).
18773
18774         * s-fileio.adb (Open): Decode encoding form parameter and set the
18775         corresponding encoding value into AFCB structure.
18776         (Reset): Pass the encoding value to freopen.
18777         (Close): Move the call to Lock_Task to the beginning of the procedure.
18778
18779 2007-04-06  Geert Bosch  <bosch@adacore.com>
18780             Robert Dewar  <dewar@adacore.com>
18781
18782         * i-fortra.ads: Add Double_Complex type.
18783
18784         * impunit.adb: (Is_Known_Unit): New function
18785         Add Gnat.Byte_Swapping
18786         Add GNAT.SHA1
18787         Add new Ada 2005 units
18788         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
18789         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
18790         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
18791         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
18792
18793         * impunit.ads (Is_Known_Unit): New function
18794
18795         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
18796         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
18797         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
18798         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
18799         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
18800         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
18801         New files.
18802
18803         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
18804
18805         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
18806
18807 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
18808             Arnaud Charlet  <charlet@adacore.com>
18809
18810         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
18811         __gnat_adjust_context_for_raise.
18812         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
18813         implementation of floating point operations as native x86 targets.
18814         So the FPU should be initialized in the same way using finit. Fix
18815         floating point operations accuracy issues.
18816         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
18817         member in struct sigaction, so as to avoid warning for incompatible
18818         pointer types.
18819
18820 2007-04-06 Serguei Rybin  <rybin@adacore.com>
18821
18822         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
18823         switches from previously loaded tree
18824
18825 2007-04-06  Thomas Quinot  <quinot@adacore.com>
18826
18827         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
18828         cases where a given dependency has a body or not.
18829         (Write_With_File_Names): New subprogram, common code for the two cases
18830         above.
18831
18832 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
18833             Javier Miranda  <miranda@adacore.com>
18834
18835         * lib-xref.ads, lib-xref.adb:
18836         Modify the loop that collects type references, to include interface
18837         types that the type implements. List each of these interfaces when
18838         building the entry for the type.
18839         (Generate_Definition): Initialize component Def and Typ of new entry
18840         in table Xrefs, to avoid to have these components unitialized.
18841         (Output_References): Split Is_Abstract flag into
18842         Is_Abstract_Subprogram and Is_Abstract_Type.
18843         (Generate_Reference): Add barrier to do not generate the warning
18844         associated with Ada 2005 entities with entities generated by the
18845         expander.
18846
18847 2007-04-06  Robert Dewar  <dewar@adacore.com>
18848             Arnaud Charlet  <charlet@adacore.com>
18849             Vincent Celier  <celier@adacore.com>
18850
18851         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
18852         Update 'Exception Handling Control' chapter which was outdated.
18853         Minor fix to documentation of -gnatwq
18854         Remove section "Adapting the Run Time to a New C++ Compiler" because
18855         it is now obsolete.
18856         Add passage on need of -nostart-files in some non-ada-main cases.
18857         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
18858         Update documentation about Interfacing with C++
18859         Add documentation for new gnatmake switch -p
18860         Add missing protocol part in URLs.
18861         Document -gnatyA
18862         Document pragma Compile_Time_Error
18863         Add documentation for Object_Size indicating that stand alone
18864         objects can have a larger size in some cases.
18865         Add node for GNAT.Byte_Swapping, GNAT.SHA1
18866         Update reference to the Ravenscar profile.
18867         Document pragma Unreferenced_Objects
18868
18869         * gnat-style.texi: Fix typo
18870
18871 2007-04-06  Vincent Celier  <celier@adacore.com>
18872
18873         * mlib.adb (Building_Library): Only output "building a library..." in
18874         verbose mode
18875
18876         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
18877         files in verbose mode.
18878
18879         * mlib-utl.adb (Ar): Only output the first object files when not in
18880         verbose mode.
18881         (Gcc): Do not display all the object files if not in verbose mode, only
18882         the first one.
18883
18884 2007-04-06  Robert Dewar  <dewar@adacore.com>
18885
18886         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
18887         it no longer destroys the contents of Name_Buffer or Name_Len and
18888         non-standard and invalid names are handled better.
18889         (Get_Decoded_Name_String): Improve performance by using
18890         Name_Has_No_Encodings flag in the name table.
18891         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
18892         Used for debugging printouts.
18893
18894 2007-04-06  Robert Dewar  <dewar@adacore.com>
18895             Javier Miranda  <miranda@adacore.com>
18896             Bob Duff  <duff@adacore.com>
18897
18898         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
18899         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18900         there is no need to generate always a record_definition_node in case
18901         of synchronized interface types.
18902         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
18903         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
18904         illegal in Ada 95, in cases where it is legal. Change the warnings to
18905         errors in other cases. Don't give the error unless the "not null"
18906         parses properly. Correct the source position at which the error occurs.
18907         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
18908         P_Null_Exclusion, to suppress "not null" warnings.
18909         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
18910         associated goto statements.
18911
18912         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
18913         of END RECORD
18914
18915         * scans.ads (Type_Token_Location): New flag
18916
18917         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
18918         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
18919         P_Null_Exclusion, to suppress "not null" warnings.
18920
18921 2007-04-06  Robert Dewar  <dewar@adacore.com>
18922             Javier Miranda  <miranda@adacore.com>
18923             Bob Duff  <duff@adacore.com>
18924             Vincent Celier  <celier@adacore.com>
18925
18926         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
18927         (Extensions_Allowed): No longer sets Ada_Version
18928         Entry for pragma Unreferenced_Objects
18929
18930         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
18931         system.tasking if pragma priority used in a procedure
18932         (Analyze_Pragma, case Warning): Handle dot warning switches
18933         (Process_Compile_Time_Warning_Or_Error): New procedure
18934         (Analyze_Pragma): Add processing for Compile_Time_Error
18935         Add support for extra arguments External_Name and Link_Name.
18936         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
18937         (Process_Import_Or_Interface): Add support for the use of pragma Import
18938         with tagged types.
18939         (Extensions_Allowed): No longer affects Ada_Version
18940         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
18941         Is_Abstract_Type. Make sure these are called only when appropriate.
18942         Add processing for pragma Unreferenced_Objects
18943
18944         * snames.h, snames.ads, snames.adb: Add entry for pragma
18945         Compile_Time_Error
18946         Add new standard name Minimum_Binder_Options for new gprmake
18947         Add new standard names for gprmake: Archive_Suffix,
18948         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
18949         Library_Support, Library_Version_Options,
18950         Shared_Library_Minimum_Options,
18951         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
18952         Change Name_Call to Name_uCall so that it cannot clash with a legal
18953         subprogram name.
18954         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
18955         Append C_Plus_Plus to convention identifiers as synonym for CPP
18956         Add new standard names Stack and Builder_Switches
18957         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
18958         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
18959         Run_Path_Option, Toolchain_Version.
18960         Entry for pragma Unreferenced_Objects
18961
18962         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
18963         switches, without repetition of "eD". Make sure that last character of
18964         -gnatep= switch is not taken as -gnat switch character.
18965         Complete rewrite of circuit for handling saving compilation options
18966         Occasioned by need to support dot switchs for -gnatw, but cleans up
18967         things in general.
18968         -gnatX does not affect Ada_Version
18969         Include -gnatyA in -gnatg style switches
18970
18971         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
18972         warnings on return objects.
18973         (Warn_On_Useless_Assignment): Exclude warnings on return objects
18974         (Set_Dot_Warning_Switch): New procedure
18975         (Check_References): Add missing case of test for
18976         Has_Pragma_Unreferenced_Objects
18977         (Output_Unreferenced_Messages): Implement effect of new pragma
18978         Unreferenced_Objects, remove special casing of limited controlled
18979         variables.
18980
18981 2007-04-06  Vincent Celier  <celier@adacore.com>
18982
18983         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
18984         the default project path, initially done during elaboration of the
18985         package.
18986         If the prefix returned by Sdefault is null, get the prefix from a call
18987         to Executable_Prefix_Path.
18988         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
18989         null.
18990
18991         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
18992         canonical directory name to open the directory from which files are
18993         retrieved.
18994         (Record_Other_Sources): Idem.
18995         (Locate_Directory): Add the possibility to create automatically missing
18996         directories when Setup_Projects is True.
18997         Call Locate_Directory so that the directory will be created when
18998         Setup_Projects is True, for object dir, library dir, library ALI dir,
18999         library source copy dir and exec dir.
19000
19001         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
19002         versions of GNAT.
19003
19004 2007-04-06  Robert Dewar  <dewar@adacore.com>
19005
19006         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
19007         Use First/Next_Component_Or_Discriminant
19008         (Analyze_Record_Representation_Clause):
19009         Use First/Next_Component_Or_Discriminant
19010         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
19011         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
19012         definition if type is unconstrained.
19013         (Adjust_Record_For_Reverse_Bit_Order): New procedure
19014         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
19015         Is_Abstract_Subprogram and Is_Abstract_Type.
19016         (Adjust_Record_For_Reverse_Bit_Order): New procedure
19017
19018         * repinfo.adb (List_Record_Info): Use First/
19019         Next_Component_Or_Discriminant.
19020
19021         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
19022         New procedure.
19023
19024         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
19025         Include -gnatyA in default switches
19026
19027         * opt.ads: (Warn_On_Non_Local_Exception): New flag
19028         (Warn_On_Reverse_Bit_Order): New flag
19029         (Extensions_Allowed): Update the documentation.
19030         (Warn_On_Questionable_Missing_Parens): Now on by default
19031
19032         * usage.adb: Add documentation of -gnatw.x/X switches
19033         Document new -gnatyA style switch
19034         -gnatq warnings are on by default
19035
19036 2007-04-06  Ed Falis  <falis@adacore.com>
19037
19038         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
19039         full word is no longer compared twice.
19040
19041 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19042
19043         * sem_ch10.adb (Install_Limited_Context_Clauses.
19044         Expand_Limited_With_Clause): Use a new copy of selector name in the
19045         call to Make_With_Clause. This fixes the tree structure for ASIS
19046         purposes. Nothing is changed in the compiler behaviour.
19047         (Process_Body_Clauses): Handle properly use clauses whose prefix is
19048         a package renaming.
19049         (Install_Limited_With_Clauses): Do not install non-limited view when it
19050         is still incomplete.
19051
19052 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19053             Gary Dismukes  <dismukes@adacore.com>
19054
19055         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
19056         when capturing size information, instead of base type, which for a
19057         formal array type will be the unconstrained type.
19058         (Analyze_Formal_Object_Declaration): Add check for illegal default
19059         expressions for a formal in object of a limited type.
19060         (Instantiate_Object): Ditto.
19061         (Check_Formal_Package_Instance): Skip entities that are formal objects,
19062         because they were defaulted in the formal package and no check applies
19063         to them.
19064         (Check_Formal_Package_Instance): Extend conformance check to other
19065         discrete types beyond Integer.
19066         (Process_Default): Copy directly the unmatched formal. A generic copy
19067         has already been performed in Analyze_Formal_Package.
19068         (Analyze_Associations): If a formal subprogram has no match, check for
19069         partial parametrization before looking for a default, to prevent
19070         spurious errors.
19071         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
19072         not set the instantiation environment before analyzing the actuals.
19073         Fixes regression on 8515-003 with implementation of AI-133.
19074         Set_Instance_Env checks whether the generic unit is a predefined
19075         unit, in which case the instance must be analyzed with the latest Ada
19076         mode. This setting must take place after analysis of the actuals,
19077         because the actuals must be analyzed and frozen in the Ada mode extant
19078         outside of the current instantiation.
19079         (Save_Env, Restore_Env): Preserve and restore the configuration
19080         parameters so that predefined units can be compiled in the proper Ada
19081         mode.
19082         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
19083         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
19084         and Is_Abstract_Type.
19085         (Analyze_Formal_Package): For better error recovery, Add exception
19086         handler to catch Instantion_Error, which can be raised in
19087         Analyze_Associations
19088
19089 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19090             Bob Duff  <duff@adacore.com>
19091             Gary Dismukes  <dismukes@adacore.com>
19092
19093         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
19094         prefix type is a discriminated subtype of the type of the formal.
19095         (Analyze_Allocator): Collect all coextensions regardless of the context.
19096         Whether they can be allocated statically is determined in exp_ch4.
19097         (Analyze_Selected_Component): If the prefix is a limited view and the
19098         non-limited view is available, use the non-limited one.
19099         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
19100         therefore illegal), suggest a qualified expression rather than a type
19101         conversion, because a type conversion would be illegal in this context.
19102         (Anayze_Allocator): Trace recursively all nested allocators so that all
19103         coextensions are on the corresponding list for the root. Do no mark
19104         coextensions if the root allocator is within a declaration for a stack-
19105         allocated object, because the access discriminants will be allocated on
19106         the stack as well.
19107         (Analyze_Call): Remove restriction on calls to limited functions for the
19108         cases of generic actuals for formal objects, defaults for formal objects
19109         and defaults for record components.
19110         (Analyze_Allocator): Before analysis, chain coextensions on the proper
19111         element list. Their expansion is delayed until the enclosing allocator
19112         is processed and its finalization list constructed.
19113         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
19114         for an operation with the given name among the primitive operations of
19115         the corresponding record type.
19116         (Analyze_Selected_Component): If the prefix is a task type that
19117         implements an interface, and there is no entry with the given name,
19118         check whether there is another primitive operation (e.g. a function)
19119         with that name.
19120         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
19121         properly the indexing of a function call written in prefix form, where
19122         the function returns an array type, and all parameters of the function
19123         except the first have defaults.
19124         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
19125         the original operands, rather than relocating them, for efficiency and
19126         to work properly when an operand is overloaded.
19127         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
19128         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
19129         (Analyze_Selected_Component): If the prefix is a private extension, only
19130         scan the visible components, not those of the full view.
19131         (Try_Primitive_Operation): If the operation is a procedure, collect all
19132         possible interpretations, as for a function, because in the presence of
19133         classwide parameters several primitive operations of the type can match
19134         the given arguments.
19135
19136 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19137             Robert Dewar  <dewar@adacore.com>
19138
19139         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
19140         tag-indeterminate call to an abstract function, when the left-hand side
19141         is not classwide.
19142         (Analyze_Loop_Statement): Improve detection of infinite loops
19143
19144 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19145             Thomas Quinot  <quinot@adacore.com>
19146
19147         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
19148         out of Analyze_Package_Declaration, because processing must be applied
19149         to package bodies as well, for deferred constants completed by pragmas.
19150         (Analyze_Package_Declaration): When the package declaration being
19151         analyzed does not require an explicit body, call Check_Completion.
19152         (May_Need_Implicit_Body): An implicit body is required when a package
19153         spec contains the declaration of a remote access-to-classwide type.
19154         (Analyze_Package_Body): If the package contains RACWs, append the
19155         pending subprogram bodies generated by exp_dist at the end of the body.
19156         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
19157         Is_Abstract_Subprogram and Is_Abstract_Type.
19158         (Preserve_Full_Attributes): The full entity list is not an attribute
19159         that must be preserved from full to partial view.
19160
19161         * sem_dist.adb (Add_RAS_Dereference_TSS):
19162         Change primitive name to _Call so it cannot clash with any legal
19163         identifier, and be special-cased in Check_Completion.
19164         Mark the full view of the designated type for the RACW associated with
19165         a RAS as Comes_From_Source to get proper view switching when installing
19166         private declarations.
19167         Provite a placeholder nested package body along with the nested spec
19168         to have a place for Append_RACW_Bodies to generate the calling stubs
19169         and stream attributes.
19170
19171 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19172             Robert Dewar  <dewar@adacore.com>
19173
19174         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
19175         that is a limited view, check the non-limited view if available.
19176         (Undefined): Refine error message for missing with of Text_IO
19177         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
19178         to distinguish real missing with cases.
19179         Fix format of all missing with messages
19180         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
19181         renaming as body when renamed entity is abstract.
19182
19183 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19184             Javier Miranda  <miranda@adacore.com>
19185
19186         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
19187         predicate recursive, to handle complex expressions on literals whose
19188         spurious ambiguity comes from the abstract interpretation of some
19189         subexpression.
19190         (Interface_Present_In_Ancestor): Add support to concurrent record
19191         types.
19192         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
19193         Is_Abstract_Subprogram and Is_Abstract_Type.
19194
19195 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19196             Javier Miranda  <miranda@adacore.com>
19197
19198         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
19199         dereference of a local object R created as a reference to another
19200         object O, use the access level of O.
19201         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
19202         rather than local Same_Formal_Type, to check whether protected operation
19203         overrides an inherited one.
19204         (Same_Formal_Type): New predicate, used when matching signatures of
19205         overriding synchronized operations, to handle the case when a formal
19206         has a type that is a generic actual.
19207         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
19208         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
19209         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
19210         syntactic ambiguities involving indexing of function calls that return
19211         arrays.
19212         (Abstract_Interface_List): New subprogram that returns the list of
19213         abstract interfaces associated with a concurrent type or a
19214         concurrent record type.
19215         (Interface_Present_In_Parent): New subprogram used to check if a
19216         given type or some of its parents implement a given interface.
19217         (Collect_Abstract_Interfaces): Add support for concurrent types
19218         with interface types.
19219         (Has_Abstract_Interfaces): Add support for concurrent types with
19220         interface types.
19221         (Is_Parent): New subprogram that determines whether E1 is a parent
19222         of E2. For a concurrent type its parent is the first element of its
19223         list of interface types; for other types this function provides the
19224         same result than Is_Ancestor.
19225         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
19226         (Collect_Synchronized_Interfaces): Removed because the subprogram
19227         Collect_Abstract_Interfaces provides this functionality.
19228         (Collect_Abstract_Interfaces): Minor update to give support to
19229         concurrent types and thus avoid undesired code duplication.
19230         (Get_Subprogram_Entity): Handle entry calls.
19231         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
19232         entry calls.
19233         (Enter_Name): Do not give -gnatwh hiding warning for record component
19234         entities, they never result in hiding.
19235
19236 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
19237             Robert Dewar  <dewar@adacore.com>
19238
19239         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
19240         to chain nested components that are allocators for access discriminants
19241         of the enclosing object.
19242         Add N_Push and N_Pop nodes
19243         New field Exception_Label added
19244         (Local_Raise_Statements): New field in N_Exception_Handler_Node
19245         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
19246         (Is_Coextension): New flag for allocators, to mark allocators that
19247         correspond to access discriminants of dynamically allocated objects.
19248         (N_Block_Statement): Document the fact that the corresponding entity
19249         can be an E_Return_Statement.
19250         (Is_Coextension): New flag for allocators.
19251         Remove all code for DSP option
19252
19253         * sprint.ads, sprint.adb: Display basic information for class_wide
19254         subtypes. Add handling of N_Push and N_Pop nodes
19255
19256 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
19257
19258         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
19259         before propagating exception.
19260
19261 2007-04-06  Olivier Hainque  <hainque@adacore.com>
19262
19263         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
19264         an address always within the call instruction from a return address.
19265
19266 2007-04-06  Olivier Hainque  <hainque@adacore.com>
19267             Eric Botcazou  <botcazou@adacore.com>
19268
19269         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
19270         expression with a COMPOUND_EXPR including the call instead of emitting
19271         the call directly here.
19272         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
19273         high bound is constant and the slice is empty.  Tidy.
19274         (tree_transform, case N_Op_Not): Handle properly the case where the
19275         operation applies to a private type whose full view is a modular type.
19276         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
19277         Address_Clause, use the associated Expression as the GNAT tree
19278         representing the choice value to ensure the corresponding GCC tree is
19279         of the proper kind.
19280         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
19281         instead of just the operands, as the base GCC stabilize_reference does.
19282         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
19283         requested; otherwise fail.
19284         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
19285
19286 2007-04-06  Thomas Quinot  <quinot@adacore.com>
19287
19288         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
19289         implementation of UI_Div.
19290         (UI_Div): Reimplement as a call to UI_Div_Rem.
19291         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
19292         remainder, avoiding the cost of a multiplication and a subtraction.
19293         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
19294         provides both quotient and remainder in a single computation.
19295         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
19296         functions for uint.
19297         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
19298         is undefined if the given n is not inversible.
19299
19300 2007-04-06  Olivier Hainque  <hainque@adacore.com>
19301
19302         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
19303         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
19304         opcodes.
19305
19306 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
19307             Olivier Hainque  <hainque@adacore.com>
19308
19309         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
19310         when updating the contents of the old pointer to an unconstrained array.
19311         (end_subprog_body): Set error_gnat_node to Empty.
19312         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
19313         (unchecked_convert): For subtype to base type conversions, require that
19314         the source be a subtype if it is an integer type.
19315         (builtin_decls): New global, vector of available builtin functions.
19316         (gnat_pushdecl): Add global builtin function declaration nodes to the
19317         builtin_decls list.
19318         (gnat_install_builtins): Adjust comments.
19319         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
19320         calling gnat_pushdecl, so that it knows when it handed a builtin
19321         function declaration node.
19322         (builtin_decl_for): Search the builtin_decls list.
19323
19324 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
19325
19326         * s-stchop-vxworks.adb:
19327         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
19328
19329 2007-04-06  Robert Dewar  <dewar@adacore.com>
19330             Arnaud Charlet  <charlet@adacore.com>
19331
19332         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
19333
19334         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
19335         of files
19336         Add mention of -Sev (set initialize_scalars option from environment
19337         variable at run time) in gnatbind usage message.
19338
19339         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
19340
19341         * fname-uf.ads: Minor comment fix
19342
19343         * osint.ads: Change pragma Elaborate to Elaborate_All
19344
19345         * par-load.adb: Add documentation.
19346
19347         * sem_cat.ads, sem_cat.adb: Minor code reorganization
19348
19349         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
19350
19351         * s-secsta.ads: Extra comments
19352
19353         * s-soflin.ads: Minor comment fixes
19354
19355         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
19356
19357         * s-wchcon.ads: Minor comment addition
19358
19359         * treepr.adb: Minor change in message
19360         (Print_Name,Print_Node): Make these debug printouts more robust: print
19361         "no such..." instead of crashing on bad input.
19362
19363 2007-03-30  Rafael Ávila de Espíndola  <espindola@google.com>
19364
19365         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
19366         instead of gnat_signed_or_unsigned_type.
19367         * utils.c (gnat_signed_or_unsigned_type): Remove.
19368         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
19369         * gigi.h (gnat_signed_or_unsigned_type): Remove
19370
19371 2007-03-09  Roger Sayle  <roger@eyesopen.com>
19372
19373         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
19374         fold with the result of buildN.
19375         * decl.c (gnat_to_gnu_entity): Likewise.
19376         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
19377         * utils.c (finish_record_type, merge_sizes, max_size, convert):
19378         Likewise.
19379         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
19380         nonbinary_modular_operation, build_binary_op, build_unary_op,
19381         build_cond_expr): Likewise.
19382
19383         * utils.c (convert): Use fold_build1 when casting values to void.
19384         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
19385         fold_convert instead of convert when appropriate.
19386
19387 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19388
19389         * Make-lang.in: Add install-pdf target as copied from
19390         automake v1.10 rules.
19391
19392 2007-02-28  Andreas Schwab  <schwab@suse.de>
19393
19394         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
19395         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
19396         (doc/gnat-style.info): Likewise.
19397
19398 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
19399
19400         * gnat-style.texi: Standardize title page.
19401         * gnat_rm.texi: Likewise.
19402         * gnat_ugn.texi: Likewise.
19403
19404 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
19405
19406         * decl.c (annotate_value): Adjust for refactoring of tree_map
19407         hierarchy.
19408
19409 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
19410
19411         * decl.c (annotate_value): Adjust for refactoring of tree_map
19412         hierarchy.
19413
19414 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
19415
19416         PR ada/18819
19417         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
19418         untagged derived type, add hidden components to keep discriminant
19419         layout consistent, when a given discriminant of the derived type
19420         constraints several discriminants of the parent type.
19421
19422 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
19423             Sandra Loosemore  <sandra@codesourcery.com>
19424
19425         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
19426         build the call expression.
19427         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
19428         * utils.c (max_size) <tcc_exceptional>: Delete.
19429         <tcc_vl_exp>: New case.
19430         <tcc_expression>: Delete CALL_EXPR subcase.
19431         (build_global_cdtor): Use build_call_nary instead of build3.
19432         * utils2.c (build_call_1_expr): Likewise.
19433         (build_call_2_expr): Likewise.
19434         (build_call_0_expr): Likewise.
19435         (build_call_alloc_dealloc): Likewise.
19436
19437 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
19438
19439         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
19440         get_action_description_for): Replace _Unwind_Word with _uleb128_t
19441         and _Unwind_SWord with _sleb128_t.
19442
19443 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
19444
19445         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
19446         * decl.c: Include gt-ada-decl.h.
19447         (annotate_value_cache): New.
19448         (annotate_value): Use it instead of TREE_COMPLEXITY.
19449
19450 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
19451
19452         * misc.c, utils2.c: Fix comment typos.
19453
19454 2007-01-24  Roger Sayle  <roger@eyesopen.com>
19455
19456         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
19457         TREE_CONSTANT_OVERFLOW.
19458         (allocatable_size_p, annotate_value): Likewise.
19459         * trans.c (gnat_to_gnu): Likewise.
19460         * utils.c (unchecked_convert): Likewise.
19461         * utils2.c (build_simple_component_ref): Likewise.
19462
19463 2007-01-23  Richard Guenther  <rguenther@suse.de>
19464
19465         PR bootstrap/30541
19466         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
19467         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
19468         (gnatboot3): Likewise.
19469         (GNATBIND): Do not define.
19470         * Makefile.in (GNATBIND): Do not define.
19471
19472 2007-01-08  Richard Guenther  <rguenther@suse.de>
19473
19474         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
19475         * trans.c (gnat_to_gnu): Likewise.
19476
19477 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
19478
19479         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
19480         * adaint.c: Likewise.
19481
19482 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
19483
19484         Merge from gimple-tuples-branch:
19485         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
19486
19487         * ada-tree.h (lang_tree_node): Handle gimple tuples.
19488         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
19489         GIMPLE_MODIFY_STMT.
19490
19491 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
19492
19493         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
19494         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
19495         Fix typos.
19496
19497 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
19498
19499         PR ada/27936
19500         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
19501         if the initializer takes into account the padding.
19502
19503 2006-11-11  Richard Guenther  <rguenther@suse.de>
19504
19505         * trans.c (maybe_stabilize_reference): Remove handling of
19506         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
19507
19508 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
19509
19510         PR ada/29707
19511         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
19512         (To_Target_Priority): New function.
19513
19514 2006-10-31  Robert Dewar  <dewar@adacore.com>
19515
19516         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
19517         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
19518         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
19519         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
19520         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
19521         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
19522         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
19523         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
19524         a-szbzha.adb: Minor reformatting. Fix header.
19525
19526         * a-numaux-x86.adb: Add parentheses for use of unary minus
19527         * a-ngcefu.adb: Supply missing parentheses for unary minus
19528         * a-ngcoty.adb: Add parens for use of unary minus
19529         * a-ngelfu.adb: Add missing parens for unary minus
19530         * a-tifiio.adb: Add parentheses for uses of unary minus
19531
19532 2006-10-31  Robert Dewar  <dewar@adacore.com>
19533             Bob Duff  <duff@adacore.com>
19534             Ed Schonberg  <schonberg@adacore.com>
19535
19536         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
19537         with multiplying operator.
19538         (Expected_Type_Is_Any_Real): New function to determine from the Parent
19539         pointer whether the context expects "any real type".
19540         (Resolve_Arithmetic_Op): Do not give an error on calls to the
19541         universal_fixed "*" and "/" operators when they are used in a context
19542         that expects any real type. Also set the type of the node to
19543         Universal_Real in this case, because downstream processing requires it
19544         (mainly static expression evaluation).
19545         Reword some continuation messages
19546         Add some \\ sequences to continuation messages
19547         (Resolve_Call): Refine infinite recursion case. The test has been
19548         sharpened to eliminate some false positives.
19549         Check for Current_Task usage now includes entry barrier, and is now a
19550         warning, not an error.
19551         (Resolve): If the call is ambiguous, indicate whether an interpretation
19552         is an inherited operation.
19553         (Check_Aggr): When resolving aggregates, skip associations with a box,
19554         which are priori correct, and will be replaced by an actual default
19555         expression in the course of expansion.
19556         (Resolve_Type_Conversion): Add missing support for conversion from
19557         a class-wide interface to a tagged type. Minor code cleanup.
19558         (Valid_Tagged_Converion): Add support for abstact interface type
19559         conversions.
19560         (Resolve_Selected_Component): Call Generate_Reference here rather than
19561         during analysis, and use May_Be_Lvalue to distinguish read/write.
19562         (Valid_Array_Conversion): New procedure, abstracted from
19563         Valid_Conversion, to incorporate accessibility checks for arrays of
19564         anonymous access types.
19565         (Valid_Conversion): For a conversion to a numeric type occurring in an
19566         instance or inlined body, no need to check that the operand type is
19567         numeric, since this has been checked during analysis of the template.
19568         Remove legacy test for scope name Unchecked_Conversion.
19569
19570         * sem_res.ads: Minor reformatting
19571
19572         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
19573         (PE_Current_Task_In_Entry_Body): New exception code
19574         (SE_Restriction_Violation): Removed, not used
19575
19576         * a-except.ads:  Update comments.
19577
19578         * types.h, types.ads: Add definition for Validity_Check
19579         (PE_Current_Task_In_Entry_Body): New exception code
19580         (SE_Restriction_Violation): Removed, not used
19581
19582 2006-10-31  Thomas Quinot  <quinot@adacore.com>
19583
19584         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
19585         error status.
19586
19587 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
19588             Jose Ruiz  <ruiz@adacore.com>
19589
19590         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
19591         part of Ada.Calendar: all subprogram raise Unimplemented.
19592         (Split_W_Offset): Temp function body, raising Unimplemented
19593
19594         * a-calend.ads, a-calend-vms.ads:
19595         Add imported variable Invalid_TZ_Offset used to designate targets unable
19596         to support time zones.
19597         (Unimplemented): Temporary function raised by the body of new
19598         subprograms below.
19599         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
19600         unit provides handling of leap seconds and is used by the new Ada 2005
19601         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
19602         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
19603         version returns an extra value which is the offset to UTC.
19604
19605         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
19606         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
19607         (Split_W_Offset): New function body.
19608         (Time_Of): When a date is close to UNIX epoch, compute the time for
19609         that date plus one day (that amount is later substracted after
19610         executing mktime) so there are no problems with time zone adjustments.
19611
19612         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
19613
19614         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
19615         a-catizo.ads, a-catizo.adb: New files.
19616
19617         * impunit.adb: Add new Ada 2005 entries
19618
19619         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
19620         Rename all occurences of "__gnat_localtime_r" to
19621         "__gnat_localtime_tzoff".
19622         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
19623         zone data and calculate the GMT offset.
19624         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
19625         Use the field "tm_gmtoff" to extract the GMT offset.
19626         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
19627         the external variable "timezone" to calculate the GMT offset.
19628
19629 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
19630             Jose Ruiz  <ruiz@adacore.com>
19631
19632         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
19633         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
19634         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
19635         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
19636         System.Any_Priority to a POSIX priority on the target.
19637
19638         * system-linux-ia64.ads:
19639         Extend range of Priority types on Linux to use the whole range made
19640         available by the system.
19641
19642         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
19643         function maps from System.Any_Priority to a POSIX priority on the
19644         target.
19645         (PTHREAD_PRIO_PROTECT): Set real value.
19646         (PTHREAD_PRIO_INHERIT): Now a function.
19647         (SIGCPUFAIL): New signal.
19648         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
19649         are documented as reserved by the OS.
19650
19651         * system-aix.ads: Use the full range of priorities provided by the
19652         system on AIX.
19653
19654         * s-taprop-posix.adb: Call new function To_Target_Priority.
19655         (Set_Priority): Take into account Task_Dispatching_Policy and
19656         Priority_Specific_Dispatching pragmas when determining if Round Robin
19657         must be used for scheduling the task.
19658
19659         * system-linux-x86_64.ads, system-linux-x86.ads,
19660         system-linux-ppc.ads: Extend range of Priority types on Linux to use
19661         the whole range made available by the system.
19662
19663         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
19664         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
19665         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
19666         when deallocating the TCB in order to avoid potential references to
19667         deallocated data.
19668         (Set_Priority): Take into account Task_Dispatching_Policy and
19669         Priority_Specific_Dispatching pragmas when determining if Round Robin
19670         or FIFO within priorities must be used for scheduling the task.
19671
19672         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
19673         the Thread field (to be used internally by the run-time system) and the
19674         kernel-level task id in the LWP field (to be used by the debugger).
19675         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
19676         instance, and propagate the current task options to the spawned task.
19677         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
19678         (Initialize): Set Round Robin dispatching when the corresponding pragma
19679         is in effect.
19680
19681 2006-10-31  Robert Dewar  <dewar@adacore.com>
19682
19683         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19684         system-linux-hppa.ads, system-hpux-ia64.ads,
19685         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
19686         system-vxworks-sparcv9.ads, system-solaris-x86.ads,
19687         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
19688         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
19689         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
19690         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
19691         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
19692         Default_Bit_Order) to kill constant condition warnings for references
19693         to this switch.
19694
19695 2006-10-31  Vincent Celier  <celier@adacore.com>
19696             Eric Botcazou  <ebotcazou@adacore.com>
19697
19698         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
19699         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
19700         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
19701         Ext_To, when building the library file name
19702
19703         * mlib-tgt-vxworks.adb: ditto.
19704         (Get_Target_Suffix): Add support for x86 targets.
19705
19706         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
19707
19708         * mlib-tgt-darwin.adb:
19709         Use Append_To, instead of Ext_To, when building the library file name
19710         (Flat_Namespace): New global variable.
19711         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
19712         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
19713         (Link_Shared_Libgcc): Delete.
19714         (Build_Dynamic_Library): Adjust for above changes.
19715         Use Opt package.
19716         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
19717
19718 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
19719
19720         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
19721         (Initialize): Add type conversions required by above change.
19722
19723 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
19724
19725         * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
19726         (getpid): New body for this function that uses the underlying taskIdSelf
19727         function for VxWorks 5 and VxWorks 6 in kernel mode.
19728         (unsigned_int): New type, modular to allow logical bit operations.
19729         (taskOptionsGet): New imported function.
19730
19731         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
19732         field to be compliant with the type used by the corresponding operating
19733         system primitive.
19734
19735 2006-10-31  Pascal Obry  <obry@adacore.com>
19736             Eric Botcazou  <ebotcazou@adacore.com>
19737             Vincent Celier  <celier@adacore.com>
19738
19739         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
19740         ASCII version of the registry API. This is needed as the GNAT runtime
19741         is now UNICODE by default.
19742         Include version.h.
19743         (get_gcc_version): Do not hardcode the return value.
19744         (__gnat_file_time_name): On Windows properly set the default returned
19745         value to -1 which corresponds to Invalid_Time.
19746         (__gnat_fopen): New routine. A simple wrapper on all plateforms
19747          except on Windows where it does conversion for unicode support.
19748         (__gnat_freopen): Idem.
19749         (__gnat_locate_exec_on_path): If environment variable PATH does not
19750         exist, return a NULL pointer
19751
19752         * adaint.h: (__gnat_fopen): Declare.
19753         (__gnat_freopen): Likewise.
19754
19755         * mingw32.h (_tfreopen): Define this macro here for older MingW
19756         version.
19757         Activate the unicode support on platforms using a MingW runtime
19758         version 3.9 or newer.
19759
19760         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
19761         This is needed for proper unicode support on Windows.
19762         (freopen): Idem.
19763
19764 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
19765             Nicolas Setton  <setton@adacore.com>
19766             Olivier Hainque  <hainque@adacore.com>
19767             Gary Dismukes  <dismukes@adacore.com>
19768
19769         * gigi.h: (tree_code_for_record_type): Declare.
19770         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
19771         (get_global_renaming_pointers): Rename to
19772         invalidate_global_renaming_pointers.
19773         (static_ctors): Delete.
19774         (static_dtors): Likewise.
19775         (gnat_write_global_declarations): Declare.
19776         (create_var_decl): Adjust descriptive comment to indicate that the
19777         subprogram may return a CONST_DECL node.
19778         (create_true_var_decl): Declare new function, similar to
19779         create_var_decl but forcing the creation of a VAR_DECL node.
19780         (get_global_renaming_pointers): Declare.
19781         (add_global_renaming_pointer): Likewise.
19782
19783         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
19784
19785         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
19786         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
19787         processing.
19788         (gnat_to_gnu_entity): Remove From_With_Type from computation for
19789         imported_p.
19790         <E_Access_Type>: Use the Non_Limited_View as the full view of the
19791         designated type if the pointer comes from a limited_with clause.  Make
19792         incomplete designated type if it is in the main unit and has a freeze
19793         node.
19794         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
19795         Underlying_Full_View similarly.  Return earlier if the full view already
19796         has an associated tree.
19797         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
19798         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
19799         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
19800         reference type built for objects with an address clause.
19801         Use create_true_var_decl with const_flag set for
19802         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
19803         TREE_READONLY set.
19804         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
19805         for Character and Wide_Character types. This info is read by the
19806         dwarf-2 writer, and is needed to be able to use the command "ptype
19807         character" in the debugger.
19808         (gnat_to_gnu_entity): When generating a type representing
19809         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
19810         so that debug writers can distinguish it from ordinary integers.
19811         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
19812         addition to TREE_READONLY to assert the constantness of variables for
19813         elaboration purposes.
19814         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
19815         parameters to call new Einfo function First_Formal_With_Extras.
19816         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
19817         protected type with its corresponding discriminant, to obtain a usable
19818         declaration
19819         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
19820         for a multiple elaboration of the "equivalent" type.
19821         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
19822         into record_global_renaming_pointer.
19823         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
19824         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
19825         <E_Array_Subtype>: Likewise.
19826         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
19827         incomplete subtypes and incomplete subtypes of incomplete types visible
19828         through a limited with clause.
19829         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
19830         the base index type for the maximum size of the array only if they are
19831         constant.
19832         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
19833         expression into a SAVE_EXPR if stabilization failed.
19834
19835         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
19836         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
19837         by lower level compilation passes.
19838         (gnat_genericize): New function, lowering a function body to GENERIC.
19839         Turn the type of RESULT_DECL into a real reference type if the decl
19840         has been marked DECL_BY_REFERENCE, and adjust references to the latter
19841         accordingly.
19842         (gnat_genericize_r): New function. Tree walking callback for
19843         gnat_genericize.
19844         (convert_from_reference, is_byref_result): New functions. Helpers for
19845         gnat_genericize_r.
19846         (create_type_decl): Call gnat_pushdecl before calling
19847         rest_of_decl_compilation, to make sure that field TYPE_NAME of
19848         type_decl is properly set before calling the debug information writers.
19849         (write_record_type_debug_info): The heuristics which compute the
19850         alignment of a field in a variant record might not be accurate. Add a
19851         safety test to make sure no alignment is set to a smaller value than
19852         the alignment of the field type.
19853         (make_dummy_type): Use the Non_Limited_View as the underlying type if
19854         the type comes from a limited_with clause. Do not loop on the full view.
19855         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
19856         (dummy_node_table): New global variable, moved from decl.c.
19857         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
19858         (save_gnu_tree): Use above macros.
19859         (get_gnu_tree): Likewise.
19860         (present_gnu_tree): Likewise.
19861         (init_dummy_type): New function, moved from decl.c. Use above macros.
19862         (make_dummy_type): Likewise.
19863         (tree_code_for_record_type): New function extracted from make_dummy_type
19864         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
19865         (static_ctors): Change it to a vector, make static.
19866         (static_dtors): Likewise.
19867         (end_subprog_body): Adjust for above change.
19868         (build_global_cdtor): Moved from trans.c.
19869         (gnat_write_global_declarations): Emit global constructor and
19870         destructor, and call cgraph_optimize before emitting debug info for
19871         global declarations.
19872         (global_decls): New global variable.
19873         (gnat_pushdecl): Store the global declarations in global_decls, for
19874         later use.
19875         (gnat_write_global_declarations): Emit debug information for global
19876          declarations.
19877         (create_var_decl_1): Former create_var_decl, with an extra argument to
19878          state whether the creation of a CONST_DECL is allowed.
19879         (create_var_decl): Behavior unchanged. Now a wrapper around
19880         create_var_decl_1 allowing CONST_DECL creation.
19881         (create_true_var_decl): New function, similar to create_var_decl but
19882         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
19883         (create_field_decl): Do not always mark the field as addressable
19884         if its type is an aggregate.
19885         (global_renaming_pointers): New static variable.
19886         (add_global_renaming_pointer): New function.
19887         (get_global_renaming_pointers): Likewise.
19888
19889         * misc.c (gnat_dwarf_name): New function.
19890         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
19891         (gnat_post_options): Add comment about structural alias analysis.
19892         (gnat_parse_file): Do not call cgraph_optimize here.
19893         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
19894
19895         * trans.c (process_freeze_entity): Don't abort if we already have a
19896         non dummy GCC tree for a Concurrent_Record_Type, as it might
19897         legitimately have been elaborated while processing the associated
19898         Concurrent_Type prior to this explicit freeze node.
19899         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
19900         exception handler volatile if it is of variable size.
19901         (process_type): Remove bypass for types coming from a limited_with
19902         clause.
19903         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
19904         actual, convert the corresponding gnu_actual to the real destination
19905         type when necessary.
19906         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
19907         originally TREE_READONLY but whose elaboration cannot be performed
19908         statically.
19909         Part of fix for F504-021.
19910         (tree_transform, subprogram cases): Change loops on formal parameters to
19911         call new Einfo function First_Formal_With_Extras.
19912         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
19913         stemming from type conversion for the lhs.
19914         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
19915         number of bits per unit for components of records.
19916         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
19917         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
19918         with At_End_Proc after the SJLJ EH cleanup.
19919         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
19920         compilation unit.
19921         (elaborate_all_entities): Do not retest type_annotate_only.
19922         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
19923         result type of an abstract subprogram, which may be an itype associated
19924         with an anonymous access result (related to AI-318-02).
19925         (build_global_cdtor): Move to utils.c.
19926         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
19927         this choice is not a null tree nor an integer constant.
19928         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
19929         on the body of elaboration routines instead of mark_unvisited.
19930         (add_stmt): Do not mark the tree.
19931         (add_decl_expr): Tweak comment.
19932         (mark_unvisited): Delete.
19933         (unshare_save_expr): New static function.
19934         (call_to_gnu): Issue an error when making a temporary around a
19935         procedure call because of non-addressable actual parameter if the
19936         type of the formal is by_reference.
19937         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
19938         after building the elaboration routine.
19939
19940 2006-10-31  Bob Duff  <duff@adacore.com>
19941
19942         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
19943         as finalization-started, so we can raise Program_Error on 'new'.
19944
19945         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
19946         collection has already started.
19947
19948         * s-finimp.ads (Collection_Finalization_Started): Added new special
19949         flag value for indicating that a collection's finalization has started.
19950
19951         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
19952         create a task whose master has already waited for dependent tasks.
19953
19954 2006-10-31  Robert Dewar  <dewar@adacore.com>
19955
19956         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
19957
19958         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
19959         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
19960         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
19961         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
19962         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
19963         a-except-2005.ads: Add pragma Preelaborable_Warning
19964
19965 2006-10-31  Robert Dewar  <dewar@adacore.com>
19966             Jose Ruiz  <ruiz@adacore.com>
19967
19968         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
19969
19970         * ali.adb (Get_Name): Properly handle scanning of wide character names
19971         encoded with brackets notation.
19972         (Known_ALI_Lines): Add S lines to this list.
19973         (Scan_ALI): Acquire S (priority specific dispatching) lines.
19974         New flag Elaborate_All_Desirable in unit table
19975
19976         * ali.ads (Priority_Specific_Dispatching): Add this range of
19977         identifiers to be used for Priority_Specific_Dispatching table entries.
19978         (ALIs_Record): Add First_Specific_Dispatching and
19979         Last_Specific_Dispatching that point to the first and last entries
19980         respectively in the priority specific dispatching table for this unit.
19981         (Specific_Dispatching): Add this table for storing each S (priority
19982         specific dispatching) line encountered in the input ALI file.
19983         New flag Elaborate_All_Desirable in unit table
19984
19985         * bcheck.adb: (Check_Configuration_Consistency): Add call to
19986         Check_Consistent_Dispatching_Policy.
19987         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
19988         verifying that the use of Priority_Specific_Dispatching,
19989         Task_Dispatching_Policy, and Locking_Policy is consistent across the
19990         partition.
19991
19992         * bindgen.adb: (Public_Version_Warning): function removed.
19993         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
19994         required information from ALI files in order to initialize the table
19995         containing the specific dispatching policy.
19996         (Gen_Adainit_Ada): Generate the variables required for priority specific
19997         dispatching entries (__gl_priority_specific_dispatching and
19998         __gl_num_specific_dispatching).
19999         (Gen_Adainit_C): Generate the variables required for priority specific
20000         dispatching entries (__gl_priority_specific_dispatching and
20001         __gl_num_specific_dispatching).
20002         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
20003         pragma entries.
20004         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
20005         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
20006         (Tab_To): Removed.
20007         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
20008         a call to gnat_set_globals.
20009         Generate a string containing settings from
20010         Priority_Specific_Dispatching pragma entries.
20011         (Gen_Object_Files_Options): Do not include the runtime libraries when
20012         pragma No_Run_Time is specified.
20013
20014         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
20015         consistency with s-intman-posix.adb.
20016         (__gnat_error_handler, case FreeBSD): Account for the fact that the
20017         handler is installed with SA_SIGINFO.
20018         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
20019         FreeBSD ZCX support, copied from Linux version.
20020         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
20021         sigfillset, and sigemptyset so the routines defined by MaRTE.
20022         (__gl_priority_specific_dispatching): Add this variable that stores the
20023         string containing priority specific dispatching policies in the
20024         partition.
20025         (__gl_num_specific_dispatching): Add this variable that indicates the
20026         highest priority for which a priority specific dispatching pragma
20027         applies.
20028         (__gnat_get_specific_dispatching): Add this routine that returns the
20029         priority specific dispatching policy, as set by a
20030         Priority_Specific_Dispatching pragma appearing anywhere in the current
20031         partition. The input argument is the priority number, and the result
20032         is the upper case first character of the policy name.
20033         (__gnat_set_globals): Now a dummy function.
20034         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
20035         mechargs instead of sigargs, as the latter can be retrieved from the
20036         former and sigargs is not what we want on ia64.
20037         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
20038         mechargs argument.
20039         (__gnat_adjust_context_for_raise, ia64-vms): New function.
20040         (tasking_error): Remove unused symbol.
20041         (_abort_signal): Move this symbol to the IRIX specific part since this
20042         is the only target that uses this definition.
20043         (Check_Abort_Status): Move this symbol to the IRIX specific part since
20044         this is the only target that uses this definition.
20045         (Lock_Task): Remove unused symbol.
20046         (Unlock_Task): Remove unused symbol.
20047
20048         * lib-writ.adb (Write_ALI): Output new S lines for
20049         Priority_Specific_Dispatching pragmas.
20050         Implement new flag BD for elaborate body desirable
20051
20052         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
20053         (Specific_Dispatching): Add this table for storing the entries
20054         corresponding to Priority_Specific_Dispatching pragmas.
20055         Document new BD flag for elaborate body desirable
20056
20057         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
20058         of known pragmas.
20059
20060 2006-10-31  Javier Miranda  <miranda@adacore.com>
20061
20062         * a-tags.ads, a-tags.adb:
20063         (Predefined_DT): New function that improves readability of the code.
20064         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
20065         Inherit_DT): Use the new function Predefined_DT to improve code
20066         readability.
20067         (Register_Interface_Tag): Update assertion.
20068         (Set_Interface_Table): Update assertion.
20069         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
20070         determining progenitor interfaces in Tags.
20071         (Inherit_CPP_DT): New subprogram.
20072
20073         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
20074         analysis of the thunk code.
20075         (Expand_Interface_Conversion): Handle run-time conversion of
20076         access to class wide types.
20077         (Expand_Dispatching_Call): When generating the profile for the
20078         subprogram itype for a dispatching operation, properly terminate the
20079         formal parameters chaind list (set the Next_Entity of the last formal
20080         to Empty).
20081         (Collect_All_Interfaces): Removed. This routine has been moved to
20082         sem_util and renamed as Collect_All_Abstract_Interfaces.
20083         (Set_All_DT_Position): Hidden entities associated with abstract
20084         interface primitives are not taken into account in the check for
20085         3.9.3(10); this check is done with the aliased entity.
20086         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
20087         interfacing with CPP by default.
20088         (Expand_Interface_Conversion): Add missing support for static conversion
20089         from an interface to a tagged type.
20090         (Collect_All_Interfaces): Add new out formal containing the list of
20091         abstract interface types to cleanup the subprogram Make_DT.
20092         (Make_DT): Update the code to generate the table of interfaces in case
20093         of abstract interface types.
20094         (Is_Predefined_Dispatching_Alias): New function that returns true if
20095         a primitive is not a predefined dispatching primitive but it is an
20096         alias of a predefined dispatching primitive.
20097         (Make_DT): If the ancestor of the type is a CPP_Class and we are
20098         compiling under full ABI compatibility mode we avoid the generation of
20099         calls to run-time services that fill the dispatch tables because under
20100         this mode we currently inherit the dispatch tables in the IP subprogram.
20101         (Write_DT): Emit an "is null" indication for a null procedure primitive.
20102         (Expand_Interface_Conversion): Use an address as the type of the formal
20103         of the internally built function that handles the case in which the
20104         target type is an access type.
20105
20106 2006-10-31  Robert Dewar  <dewar@adacore.com>
20107
20108         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
20109
20110 2006-10-31  Robert Dewar  <dewar@adacore.com>
20111
20112         * bindusg.ads, bindusg.adb:
20113         Change to package and rename procedure as Display, which
20114         now ensures that it only outputs usage information once.
20115
20116 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
20117
20118         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
20119         using RTPs.
20120
20121         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
20122         when using RTPs.
20123
20124 2006-10-31  Robert Dewar  <dewar@adacore.com>
20125             Ed Schonberg  <schonberg@adacore.com>
20126
20127         * treepr.adb: Use new subtype N_Membership_Test
20128
20129         * checks.ads, checks.adb: Add definition for Validity_Check
20130         (Range_Or_Validity_Checks_Suppressed): New function
20131         (Ensure_Valid): Test Validity_Check suppressed
20132         (Insert_Valid_Check): Test Validity_Check suppressed
20133         (Insert_Valid_Check): Preserve Do_Range_Check flag
20134         (Validity_Check_Range): New procedure
20135         (Expr_Known_Valid): Result of membership test is always valid
20136         (Selected_Range_Checks): Range checks cannot be applied to discriminants
20137         by themselves. Disabling those checks must also be done for task types,
20138         where discriminants may be used for the bounds of entry families.
20139         (Apply_Address_Clause_Check): Remove side-effects if address expression
20140         is non-static and is not the name of a declared constant.
20141         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
20142         Code cleanup and new error messages.
20143         (Enable_Range_Check): Test for some cases of suppressed checks
20144         (Generate_Index_Checks): Suppress index checks if index checks are
20145         suppressed for array object or array type.
20146         (Apply_Selected_Length_Checks): Give warning for compile-time detected
20147         length check failure, even if checks are off.
20148         (Ensure_Valid): Do not generate a check on an indexed component whose
20149         prefix is a packed boolean array.
20150         * checks.adb: (Alignment_Checks_Suppressed): New function
20151         (Apply_Address_Clause_Check): New procedure, this is a completely
20152         rewritten replacement for Apply_Alignment_Check
20153         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
20154         we request a discriminal value only in case of discriminants.
20155         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
20156         assignments where the target subtype is unconstrained and the target
20157         object is a parameter or dereference (other aliased cases are known
20158         to be unconstrained).
20159
20160 2006-10-31  Robert Dewar  <dewar@adacore.com>
20161
20162         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
20163         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
20164         vms_conv.adb: Fix bad table increment values (much too small)
20165
20166         * table.adb (Realloc): Make sure we get at least some new elements
20167         Defends against silly small values for table increment
20168
20169 2006-10-31  Robert Dewar  <dewar@adacore.com>
20170             Ed Schonberg  <schonberg@adacore.com>
20171             Bob Duff  <duff@adacore.com>
20172
20173         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
20174         entities. Move other fields around to make this possible
20175         (Is_Derived_Type): Add missing call to Is_Type.
20176         (Extra_Formals): New function for subprograms, entries, subprogram
20177         types.
20178         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
20179         (First_Formal_With_Extras): New function for subprogs, entries, subp
20180         types.
20181         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
20182         Add node information for E_Return_Statement.
20183         (Elaborate_Body_Desirable): New flag
20184         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
20185         to be Is_Inherently_Limited_Type, because return-by-reference has
20186         no meaning in Ada 2005.
20187         (E_Return_Statement): New entity kind.
20188         (Return_Applies_To): Field of E_Return_Statement.
20189         (Is_Return_Object): New flag in object entities.
20190         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
20191         (Must_Have_Preelab_Init): New flag
20192         (Known_To_Have_Preelab_Init): New flag
20193         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
20194         (Is_Visible_Formal): New flag on entities in formal packages.
20195         (Low_Bound_Known): New flag
20196         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
20197         Incomplete_Kind.
20198         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
20199         output when Id is an incomplete subtype.
20200
20201 2006-10-31  Robert Dewar  <dewar@adacore.com>
20202
20203         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
20204         Avoid abbreviation Creat
20205         (Finalize): List all sources in extended mail source if -gnatl
20206         switch is active.
20207         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
20208         (Finalize): Implement new -gnatl=xxx switch to output listing to file
20209         (Set_Specific_Warning_On): New procedure
20210         (Set_Specific_Warning_Off): New procedure
20211         Add implementation of new insertion \\
20212         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
20213         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
20214         types.
20215         (Error_Msg_Internal): Make sure that we set Last_Killed to
20216         True when a message from another package is suppressed.
20217         Implement insertion character ~ (insert string)
20218         (First_Node): Minor adjustments to get better placement.
20219
20220         * frontend.adb:
20221         Implement new -gnatl=xxx switch to output listing to file
20222
20223         * gnat1drv.adb:
20224         Implement new -gnatl=xxx switch to output listing to file
20225
20226         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
20227         (Commands_To_Stdout): New flag
20228         Implement new -gnatl=xxx switch to output listing to file
20229         New switch Dump_Source_Text
20230         (Warn_On_Deleted_Code): New warning flag for -gnatwt
20231         Define Error_Msg_Line_Length
20232         (Warn_On_Assumed_Low_Bound): New switch
20233
20234         * osint.ads, osint.adb
20235         (Normalize_Directory_Name): Fix bug.
20236         Implement new -gnatl=xxx switch to output listing to file
20237         (Concat): Removed, replaced by real concatenation
20238         Make use of concatenation now allowed in compiler
20239         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
20240         we find the 'lib' or 'bin' directory even when the tool has been
20241         invoked with a relative path.
20242         (Executable_Name): New function taking string parameters.
20243
20244         * osint-c.ads, osint-c.adb:
20245         Implement new -gnatl=xxx switch to output listing to file
20246
20247         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
20248
20249         * switch-c.adb:
20250         Implement new -gnatl=xxx switch to output listing to file
20251         Recognize new -gnatL switch
20252         (no longer keep in old warning about old style usage)
20253         Use concatenation to simplify code
20254         Recognize -gnatjnn switch
20255         (Scan_Front_End_Switches): Clean up handling of -gnatW
20256         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
20257
20258 2006-10-31  Robert Dewar  <dewar@adacore.com>
20259
20260         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
20261         (Set_Specific_Warning_Off): New procedure
20262         (Warning_Specifically_Suppressed): New function
20263         (Validate_Specific_Warnings): New procedure
20264         (Output_Msg_Text): Complete rewrite to support -gnatjnn
20265
20266         * err_vars.ads: Implement insertion character ~ (insert string)
20267
20268 2006-10-31  Bob Duff  <duff@adacore.com>
20269             Ed Schonberg  <schonberg@adacore.com>
20270
20271         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
20272         the parent part is a build-in-place function call, generate assignments.
20273         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
20274         are build-in-place function calls.
20275         (Replace_Self_Reference): New subsidiary of
20276         Make_OK_Assignment_Statement, to replace an access attribute that is a
20277         self-reference into an access to the appropriate component of the
20278         target object. Generalizes previous mechanism to handle self-references
20279         nested at any level.
20280         (Is_Self_Referential_Init): Remove, not needed.
20281         (Is_Self_Referential_Init): New predicate to simplify handling of self
20282         referential components in record aggregates.
20283         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
20284         check for presence of entity before checking for self-reference.
20285         (Has_Default_Init_Comps): Return True if a component association is a
20286         self-reference to the enclosing type, which can only come from a
20287         default initialization.
20288         (Make_OK_Assignment_Statement): If the expression is of the form
20289         Typ'Acc, where Acc is an access attribute, the expression comes from a
20290         default initialized self-referential component.
20291         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
20292         that has been derived from several abstract interfaces we must also
20293         initialize the tags of the secondary dispatch tables.
20294
20295 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
20296             Thomas Quinot  <quinot@adacore.com>
20297             Javier Miranda  <miranda@adacore.com>
20298             Robert Dewar  <dewar@adacore.com>
20299
20300         * exp_attr.adb:
20301         (Expand_Access_To_Protected_Op): If the context indicates that an access
20302         to a local operation may be transfered outside of the object, create an
20303         access to the wrapper operation that must be used in an external call.
20304         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
20305         target, pass the Valid attribute applied to a floating-point prefix on
20306         to the back end without expansion.
20307         (Storage_Size): Use the new run-time function Storage_Size to retrieve
20308         the allocated storage when it is specified by a per-object expression.
20309         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
20310         Nothing to do here, the attribute has been rewritten during semantic
20311         analysis.
20312         (Expand_Attribute_Reference): Handle expansion of the new Priority
20313         attribute
20314         (Find_Fat_Info): Handle case of universal real
20315         (Expand_Access_To_Protected_Op): Fix use of access to protected
20316         subprogram from inside the body of a protected entry.
20317         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
20318         'Access and 'Unrestricted_Access, to transform the attribute reference
20319         into a fat pointer.
20320         (Is_Constrained_Aliased_View): New predicate to help determine whether a
20321         subcomponent's enclosing variable is aliased with a constrained subtype.
20322         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
20323         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
20324         an aliased prefix must be known to be constrained in order to use True
20325         for the attribute value, and now it's possible for some aliased views
20326         to be unconstrained.
20327
20328 2006-10-31  Robert Dewar  <dewar@adacore.com>
20329
20330         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
20331         (Expand_Entity_Reference): Correct error of not handling subprogram
20332         formals in current_value processing.
20333
20334 2006-10-31  Javier Miranda  <miranda@adacore.com>
20335             Robert Dewar  <dewar@adacore.com>
20336             Ed Schonberg  <schonberg@adacore.com>
20337             Gary Dismukes  <dismukes@adacore.com>
20338
20339         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
20340         register in the final list objects containing class-wide interfaces;
20341         otherwise we incorrectly register the tag of the interface in the final
20342         list.
20343         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
20344         generate the wrapper if the parent primitive is abstract. This is
20345         required to report the correct error message.
20346         (Expand_N_Subtype_Indication): Do validity checks on range
20347         (Clean_Task_Names): If an initialization procedure includes a call to
20348         initialize a task (sub)component, indicate that the procedure will use
20349         the secondary stack.
20350         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
20351         compatibility for interfacing with CPP by default.
20352         (Expand_N_Object_Declaration): Only build an Adjust call when the
20353         object's type is a nonlimited controlled type.
20354         * exp_ch3.adb: Add with and use of Exp_Ch6.
20355         (Expand_N_Object_Declaration): Check for object initialization that is a
20356         call to build-in-place function and apply Make_Build_In_Place_Call_In_
20357         Object_Declaration to the call.
20358         (Freeze_Type): When the designated type of an RACW was not frozen at the
20359         point where the RACW was declared, validate the primitive operations
20360         with respect to E.2.2(14) when it finally is frozen.
20361         (Build_Initialization_Call,Expand_Record_Controller): Rename
20362         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
20363         return-by-reference has no meaning in Ada 2005.
20364         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
20365         to register tag of the immediate ancestor interfaces in the
20366         run-time structure.
20367         (Init_Secondary_Tags): Moved to the specification to allow the
20368         initialization of extension aggregates with abstract interfaces.
20369         (Build_Master_Renaming): Make public, for use by function declarations
20370         whose return type is an anonymous access type.
20371         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
20372         Insert_List_Before_And_Analyze after the generation of the specs
20373         associated with null procedures.
20374         (Expand_Tagged_Root): Update documentation in its specification.
20375         (Init_Secondary_Tags): Update documentation.
20376         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
20377         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
20378         then generate code to inherit the contents of the dispatch table
20379         directly from the ancestor.
20380         (Expand_Record_Controller): Insert controller component after tags of
20381         implemented interfaces.
20382         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
20383         create null procedure overridings when null procedures are inherited
20384         from interfaces.
20385         (Make_Null_Procedure_Specs): New procedure to generate null procedure
20386         declarations for overriding null primitives inherited from interfaces.
20387         (Is_Null_Interface_Procedure): New function in
20388         Make_Null_Procedure_Specs.
20389         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
20390         immediate ancestor of a tagged type is an abstract interface type we
20391         must generate the specification of the predefined primitives associated
20392         with controlled types (because the dispatch table of the ancestor is
20393         null and hence these entries cannot be inherited). This is required to
20394         elaborate well the dispatch table.
20395
20396 2006-10-31  Javier Miranda  <miranda@adacore.com>
20397             Ed Schonberg  <schonberg@adacore.com>
20398             Bob Duff  <duff@adacore.com>
20399             Gary Dismukes  <dismukes@adacore.com>
20400             Robert Dewar  <dewar@adacore.com>
20401
20402         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
20403         conversion.
20404         (Expand_N_In): Do validity checks on range
20405         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
20406         (Expand_N_Allocator): For "new T", if the object is constrained by
20407         discriminant defaults, allocate the right amount of memory, rather than
20408         the maximum for type T.
20409         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
20410         when the allocator is initialized by a build-in-place call, since the
20411         allocator is already rewritten as a reference to the function result,
20412         and this prevents an unwanted duplication of the function call.
20413         Add with and use of Exp_Ch6.
20414         (Expand_Allocator_Expresssion): Check for an allocator whose expression
20415         is a call to build-in-place function and apply
20416         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
20417         untagged designated types).
20418         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
20419         optimization if source or target is biased.
20420         (Expand_N_Allocator): Add comments for case of an allocator within a
20421         function that returns an anonymous access type designating tasks.
20422         (Expand_N_Allocator): apply discriminant checks for access
20423         discriminants of anonymous access types (AI-402, AI-416)
20424
20425 2006-10-31  Bob Duff  <duff@adacore.com>
20426             Robert Dewar  <dewar@adacore.com>
20427             Gary Dismukes  <dismukes@adacore.com>
20428             Ed Schonberg  <schonberg@adacore.com>
20429
20430         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
20431
20432         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
20433         (Expand_N_Assignment_Statement): Call
20434         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
20435         build-in-place function call. Currently, this can happen only for
20436         assignments that come from aggregates.
20437         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20438         in order to alleviate the upward compatibility introduced by AI-318.
20439         (Expand_N_Extended_Return_Statement): Add support for handling the
20440         return object as a build-in-place result.
20441         (Expand_Non_Function_Return): Implement simple return statements nested
20442         within an extended return.
20443         (Enable_New_Return_Processing): Turn on the new processing of return
20444         statements.
20445         (Expand_Non_Function_Return): For a return within an extended return,
20446         don't raise Program_Error, because Sem_Ch6 now gives a warning.
20447         (Expand_N_Extended_Return_Statement): Implement AI-318
20448         (Expand_Simple_Function_Return): Ditto.
20449         (Expand_N_If_Statement): Handle new -gnatwt warning
20450         (Expand_N_Case_Statement): Handle new -gnatwt warning
20451         (Expand_N_Assignment): Handle assignment to the Priority attribute of
20452         a protected object.
20453         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
20454         validity checking of assignments to elementary record components.
20455         (Expand_N_Return_Statement): return Class Wide types on the secondary
20456         stack independantly of their controlled status since with HIE runtimes,
20457         class wide types are not potentially controlled anymore.
20458
20459         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
20460         node kind.
20461
20462         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
20463         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
20464         it expects a block, procedure, or task. The return statement will get
20465         turned into a block, and Expand_Cleanup_Actions will happen then.
20466
20467 2006-10-31  Robert Dewar  <dewar@adacore.com>
20468             Ed Schonberg  <schonberg@adacore.com>
20469             Bob Duff  <duff@adacore.com>
20470             Gary Dismukes  <dismukes@adacore.com>
20471
20472         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
20473         capability.
20474         (Expand_Inlined_Call): Tagged types are by-reference types, and
20475         therefore should be replaced by a renaming declaration in the expanded
20476         body, as is done for limited types.
20477         (Expand_Call): If this is a call to a function with dispatching access
20478         result, propagate tag from context.
20479         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
20480         CPP by default.
20481         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
20482         build-in-place when the right-hand side of an assignment is a
20483         build-in-place function call.
20484         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
20485         of the explicit dereference of the allocator to the result subtype of
20486         the build-in-place function. This is needed to satisfy type checking
20487         in cases where the caller's return object is created by an allocator for
20488         a class-wide access type and the type named in the allocator is a
20489         specific type.
20490         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
20491         conversion of the reference to the declared object to the result subtype
20492         of the build-in-place function. This is needed to satisfy type checking
20493         in cases where the declared object has a class-wide type. Also, in the
20494         class-wide case, change the type of the object entity to the specific
20495         result subtype of the function, to avoid passing a class-wide object
20496         without explicit initialization to the back end.
20497         (Register_Interface_DT_Entry): Moved outside the body of
20498         Freeze_Subprogram because this routine is now public; it is called from
20499         Check_Dispatching_Overriding to handle late overriding of abstract
20500         interface primitives.
20501         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
20502         adding an implicit access actual on a call to a build-in-place function.
20503         (Expand_Actuals): Test for an actual parameter that is a call to a
20504         build-in-place function and apply
20505         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
20506         (Is_Build_In_Place_Function): New function to determine whether an
20507         entity is a function whose calls should be handled as build-in-place.
20508         (Is_Build_In_Place_Function_Call): New function to determine whether an
20509         expression is a function call that should handled as build-in-place.
20510         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
20511         calls to build-in-place functions as the initialization of an allocator.
20512         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
20513         handling calls to build-in-place functions in contexts that do not
20514         involve init of a separate object (for example, actuals of subprogram
20515         calls).
20516         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
20517         handling calls to build-in-place functions as the initialization of an
20518         object declaration.
20519         (Detect_Infinite_Recursion): Add explicit parameter Process to
20520         instantiation of Traverse_Body to avoid unreferenced warning.
20521         (Check_Overriding_Inherited_Interfaces): Removed.
20522         (Register_Interface_DT_Entry): Code cleanup.
20523         (Register_Predefined_DT_Entry): Code cleanup.
20524         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
20525         inlined statements if within a transient scope.
20526         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
20527         formal parameters with occurrences of actuals in inlined body, establish
20528         visibility on the proper view of the actual's subtype for the body's
20529         context.
20530         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
20531         compatibility mode and we have an imported CPP subprogram because
20532         for now we assume that imported CPP primitives correspond with
20533         objects whose constructor is in the CPP side (and therefore we
20534         don't need to generate code to register them in the dispatch table).
20535         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
20536         aligned selected component.
20537         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
20538         the actual of an in-mode parameter is a type conversion.
20539         (Expand_Actuals): If the call does not come from source and the actual
20540         is potentially misaligned, let gigi handle it rather than rejecting the
20541         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
20542         Class Wide types as returning by reference independantly of their
20543         controlled status since with HIE runtimes class wide types are not
20544         potentially controlled anymore.
20545
20546 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
20547
20548         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
20549         references that are private components of the protected object.
20550         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
20551         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
20552         instantiation to deal with warnings.
20553         (Initialize_Protection): If expression for priority is non-static, use
20554         System_Priority as its expected type, in case the expression has not
20555         been analyzed yet.
20556
20557 2006-10-31  Robert Dewar  <dewar@adacore.com>
20558
20559         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
20560         initialization of Homonym_Len.
20561         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
20562         names from fully qualified name. Fixes problem of duplicate
20563         external names differing only in the presence of such a block name.
20564
20565 2006-10-31  Thomas Quinot  <quinot@adacore.com>
20566             Pablo Oliveira  <oliveira@adacore.com>
20567
20568         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
20569         subprogram Ids, even if they are not yet assigned.
20570         (Build_Subprogram_Id): It is now this function that will take care of
20571         calling Assign_Subprogram_Ids if necessary.
20572         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
20573         should be done only once they are assigned.
20574         (Build_From_Any_Function, case of tagged types): Add missing call to
20575         Allocate_Buffer.
20576         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
20577         type for an RACW type.
20578         (Add_RACW_Features): When processing an RACW declaration for which the
20579         designated type is already frozen, enforce E.2.2(14) rules immediately.
20580         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
20581         special reordering of controlling formals.
20582
20583         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
20584         associated stub type for an RACW type.
20585
20586 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
20587
20588         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
20589         fixed-point operations in an integer context, i.e. as operands of a
20590         conversion to an integer type, indicate that result must be rounded.
20591
20592 2006-10-31  Robert Dewar  <dewar@adacore.com>
20593
20594         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
20595         cases, pass the encoding method, since it is now required by the run
20596         time.
20597
20598         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
20599         assumption that Str'First = 1.
20600         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
20601         it on to the Value_Wide_Wide_Character call.
20602         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
20603         properly handles a string of the form quote-encoded_wide_char-quote.
20604
20605         * s-wchcnv.adb: Minor reformatting
20606
20607 2006-10-31  Javier Miranda  <miranda@adacore.com>
20608
20609         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
20610         run-time membership test to ensure that the constructed object
20611         implements the target abstract interface.
20612
20613 2006-10-31  Robert Dewar  <dewar@adacore.com>
20614
20615         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
20616         Machine_Attribute pragma internally to implement the user pragma.
20617         Add processing for pragma Interface so that it is now completely
20618         equivalent to pragma Import.
20619
20620         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
20621         so that it can be applied to all entities, including record components
20622         and enumeration literals.
20623         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
20624         priority ranges are correct, verify compatibility against task
20625         dispatching and locking policies, and if everything is correct an entry
20626         is added to the table containing priority specific dispatching entries
20627         for this compilation unit.
20628         (Delay_Config_Pragma_Analyze): Delay processing
20629         Priority_Specific_Dispatching pragmas because when processing the
20630         pragma we need to access run-time data, such as the range of
20631         System.Any_Priority.
20632         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
20633         Allow pragma Unreferenced as a context item
20634         Add pragma Preelaborable_Initialization
20635         (Analyze_Pragma, case Interface): Interface is extended so that it is
20636         now syntactically and semantically equivalent to Import.
20637         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
20638         insertion characters.
20639         Add handling for Pragma_Wide_Character_Encoding
20640         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
20641         never supercedes a real restriction, and that a real restriction
20642         always supercedes a warning.
20643         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
20644         appropriate form.
20645
20646 2006-10-31  Bob Duff  <duff@adacore.com>
20647             Ed Schonberg  <schonberg@adacore.com>
20648             Robert Dewar  <dewar@adacore.com>
20649
20650         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
20651         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
20652         Is_Inherently_Limited_Type, because return-by-reference has no meaning
20653         in Ada 2005.
20654         (Find_Node_To_Be_Wrapped): Use new method of determining the result
20655         type of the function containing a return statement, because the
20656         Return_Type field was removed. We now use the Return_Applies_To field.
20657
20658         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
20659         (Build_Task_Image_Decl): If procedure is not called from an
20660         initialization procedure, indicate that function that builds task name
20661         uses the sec. stack. Otherwise the enclosing initialization procedure
20662         will carry the indication.
20663         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
20664         N_Object_Declaration instead.
20665         (Kill_Dead_Code): New interface to implement -gnatwt warning for
20666         conditional dead code killed, and change implementation accordingly.
20667         (Insert_Actions): Add N_Return_Object_Declaration case.
20668         Correct comment to mention N_Extension_Aggregate node.
20669         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
20670         attempts to save information for global variables which cannot be
20671         safely tracked.
20672         (Get_Current_Value_Condition): Handle conditions the other way round
20673         (constant on left). Also handle right operand of AND and AND THEN
20674         (Set_Current_Value_Condition): Corresponding changes
20675         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
20676         (Get_Current_Value_Condition): Handle simple boolean operands
20677         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
20678         (Get_Current_Value_Condition): If the variable reference is within an
20679         if-statement, does not appear in the list of then_statments, and does
20680         not come from source, treat it as being at unknown location.
20681         (Get_Current_Value_Condition): Enhance to allow while statements to be
20682         processed as well as if statements.
20683         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
20684         come from source.
20685         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
20686         of loop. This is safe now that we fixed Kill_Current_Values.
20687         (OK_To_Do_Constant_Replacement): Check whether current scope is
20688         Standard, before examining outer scopes.
20689
20690 2006-10-31  Vincent Celier  <celier@adacore.com>
20691
20692         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
20693         When True, apply VMS treatment to children of packages A, G, I and S.
20694         For F320-016
20695
20696         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
20697
20698 2006-10-31  Robert Dewar  <dewar@adacore.com>
20699             Ed Schonberg  <schonberg@adacore.com>
20700
20701         * freeze.adb: Add handling of Last_Assignment field
20702         (Warn_Overlay): Supply missing continuation marks in error msgs
20703         (Freeze_Entity): Add check for Preelaborable_Initialization
20704
20705         * g-comlin.adb: Add Warnings (Off) to prevent new warning
20706
20707         * g-expect.adb: Add Warnings (Off) to prevent new warning
20708
20709         * lib-xref.adb: Add handling of Last_Assignment field
20710         (Generate_Reference): Centralize handling of pragma Obsolescent here
20711         (Generate_Reference): Accept an implicit reference generated for a
20712         default in an instance.
20713         (Generate_Reference): Accept a reference for a node that is not in the
20714         main unit, if it is the generic body corresponding to an subprogram
20715         instantiation.
20716
20717         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
20718
20719         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
20720         -gnatwq/Q.
20721         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
20722         exception handler.
20723         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
20724         use clauses, to avoid messages on packages used to qualify, and also
20725         to avoid messages from obsolescent units.
20726         (Warn_On_Useless_Assignments): Don't generate messages for imported
20727         and exported variables.
20728         (Warn_On_Useless_Assignments): New procedure
20729         (Output_Obsolescent_Entity_Warnings): New procedure
20730         (Check_Code_Statement): New procedure
20731
20732         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
20733         Change name Is_Ada_2005 to Is_Ada_2005_Only
20734         (Last_Assignment): New field for useless assignment warning
20735
20736 2006-10-31  Olivier Hainque  <hainque@adacore.com>
20737
20738         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
20739         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
20740
20741 2006-10-31  Bob Duff  <duff@adacore.com>
20742             Robert Dewar  <dewar@adacore.com>
20743             Ed Schonberg  <schonberg@adacore.com>
20744
20745         * g-awk.adb (Default_Session, Current_Session): Compile this file in
20746         Ada 95 mode, because it violates the new rules for AI-318.
20747
20748         * g-awk.ads: Use overloaded subprograms in every case where we used to
20749         have a default of Current_Session. This makes the code closer to be
20750         correct for both Ada 95 and 2005.
20751
20752         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
20753         code, relying on the fact that the compiler generates a warning
20754         instead of an error in -gnatg mode.
20755
20756         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
20757         E_Return_Statement entity kind.
20758         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
20759
20760         * par.adb (P_Interface_Type_Definition): Addition of one formal to
20761         report an error if the reserved word abstract has been previously found.
20762         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
20763
20764         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
20765         parenthesized range attribute usage
20766         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
20767
20768         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
20769         in the syntax for extended_return_statement. This is not in the latest
20770         RM, but the ARG is expected to issue an AI allowing this.
20771         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
20772         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
20773         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
20774         P_Return_Statement): Parse the new syntax for extended_return_statement.
20775
20776         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
20777         Output_End_Missing): Add error-recovery code for the new
20778         extended_return_statement syntax; that is, the new E_Return entry on
20779         the scope stack.
20780
20781         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
20782         limited to nonlimited, because otherwise we violate the new Ada 2005
20783         rules about returning limited types in function Create_AST_Handler in
20784         s-asthan.adb.
20785
20786         * sem.adb (Analyze): Add cases for new node kinds
20787         N_Extended_Return_Statement and N_Return_Object_Declaration.
20788
20789         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
20790         type is in the same category as type of context before applying check,
20791         to prevent anomalies in instantiations.
20792         (Resolve_Aggregate): Remove test for limited components in aggregates.
20793         It's unnecessary in Ada 95, because if it has limited components, then
20794         it must be limited. It's wrong in Ada 2005, because limited aggregates
20795         are now allowed.
20796         (Resolve_Record_Aggregate): Move check for limited types later, because
20797         OK_For_Limited_Init requires its argument to have been resolved.
20798         (Get_Value): When copying the component default expression for a
20799         defaulted association in an aggregate, use the sloc of the aggregate
20800         and not that of the original expression, to prevent spurious
20801         elaboration errors, when the expression includes function calls.
20802         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
20803         were missing. We also didn't handle qualified expressions. Now also
20804         allow function calls. Use new common routine OK_For_Limited_Init.
20805         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
20806         with space can upper case letter).
20807
20808         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
20809         Has_Static_Discriminants flag
20810         (Record_Type_Declaration): Diagnose an attempt to declare an interface
20811         type with discriminants.
20812         (Process_Range_Expr_In_Decl): Do validity checks on range
20813         (Build_Discriminant_Constraints): Use updated form of
20814         Denotes_Discriminant.
20815         (Process_Subtype): If the subtype is a private subtype whose full view
20816         is a concurrent subtype, introduce an itype reference to prevent scope
20817         anomalies in gigi.
20818         (Build_Derived_Record_Type, Collect_Interface_Primitives,
20819         Record_Type_Declaration):  The functionality of the subprograms
20820         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
20821         is now performed by a single routine.
20822         (Build_Derived_Record_Type): If the type definition includes an explicit
20823         indication of limitedness, then the type must be marked as limited here
20824         to ensure that any access discriminants will not be treated as having
20825         a local anonymous access type.
20826         (Check_Abstract_Overriding): Issue a detailed error message when an
20827         abstract subprogram was not overridden due to incorrect mode of its
20828         first parameter.
20829         (Analyze_Private_Extension_Declaration): Add support for the analysis of
20830         synchronized private extension declarations. Verify that the ancestor is
20831         a limited or synchronized interface or in the generic case, the ancestor
20832         is a tagged limited type or synchronized interface and all progenitors
20833         are either limited or synchronized interfaces.
20834         Derived_Type_Declaration): Check for presence of private extension when
20835         dealing with synchronized formal derived types.
20836         Process_Full_View): Enchance the check done on the usage of "limited" by
20837         testing whether the private view is synchronized.
20838         Verify that a synchronized private view is completed by a protected or
20839         task type.
20840         (OK_For_Limited_Init_In_05): New function.
20841         (Analyze_Object_Declaration): Move check for limited types later,
20842         because OK_For_Limited_Init requires its argument to have been resolved.
20843         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20844         in order to alleviate the upward compatibility introduced by AI-318.
20845         (Constrain_Corresponding_Record): If the constraint is for a component
20846         subtype, mark the itype as frozen, to avoid out-of-scope references to
20847         discriminants in the back-end.
20848         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
20849         this subprogram against wrong sources.
20850         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
20851         discriminant of limited type completed with a protected type, when the
20852         discriminant is used to constrain a private component of the type, and
20853         expansion is disabled.
20854         (Find_Type_Of_Object): Do not treat a return subtype that is an
20855         anonymous subtype as a local_anonymous_type, because its accessibility
20856         level is the return type of the enclosing function.
20857         (Check_Initialization): In -gnatg mode, turn the error "cannot
20858         initialize entities of limited type" into a warning.
20859         (OK_For_Limited_Init): Return true for generated nodes, since it
20860         sometimes violates the legality rules.
20861         (Make_Incomplete_Declaration): If the type for which an incomplete
20862         declaration is created happens to be the currently visible entity,
20863         preserve the homonym chain when removing it from visibility.
20864         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
20865         inherited subprograms.
20866         (Access_Definition): If this is an access to function that is the return
20867         type of an access_to_function definition, context is a type declaration
20868         and the scope of the anonymous type is the current one.
20869         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
20870         incomplete subtype to the set of private dependents of the original
20871         incomplete type.
20872         (Constrain_Discriminated_Type): Emit an error message whenever an
20873         incomplete subtype is being constrained.
20874         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
20875         corresponding subtype of the full view of the original incomplete type.
20876         (Check_Incomplete): Properly detect invalid usage of incomplete types
20877         and subtypes.
20878
20879 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
20880
20881         * g-catiio.ads, g-catiio.adb (Value): New function.
20882         Given an input String, try and parse a valid Time value.
20883
20884 2006-10-31  Vincent Celier  <celier@adacore.com>
20885
20886         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
20887         Integer_Address arithmetic, as in Set_Valid.
20888
20889 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
20890             Robert Dewar  <dewar@adacore.com>
20891
20892         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
20893         handling executable extension manually and duplicating code.
20894
20895         * make.adb: Implement new -S switch
20896         (Gnatmake): Use new function Osint.Executable_Name instead
20897         of handling executable extension manually.
20898
20899         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
20900         is specified, the executable name ends with this suffix.
20901         Take advantage of Osint.Executable_Name instead of duplicating code.
20902
20903         * switch-m.adb: Recognize new gnatmake -S switch
20904
20905         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
20906         variable.
20907         (Get_Target_Parameters): Set Executable_Extension_On_Target if
20908         available.
20909
20910         * makeusg.adb: Add line for gnatmake -S switch
20911
20912 2006-10-31  Vincent Celier  <celier@adacore.com>
20913
20914         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
20915         call it with -static-libgcc, as there are some platforms, such as
20916         Darwin, where one of these two switches is compulsory to link.
20917
20918 2006-10-31  Vincent Celier  <celier@adacore.com>
20919
20920         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
20921         instead of ADA_PROJECT_PATH, for the project path.
20922         (Gnatls): When displaying the project path directories, use host dir
20923         specs.
20924
20925         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
20926         names in the project path, as absolute paths may correspond to
20927         multi-valued VMS logical names.
20928
20929 2006-10-31  Vincent Celier  <celier@adacore.com>
20930
20931         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
20932         absolute path name.
20933         (Locate_Regular_File): Ditto
20934         (Change_Dir): Remove, no longer used
20935         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
20936         on Windows. Get it calling Get_Current_Dir.
20937         (OpenVMS): Remove imported boolean, no longer needed.
20938         (Normalize_Pathname)[VMS]: Do not resolve directory names.
20939         (Pid_To_Integer): New function to convert a Process_Id to  Integer
20940
20941 2006-10-31  Thomas Quinot  <quinot@adacore.com>
20942
20943         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
20944         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
20945         to No_Socket.
20946         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
20947         W_Sig_Socket.
20948
20949 2006-10-31  Robert Dewar  <dewar@adacore.com>
20950
20951         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
20952         initial letter o as a zero.
20953
20954 2006-10-31  Robert Dewar  <dewar@adacore.com>
20955
20956         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
20957
20958 2006-10-31  Robert Dewar  <dewar@adacore.com>
20959
20960         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
20961         variant records
20962         (Layout_Variant_Record): Retrieve the discriminants from the entity
20963         rather than from the type definition, because in the case of a full
20964         type for a private type we need to take the discriminants from the
20965         partial view.
20966         (Layout_Component_List): When applying the Max operator to variants with
20967         a nonstatic size, check whether either operand is static and scale that
20968         operand from bits to storage units before applying Max.
20969         (Layout_Type): In VMS, if a C-convention access type has no explicit
20970         size clause (and does not inherit one in the case of a derived type),
20971         then the size is reset to 32 from 64.
20972
20973 2006-10-31  Vincent Celier  <celier@adacore.com>
20974
20975         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
20976         its file has already been loaded, according to the unit being loaded,
20977         not to the current value of Multiple_Unit_Index.
20978
20979 2006-10-31  Thomas Quinot  <quinot@adacore.com>
20980             Eric Botcazou  <ebotcazou@adacore.com>
20981             Arnaud Charlet  <charlet@adacore.com>
20982
20983         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
20984         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
20985         possible.
20986         (a-except.o): Pass it to the compiler.
20987         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
20988         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
20989         a-calend-mingw.adb version.
20990
20991         * Makefile.rtl: Added s-dsaser.
20992         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
20993         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
20994         Ada.Dispatching.Round_Robin.
20995         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
20996
20997         * Make-lang.in: Remove all references to gt-ada-decl.h.
20998         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
20999         sources.
21000         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
21001         Update dependencies.
21002
21003         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
21004
21005 2006-10-31  Vincent Celier  <celier@adacore.com>
21006
21007         * mlib-utl.adb (Initialized): Remove, no longer used
21008         (Initialize): Remove, no longer used
21009         (Ar): If Ar_Exec is null, get the location of the archive builder and,
21010         if there is one, the archive indexer. Fail if the archive builder cannot
21011         be found.
21012         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
21013         be found.
21014
21015 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21016
21017         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
21018         Process_Body_Clauses): If the context of a body includes a use clause
21019         for P.Q then a with_clause for P in the same body is not redundant,
21020         even if the spec also has a with_clause on P.
21021         Add missing continuation mark to error msg
21022         (Build_Limited_Views): A limited view of a type is tagged if its
21023         declaration includes a record extension.
21024         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
21025         node, even if the subunit has errors. This avoids malfunction by
21026         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
21027         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
21028         generation of obsolescent messages for with statements (cannot do
21029         this too early, or we cannot implement avoiding the messages in the
21030         case of obsolescent units withing obsolescent units).
21031         (Install_Siblings): If the with_clause is on a remote descendant of
21032         an ancestor of the current compilation unit, find whether there is
21033         a sibling child unit that is immediately visible.
21034         (Remove_Private_With_Clauses): New procedure, invoked after completing
21035         the analysis of the private part of a nested package, to remove from
21036         visibility the private with_clauses of the enclosing package
21037         declaration.
21038         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
21039         now centralized in Generate_Reference.
21040         (Install_Limited_Context_Clauses): Remove superfluous error
21041         message associated with unlimited view visible through use
21042         and renamings. In addition, at the point in which the error
21043         is reported, we add the backslash to the text of the error
21044         to ensure that it is reported as a single error message.
21045         Use new // insertion for some continuation messages
21046         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
21047         to create implicit with_clause for parent unit mentioned in original
21048         limited_with_clause.
21049         (Install_Limited_With_Unit): Set entity of parent identifiers if the
21050         unit is a child unit. For ASIS queries.
21051         (Analyze_Subunit): If the subunit appears within a child unit, make all
21052         ancestor child units directly visible again.
21053
21054 2006-10-31  Robert Dewar  <dewar@adacore.com>
21055
21056         * par-ch10.adb (P_Context_Clause): Minor error message fix
21057
21058 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
21059             Javier Miranda  <miranda@adacore.com>
21060
21061         * par-ch12.adb: Grammar update and cleanup.
21062         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
21063         support for synchronized derived type definitions.
21064         Add the new actual Abstract_Present to every call to
21065         P_Interface_Type_Definition.
21066         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
21067         a formal object declaration with an access definition or a subtype mark
21068         with a null exclusion.
21069         (P_Generic_Association): Handle association with box, and others_choice
21070         with box, to support Ada 2005 partially parametrized formal packages.
21071
21072 2006-10-31  Robert Dewar  <dewar@adacore.com>
21073             Javier Miranda  <miranda@adacore.com>
21074
21075         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
21076         (P_Type_Declaration): Remove barrier against the reserved word "limited"
21077         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
21078         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
21079         private extensions.
21080         (P_Type_Declaration): Add the new actual Abstract_Present to every call
21081         to P_Interface_Type_Definition.
21082         (P_Interface_Type_Definition): Addition of one formal to report an error
21083         if the reserved word abstract has been previously found.
21084         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
21085         object renaming declaration with an access definition or subtype mark
21086         with a possible null exclusion.
21087
21088         * par-ch9.adb: Minor error msg fix
21089
21090         * par-load.adb: Add missing continuation mark to error msg
21091
21092         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
21093
21094 2006-10-31  Vincent Celier  <celier@adacore.com>
21095
21096         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
21097         unknown attribute in unknown package or in package that does not need
21098         to be checked.
21099         (Parse_Package_Declaration): Do not issue warning for unknown package in
21100         quiet output.
21101
21102 2006-10-31  Vincent Celier  <celier@adacore.com>
21103
21104         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
21105         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
21106         Packages_To_Check.
21107
21108 2006-10-31  Vincent Celier  <celier@adacore.com>
21109
21110         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
21111         on VMS, change "__" to '.' before checking the name.
21112         (Record_Ada_Source): Always add the source file name in the list of
21113         of sources, even if it is not the first time, as it is for another
21114         source index.
21115         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
21116         dot, instead of replacing only the first '_'.
21117
21118         * prj-part.adb (Parse): Convert project file path to canonical form
21119
21120         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
21121         extended, the project id of the project extending it is recorded in its
21122         data, even when it has already been processed as an imported project.
21123
21124 2006-10-31  Robert Dewar  <dewar@adacore.com>
21125
21126         * repinfo.adb (List_Entities): Don't list entities from renaming
21127         declarations.
21128
21129 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
21130             Robert Dewar  <dewar@adacore.com>
21131
21132         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
21133         only a restriction warning is active for the given restriction. This is
21134         desirable because we do not want to modify code in the case where only
21135         a warning is set.
21136         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
21137         causes overriding of real restrictions.
21138         Take advantage of new No_Restrictions constant.
21139
21140         * raise.h: (__gnat_set_globals): Change profile.
21141
21142 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
21143
21144         * rtsfind.adb: Remove s-polint from comment as it exists no more.
21145
21146         * rtsfind.ads:
21147         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
21148         Move all the entities in obsolete package System.PolyORB_Interface to
21149         System.Partition_Interface.
21150         (RE_Storage_Size): New function in System.Tasking.
21151         (RE_Get_Ceiling): New entity.
21152         (RE_Set_Ceiling): New entity.
21153         (RO_PE_Get_Ceiling): New entity.
21154         (RO_RE_Set_Ceiling): New entity.
21155         (Inherit_CPP_DT): New entity
21156
21157 2006-10-31  Robert Dewar  <dewar@adacore.com>
21158
21159         * scng.adb (Scan, case of numeric literal): Better msg for identifier
21160         starting with a digit.
21161
21162 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21163             Thomas Quinot  <quinot@adacore.com>
21164             Javier Miranda  <miranda@adacore.com>
21165             Gary Dismukes  <dismukes@adacore.com>
21166
21167         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
21168         properly an attempt to apply Unchecked_Access to a protected operation.
21169         (OK_Self_Reference): New subprogram to check the legality of an access
21170         attribute whose prefix is the type of an enclosing aggregate.
21171         Generalizes previous mechanism to handle attribute references nested
21172         arbitrarily deep within the aggregate.
21173         (Analyze_Access_Attribute): An access attribute whose prefix is a type
21174         can appear in an aggregate if this is a default-initialized aggregate
21175         for a self-referential type.
21176         (Resolve_Attribute, case Access): Ditto.
21177         Add support for new implementation defined attribute Stub_Type.
21178         (Eval_Attribute, case Attribute_Stub_Type): New case.
21179         (Analyze_Attribute, case Attribute_Stub_Type): New case.
21180         (Stream_Attribute_Available): Implement using new subprogram from
21181         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
21182         Has_Specified_Stream_Attribute flag.
21183         Disallow Storage_Size and Storage_Pool for access to subprogram
21184         (Resolve_Attribute, case 'Access et al): Take into account anonymous
21185         access types of return subtypes in extended return statements. Remove
21186         accessibility checks on anonymous access types when Unchecked_Access is
21187         used.
21188         (Analyze_Attribute): Add support for the use of 'Class to convert
21189         a class-wide interface to a tagged type.
21190         Add support for the attribute Priority.
21191         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
21192         whether the designated type is discriminated with a constrained partial
21193         view and require static matching in that case.
21194         Add local variable Des_Btyp. The Designated_Type
21195         of an access to incomplete subtype is either its non-limited view if
21196         coming from a limited with or its etype if regular incomplete subtype.
21197
21198         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
21199         Fix predicate to identify and allow cases of (expander-generated)
21200         references to tag of designated object of a RACW.
21201         (Validate_Static_Object_Name): In Ada 2005, a formal object is
21202         non-static, and therefore cannot appear as a primary in a preelaborable
21203         package.
21204         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
21205         Has_Read_Write_Attributes.
21206         (Has_Read_Write_Attributes): Reimplement in termes of
21207         Has_Stream_Attribute_Definition.
21208         (Missing_Read_Write_Attributes): When checking component types in a
21209         record, unconditionally call Missing_Read_Write_Attributes recursively
21210         (remove guard checking for Is_Record_Type / Is_Access_Type).
21211
21212 2006-10-31  Robert Dewar  <dewar@adacore.com>
21213
21214         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
21215         useless assignments here and conditionalize it on absence of exception
21216         handlers.
21217         (Analyze_Exception_Handlers): Small code reorganization of error
21218         detection code, for new handling of formal packages.
21219
21220 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21221             Hristian Kirtchev  <kirtchev@adacore.com>
21222
21223         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
21224         that has been constant-folded, preserve information of original tree,
21225         for ASIS uses.
21226         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
21227         generated private extension declaration if the formal derived type is
21228         synchronized. Carry synchronized present over to the generated private
21229         extension.
21230         (Validate_Derived_Type_Instance): Ensure that the actual of a
21231         synchronized formal derived type is a synchronized tagged type.
21232         (Instantiate_Formal_Package): When creating the instantiation used to
21233         validate the actual package of a formal declared without a box, check
21234         whether the formal itself depends on a prior actual.
21235         (Instantiate_Formal_Subprogram): Create new entities for the defining
21236         identifiers of the formals in the renaming declaration, for ASIS use.
21237         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
21238         a renaming declaration or a subtype declaration for an actual in an
21239         instance, capture location information of declaration in generic, for
21240         ASIS use.
21241         (Instantiate_Formal_Package): Add comments on needed additional tests.
21242         AI-317 (partial parametrization) is fully implemented.
21243         (Validate_Private_Type_Instance): Add check for actual which
21244         must have preelaborable initialization
21245         Use new // insertion for some continuation messages
21246         (Analyze_Formal_Object_Declaration): Change usage of Expression to
21247         Default_Expression. Add type retrieval when the declaration has an
21248         access definition. Update premature usage of incomplete type check.
21249         (Check_Access_Definition): New subsidiary routine. Check whether the
21250         current compilation version is Ada 05 and the supplied node has an
21251         access definition.
21252         (Instantiate object): Alphabetize local variables. Handle the creation
21253         of new renaming declarations with respect to the kind of definition
21254         used - either an access definition or a subtype mark. Guard against
21255         unnecessary error message in the context of anonymous access types after
21256         they have been resolved. Add check for required null exclusion in a
21257         formal object declaration.
21258         (Switch_View): A private subtype of a non-private type needs to be
21259         switched (the base type can have been switched without its private
21260         dependents because of the last branch of Check_Private_View.
21261         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
21262         value from BT.
21263         (Instantiate_Type): Emit an error message whenever a class-wide type of
21264         a tagged incomplete type is used as a generic actual.
21265         (Find_Actual_Type): Extend routine to handle a component type in a child
21266         unit that is imported from a formal package in a parent.
21267         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
21268         agree on constrainedness, rather than checking against ultimate ancestor
21269         (Instantiate_Subprogram_Body): Create a cross-reference link to the
21270         generic body, for navigation purposes.
21271
21272 2006-10-31  Robert Dewar  <dewar@adacore.com>
21273             Thomas Quinot  <quinot@adacore.com>
21274
21275         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
21276         type.
21277         (New_Stream_Subprogram): When processing an attribute definition clause
21278         for a stream-oriented subprogram, record an entity node occurring at
21279         the point of clause to use for checking the visibility of the clause,
21280         as defined by 8.3(23) as amended by AI-195.
21281         (New_Stream_Subprogram): New procedure, factoring behaviour from both
21282          New_Stream_Function and New_Stream_Procedure.
21283         (New_Stream_Function, New_Stream_Procedure): Removed.
21284         (Analyze_Attribute_Definition_Clause, case Address): Check new
21285         Alignment_Check check
21286
21287 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21288             Javier Miranda  <miranda@adacore.com>
21289             Robert Dewar  <dewar@adacore.com>
21290
21291         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
21292         generate the same errors compiling under -gnatc.
21293         (Try_Object_Operation): If no candidate interpretation succeeds, but
21294         there is at least one primitive operation with the right name, report
21295         error in call rather than on a malformed selected component.
21296         (Analyze_Selected_Component): If the prefix is an incomplete type from
21297         a limited view, and the full view is available, use the full view to
21298         determine whether this is a prefixed call to a primitive operation.
21299         (Operator_Check): Verify that a candidate interpretation is a binary
21300         operation before checking the type of its second formal.
21301         (Analyze_Call): Add additional warnings for function call contexts not
21302         yet supported.
21303         (Analyze_Allocator): Move the check for "initialization not allowed for
21304         limited types" after analyzing the expression. This is necessary,
21305         because OK_For_Limited_Init looks at the structure of the expression.
21306         Before analysis, we don't necessarily know what sort of expression it
21307         is. For example, we don't know whether F(X) is a function call or an
21308         indexed component; the former is legal in Ada 2005; the latter is not.
21309         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
21310         were missing. We also didn't handle qualified expressions. Now also
21311         allow function calls. Use new common routine OK_For_Limited_Init.
21312         (Analyze_Type_Conversion): Do not perform some legality checks in an
21313         instance, because the error message will be redundant or spurious.
21314         (Analyze_Overloaded_Selected_Component): Do not do style check when
21315         setting an entity, since we do not know it is the right entity yet.
21316         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
21317         (Analyze_Overloaded_Selected_Component): Same change
21318         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
21319         since regular incomplete subtypes are transformed into corresponding
21320         subtypes of their full views.
21321         (Complete_Object_Operation): Treat name of transformed subprogram call
21322         as coming from source, for browsing purposes.
21323         (Try_Primitive_Operation): If formal is an access parameter, compare
21324         with base type of object to determine whether it is a primitive
21325         operation.
21326         (Operator_Check): If no interpretation of the operator matches, check
21327         whether a use clause on any candidate might make the operation legal.
21328         (Try_Class_Wide_Operation): Check whether the first parameter is an
21329         access type whose designated type is class-wide.
21330
21331 2006-10-31  Robert Dewar  <dewar@adacore.com>
21332             Ed Schonberg  <schonberg@adacore.com>
21333             Gary Dismukes  <dismukes@adacore.com>
21334
21335         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
21336         warn on infinite loops.
21337         Add \\ to some continuation messages
21338         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
21339         (Process_Bounds): If the bounds are integer literals that result from
21340         constant-folding, and they carry a user-defined type, preserve that type
21341         rather than treating this as an integer range.
21342         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
21343         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
21344         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
21345         left hand side of assignment.
21346         (Analyze_Assignment): Add suport to manage assigments to the attribute
21347         priority of a protected object.
21348         (Check_Possible_Current_Value_Condition): Allow fully qualified names
21349         not just identifiers.
21350         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
21351         or AND THEN for possible tracking.
21352         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
21353         case of while loops so we can track values in the loop body.
21354
21355 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21356             Hristian Kirtchev  <kirtchev@adacore.com>
21357             Bob Duff  <duff@adacore.com>
21358
21359         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
21360         procedure cannot be a protected operation (it is a basic_declaration,
21361         not a subprogram_declaration).
21362         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
21363         Subp. Add logic for entry processing.
21364         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
21365         Determine whether an entry or subprogram of a protected or task type
21366         override an inherited primitive of an implemented interface.
21367         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
21368         Update the actual used in calls to Check_Overriding_Indicator.
21369         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
21370         generate the proper reference to the parent unit, for cross-reference.
21371         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
21372         Is_Formal.
21373         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21374         (Add_Extra_Formal): Revise procedure to allow passing in associated
21375         entity, scope, and name suffix, and handle setting of the new
21376         Extra_Formals field.
21377         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
21378         pass new parameters. Add support for adding the new extra access formal
21379         for functions whose calls are treated as build-in-place.
21380         (Analyze_A_Return_Statement): Correct casing in error message.
21381         Move Pop_Scope to after Analyze_Function_Return, because an extended
21382         return statement really is a full-fledged scope. Otherwise, visibility
21383         doesn't work right. Correct use of "\" for continuation messages.
21384         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
21385         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
21386         the node doesn't get properly marked as analyzed.
21387         (Analyze_Subprogram_Body): If subprogram is a function that returns
21388         an anonymous access type that denotes a task, build a Master Entity
21389         for it.
21390         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
21391         proper usage of null exclusion in a result definition.
21392         (Process_Formals): Code cleanup and new error message.
21393         (Process_Formals): Detect incorrect application of null exclusion to
21394         non-access types.
21395         (Conforming_Types): Handle conformance between [sub]types and itypes
21396          generated for entities that have null exclusions applied to them.
21397         (Maybe_Primitive_Operation): Add an additional type retrieval when the
21398          base type is an access subtype. This case arrises with null exclusions.
21399         (New_Overloaded_Entity): Do not remove the overriden entity from the
21400         homonym chain if it corresponds with an abstract interface primitive.
21401         (Process_Formals): Replace membership test agains Incomplete_Kind with a
21402         call to the synthesized predicate Is_Incomplete_Type.
21403         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
21404         primitives.
21405         (Analyze_Subprogram_Declaration): Check that abstract interface
21406         primitives are abstract or null.
21407         (Analyze_Subprogram_Specification): Remove previous check for abstract
21408         interfaces because it was not complete.
21409         (Has_Interface_Formals): Removed.
21410
21411 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21412             Javier Miranda  <miranda@adacore.com>
21413
21414         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
21415         of Analyze_Package_Body, to create Itype references for anonymous
21416         access types created in the package declaration, whose designated types
21417         may have only a limited view.
21418         (Analyze_Package_Specification): For the private part of a nested
21419         package, install private_with_clauses of enclosing compilation unit if
21420         we are in its visible part.
21421         (Declare_Inherited_Private_Subprograms): Complete barrier
21422         to ensure that the primitive operation has an alias to some parent
21423         primitive. This is now required because, after the changes done for the
21424         implementation of abstract interfaces, the contents of the list of
21425         primitives has entities whose alias attribute references entities of
21426         such list of primitives.
21427         (Analyze_Package_Specification): Simplify code that handles parent units
21428         of instances and formal packages.
21429         (Uninstall_Declarations): Check the convention consistency among
21430         primitive overriding operations of a tagged record type.
21431
21432 2006-10-31  Robert Dewar  <dewar@adacore.com>
21433             Hristian Kirtchev  <kirtchev@adacore.com>
21434             Javier Miranda  <miranda@adacore.com>
21435             Ed Schonberg  <schonberg@adacore.com>
21436
21437         * sem_ch8.adb: Minor error msg rewording
21438         (Undefined): When checking for misspellings, invert arguments (to get
21439         expected and found set right)
21440         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
21441         (Analyze_Generic_Renaming): Same fix
21442         (Use_One_Package): Do not take into account the internal entities of
21443         abstract interfaces during the analysis of entities that are marked
21444         as potentially use-visible.
21445         (Find_Type): Handle the case of an attribute reference for
21446         implementation defined attribute Stub_Type (simply let the analysis of
21447         the attribute reference rewrite it).
21448         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
21449         type that appears in a Use_Type clause.
21450         (Analyze_Object_Renaming): Add support for renaming of the Priority
21451         attribute.
21452         (Find_Type): In Ada 2005, a task type can be used within its own body,
21453         when it appears in an access definition.
21454         (Analyze_Object_Renaming): Remove warning on null_exclusion.
21455         (Analyze_Object_Renaming): Introduce checks for required null exclusion
21456          in a formal object declaration or in a subtype declaration.
21457         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
21458         (Check_Null_Exclusion): New local routine to
21459         Analyze_Subprogram_Renaming. Check whether the formals and return
21460         profile of a renamed subprogram have required null exclusions when
21461         their counterparts of the renaming already impose them.
21462         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
21463         Determine whether an entity is inside a generic scope.
21464         (In_Open_Scope): First pass of documentation update.
21465         (Find_Expanded_Name): Add support for shadow entities associated with
21466         limited withed packages. This is required to handle nested packages.
21467         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
21468         that makes a renaming of a limited withed package illegal.
21469
21470 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
21471             Ed Schonberg  <schonberg@adacore.com>
21472
21473         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
21474         Check_Overriding_Indicator.
21475         (Analyze_Task_Definition): Ditto.
21476         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
21477         (Check_Overriding_Indicator): To find overridden interface operation,
21478         examine only homonyms that have an explicit subprogram declaration, not
21479         inherited operations created by an unrelated type derivation.
21480         (Check_Overriding_Indicator): When checking for the presence of "null"
21481         in a procedure, ensure that the queried node is a procedure
21482         specification.
21483         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
21484         type when the formal is an access to variable.
21485         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
21486         (Analyze_Task_Type): Same addition
21487         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
21488         provide navigation capabilities for entries.
21489
21490 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
21491             Ed Schonberg  <schonberg@adacore.com>
21492             Javier Miranda  <miranda@adacore.com>
21493             Gary Dismukes  <dismukes@adacore.com>
21494
21495         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
21496         inherited from an interface ancestor by another interface in the
21497         context of an instance as 'late'.
21498         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
21499         of a call to a function that dispatches on access result.
21500         (Check_Dispatching_Operation): In case of late overriding of a primitive
21501         that covers abstract interface subprograms we register it in all the
21502         secondary dispatch tables associated with abstract interfaces.
21503         (Check_Dispatching_Call): Add check that a dispatching call is not made
21504         to a function with a controlling result of a limited type. This is a
21505         current implementation restriction.
21506         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
21507         (Check_Dispatching_Operation): Do no emit a warning if the controlling
21508         argument is an interface type that is a generic formal.
21509         (Is_Interface_Subprogram): Removed.
21510         (Check_Dispatching_Operation): If the subprogram is not a dispatching
21511         operation, check the formals to handle the case in which it is
21512         associated with an abstract interface type.
21513
21514 2006-10-31  Robert Dewar  <dewar@adacore.com>
21515             Ed Schonberg  <schonberg@adacore.com>
21516
21517         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
21518         Add new calls to this procedure during traversal
21519         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
21520         another unit if expansion is disabled.
21521
21522 2006-10-31  Robert Dewar  <dewar@adacore.com>
21523
21524         * sem_eval.adb (Compile_Time_Compare): Make use of information from
21525         Current_Value in the conditional case, to evaluate additional
21526         comparisons at compile time.
21527
21528 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21529             Hristian Kirtchev  <kirtchev@adacore.com>
21530             Javier Miranda  <miranda@adacore.com>
21531
21532         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
21533         subprogram type to provide better diagnostics in case of ambiguity.
21534         (Covers): Handle coverage of formal and actual anonymous access types in
21535         the context of generic instantiation.
21536         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
21537         abstract interface types; this is required to handle concurrent types
21538         with discriminants and abstract interface types.
21539         (Covers): Include type coverage of both regular incomplete subtypes and
21540         incomplete subtypes of incomplete type visibles through a limited with
21541         clause.
21542
21543 2006-10-31  Robert Dewar  <dewar@adacore.com>
21544             Hristian Kirtchev  <kirtchev@adacore.com>
21545             Ed Schonberg  <schonberg@adacore.com>
21546
21547         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
21548         messages for entities in packages which are not used.
21549         (Collect_Synchronized_Interfaces): New procedure.
21550         (Overrides_Synchronized_Primitive): New function.
21551         (Denotes_Discriminant): Extend predicate to apply to task types.
21552         Add missing continuation marks in error msgs
21553         (Unqualify): New function for removing zero or more levels of
21554         qualification from an expression. There are numerous places where this
21555         ought to be used, but we currently only deal properly with zero or one
21556         level.
21557         (In_Instance); The analysis of the actuals in the instantiation of a
21558         child unit is not within an instantiation, even though the parent
21559         instance is on the scope stack.
21560         (Safe_To_Capture_Value): Exclude the case of variables that are
21561         renamings.
21562         (Check_Obsolescent): Removed
21563         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
21564         is an aliased view, even when rewritten as a reference to the target
21565         object in an assignment.
21566         (Get_Subprogram_Entity): New function
21567         (Known_To_Be_Assigned): New function
21568         (Type_Access_Level): Compute properly the access level of a return
21569         subtype that is an anonymous access type.
21570         (Explain_Limited_Type): Correct use of "\" for continuation messages.
21571         (Is_Transfer): The new extended_return_statement causes a transfer of
21572         control.
21573         (Has_Preelaborable_Initialization): New function
21574         (Has_Null_Exclusion): New function. Given a node N, determine whether it
21575         has a null exclusion depending on its Nkind.
21576         Change Is_Lvalue to May_Be_Lvalue
21577         (May_Be_Lvalue): Extensive additional code to deal with subprogram
21578         arguments (IN parameters are not Lvalues, IN OUT parameters are).
21579         (Safe_To_Capture_Value): Extend functionality so it can be used for
21580         the current value condition case.
21581         (Has_Compatible_Alignment): New function
21582         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
21583         objects to handle the Ada 2005 case, where aliasedness no longer implies
21584         that the object is constrained. In particular, for dereferenced names,
21585         the designated object must be assumed to be unconstrained.
21586         (Kill_Current_Values): Properly deal with the case where we encounter
21587         a loop in the scope chain.
21588         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
21589         a value.
21590         (Compile_Time_Constraint_Error): Improve error message in error case
21591
21592         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
21593         associated with entities of abstract interface primitives.
21594         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
21595
21596 2006-10-31  Robert Dewar  <dewar@adacore.com>
21597
21598         * s-osinte-tru64.adb:
21599         Mark Asm statements Volatile to prevent warnings (seems a
21600         reasonable change anyway)
21601         Fixes new warnings
21602
21603         * s-mastop-irix.adb: Add Volatile to Asm statements
21604         Suppresses warning, and seems appropriate in any case
21605
21606         * s-osinte-vms.adb: Add Volatile to Asm statement
21607
21608         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
21609
21610         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
21611         returned.
21612         Add call to Check_Code_Statement
21613
21614 2006-10-31  Robert Dewar  <dewar@adacore.com>
21615             Ed Schonberg  <schonberg@adacore.com>
21616             Bob Duff  <duff@adacore.com>
21617
21618         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
21619         Synchronized_Present): Add Formal_Derived_Type_Definition and
21620         Private_Extension_Declaration to the list of assertions.
21621         (Is_Entry_Barrier_Function): New flag
21622         (Has_Self_Reference): New flag on aggregates, to indicate that they
21623         contain a reference to the enclosing type, inserted through a default
21624         initialization.
21625         (Next_Rep_Item): Move from Node4 to Node5.
21626         (Entity): Add this field for N_Attribute_Definition_Clause.
21627         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
21628         (N_Return_Object_Declaration): Remove this node kind. We now use
21629         N_Object_Declaration instead.
21630         (Actual_Designated_Subtype): Move to a different place to make room in
21631         N_Extended_Return_Statement.
21632         (Procedure_To_Call): Move to a different place to make room in
21633         N_Extended_Return_Statement.
21634         (Return_Type): Removed this field to make room in return statements
21635         (both kinds).
21636         (Return_Statement_Entity): New field in return statements, in part to
21637         replace Return_Type, and in part to support the fact that return
21638         statements are now pushed on the scope stack during semantic analysis.
21639         (Return_Object_Declarations): New field to support extended return
21640         statements.
21641         (N_Extended_Return_Statement): New node for extended_return_statement
21642         nonterminal.
21643         (N_Return_Object_Declaration): New node for part of
21644         extended_return_statement nonterminal. Needed because all the necessary
21645         fields won't fit in N_Extended_Return_Statement.
21646         Generic_associations now carry the Box_Present flag, to indicate a
21647         default for an actual in a partially parametrized formal package.
21648
21649         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
21650         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
21651         and for the new predefined dispatching policies: EDF_Across_Priorities,
21652         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
21653         Introduce new name Stub_Type for implementation defined attribute.
21654         Add pragma Preelaborable_Initialization
21655         Add entry for Priority attribute.
21656         Add Pragma_Wide_Character_Encoding
21657         (Get_Convention_Name): Given a convention id, this function returns the
21658         corresponding name id from the names table.
21659
21660 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
21661             Robert Dewar  <dewar@adacore.com>
21662             Bob Duff  <duff@adacore.com>
21663
21664         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
21665         print null exclusion twice in the case of an access definition,
21666         Implement new -gnatL switch
21667         Remove N_Return_Object_Declaration. We now use
21668         N_Object_Declaration instead. Implement the case for
21669         N_Extended_Return_Statement. Alphabetize the cases.
21670         Add cases for new nodes N_Extended_Return_Statement and
21671         N_Return_Object_Declaration. The code is not yet written.
21672         Update the output for N_Formal_Object_Declaration
21673         and N_Object_Renaming_Declaration.
21674         (Write_Itype): Account for the case of a modular integer subtype whose
21675         base type is private.
21676
21677 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
21678
21679         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
21680         Remove elaboration code, now done in the binder.
21681
21682         * s-rident.ads: Make this unit Preelaborate.
21683         (No_Restrictions): New constant used to clean up code and follow
21684         preelaborate constraints.
21685
21686         * s-stalib.adb:
21687         Add System.Restrictions dependence, referenced directly from the
21688         binder generated file.
21689
21690 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
21691
21692         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
21693         True when AAMP extended floating-point is in use (48-bit). Change type
21694         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
21695         the two byte array types on AFloat. Change type of IV_Ilf overlay
21696         variable from Byte8 to ByteLF. Add appropriate initializations of
21697         floating-point overlays for AAMP cases.
21698
21699 2006-10-31  Javier Miranda  <miranda@adacore.com>
21700
21701         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
21702         (Get_Ceiling): New subprogram that returns
21703         the ceiling priority of the protected object.
21704         (Set_Ceiling): New subprogram that sets the new ceiling priority of
21705         the protected object.
21706
21707         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
21708
21709         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
21710
21711 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
21712
21713         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
21714         requeuing to the same protected object to give higher priority tasks
21715         the opportunity to execute.
21716
21717 2006-10-31  Robert Dewar  <dewar@adacore.com>
21718
21719         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
21720         add more precise check for the character sequence that follows '[' to
21721         avoid possible confusion in case if '[' is the last character of a
21722         string literals.
21723         (Scan_Wide): Always allow brackets encoding
21724
21725 2006-10-31  Olivier Hainque  <hainque@adacore.com>
21726
21727         * s-stchop.ads: make this unit preelaborate. This is desirable in
21728         general and made mandatory by the use of this unit by s-taprop which
21729         is itself preelaborate.
21730
21731         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
21732         Td_Events component.
21733
21734 2006-10-31  Vincent Celier  <celier@adacore.com>
21735
21736         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
21737         in file names.
21738
21739 2006-10-31  Vincent Celier  <celier@adacore.com>
21740
21741         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
21742
21743 2006-10-31  Vincent Celier  <celier@adacore.com>
21744
21745         * makegpr.adb (Check_Compilation_Needed): Take into account path names
21746         with spaces.
21747         (Check_Compilation_Needed): When checking a C or C++ source, do not
21748         resolve symbolic links.
21749         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
21750         When not in verbose mode and Ellipse is True, display "..." for the
21751         first argument with Display set to False.
21752         (Build_Global_Archive): Always set Display True for the first object
21753         file. Call Display_Command with Ellipse set to True.
21754
21755 2006-10-31  Matt Heaney  <heaney@adacore.com>
21756
21757         * a-crbtgo.ads: Commented each subprogram
21758
21759         * a-crbtgo.adb: Added reference to book from which algorithms were
21760         adapted.
21761
21762         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
21763         indicate which child.
21764         (Generic_Conditional_Insert): changed parameter name from "Success" to
21765         "Inserted".
21766         (Generic_Unconditional_Insert_With_Hint): improved algorithm
21767
21768         * a-coorse.adb (Replace_Element): changed parameter name in call to
21769         conditional insert operation.
21770
21771         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
21772
21773         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
21774         Generic_Iteration
21775
21776         * a-ciorse.adb (Replace_Element): changed parameter name in call to
21777         conditional insert operation.
21778
21779         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
21780         Generic_Iteration.
21781
21782         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
21783         instead of mode inout.
21784
21785         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
21786         draft
21787         (Generic_Read): preserve existing buckets array if possible
21788         (Generic_Write): don't send buckets array length anymore
21789
21790         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
21791         instead of mode inout.
21792
21793         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
21794         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
21795
21796         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
21797         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
21798         (Replace_Element): local operation is now an instantiation
21799
21800         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
21801         check current length.
21802         (Generic_Replace_Element): new operation
21803
21804 2006-10-31  Doug Rupp  <rupp@adacore.com>
21805
21806         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
21807         Call TBK$SYMBOLIZE without omitting parameters.
21808
21809 2006-10-31  Vincent Celier  <celier@adacore.com>
21810
21811         * symbols-processing-vms-ia64.adb,
21812         symbols-processing-vms-alpha.adb (Process): Do not include symbols
21813         that come from generic instantiations in bodies.
21814
21815 2006-10-31  Pat Rogers  <rogers@adacore.com>
21816
21817         * a-rttiev.ads, a-rttiev.adb:
21818         This is a significant redesign primarily for the sake of automatic
21819         timer task termination but also to fix a design flaw.
21820         Therefore we are now using an RTS lock, instead of a protected
21821         object, to provide mutual exclusion to the queue of pending events
21822         and the type Timing_Event is no longer a protected type.
21823
21824 2006-10-31  Robert Dewar  <dewar@adacore.com>
21825             Cyrille Comar  <comar@adacore.com>
21826             Ben Brosgol  <brosgol@adacore.com>
21827
21828         * debug.adb:  Update flags documentation
21829
21830         * gnat_ugn.texi: Add documentation for new -gnatwq switch
21831         Clean up documentation for several other warning switches
21832         Clarify how task stack size can be specified with various
21833         versions of Windows.
21834         Add note that -gnatVo includes ranges including loops
21835         Add documentation for -gnatL switch
21836         Add note on elaboration warning for initializing variables
21837         Add documentation for new -gnatwt warning switch
21838         Document new form of pragma Warnings (On|Off, string)
21839         Add comment on use of pragma Warnings to control warnings
21840         Add documentation for -gnatjnn switch
21841         Modify section on interfacing with C for VMS 64-bit.
21842         Add doc for -gnatVe/E
21843         Add documentation of new warning flags -gnatww/-gnatwW
21844         Add warnings about address clause overlays to list of warnings
21845         (Exception Handling Control): Document that the option --RTS must be
21846         used consistently for gcc and gnatbind.
21847         Clarify that inlining is not always possible
21848         Update documentation on pragma Unchecked_Union.
21849
21850         * gnat_rm.texi:
21851         Add documentation for new extended version of pragma Obsolescent
21852         Add documentation for implementation defined attribute 'Stub_Type.
21853         Add note on use of Volatile in asm statements
21854         Add documentation on use of pragma Unreferenced in context clause
21855         Document new form of pragma Warnings (On|Off, pattern)
21856         Document pragma Wide_Character_Encoding
21857         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
21858         enforced if code generation is active.
21859         Add section on pragma Suppress to document GNAT specific check
21860         Alignment_Check
21861         Clarify difference between No_Dispatching_Calls & No_Dispatch.
21862         Add documentation for pragma Restrictions (No_Elaboration_Code)
21863
21864         * gnat-style.texi:
21865         Add comments on layout of subprogram local variables in the
21866         presence of nested subprograms.
21867
21868         * ug_words: Resync.
21869
21870         * elists.ads: Minor reformatting
21871         Node returns Node_Or_Entity_Id (doc change only)
21872
21873         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
21874
21875         * g-arrspl.ads (Create): Update comments.
21876
21877         * sem.ads: Add details on the handling of the scope stack.
21878
21879         * usage.adb: Update documentation.
21880
21881         * validsw.ads, validsw.adb:
21882         Add definition of Validity_Check_Components and implement -gnatVe/E
21883
21884         * vms_data.ads: Add missing VMS qualifiers.
21885
21886         * s-addope.ads: Add documentation on overflow and divide by zero
21887
21888 2006-10-31  Robert Dewar  <dewar@adacore.com>
21889             Thomas Quinot  <quinot@adacore.com>
21890             Arnaud Charlet  <charlet@adacore.com>
21891
21892         * fmap.adb: Put routines in alpha order
21893
21894         * g-boumai.ads: Remove redundant 'in' keywords
21895
21896         * g-cgi.adb: Minor reformatting
21897
21898         * g-cgi.ads: Remove redundant 'in' keywords
21899
21900         * get_targ.adb: Put routines in alpha order
21901
21902         * prj-attr.ads: Minor reformatting
21903
21904         * s-atacco.ads: Minor reformatting
21905
21906         * scn.adb: Put routines in alpha order
21907
21908         * sinput-l.adb: Minor comment fix
21909
21910         * sinput-p.adb: Minor comment fix
21911
21912         * s-maccod.ads: Minor reformatting
21913
21914         * s-memory.adb: Minor reformatting
21915
21916         * s-htable.adb: Fix typo in comment.
21917
21918         * s-secsta.adb: Minor comment update.
21919
21920         * s-soflin.adb: Minor reformatting
21921
21922         * s-stoele.ads:
21923         Add comment about odd qualification in Storage_Offset declaration
21924
21925         * s-strxdr.adb:
21926         Remove unnecessary 'in' keywords for formal parameters.
21927
21928         * treeprs.adt: Minor reformatting
21929
21930         * urealp.adb: Put routines in alpha order
21931
21932         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
21933         taking string.
21934
21935         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
21936
21937         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
21938
21939         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
21940         workaround as on other platforms.
21941
21942         * g-eacodu-vms.adb: Remove redundant 'in' keywords
21943         * g-expect-vms.adb: Remove redundant 'in' keywords
21944
21945         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
21946         clear error message if the list-of-files file cannot be opened.
21947
21948         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
21949         equality operator is always visible.
21950
21951         * lang.opt: Woverlength-strings: New option.
21952
21953         * nmake.adt:
21954         Update copyright, since nmake.ads and nmake.adb have changed.
21955
21956         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
21957         (Binder_Output_Time_Stamps_Set): removed.
21958         (Old_Binder_Output_Time_Stamp): idem.
21959         (New_Binder_Output_Time_Stamp): idem.
21960         (Recording_Time_From_Last_Bind): idem.
21961         (Recording_Time_From_Last_Bind): Make constant.
21962
21963         * output.ads, output.adb (Write_Str): Allow LF characters
21964         (Write_Spaces): New procedure
21965
21966         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
21967
21968         * inline.adb: Minor reformatting
21969
21970         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
21971
21972         * s-mastop-vms.adb: Remove redundant 'in' keywords
21973
21974         * s-osprim-vms.adb: Remove redundant 'in' keywords
21975
21976         * s-trafor-default.adb: Remove redundant 'in' keywords
21977
21978         * 9drpc.adb: Remove redundant 'in' keywords
21979
21980         * s-osinte-mingw.ads: Minor reformatting
21981
21982         * s-inmaop-posix.adb: Minor reformatting
21983
21984         * a-direio.ads: Remove quotes from Compile_Time_Warning message
21985
21986         * a-exexda.adb: Minor code reorganization
21987
21988         * a-filico.adb: Minor reformatting
21989
21990         * a-finali.adb: Minor reformatting
21991
21992         * a-nudira.ads: Remove quote from Compile_Time_Warning message
21993
21994         * a-numeri.ads: Minor reformatting
21995
21996         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
21997
21998         * exp_pakd.ads: Fix obsolete comment
21999
22000         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
22001         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
22002         Probably not a bug, but certainly neater and more efficient.
22003
22004         * a-tienio.adb: Minor reformatting
22005
22006         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
22007         Avoid assuming low bound of string is 1.
22008
22009         * gnatbind.adb: Change Bindusg to package and rename procedure as
22010         Display, which now ensures that it only outputs usage information once.
22011         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
22012
22013         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
22014         Table'First.
22015
22016         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
22017         warning.
22018         (Match): Add pragma Assert to ensure that Matches'First is zero
22019
22020         * g-regpat.ads (Match): Document that Matches lower bound must be zero
22021
22022         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
22023         documented preconditions (also kills warnings about bad indexes).
22024
22025         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
22026         is 1.
22027         (Build_Import_Library): Ditto;
22028
22029         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
22030
22031         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
22032
22033         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
22034         lower bound of choice table is 1.
22035
22036         * sem_case.ads (Analyze_Choices): Document that lower bound of
22037         Choice_Table is 1.
22038
22039         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
22040         string is 1.
22041
22042         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
22043         and add appropriate Assert pragma to suppress warnings.
22044
22045         * atree.h, atree.ads, atree.adb
22046         Change Elist24 to Elist25
22047         Add definitions of Field28 and Node28
22048         (Traverse_Field): Use new syntactic parent table in sinfo.
22049
22050         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22051
22052         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22053
22054         * exp_tss.adb: Put routines in alpha order
22055
22056         * fe.h: Remove redundant declarations.
22057
22058 2006-10-23 Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22059
22060         * utils.c (builtin_function): Rename to gnat_builtin_function.
22061         Move common code to add_builtin_function.
22062         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
22063         gnat_builtin_function.
22064         * gigi.h (builtin_function): Rename to gnat_builtin_function.
22065         Change the signature.
22066
22067 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
22068
22069         * Makefile.in: Add TEXI2PDF definition.
22070         * Make-lang.in: Add "ada.pdf" target.
22071
22072 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
22073
22074         * decl.c, utils.c: Fix comment typos.
22075         * utils.c: Fix a typo.
22076
22077 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
22078
22079         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
22080         on "pure" Ada subprograms if SJLJ exceptions are used.
22081         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
22082         on the declaration node of JMPBUF_SAVE.
22083         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
22084         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
22085         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
22086
22087 2006-08-20  Laurent Guerby  <laurent@guerby.net>
22088
22089         PR ada/28716
22090         g-socket.adb (Bind_Socket): Call Set_Address.
22091
22092 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
22093
22094         PR ada/15802
22095         * decl.c (same_discriminant_p): New static function.
22096         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
22097         subtype and we have discriminants, fix up the COMPONENT_REFs
22098         for the discriminants to make them reference the corresponding
22099         fields of the parent subtype after it has been built.
22100
22101 2006-09-15  Roger Sayle  <roger@eyesopen.com>
22102
22103         PR ada/18817
22104         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
22105         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
22106
22107 2006-09-13  Olivier Hainque  <hainque@adacore.com>
22108
22109         PR ada/29025
22110         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
22111         of a SAVE_EXPR, just make the operand addressable/not-readonly and
22112         let the common gimplifier code make and propagate a temporary copy.
22113         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
22114         out/in-out actuals and defer setting the addressable/readonly bits
22115         to the gimplifier.
22116
22117 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
22118
22119         PR ada/28591
22120         * decl.c (components_to_record): Defer emitting debug info for the
22121         record type associated with the variant until after we are sure to
22122         actually use it.
22123
22124 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
22125
22126         PR ada/21952
22127         * gigi.h (gnat_internal_attribute_table): Declare.
22128         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
22129         * utils.c (gnat_internal_attribute_table): New global variable.
22130         (builtin_function): Always call decl_attributes on the builtin.
22131         (handle_const_attribute): New static function.
22132         (handle_nothrow_attribute): Likewise.
22133
22134 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
22135
22136         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
22137
22138 2006-06-23  Olivier Hainque  <hainque@adacore.com>
22139
22140         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
22141         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
22142
22143 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
22144             Eric Botcazou  <ebotcazou@adacore.com>
22145
22146         PR ada/18692
22147         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
22148         check-gnat into check-acats.
22149
22150 2006-06-17  Karl Berry  <karl@gnu.org>
22151
22152         * gnat-style.texi (@dircategory): Use "Software development"
22153         instead of "Programming", following the Free Software Directory.
22154
22155 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22156
22157         PR ada/27944
22158         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
22159
22160 2006-06-06  Laurent Guerby  <laurent@guerby.net>
22161
22162         PR ada/27769
22163         mlib-utl.adb: Use Program_Name.
22164
22165 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
22166
22167         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
22168         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
22169         trans.c, utils.c: Fix comment typos.  Follow spelling
22170         conventions.
22171         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
22172         conventions.
22173
22174 2006-05-19  Nicolas Setton  <setton@adacore.com>
22175
22176         * misc.c (gnat_dwarf_name): New function.
22177         (LANG_HOOKS_DWARF_NAME): Define to it.
22178
22179 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
22180
22181         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
22182         (ada/misc.o): Likewise.
22183         (ada/utils.o): Likewise.
22184
22185 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
22186
22187         * Makefile.in: Add Ada support for GNU/kFreeBSD.
22188         * s-osinte-kfreebsd-gnu.ads: New file.
22189
22190 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
22191
22192         * Make-lang.in: Rename docdir to gcc_docdir.
22193
22194 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
22195
22196         * gigi.h (get_ada_base_type): Delete.
22197         * utils2.c (get_ada_base_type): Likewise.
22198         * trans.c (convert_with_check): Operate in the real base type.
22199
22200 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22201
22202         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
22203
22204 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
22205
22206         * utils.c (create_var_decl): Use have_global_bss_p when deciding
22207         whether to make the decl common.
22208
22209 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22210
22211         * Make-lang.in (Ada): Remove.
22212         (.PHONY): Remove Ada
22213
22214 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22215
22216         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
22217         aggregate, check the interpretations of the other operand to find one
22218         that may be a boolean array.
22219
22220         (Analyze_Selected_Component): Fix flow-of-control typo in case where
22221         the prefix is a private extension.
22222
22223 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
22224
22225         PR ada/26315
22226         * utils2.c (find_common_type): If both input types are BLKmode and
22227         have the same constant size, keep using the first one.
22228
22229         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
22230
22231         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
22232
22233         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
22234
22235 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
22236
22237         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
22238         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
22239         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
22240         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
22241         Abort_Defer/Undefer pairs to avoid the possibility of a task being
22242         aborted while owning a lock.
22243
22244 2006-02-17  Javier Miranda  <miranda@adacore.com>
22245             Robert Dewar  <dewar@adacore.com>
22246
22247         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
22248         through an access to class-wide interface we force the displacement of
22249         the pointer to the allocated object to reference the corresponding
22250         secondary dispatch table.
22251         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
22252         if Long_Shifts are supported on the target, even if 64 bit divides
22253         are not supported (configurable run time mode).
22254         (Expand_N_Type_Conversion): Do validity check if validity checks on
22255         operands are enabled.
22256         (Expand_N_Qualified_Expression): Do validity check if validity checks
22257         on operands are enabled.
22258
22259 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22260
22261         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
22262         must be materialized when the renamed expression is an explicit
22263         dereference.
22264
22265 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22266
22267         * freeze.adb (Statically_Discriminated_Components): Return false if
22268         the bounds of the type of the discriminant are not static expressions.
22269
22270         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
22271         the bounds of the discriminant type are not static.
22272
22273 2006-02-17  Robert Dewar  <dewar@adacore.com>
22274
22275         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
22276         then we close To if it is valid.
22277
22278 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
22279
22280         * init.c (facility_resignal_table): new array
22281         (__gnat_default_resignal_p): enhance default predicate to resignal if
22282         VMS condition has one of the predefined facility codes.
22283
22284 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
22285
22286         * Makefile.in: Use VMS64 specialized versions of several units in
22287         Interfaces.C hierarchy to be compatible with HP C default size choices.
22288         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
22289
22290 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22291
22292         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
22293         instantiation, the corresponding entity is the related_instance of the
22294         wrapper package created for the instance.
22295
22296 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22297
22298         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
22299         the current instance is nested within another instance in a child unit.
22300
22301 2006-02-17  Javier Miranda  <miranda@adacore.com>
22302             Ed Schonberg  <schonberg@adacore.com>
22303
22304         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
22305         type we cannot inherit the primitive operations; we inherit the
22306         Corresponding_Record_Type (which has the list of primitive operations).
22307         (Check_Anonymous_Access_Types): When creating anonymous access types for
22308         access components, use Rewrite in order to preserve the tree structure,
22309         for ASIS use.
22310         (Analyze_Object_Declaration): For limited types with access
22311         discriminants with defaults initialized by an aggregate, obtain
22312         subtype from aggregate as for other mutable types.
22313         (Derived_Type_Declaration): If the derived type is a limited interface,
22314         set the corresponding flag (Is_Limited_Record is not sufficient).
22315
22316 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
22317
22318         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
22319         to inline a function that returns an unconstrained type, the return
22320         expression must be the first variable declared in the body of the
22321         function.
22322
22323 2006-02-17  Javier Miranda  <miranda@adacore.com>
22324
22325         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
22326         abstract interface type, the static analysis is not enough to know if
22327         the interface is implemented or not by the source tagged type. Hence
22328         we must pass the work to the expander to generate the required code to
22329         evaluate the conversion at run-time.
22330         (Resolve_Equality_Op): Do not apply previous
22331         transformation if expansion is disasbled, to prevent anomalies when
22332         locating global references in a generic unit.
22333
22334 2006-02-17  Vincent Celier  <celier@adacore.com>
22335
22336         * snames.ads, snames.adb: New standard names for new project attributes:
22337         archive_builder, archive_indexer, compiler_pic_option,
22338         config_body_file_name, config_body_file_name_pattern,
22339         config_file_switches, config_file_unique, config_spec_file_name,
22340         config_spec_file_name_pattern, default_builder_switches,
22341         default_global_compiler_switches, default_language,
22342         dependency_file_kind, global_compiler_switches, include_path,
22343         include_path_file, language_kind, linker_executable_option,
22344         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
22345         roots, runtime_project.
22346
22347 2006-02-17  Matthew Heaney  <heaney@adacore.com>
22348
22349         * a-convec.ads, a-convec.adb:
22350         (operator "&"): handle potential overflow for large index types
22351         (Insert): removed Contraint_Error when using large index types
22352         (Insert_Space): removed Constraint_Error for large index types
22353         (Length): moved constraint check from Length to Insert
22354
22355         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
22356         as not null access.
22357         Explicit raise statements now include an exception message.
22358         (operator "&"): handle potential overflow for large index types
22359         (Insert): removed Contraint_Error when using large index types
22360         (Insert_Space): removed Constraint_Error for large index types
22361         (Length): moved constraint check from Length to Insert
22362
22363 2006-02-17  Robert Dewar  <dewar@adacore.com>
22364
22365         * s-wchcnv.adb: Document handling of [ on output (we do not change
22366         this to ["5B"] and the new comments say why not.
22367
22368         * gnat_ugn.texi:
22369         Add note for -gnatVo that this now includes the cases of type
22370         conversions and qualified expressions.
22371         Add comments on handling of brackets encoding for Text_IO
22372
22373 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
22374             Thomas Quinot  <quinot@adacore.com>
22375             Robert Dewar  <dewar@adacore.com>
22376             Javier Miranda  <miranda@adacore.com>
22377
22378         * expander.adb: Fix typo in comment
22379
22380         * exp_pakd.adb: Fix typo
22381         Minor comment reformatting.
22382
22383         * g-dyntab.adb: Minor reformatting
22384
22385         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
22386         aliased subprograms to look for the abstract interface subprogram.
22387
22388 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
22389
22390         * env.c (__gnat_setenv): Use size_t.
22391         (__gnat_unsetenv): Likewise.
22392         (__gnat_clearenv): Likewise.
22393
22394 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
22395
22396         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
22397
22398 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
22399
22400         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
22401         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
22402         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
22403         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
22404         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
22405         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
22406         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
22407         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
22408         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
22409         no longer used.
22410
22411 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
22412
22413         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
22414         protection against race conditions is not needed.
22415         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
22416         fallback handler.
22417         (Set_Specific_Handler): Add mutual exclusive access to the specific
22418         handler.
22419         (Specific_Handler): Add mutual exclusive access for retrieving the
22420         specific handler.
22421
22422         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
22423         back handler.
22424
22425         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
22426         Fall_Back_Handler and Specific_Handler.
22427
22428         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
22429         termination handlers.
22430         Set two different owerflow depending on the maximal stack size.
22431
22432         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
22433         protection against race conditions is not needed when executing the
22434         task termination handler.
22435
22436 2006-02-13  Robert Dewar  <dewar@adacore.com>
22437
22438         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
22439         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
22440         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22441         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
22442         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
22443         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
22444         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
22445         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
22446         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
22447         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
22448         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
22449         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
22450         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
22451         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
22452         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
22453         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
22454         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
22455         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
22456         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
22457         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
22458         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
22459         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
22460         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
22461         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
22462         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
22463         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
22464         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
22465         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
22466         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
22467         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
22468         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
22469         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
22470         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
22471         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
22472         reformatting.
22473
22474 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
22475
22476         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
22477         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
22478         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
22479         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
22480         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
22481         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
22482         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
22483         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
22484         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
22485
22486 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
22487
22488         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
22489         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
22490         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
22491         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
22492         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
22493         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
22494         replaced by anonymous access type.
22495         (pthread_sigmask): Now take an access sigset_t
22496
22497         * s-osinte-hpux.ads:  Ditto.
22498         (pthread_mutex_t, pthread_cond_t): Update definitions to support
22499         properly 32 and 64 bit ABIs.
22500
22501 2006-02-13  Pascal Obry  <obry@adacore.com>
22502
22503         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
22504         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
22505         s-taprop-linux.adb, s-taprop-solaris.adb,
22506         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
22507         adjustement is already done when calling this routine.
22508
22509 2006-02-13  Pascal Obry  <obry@adacore.com>
22510
22511         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
22512         table to take advantage of the 16 priority levels available on Windows
22513         2000 and XP. On NT4 there are only 7 priority levels, this is properly
22514         supported by this new mapping.
22515
22516 2006-02-13  Nicolas Setton  <setton@adacore.com>
22517
22518         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
22519         (get_encoding): New subprogram. Extracts the encodings from an encoded
22520         Ada name.
22521
22522 2006-02-13  Pascal Obry  <obry@adacore.com>
22523             Nicolas Roche  <roche@adacore.com>
22524             Arnaud Charlet  <charlet@adacore.com>
22525
22526         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
22527         support.
22528         (__gnat_try_lock): Add unicode support by using a specific section on
22529         Windows.
22530         (__gnat_get_current_dir): Idem.
22531         (__gnat_open_read): Idem.
22532         (__gnat_open_rw): Idem.
22533         (__gnat_open_create): Idem.
22534         (__gnat_create_output_file): Idem.
22535         (__gnat_open_append): Idem.
22536         (__gnat_open_new): Idem.
22537         (__gnat_file_time_name): Idem.
22538         (__gnat_set_file_time_name): Idem.
22539         (__gnat_stat): Idem.
22540         (win32_no_block_spawn): Idem.
22541         (__gnat_locate_exec_on_path): Idem.
22542         (__gnat_opendir): New routine.
22543         (__gnat_closedir): Idem.
22544         (__gnat_readdir): Add new parameter length (pointer to int). Update
22545         implementation to use it and add specific Win32 code for Unicode
22546         support.
22547         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
22548         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
22549         (convert_addresses): Do not define this dummy routine on VMS.
22550
22551         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
22552         runtime Unicode support will be activated.
22553         (S2WS): String to Wide-String conversion. This version just copy a
22554         string in non Unicode version.
22555         (WS2S): Wide-String to String conversion. This version just copy a
22556         string in non Unicode version.
22557
22558         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
22559         (Open): Now import __gnat_opendir from adaint.c.
22560         (Read): Change the implementation to support unicode characters. It is
22561         not possible to use strlen() on Windows as this version supports only
22562         standard ASCII characters. So the length of the directory entry is now
22563         returned from the imported __gnat_readdir routine.
22564         Update copyright notice.
22565
22566         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
22567         (opendir): Moved to adaint.c.
22568
22569         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
22570         (Get_Directory): Fix wrong indexing.
22571         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
22572         __gnat_getenv from env.c
22573         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
22574         from env.c
22575
22576         * env.h, env.c: New file.
22577
22578         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
22579         adaint.c by __gnat_getenv from env.c
22580
22581         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
22582         adaint.c by __gnat_getenv from env.c
22583
22584         * Make-lang.in: Add env.o in the list of C object needed by gnat1
22585         and gnatbind.
22586         Update dependencies.
22587
22588 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22589             Olivier Hainque  <hainque@adacore.com>
22590             Eric Botcazou  <ebotcazou@adacore.com>
22591
22592         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
22593
22594         * gigi.h (value_factor_p): Add prototype and description, now public.
22595
22596         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
22597         promotion for field with rep clause if the associated size was proven
22598         to be in error.
22599         Expand comments describing attempts to use a packable type.
22600         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
22601         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
22602         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
22603         necessary since these are not different types and pointers may
22604         actually designate any subtype in this hierarchy.
22605         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
22606         discriminants but put them into record only if not Unchecked_Union;
22607         pass flag to components_to_record showing Unchecked_Union.
22608         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
22609         components before variants; don't set TYPE_UNCHECKED_UNION_P.
22610         (components_to_record): New argument UNCHECKED_UNION.
22611         Remove special case code for Unchecked_Union and instead use main code
22612         with small changes.
22613
22614         PR ada/26096
22615         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
22616         variable with the expression being built, only its inner field.
22617
22618         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
22619         emit_sequence_entry_statements.
22620         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
22621         (establish_gnat_vms_condition_handler): Move before
22622         Subprogram_Body_to_gnu.
22623         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
22624         for a subprogram if it has a foreign convention or is exported.
22625         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
22626         substituted for a CONST_DECL.
22627         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
22628         Etype to assoc_to_constructor.
22629         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
22630         discriminants of Unchecked_Union.
22631         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
22632         don't need cluttering preprocessor directives.
22633         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
22634         condition handler as current in the compiled function.
22635         (body_with_handlers_p): New function. Tell whether a given sequence of
22636         statements node is attached to a package or subprogram body and involves
22637         exception handlers possibly nested within inner block statements.
22638         (emit_sequence_entry_statements): New function, to emit special
22639         statements on entry of sequences when necessary. Establish GNAT
22640         condition handler in the proper cases for VMS.
22641         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
22642         emit_sequence_entry_statements.
22643
22644         * utils2.c (find_common_type): If both input types are BLKmode and
22645         have a constant size, use the smaller one.
22646         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
22647         the same.
22648
22649         * utils.c (value_factor_p): Make public, to allow uses from other gigi
22650         units.
22651         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
22652         (convert, case UNION_TYPE): Remove special treatment for unchecked
22653         unions.
22654
22655         PR ada/18659
22656         (update_pointer_to): Update variants of pointer types to unconstrained
22657         arrays by attaching the list of fields of the main variant.
22658
22659 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
22660             Robert Dewar  <dewar@adacore.com>
22661
22662         * a-exexpr.adb, a-exexpr-gcc.adb
22663         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
22664         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
22665         Remove code unused for exception propagation for the compiler itself
22666         from a-except.adb and update to still share separate packages.
22667
22668         * a-except.ads, a-except.adb: Ditto.
22669         Add comments that this version is now used only by the compiler and
22670         other basic tools. The full version that includes the Ada 2005 stuff
22671         is in separate files a-except-2005.ads/adb. The reason is that we do
22672         not want to cause bootstrap problems with compilers not recognizing
22673         Wide_Wide_String.
22674         Add exception reason code PE_Implicit_Return
22675         Add new exception reason code (Null Exception_Id)
22676
22677         * a-except-2005.adb, a-except-2005.ads: New files.
22678
22679         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
22680
22681         * s-wchcon.adb: New file.
22682
22683         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
22684         (traceback.o deps): Likewise.
22685         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
22686         Activate build of GMEM instrumentation library on VMS targets.
22687         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
22688         Use a-except-2005.ads/adb for all run-time library builds unless
22689         specified otherwise.
22690         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
22691         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
22692         Use s-parame.adb on all native platforms.
22693         Use s-parame-vxworks.adb on all vxworks platforms.
22694         Add env.c env.h in LIBGNAT_SRCS
22695         Add env.o in LIBGNAT_OBJS
22696         (GNATMAKE_OBJS): Remove ctrl_c.o object.
22697         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
22698         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22699         supports VxWorks 6 RTPs.
22700         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
22701         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22702
22703         * types.h, types.ads (Terminate_Program): New exception
22704         Add comment on modifying multiple versions of a-except.adb when the
22705         table of exception reasons is modified.
22706         Add exception reason code PE_Implicit_Return
22707         Add new exception reason code (Null Exception_Id)
22708
22709         * clean.adb (Initialize): Get the target parameters before checking
22710         if target is OpenVMS. Move the OpenVMS specific code here from package
22711         body elaboration code.
22712
22713 2006-02-13  Thomas Quinot  <quinot@adacore.com>
22714             Vincent Celier  <celier@adacore.com>
22715             Robert Dewar  <dewar@adacore.com>
22716
22717         * ali-util.adb (Get_File_Checksum): Update to account for change in
22718         profile of Initialize_Scanner.
22719
22720         * gprep.adb (Gnatprep): Update to account for change in profile of
22721         Initialize_Scanner.
22722         (Process_One_File): Same.
22723
22724         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
22725         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
22726         that behaviour using the new Unit information recorded in the source
22727         files table, rather than going through all units every time.
22728         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
22729         (Get_Source_Unit): Same.
22730
22731         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
22732         change in profile of Initialize_Scanner.
22733         (Prepare_To_Preprocess): Same.
22734
22735         * lib.ads: Fix typo in comment (templace -> template).
22736
22737         * prj-part.adb (Parse_Single_Project): Update to account for change in
22738         profile of Initialize_Scanner.
22739
22740         * scn.adb (Initialize_Scanner): Account for change in profile of
22741         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
22742         Also record the association of the given Source_File_Index to the
22743         corresponding Unit_Number_Type.
22744
22745         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
22746         procedure.
22747         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
22748         Remove Unit formal for generic scanner: this formal
22749         is only relevant to Scn (the scanner instance used to parse Ada source
22750         files), not to other instances. Update comment accordingly.
22751         (Scan): Use new function Snames.Is_Keyword_Name.
22752
22753         * sinfo-cn.adb: Fix typo in comment.
22754
22755         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
22756         Unit.
22757
22758         * sinput.ads (Source_File_Record): New component Unit, used to capture
22759         the unit identifier (if any) associated to a source file.
22760
22761         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
22762         Unit in Source_File_Record.
22763
22764         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
22765         in profile of Initialize_Scanner.
22766
22767         * scans.adb (Initialize_Ada_Keywords): New procedure
22768
22769         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
22770         Ada keywords in the Namet table, without the need to call
22771         Initialize_Scanner.
22772
22773         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
22774         (Is_Keyword_Name): New function
22775
22776         * snames.ads: Add subtype Configuration_Pragma_Names
22777         Add pragma Ada_2005 (synonym for Ada_05)
22778         (Is_Keyword_Name): New function
22779
22780         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
22781
22782 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
22783
22784         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
22785         index.
22786
22787         * a-stwima.adb (To_Set): Add extra check when N = 0.
22788
22789         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
22790
22791 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
22792
22793         * s-parame-mingw.adb, s-parame-linux.adb,
22794         s-parame-solaris.adb: Removed, replaced by s-parame.adb
22795
22796         * s-parame-vxworks.ads: Fix typo.
22797
22798         * s-parame-vxworks.adb: New file.
22799
22800         * s-parame.adb: Version now used by all native platforms.
22801         (Default_Stack_Size): Use 2 megs for default stack size and use
22802         __gl_default_stack_size when available.
22803         (Minimum_Stack_Size): Use 12K.
22804
22805         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
22806         (Create_Task): Refine implementation taking advantage of the XP stack
22807         size support. On XP, we now create the thread using the flag
22808         STACK_SIZE_PARAM_IS_A_RESERVATION.
22809
22810         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
22811
22812         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
22813         XP and 0 on older Windows versions.
22814
22815         * interfac-vms.ads: Removed, no longer used.
22816
22817 2006-02-13  Matthew Heaney  <heaney@adacore.com>
22818
22819         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
22820         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
22821         a-cohase.adb: All explicit raise statements now include an exception
22822         message.
22823
22824         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
22825         (Update_Element_Preserving_Key): renamed op to just Update_Element.
22826         Explicit raise statements now include an exception message
22827
22828         * a-cihase.ads, a-cohase.ads: Removed comment.
22829
22830         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
22831         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
22832         a-szbzha.adb, a-szfzha.ads: New files.
22833
22834 2006-02-13  Matthew Heaney  <heaney@adacore.com>
22835
22836         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
22837         quicksort.
22838
22839 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22840
22841         * lang.opt: Wvariadic-macros: New option.
22842         Wold-style-definition: Likewise.
22843         Wmissing-format-attribute: Likewise.
22844
22845         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
22846         -Wold-style-definition and -Wmissing-format-attribute.
22847
22848 2006-02-13  Robert Dewar  <dewar@adacore.com>
22849
22850         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
22851
22852         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
22853
22854 2006-02-13  Nicolas Roche  <roche@adacore.com>
22855
22856         * a-envvar.adb, a-envvar.ads: New files.
22857
22858 2006-02-13  Douglas Rupp  <rupp@adacore.com>
22859
22860         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
22861
22862         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
22863
22864 2006-02-13  Pat Rogers  <rogers@adacore.com>
22865
22866         * a-rttiev.adb, a-rttiev.ads: New files.
22867
22868 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
22869
22870         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
22871         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
22872
22873         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
22874
22875 2006-02-13  Robert Dewar  <dewar@adacore.com>
22876
22877         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
22878         sem_case.adb: Minor code reorganization (not Present should be No)
22879
22880 2006-02-13  Geert Bosch  <bosch@adacore.com>
22881             Gary Dismukes  <dismukes@adacore.com>
22882
22883         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
22884         0, since the lower bound of the actual string may be greater than one.
22885
22886         PR ada/20753
22887         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
22888         layout is requested.
22889
22890 2006-02-13  Vincent Celier  <celier@adacore.com>
22891
22892         * back_end.adb (Scan_Compiler_Arguments): Check if
22893         Search_Directory_Present is True and, if it is, add the argument in
22894         the source search directory path.
22895
22896         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
22897         Search_Directory_Present to True.
22898
22899 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
22900
22901         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
22902         volatile, to tell the compiler to preserve this variable at any level
22903         of optimization.
22904         (Gen_Versions_Ada): Temporarily work around codegen bug.
22905
22906 2006-02-13  Vincent Celier  <celier@adacore.com>
22907
22908         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
22909         gcc to link with option -shared-libgcc.
22910         (Gnatlink): Remove duplicate switches -shared-libgcc
22911
22912 2006-02-13  Robert Dewar  <dewar@adacore.com>
22913
22914         * gnatvsn.ads (Current_Year): New constant, used to easily update
22915         copyright on all GNAT tools.
22916
22917         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
22918         copyright notice.
22919
22920 2006-02-13  Robert Dewar  <dewar@adacore.com>
22921
22922         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
22923         after hyphen (small aesthetic change useful for a range of numbers
22924         using ^-^.
22925         Suppress range checks for a couple of assignments which otherwise
22926         cause validity checks with validity checking turned on.
22927
22928         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
22929         Improvement in error message for object.
22930         (Rep_Item_Too_Late): Remove '!' in warning message.
22931
22932 2006-02-13  Robert Dewar  <dewar@adacore.com>
22933             Eric Botcazou  <ebotcazou@adacore.com>
22934
22935         * err_vars.ads: Suppress range checks for a couple of assignments
22936         which otherwise cause validity checks with validity checking turned on.
22937         Update comments.
22938
22939         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
22940         Make message unconditional if it is a warning.
22941         (Error_Msg_NEL): Always output warning messages.
22942         Suppress range checks for a couple of assignments which otherwise
22943         cause validity checks with validity checking turned on.
22944
22945         * errout.ads (Message Insertion Characters): Document that '!' is
22946         implied by '?' in error messages.
22947
22948         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
22949         (Gnat1drv): Use a goto to end of main subprogram instead of
22950         Exit_Program (E_Success) so that finalization can occur normally.
22951
22952 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22953
22954         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
22955         wrapped around.
22956
22957 2006-02-13  Vincent Celier  <celier@adacore.com>
22958
22959         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
22960         Unchecked_Conversion functions.
22961         (Modification_Time): Use direct conversion of OS_Time to Calendar time
22962         when OpenVMS returns False.
22963
22964         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
22965         a-dirval.adb (OpenVMS): New Boolean function
22966
22967 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
22968             Thomas Quinot  <quinot@adacore.com>
22969
22970         * checks.adb (Build_Discriminant_Checks): If the expression being
22971         checks is an aggregate retrieve the values of its discriminants to
22972         generate the check, rather than creating a temporary and a reference
22973         to it.
22974         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
22975         (Install_Null_Excluding_Check): Ditto
22976         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
22977         not for the renamed object, so that the actual itype is attached in the
22978         proper context.
22979
22980 2006-02-13  Robert Dewar  <dewar@adacore.com>
22981             Vincent Celier  <celier@adacore.com>
22982
22983         * debug.adb: Eliminate numeric switches for binder/gnatmake
22984
22985         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
22986         switches for the compiler.
22987         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
22988         (Scan_Make_Switches): When failing with an illegal switch, output an
22989         error message with the full switch.
22990         Eliminate numeric switches for binder/gnatmake
22991
22992         * switch.ads, switch.adb (Bad_Switch): New procedure
22993
22994         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
22995         Remove 0-9 as debug flag character possibilities
22996         -d is now controlling the primary stack size when its value is a
22997         positive. Also add checks against invalid values, and support for kb,
22998         mb. Ditto for -D switch.
22999
23000 2006-02-13  Robert Dewar  <dewar@adacore.com>
23001             Serguei Rybin  <rybin@adacore.com>
23002
23003         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
23004         save/restore routines.
23005         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23006         were not always properly handled previously.
23007         Since we are changing the tree format anyway, also get rid of the
23008         junk obsolete Immediate_Errors flag.
23009         (Tree_Read): Change the way of reading Tree_Version_String - now we
23010         read the version string from the tree even if its length is not the
23011         same as the length of the version string computed from Gnatvsn.
23012         (Search_Directory_Present): New Boolean flag for the compiler.
23013         Define Tree_Version_String as a dynamic string.
23014         (Default_Stack_Size): new variable, used to handle switch -d.
23015
23016         * par-prag.adb:
23017         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
23018         only for main unit.
23019         Add pragma Ada_2005 (synonym for Ada_05)
23020         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23021         were not always properly handled previously.
23022
23023         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
23024         explicit Ada_95 to Ada_2005.
23025
23026 2006-02-13  Javier Miranda  <miranda@adacore.com>
23027             Robert Dewar  <dewar@adacore.com>
23028             Ed Schonberg  <schonberg@adacore.com>
23029
23030         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
23031         against errors in the source program: a private types for which the
23032         corresponding full type declaration is missing and pragma CPP_Virtual
23033         is used.
23034         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
23035         (Is_Known_Null): New flag
23036         (Has_Pragma_Pure): New flag
23037         (No_Return): Present in all entities, set only for procedures
23038         (Is_Limited_Type): A type whose ancestor is an interface is limited if
23039         explicitly declared limited.
23040         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
23041         entities. Only used for component marked Is_Tag. If present it stores
23042         the Offset_To_Top function used to provide this value in tagged types
23043         whose ancestor has discriminants.
23044
23045         * exp_ch2.adb: Update status of new Is_Known_Null flag
23046
23047         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
23048
23049         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
23050         the categorization sense if Is_Pure was set by pragma Pure_Function.
23051
23052 2006-02-13  Quentin Ochem  <ochem@adacore.com>
23053             Olivier Hainque  <hainque@adacore.com>
23054
23055         * bindusg.adb: Updated documentation for -d and -D switches.
23056
23057         * raise.h (__gnat_set_globals): added new parameter for
23058         Default_Stack_Size.
23059
23060         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
23061         (__gnat_handle_vms_condition): Adjust context before raise.
23062         (__gnat_install_handler): Restore the global vector setup for GCC
23063         versions before 3.4, as the frame based circtuitry is not available
23064         in this case.
23065         (__gnat_set_globals): added a parameter default_stack_size
23066         (__gl_default_stack_size): new variable.
23067
23068 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23069
23070         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
23071         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
23072         does not exist in the Ada RM.
23073         (Compatible_Int_Bounds): Determine whether two integer range bounds
23074         are of equal length and have the same start and end values.
23075         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
23076         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
23077         aggregate when it is part of an object declaration.
23078         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
23079         constrains discriminants of its parent, add explicitly the discriminant
23080         constraints of the ancestor by retrieving them from the
23081         stored_constraint of the parent.
23082
23083 2006-02-13  Robert Dewar  <dewar@adacore.com>
23084
23085         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
23086         attribute Mechanism_Code is applied to renamed subprogram, modify
23087         prefix to point to base subprogram.
23088         Max/Min attributes now violate Restriction No_Implicit_Conditionals
23089
23090         * sinfo.ads: Document that Mechanism_Code cannot be applied to
23091         renamed subprograms so that the front-end must replace the prefix
23092         appropriately.
23093
23094 2006-02-13  Javier Miranda  <miranda@adacore.com>
23095             Gary Dismukes  <dismukes@adacore.com>
23096
23097         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
23098         availability of RE_Interface_Tag.
23099         (Build_Initialization_Call): Fix wrong access to the discriminant value.
23100         (Freeze_Record_Type): Do not generate the tables associated with
23101         timed and conditional dispatching calls through synchronized
23102         interfaces if compiling under No_Dispatching_Calls restriction.
23103         When compiling for Ada 2005, for a nonabstract
23104         type with a null extension, call Make_Controlling_Function_Wrappers
23105         and insert the wrapper function declarations and bodies (the latter
23106         being appended as freeze actions).
23107         (Predefined_Primitive_Bodies): Do not generate the bodies of the
23108         predefined primitives associated with timed and conditional
23109         dispatching calls through synchronized interfaces if we are
23110         compiling under No_Dispatching_Calls.
23111         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
23112         service is available before generating a call.
23113         (Make_Controlling_Function_Wrappers): New procedure.
23114         (Expand_N_Full_Type_Declaration): Create a class-wide master for
23115         access-to-limited-interfaces because they can be used to reference
23116         tasks that implement such limited interface.
23117         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
23118         procedure spec and body of the Offset_To_Top function that is generated
23119         when the parent of a type with discriminants has secondary dispatch
23120         tables.
23121         (Init_Secondary_Tags): Handle the case in which the parent of the type
23122         containing secondary dispatch tables has discriminants to generate the
23123         correct arguments to call Set_Offset_To_Top.
23124         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
23125
23126         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
23127         Add Wide_[Wide_]Expanded_Name.
23128         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
23129         the same functionality of Get_Prim_Op_Address but applied to predefined
23130         primitive operations because the pointers to the predefined primitives
23131         are now saved in a separate table.
23132         (Parent_Size): Modified to get access to the separate table of primitive
23133         operations or the parent type.
23134         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
23135         functionality of Set_Prim_Op_Address but applied to predefined primitive
23136         operations.
23137         (Set_Signature): New subprogram used to store the signature of a DT.
23138         (Displace): If the Offset_To_Top value is not static then call the
23139         function generated by the expander to get such value; otherwise use
23140         the value stored in the table of interfaces.
23141         (Offset_To_Top): The type of the actual has been changed to Address to
23142         give the correct support to tagged types with discriminants. In this
23143         case this value is stored just immediately after the tag field.
23144         (Set_Offset_To_Top): Two new formals have been added to indicate if the
23145         offset_to_top value is static and hence pass this value to the run-time
23146         to store it in the table of interfaces, or else if this value is dynamic
23147         and then pass to the run-time the address of a function that is
23148         generated by the expander to provide this value for each object of the
23149         type.
23150
23151         * rtsfind.ads (Default_Prin_Op_Count): Removed.
23152         (Default_Prim_Op_Count): New entity
23153         (Get_Predefined_Prim_Op_Address): New entity
23154         (Set_Predefined_Prim_Op_Address): New entity
23155         (RE_Set_Signature): New entity
23156
23157 2006-02-13  Thomas Quinot  <quinot@adacore.com>
23158             Ed Schonberg  <schonberg@adacore.com>
23159
23160         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
23161         Make_Adjust_Call done for a newly-allocated object.
23162
23163         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
23164         in a subprogram are wrapped in a cleanup block, indicate that the
23165         subprogram contains an inner block with an exception handler.
23166         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
23167         Adjust call is for a newly-allocated object. In that case we must not
23168         assume that the finalization list chain pointers are correct (since they
23169         come from a bit-for-bit copy of the original object's pointers) so if
23170         the attach level would otherwise be zero (no change), we set it to 4
23171         instead to cause the pointers to be reset to null.
23172
23173         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
23174         reset chain pointers to null.
23175
23176 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23177
23178         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
23179         string, and the context requires a loop for the assignment (e.g.
23180         because the left-hand side is packed), generate a unique name for the
23181         temporary that holds the string, to prevent spurious name clashes.
23182
23183 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23184             Javier Miranda  <miranda@adacore.com>
23185             Robert Dewar  <dewar@adacore.com>
23186             Gary Dismukes  <dismukes@adacore.com>
23187
23188         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
23189         return unconstrained arrays.
23190         Update comments.
23191         (Expand_Call):  An indirect call through an access parameter of a
23192         protected operation is not a protected call.
23193         Add circuit to raise CE in Ada 2005 mode following call
23194         to Raise_Exception.
23195         (Register_DT_Entry): Do nothing if
23196         the run-time does not give support to abstract interfaces.
23197         (Freeze_Subprogram): In case of dispatching operations, do not generate
23198         code to register the operation in the dispatch table if the source
23199         is compiled with No_Dispatching_Calls.
23200         (Register_Predefined_DT_Entry): Generate code that calls the new
23201         run-time subprogram Set_Predefined_Prim_Op_Address instead of
23202         Set_Prim_Op_Address.
23203
23204         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
23205         on array assignments if the right-hand side is a function call that has
23206         been inlined. Check is performed on the assignment in the block.
23207         (Process_Bounds): If bounds and range are overloaded, apply preference
23208         rule for root operations to disambiguate, and diagnose true ambiguity.
23209         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
23210         a tag-indeterminate right-hand side even when Expander_Active is True.
23211         Needed to ensure that dispatching calls to T'Input are allowed and
23212         get the tag of the target class-wide object.
23213
23214         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
23215         an inherited primitive operation that already overrides several
23216         abstract interface primitives. For transitivity, the new entity must
23217         also override all the abstract interface primitives covered by the
23218         inherited overriden primitive.
23219         Emit warning if new entity differs from homograph in same scope only in
23220         that one has an access parameter and the other one has a parameter of
23221         a general access type with the same designated type, at the same
23222         position in the signature.
23223         (Make_Inequality_Operator): Use source locations of parameters and
23224         subtype marks from corresponding equality operator when creating the
23225         tree structure for the implicit declaration of "/=". This does not
23226         change anything in behaviour except that the decoration of the
23227         components of the subtree created for "/=" allows ASIS to get the
23228         string images of the corresponding identifiers.
23229         (Analyze_Return_Statement): Remove '!' in warning message.
23230         (Check_Statement_Sequence): Likewise.
23231         (Analyze_Subprogram_Body): For an access parameter whose designated type
23232         is an incomplete type imported through a limited_with clause, use the
23233         type of the corresponding formal in the body.
23234         (Check_Returns): Implicit return in No_Return procedure now raises
23235         Program_Error with a compile time warning, instead of beging illegal.
23236         (Has_Single_Return):  Function returning unconstrained type cannot be
23237         inlined if expression in unique return statement is not an identifier.
23238         (Build_Body_To_Inline): It is possible to inline a function call that
23239         returns an unconstrained type if all return statements in the function
23240         return the same local variable. Subsidiary procedure Has_Single_Return
23241         verifies that the body conforms to this restriction.
23242
23243         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
23244         same type, and  one of them is of an anonymous access type, convert
23245         the other operand to it, so that this is a valid binary operation for
23246         gigi.
23247         (Resolve_Type_Conversion): Handle subtypes of protected types and
23248         task types when accessing to the corresponding record type.
23249         (Resolve_Allocator): Add '\' in 2-line warning message.
23250         Remove '!' in warning message.
23251         (Resolve_Call): Add '\' in 2-line warning message.
23252         (Valid_Conversion): Likewise.
23253         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
23254         resulting type may be an access type with an implicit dereference.
23255         Obtain the proper component from the designated type.
23256         (Make_Call_Into_Operator): Handle properly a call to predefined equality
23257         given by an expanded name with prefix Standard, when the operands are
23258         of an anonymous access type.
23259         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
23260         Explicit_Dereference and Resolve_Selected_Component, to verify that the
23261         prefix of the expression is not of an incomplete type. Allows full
23262         diagnoses of all semantic errors.
23263         (Resolve_Actuals): If the actual is an allocator whose directly
23264         designated type is a class-wide interface we build an anonymous
23265         access type to use it as the type of the allocator. Later, when
23266         the subprogram call is expanded, if the interface has a secondary
23267         dispatch table the expander will add a type conversion to force
23268         the displacement of the pointer.
23269         (Resolve_Call): If a function that returns an unconstrained type is
23270         marked Inlined_Always and inlined, the call will be inlined and does
23271         not require the creation of a transient scope.
23272         (Check_Direct_Boolean_Op): Removed
23273         (Resolve_Comparison_Op): Remove call to above
23274         (Resolve_Equality_Op): Remove call to above
23275         (Resolve_Logical_Op): Inline above, since this is only call.
23276         (Valid_Conversion): Handle properly conversions between arrays of
23277         convertible anonymous access types.
23278
23279         PR ada/25885
23280         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
23281         the literal in an unchecked conversion, because GCC 4.x needs a static
23282         value for a string bound.
23283
23284 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23285             Hristian Kirtchev  <kirtchev@adacore.com>
23286
23287         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
23288         components of the corresponding record, take into account component
23289         definitions that are access definitions.
23290         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
23291         procedure is not considered a dispatching call and will be expanded
23292         properly.
23293
23294 2006-02-13  Javier Miranda  <miranda@adacore.com>
23295
23296         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
23297         controlling argument of the dispatching call is an abstract interface
23298         class-wide type then we use it directly.
23299         Check No_Dispatching_Calls restriction.
23300         (Default_Prim_Op_Position): Remove the code that looks for the last
23301         entity in the list of aliased subprograms. This code was wrong in
23302         case of renamings.
23303         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
23304         when the source is compiled with the No_Dispatching_Calls restriction.
23305         (Init_Predefined_Interface_Primitives): No need to inherit primitives
23306         if we are compiling with restriction No_Dispatching_Calls.
23307         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
23308         subprograms if we are compiling under No_Dispatching_Calls restriction.
23309         (Make_DT): Generate a dispatch table with a single dummy entry if
23310         we are compiling with the No_Dispatching_Calls restriction. In
23311         addition, in this case we don't generate code that calls to the
23312         following run-time subprograms: Set_Type_Kind, Inherit_DT.
23313         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
23314         of this subprogram if compiling with the No_Dispatching_Calls
23315         restriction.
23316         (Expand_Type_Conversion): Instead of using the actual parameter,
23317         the argument passed as parameter to the conversion function was
23318         erroneously referenced by the expander.
23319         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
23320         Set_Predefined_Primitive_Op_Address and Set_Signature.
23321         (Expand_Dispatching_Call): Generate call to
23322         Get_Predefined_Prim_Op_Address for predefined primitives.
23323         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
23324         predefined primitives.
23325         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
23326         primitives we reserve one dummy entry to ensure that the tag does not
23327         point to some memory that is associated with some other object. In
23328         addition, remove all the old code that generated the assignments
23329         associated with the signature of the dispatch table and replace them
23330         by a call to the new subprogram Set_Signature.
23331         (Set_All_DT_Position): Change the algorithm because now we have a
23332         separate dispatch table associated with predefined primitive operations.
23333         (Expand_Interface_Conversion): In case of non-static offset_to_top
23334         add explicit dereference to get access to the object after the call
23335         to displace the pointer to the object.
23336         (Expand_Interface_Thunk): Modify the generation of the actual used
23337         in the calls to the run-time function Offset_To_Top to fulfil its
23338         new interface.
23339         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
23340
23341 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23342
23343         * exp_dist.adb (Copy_Specification): For access parameters, copy
23344         Null_Exclusion flag, which will have been set for stream subprograms
23345         in Ada2005 mode.
23346
23347 2006-02-13  Pascal Obry  <obry@adacore.com>
23348
23349         * expect.c (__gnat_expect_portable_execvp): New implementation. The
23350         previous implementation was using the C runtime spawnve routine but
23351         the corresponding wait was using directly the Win32 API. This was
23352         causing some times a lock when waiting for an event using
23353         WaitForSingleObject in __gnat_waitpid. This new implementation uses
23354         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
23355         API fixes this problem.
23356
23357 2006-02-13  Robert Dewar  <dewar@adacore.com>
23358
23359         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
23360         call.
23361
23362 2006-02-13  Thomas Quinot  <quinot@adacore.com>
23363
23364         * exp_pakd.ads: Fix typos in comments.
23365
23366         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
23367         array reference that is an explicit dereference, mark the converted
23368         (packed) array reference as analyzed to prevent a forthcoming
23369         reanalysis from resetting its type to the original (non-packed) array
23370         type.
23371
23372 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23373             Javier Miranda  <miranda@adacore.com>
23374             Eric Botcazou  <ebotcazou@adacore.com>
23375
23376         * exp_util.ads, exp_util.adb (Find_Prim_Op,
23377         Is_Predefined_Primitive_Operation): When
23378         searching for the predefined equality operator, verify that operands
23379         have the same type.
23380         (Is_Predefined_Dispatching_Operation): Remove the code that looks
23381         for the last entity in the list of aliased subprograms. This code
23382         was wrong in case of renamings.
23383         (Set_Renamed_Subprogram): New procedure
23384         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
23385         Exp_Type constant computed when entering this subprogram.
23386         (Known_Null): New function
23387         (OK_To_Do_Constant_Replacement): New function
23388         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
23389         (Side_Effect_Free): An attribute reference 'Input is not free of
23390         side effect, unlike other attributes that are functions. (from code
23391         reading).
23392         (Remove_Side_Effects): Expressions that involve packed arrays or records
23393         are copied at the point of reference, and therefore must be marked as
23394         renamings of objects.
23395         (Is_Predefined_Dispatching_Operation): Return false if the operation is
23396         not a dispatching operation.
23397
23398         PR ada/18819
23399         (Remove_Side_Effects): Lift enclosing type conversion nodes for
23400         elementary types in all cases.
23401
23402 2006-02-13  Javier Miranda  <miranda@adacore.com>
23403
23404         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
23405         task types when accessing to the corresponding record type.
23406         Remove '!' in warning message.
23407
23408 2006-02-13  Olivier Hainque  <hainque@adacore.com>
23409
23410         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
23411         to avoid useless and space inefficient overalignments on targets where
23412         Max_Alignment is larger than 16.
23413
23414 2006-02-13  Pascal Obry  <obry@adacore.com>
23415
23416         * g-catiio.adb (Sec_Number): New type used to compute the number of
23417         seconds since 1-1-1970.
23418         (Image) [Natural]: The parameter was an Integer, as we can't deal with
23419         negative numbers (years, months...) it is better to have a Natural here.
23420         Code clean-up.
23421         (Image) [Number]: Change parameter from Long_Integer to Number.
23422         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
23423         overflow for dates past year 2038.
23424
23425 2006-02-13  Matthew Heaney  <heaney@adacore.com>
23426
23427         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
23428         Constraint_Error.
23429
23430 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
23431
23432         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
23433         native platforms.
23434         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
23435         finalization can occur normally.
23436
23437 2006-02-13  Vincent Celier  <celier@adacore.com>
23438
23439         * gnatcmd.adb (Rules_Switches): New table
23440         (Add_To_Rules_Switches): New procedure
23441         (GNATCmd): For command CHECK, put all options following "-rules" in the
23442         Rules_Switches table. Append these -rules switches after the -cargs
23443         switches.
23444
23445 2006-02-13  Robert Dewar  <dewar@adacore.com>
23446
23447         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
23448         These two cases were generating incorrect output, and if this unit
23449         was built with checks on, generated a discriminant mismatch constraint
23450         error.
23451
23452 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23453             Robert Dewar  <dewar@adacore.com>
23454
23455         * lib-xref.adb (Get_Type_Reference): For a private type whose full
23456         view is an array type, indicate the component type as well, for
23457         navigation purposes.
23458         (Generate_Reference): Don't consider array ref on LHS to be a case
23459         of violating pragma Unreferenced.
23460         Do not give Ada 2005 warning except on real reference.
23461
23462 2006-02-13  Vincent Celier  <celier@adacore.com>
23463
23464         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
23465         main source, add switch -mdebug-main=_ada_ so that the executable can
23466         be debugged by the standard VMS debugger.
23467         (Gnatmake): Set No_Main_Subprogram to True when there is no main
23468         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
23469         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
23470         of the last source, as the binding and linking phases are never
23471         performed.
23472         Set all executable obsolete when rebuilding a library.
23473
23474         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
23475         options.
23476
23477 2006-02-13  Javier Miranda  <miranda@adacore.com>
23478
23479         PR ada/23973
23480         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
23481         code to improve the error message reported when the program has
23482         declarations of abstract interface types and it is not compiled with
23483         the -gnat05 switch.
23484         (P_Access_Definition): Reorganize the code to improve the error
23485         message reported when the new Ada 2005 syntax for anonymous
23486         access types is used and the program is not compiled with the
23487         -gnat05 switch.
23488
23489 2006-02-13  Robert Dewar  <dewar@adacore.com>
23490
23491         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
23492         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
23493         (MODE_IN)
23494
23495 2006-02-13  Javier Miranda  <miranda@adacore.com>
23496
23497         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
23498         against source containing syntax errors.
23499
23500 2006-02-13  Vincent Celier  <celier@adacore.com>
23501
23502         * prj.adb (Reset): Initialize the first element of table Namings with
23503         the standard naming data.
23504
23505 2006-02-13  Vincent Celier  <celier@adacore.com>
23506
23507         * prj.ads (Error_Warning): New enumeration type
23508
23509         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
23510         unknown, use the location of the project to report the error.
23511         (When_No_Sources): New global variable
23512         (Report_No_Ada_Sources): New procedure
23513         (Check): New parameter When_No_Sources. Set value of global variable
23514         When_No_Sources,
23515         (Find_Sources): Call Report_No_Ada_Sources when appropriate
23516         (Get_Sources_From_File): Ditto
23517         (Warn_If_Not_Sources): Better warning messages indicating the unit name
23518         and the file name.
23519
23520         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
23521         Call Prj.Proc.Process with parameter When_No_Sources.
23522
23523         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
23524         Call Recursive_Check with parameter When_No_Sources.
23525         (Recursive_Check): New parameter When_No_Sources. Call itself and
23526         Prj.Nmsc.Check with parameter When_No_Sources.
23527         (Process): New parameter When_No_Sources. Call Check with parameter
23528         When_No_Sources.
23529         (Copy_Package_Declarations): New procedure to copy renamed parameters
23530         and setting the location of the declared attributes to the location
23531         of the renamed package.
23532         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
23533         packages.
23534
23535 2006-02-13  Vincent Celier  <celier@adacore.com>
23536
23537         * prj-makr.adb (Make): Preserve the comments from the original project
23538         file.
23539         When removing nodes (attributes Source_Dirs, Source_Files,
23540         Source_List_File and package Naming), save the comments and attach the
23541         saved comments to the newly created nodes.
23542         Do not add a with clause for the naming package if one already exists.
23543
23544 2006-02-13  Javier Miranda  <miranda@adacore.com>
23545             Gary Dismukes  <dismukes@adacore.com>
23546             Robert Dewar  <dewar@adacore.com>
23547
23548         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
23549
23550         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
23551         aliased entities to look for the overriden abstract interface
23552         subprogram.
23553         (Is_Interface_Subprogram): Complete documentation.
23554         (Check_Dispatching_Operation): Do not generate code to register the
23555         operation in the dispatch table if the source is compiled with
23556         restriction No_Dispatching_Calls.
23557         (Override_Dispatching_Operation): Check for illegal attempt to override
23558         No_Return procedure with procedure that is not No_Return
23559         (Check_Dispatching_Call): Suppress the check for an abstract operation
23560         when the original node of an actual is a tag-indeterminate attribute
23561         call, since the attribute, which must be 'Input, can never be abstract.
23562         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
23563         call to the Input attribute (even when rewritten).
23564         (Propagate_Tag): Augment comment to indicate the possibility of a call
23565         to an Input attribute.
23566
23567         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
23568         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
23569
23570         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
23571         No_Wide_Characters is no longer partition-wide
23572         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
23573         rather than GNAT
23574
23575 2006-02-13  Douglas Rupp  <rupp@adacore.com>
23576
23577         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
23578
23579 2006-02-13  Javier Miranda  <miranda@adacore.com>
23580
23581         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
23582         handles default-initialized components to keep separate the management
23583         of this feature but also avoid the unrequired resolution and
23584         expansion of components that do not have partially initialized
23585         values.
23586         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
23587         (Check_Bounds): Likewise.
23588         (Check_Length): Likewise.
23589
23590 2006-02-13  Javier Miranda  <miranda@adacore.com>
23591             Ed Schonberg  <schonberg@adacore.com>
23592
23593         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
23594         abstract interface type call analyze_and_resolve to expand the type
23595         conversion into the corresponding displacement of the
23596         reference to the base of the object.
23597         (Eval_Attribute, case Width): For systems where IEEE extended precision
23598         is supported, the maximum exponent occupies 4 decimal digits.
23599         (Accessibility_Message): Add '\' in 2-line warning message.
23600         (Resolve_Attribute): Likewise.
23601         (case Attribute_Access): Significantly revise checks
23602         for illegal access-to-subprogram Access attributes to properly enforce
23603         the rules of 3.10.2(32/2).
23604         Diagnose use of current instance with an illegal attribute.
23605
23606         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
23607         to a Node_Id.
23608         (Enclosing_Generic_Unit): New function to return a node's innermost
23609         enclosing generic declaration node.
23610         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
23611         (Type_Access_Level): The accessibility level of anonymous acccess types
23612         associated with discriminants is that of the current instance of the
23613         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
23614         (Compile_Time_Constraint_Error): Handle case of conditional expression.
23615         (Kill_Current_Values_For_Entity): New function
23616         (Enter_Name): Change formal type to Entity_Id
23617
23618 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
23619             Ed Schonberg  <schonberg@adacore.com>
23620             Gary Dismukes  <dismukes@adacore.com>
23621
23622         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
23623         Analyze_Compilation_Unit.
23624         Detect and warn on redundant with clauses detected in a package spec
23625         and/or body when -gnatwr is used.
23626         (Analyze_Context): Analyze config pragmas before other items
23627         (Install_Context_Items): Don't analyze config pragmas here
23628         (Install_Limited_Withed_Unit): Set limited entity of package in
23629         with_clause so that cross-reference information or warning messages on
23630         unused packages can be properly generated
23631         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
23632         has Error_Posted set. Prevent infinite loops in illegal programs.
23633         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
23634         to the point of the error test requiring the current unit to be private.
23635         This ensures that private with clauses are not exempted from the basic
23636         checking for being a descendant of the same library unit parent as a
23637         withed private descendant unit.
23638         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
23639         handle private with clauses properly, as well as to account for cases
23640         where the withed unit is a public descendant of a private ancestor
23641         (in which case the current unit must be a descendant of the private
23642         ancestor's parent). The spec comments were updated accordingly. Also,
23643         the old error message in this subprogram was replaced with error
23644         messages that mirror the errors tested and reported by
23645         Check_Private_Child_Unit.
23646         Parameter and variable names improved for readability.
23647         (Install_Limited_Context_Clauses): Remove test for a withed unit being
23648         private as the precondition for calling
23649         Check_Private_Limited_Withed_Unit since that subprogram has been
23650         revised to test public units as well as private units.
23651
23652 2006-02-13  Thomas Quinot  <quinot@adacore.com>
23653             Robert Dewar  <dewar@adacore.com>
23654             Ed Schonberg  <schonberg@adacore.com>
23655             Javier Miranda  <miranda@adacore.com>
23656
23657         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
23658         that Scope_Stack.First = 1.
23659         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23660         were not always properly handled previously.
23661         (Formal_Entity): Complete rewrite, to handle properly some complex case
23662         with multiple levels of parametrization by formal packages.
23663         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
23664         to the corresponding derived type declaration for proper semantics.
23665
23666         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
23667         (Check_Component): Enforce restriction on components of
23668         unchecked_unions: a component in a variant cannot contain tasks or
23669         controlled types.
23670         (Unchecked_Union): Allow nested variants and multiple discriminants, to
23671         conform to AI-216.
23672         Add pragma Ada_2005 (synonym for Ada_05)
23673         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23674         were not always properly handled previously.
23675         Document that pragma Propagate_Exceptions has no effect
23676         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
23677         (Set_Convention_From_Pragma): Check that if a convention is
23678         specified for a dispatching operation, then it must be
23679         consistent with the existing convention for the operation.
23680         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
23681         longer required to specify an vtable-ptr component in the record. For
23682         compatibility reasons we leave the support for the previous definition.
23683         (Analyze_Pragma, case No_Return): Allow multiple arguments
23684
23685         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
23686         non-overrideen inherited operation with a controlling result as
23687         illegal only its implicit declaration comes from the derived type
23688         declaration of its result's type.
23689         (Check_Possible_Deferred_Completion): Relocate the object definition
23690         node of the subtype indication of a deferred constant completion rather
23691         than directly analyzing it. The analysis of the generated subtype will
23692         correctly decorate the GNAT tree.
23693         (Record_Type_Declaration): Check whether this is a declaration for a
23694         limited derived record before analyzing components.
23695         (Analyze_Component_Declaration): Diagnose record types  not explicitly
23696         declared limited when a component has a limited type.
23697         (Build_Derived_Record_Type): Code reorganization to check if some of
23698         the inherited subprograms of a tagged type cover interface primitives.
23699         This check was missing in case of a full-type associated with a private
23700         type declaration.
23701         (Constant_Redeclaration): Check that the subtypes of the partial and the
23702         full view of a constrained deferred constant statically match.
23703         (Mentions_T): A reference to the current type in an anonymous access
23704         component declaration  must be an entity name.
23705         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
23706         class_wide type to refer to full type, not to the incomplete one.
23707         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
23708         available. Required to give support to the certified run-time.
23709         (Analyze_Component_Declaration): In case of anonymous access components
23710         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
23711         (Process_Discriminants): For an access discriminant, use the
23712         discriminant specification as the associated_node_for_itype, to
23713         simplify accessibility checks.
23714
23715 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23716             Javier Miranda  <miranda@adacore.com>
23717
23718         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
23719         abstract interpretations on an operator, remove interpretations that
23720         yield Address or a type derived from it, if one of the operands is an
23721         integer literal.
23722         (Try_Object_Operation.Try_Primitive_Operation,
23723         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
23724         location when creating the new reference to a primitive or class-wide
23725         operation as a part of rewriting a subprogram call.
23726         (Try_Primitive_Operations): If context requires a function, collect all
23727         interpretations after the first match, because there may be primitive
23728         operations of the same type with the same profile and different return
23729         types. From code reading.
23730         (Try_Primitive_Operation): Use the node kind to choose the proper
23731         operation when a function and a procedure have the same parameter
23732         profile.
23733         (Complete_Object_Operation): If formal is an access parameter and prefix
23734         is an object, rewrite as an Access reference, to match signature of
23735         primitive operation.
23736         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
23737         by an expanded name with prefix Standard, when the operands are of an
23738         anonymous access type.
23739         (Remove_Abstract_Operations): If the operation is abstract because it is
23740         inherited by a user-defined type derived from Address, remove it as
23741         well from the set of candidate interpretations of an overloaded node.
23742         (Analyze_Membership_Op): Membership test not applicable to cpp-class
23743         types.
23744
23745 2006-02-13  Bob Duff  <duff@adacore.com>
23746
23747         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
23748         redundant use clauses.
23749         In particular, if the scope of two use clauses overlaps, but one is not
23750         entirely included in the other, we should not warn.  This can happen
23751         with nested packages.
23752         (Analyze_Subprogram_Renaming): Protect the compiler against previously
23753         reported errors. The bug was reported when the compiler was built
23754         with assertions enabled.
23755         (Find_Type): If the node is a 'Class reference and the prefix is a
23756         synchronized type without a corresponding record, return the type
23757         itself.
23758
23759 2006-02-13  Javier Miranda  <miranda@adacore.com>
23760
23761         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
23762         if this is the full-declaration associated with a private declaration
23763         that implement interfaces, then the private type declaration must be
23764         limited.
23765         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
23766         as aliased. The use of the 'access attribute is not available for such
23767         object (for this purpose the object should be explicitly marked as
23768         aliased, but being an anonymous type this is not possible).
23769
23770 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23771             Robert Dewar  <dewar@adacore.com>
23772
23773         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
23774         compilation unit is an elaboration scope.
23775         (Add_Task_Proc): Add '\' in 2-line warning message.
23776         (Activate_All_Desirable): Deal with case of unit with'ed by parent
23777
23778 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23779             Javier Miranda  <miranda@adacore.com>
23780
23781         * sem_type.adb (Write_Overloads): Improve display of candidate
23782         interpretations.
23783         (Add_One_Interp): Do not add to the list of interpretations aliased
23784         entities corresponding with an abstract interface type that is an
23785         immediate ancestor of a tagged type; otherwise we have a dummy
23786         conflict between this entity and the aliased entity.
23787         (Disambiguate): The predefined equality on universal_access is not
23788         usable if there is a user-defined equality with the proper signature,
23789         declared in the same declarative part as the designated type.
23790         (Find_Unique_Type): The universal_access equality operator defined under
23791         AI-230 does not cover pool specific access types.
23792         (Covers): If one of the types is a generic actual subtype, check whether
23793         it matches the partial view of the other type.
23794
23795 2006-02-13  Thomas Quinot  <quinot@adacore.com>
23796
23797         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
23798         line. This is necessary to allow In_Extended_Main_Unit to provide
23799         correct results for itypes while writing out expanded source.
23800         (Close_File): No need to update the source_index_table here since it's
23801         now done for each line.
23802
23803 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
23804             Robert Dewar  <dewar@adacore.com>
23805
23806         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
23807         preserve the source unit where the itype is declared, and prevent a
23808         backend abort.
23809         (Note_Implicit_Run_Time_Call): New procedure
23810         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
23811         E_Subprogram_Type)
23812
23813         * sprint.ads: Document use of $ for implicit run time routine call
23814
23815 2006-02-13  Quentin Ochem  <ochem@adacore.com>
23816
23817         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
23818         task name.
23819
23820 2006-02-13  Bob Duff  <duff@adacore.com>
23821
23822         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
23823         Scan_Unsigned, so we do not scan leading blanks and sign twice.
23824         Integer'Value("- 5") and Integer'Value("-+5") now correctly
23825         raise Constraint_Error.
23826
23827         * s-vallli.adb (Scan_Long_Long_Integer): Call
23828         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
23829         do not scan leading blanks and sign twice.
23830         Integer'Value("- 5") and Integer'Value("-+5") now correctly
23831         raise Constraint_Error.
23832
23833         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
23834         Scan_Long_Long_Unsigned): Split out most of the processing from
23835         Scan_Long_Long_Unsigned out into
23836         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
23837         This prevents scanning leading blanks and sign twice.
23838         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
23839         See RM-3.5(44).
23840
23841         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
23842         out most of the processing from Scan_Unsigned out into
23843         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
23844         This prevents scanning leading blanks and sign twice.
23845
23846         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
23847         use with Modular'Value attribute.
23848         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
23849         attribute.
23850
23851 2006-02-13  Robert Dewar  <dewar@adacore.com>
23852
23853         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
23854
23855 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
23856
23857         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
23858         (PPC VxWorks): Likewise.
23859         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
23860         (forced_callee): Make non-inlinable and non-pure.
23861         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
23862
23863 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
23864             Ben Brosgol  <brosgol@adacore.com>
23865             Robert Dewar  <dewar@adacore.com>
23866
23867         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
23868         support.
23869         Document that gnatbind -M option is for cross environments only.
23870         Added description of using gnatmem to trace gnat rtl allocs and deallocs
23871         Add note on use of $ to label implicit run time calls
23872         Add documentation for -gnatyI (check mode IN)
23873         Updated chapter on compatibility with HP Ada
23874         VMS-oriented edits.
23875         Ran spell and corrected errors
23876         Add documentation for gnatbind -d and rework documentation of -D
23877         at the same time.
23878         Add subprogram/data elimination section.
23879         Minor editing of annex A.
23880         Add section for gnatcheck.
23881         Add documentation for restriction No_Dispatching_Calls
23882         Add documentation for pragma Ada_2005
23883         Remove mention of obsolete pragma Propagate_Exceptions
23884         Document that pragma Unreferenced can appear after DO in ACCEPT
23885         Clarify Pure_Function for library level units
23886         Mention Max/Min in connection with No_Implicit_Conditionals
23887         No_Wide_Characters restriction is no longer partition-wide
23888         Add a nice example for Universal_Literal_String attribute
23889         Document that pragma No_Return can take multiple arguments
23890
23891         * ug_words: Added entry for gnatcheck
23892
23893         * g-ctrl_c.ads (Install_Handler): Enhance comments
23894
23895         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
23896
23897         * g-trasym.ads: Add documentation on how to do off line symbolic
23898         traceback computation.
23899
23900         * s-fatgen.adb: Add comments for Unaligned_Valid
23901
23902         * stand.ads: Fix typo in comment
23903
23904 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23905
23906         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
23907
23908 2006-02-06  Roger Sayle  <roger@eyesopen.com>
23909
23910         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
23911
23912 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23913
23914         PR target/25926
23915         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
23916         implementation that calls __main.
23917
23918 2006-01-25  Peter O'Gorman  <peter@pogma.com>
23919
23920         PR bootstrap/25859
23921         * Makefile.in (GCC_LINK): Remove quotes.
23922         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
23923         or $(GCC_LINK).
23924
23925         (powerpc-darwin): Pass -shared-libgcc when building shared library.
23926
23927 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23928
23929         PR ada/24533
23930         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
23931
23932 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23933
23934         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
23935
23936 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
23937
23938         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
23939         needed.
23940
23941 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
23942
23943         * Make-lang.in: Update dependencies
23944
23945 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
23946
23947         * Make-lang.in: Add rule for ada/exp_sel.o
23948
23949 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
23950
23951         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
23952
23953 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
23954
23955         * gnatvsn.ads (Library_Version): Bump to version 4.2
23956         (ASIS_Version_Number): Bumped.
23957
23958 2005-12-09  Doug Rupp  <rupp@adacore.com>
23959
23960         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
23961         Ada bind file prefix on VMS from b$ to b__.
23962         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
23963         __init.
23964
23965         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
23966         Targparm.OpenVMS_On_Target.
23967         (Object_Suffix): Initialize with target object suffix.
23968         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
23969
23970         * butil.adb: Change some Hostparm.OpenVMS checks to
23971         Targparm.OpenVMS_On_Target.
23972
23973         * clean.adb: Change some Hostparm.OpenVMS checks to
23974         Targparm.OpenVMS_On_Target.
23975         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
23976         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
23977         Ada bind file prefix on VMS from b$ to b__.
23978
23979         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
23980         --GCC so that Get_Target_Parameters can find system.ads.
23981         (Gnatlink): Call Get_Target_Parameters in mainline.
23982         Initialize standard packages for Targparm.
23983         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
23984         (Process_Args): Also Check for object files with target object
23985         extension.
23986         (Make_Binder_File_Names): Create with target object extension.
23987         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
23988         to b__.
23989
23990         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
23991         Targparm.OpenVMS_On_Target.
23992         ({declaration},Build_Library,Check_Library): Change Ada bind file
23993         prefix on VMS from b$ to b__.
23994
23995         * osint-b.adb: Change some Hostparm.OpenVMS checks to
23996         Targparm.OpenVMS_On_Target.
23997         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
23998         b__.
23999
24000         * targext.c: New file.
24001
24002         * Makefile.in: add support for vxworks653 builds
24003         (../../vxaddr2line): gnatlink with targext.o.
24004         (TOOLS_LIBS): Move targext.o to precede libgnat.
24005         (init.o, initialize.o): Minor clean up in dependencies.
24006         (GNATLINK_OBJS): Add targparm.o, snames.o
24007         Add rules fo building targext.o and linking it explicitly with all
24008         tools.
24009         Also add targext.o to gnatlib.
24010
24011         * Make-lang.in: Add rules for building targext.o and linking it in
24012         with gnat1 and gnatbind.
24013         Add entry for exp_sel.o.
24014
24015         * osint.adb Change some Hostparm.OpenVMS checks to
24016         Targparm.OpenVMS_On_Target.
24017         (Object_File_Name): Use target object suffix.
24018
24019         * osint.ads (Object_Suffix): Remove, no longer used.
24020         (Target_Object_Suffix): Initialize with target object suffix.
24021
24022         * rident.ads: Add special exception to license.
24023
24024         * targparm.adb (Get_Target_Parameters): Set the value of
24025         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
24026         value.
24027         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
24028
24029         * targparm.ads: Add special exception to license.
24030
24031         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
24032         function.
24033         (Copy_File): Make sure from file is closed if error on to file
24034         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
24035
24036         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
24037         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
24038
24039         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
24040         target object suffix.
24041
24042 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
24043             Quentin Ochem  <ochem@adacore.com>
24044             Florian Villoing  <villoing@adacore.com>
24045
24046         * a-taster.ads, a-taster.adb: New files.
24047
24048         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
24049         link to the version that does nothing. This way the task termination
24050         routine is not executed twice for the environment task when finishing
24051         because of an unhandled exception.
24052
24053         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
24054         handler because of an unhandled exception.
24055
24056         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
24057         System.Tasking.Utilities instead of that in System.Tasking.Stages.
24058
24059         * s-finimp.adb (initialization code): Modify the soft link for the
24060         finalization of the global list instead of Adafinal.
24061
24062         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
24063         non-tasking version of the soft link for task termination. We do
24064         nothing since if we are using the non-tasking version it
24065         means that the task termination functionality is not used.
24066         (Null_Finalize_Global_List): Add this null version for the procedure
24067         in charge of finalizing the global list for controlled objects.
24068         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
24069         instead for handling run-time termination in a more flexible way.
24070         (Adafinal_NT): This new procedure will take care of finalizing the
24071         global list for controlled objects if needed, but no tasking
24072         finalization.
24073
24074         * s-tarest.adb (Task_Lock): Do not try to lock again the
24075         Global_Task_Lock if we already own it. Otherwise, we get blocked in
24076         some run-time operations.
24077         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
24078         until all nested locks have been released.
24079         (Task_Wrapper): Call the fall-back task termination handler. It
24080         applies to all tasks but the environment task.
24081         (Finalize_Global_Tasks): Add the call for the task termination
24082         procedure for the environment task.
24083         (Task_Wrapper): suppress warnings around declaration of
24084         Secondary_Stack_Address.
24085
24086         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
24087         moved to the Common_ATCB record.
24088         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
24089         Common_ATCB record.
24090         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
24091         Common_ATCB record.
24092
24093         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
24094         Fall_Back_Handler, and Specific_Handler.
24095
24096         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
24097         defined in Ada.Task_Termination, to avoid circular dependencies.
24098         (Termination_Handler): Redefine this type here, alredy defined in
24099         Ada.Task_Termination, for avoiding circular dependencies.
24100         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
24101         for storing task termination handlers. In addition,
24102         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
24103         Common_ATCB because it is used by both the regular and the restricted
24104         run times.
24105         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
24106         Common_ATCB because it is used by both the regular and the restricted
24107         run times.
24108         (Common_ATCB): Added a dynamic task analyzer field.
24109
24110         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
24111         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
24112         (Task_Wrapper): Call the task termination handler. It applies to all
24113         tasks but the environment task.
24114         (Finalize_Global_Tasks): Call the task termination procedure for the
24115         environment task. The call to Finalize_Global_List is now performed
24116         using the soft links mechanism.
24117         (Task_Wrapper): added dynamic stack analysis.
24118
24119         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
24120         potentially blocking operations has been moved from
24121         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
24122         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
24123         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
24124         this run-time check.
24125
24126         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
24127         of task termination procedure.
24128         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
24129         link for the task termination procedure.
24130
24131         * bindusg.adb: (Bindusg): Added documentation for -u option.
24132
24133         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
24134         (Get_Main_C): Add handling of dynamic stack analysis.
24135         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
24136
24137         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
24138         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
24139         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
24140
24141         * opt.ads: Added flags used by dynamic stack measurement.
24142         (Max_Line_Length): Remove (not used anymore)
24143
24144         * s-io.ads, s-io.adb (Standard_Error): new subprogram
24145         (Standart_Output): new subprogram
24146         (Set_Output): new subprogram
24147         (Put): now uses the value of Current_Out to know if the output has to be
24148         send to stderr or stdout.
24149
24150         * s-stausa.ads: Complete implementation.
24151
24152         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
24153
24154         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
24155         list of Ada 05 files.
24156         (GNAT Library Units): Add AltiVec files.
24157
24158         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
24159         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
24160         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
24161
24162 2005-12-09  Nicolas Setton  <setton@adacore.com>
24163
24164         * adaint.c (__gnat_locate_regular_file): Return immediately if
24165         file_name is empty.
24166
24167 2005-12-09  Javier Miranda  <miranda@adacore.com>
24168             Hristian Kirtchev  <kirtchev@adacore.com>
24169
24170         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
24171         to the specification because the frontend generates code that uses this
24172         subprogram.
24173         (Set_Interface_Table): Add missing assertion.
24174         Update documentation describing the run-time structure.
24175         (Displace): New subprogram that displaces the pointer to the object
24176         to reference one of its secondary dispatch tables.
24177         (IW_Membership): Modified to use the new table of interfaces.
24178         (Inherit_TSD): Modified to use the new table of interfaces.
24179         (Register_Interface_Tag): Use the additional formal to fill the
24180         contents of the new table of interfaces.
24181         (Set_Interface_Table): New subprogram that stores in the TSD the
24182         pointer to the table of interfaces.
24183         (Set_Offset_To_Top): Use the additional formal to save copy of
24184         the offset value in the table of interfaces.
24185         Update structure of GNAT Primary and Secondary dispatch table diagram.
24186         Add comment section on GNAT dispatch table prologue.
24187         (Offset_To_Signature): Update the constant value of the Signature field.
24188         (Dispatch_Table): Update comment on hidden fields in the prologue.
24189         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
24190         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
24191         the type of formal parameter T to Tag, introduce additional assertions.
24192         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
24193         conversion.
24194         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
24195
24196         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
24197         in all the calls to Expand_Interface_Thunk. Instead of referencing the
24198         record component containing the tag of the secondary dispatch table we
24199         have to use the Offset_To_Top run-time function to get this information;
24200         otherwise if the pointer to the base of the object has been displace
24201         we get a wrong value if we use the 'position attribute.
24202
24203         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
24204         all the calls to Expand_Interface_Thunk.
24205         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
24206         interfaces; hence the call to Set_Interface_Table was clearly wrong.
24207         (Collect_All_Interfaces): Modify the internal subprogram Collect to
24208         ensure that the interfaces implemented by the ancestors are placed
24209         at the header of the generated list.
24210         (Expand_Interface_Conversion): Handle the case in which the displacement
24211         associated with the interface conversion is not statically known. In
24212         this case we generate a call to the new run-time subprogram Displace.
24213         (Make_DT): Generate and fill the new table of interfaces.
24214         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
24215         Get_Tagged_Kind and Set_Tagged_Kind.
24216         (Tagged_Kind): New function that determines the tagged kind of a type
24217         with respect to limitedness and concurrency and returns a reference to
24218         RE_Tagged_Kind.
24219         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
24220         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
24221         primary dispatch table for a type.
24222         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
24223         secondary dispatch table respectively of a tagged type.
24224
24225         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
24226         (Expand_Interface_Conversion): New subprogram to indicate if the
24227         displacement of the type conversion is statically known.
24228         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
24229
24230         * rtsfind.ads (RE_Offset_To_Top): New entity
24231         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
24232         accessible to users.
24233         (Re_Displace): New entity
24234         (RE_Interface_Data): New entity
24235         (RE_Set_Interface_Data): New_Entity
24236         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
24237         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
24238         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
24239         RE_TK_Tagged, RE_TK_Task.
24240
24241         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
24242         Init_Secondary_Tags_Internal to allow its use with interface types and
24243         also to generate the code for the new additional actual required
24244         by Set_Offset_To_Top.
24245         (Build_Init_Statements): In case of components associated with abstract
24246         interface types there is no need to generate a call to its IP.
24247         (Freeze_Record_Type): Generate Select Specific Data tables only for
24248         concurrent types.
24249         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
24250         the bodies and specifications of the predefined primitive operations
24251         dealing with dispatching selects and abort, 'Callable, 'Terminated only
24252         for concurrent types.
24253
24254         * exp_sel.ads, exp_sel.adb: New files.
24255
24256         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
24257         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
24258         properly protected objects and attach handler in the case of the
24259         restricted profile.
24260         Move embeded package Select_Expansion_Utilities into a separate external
24261         package.
24262         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
24263         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
24264         (Build_K, Build_S_Assignment): New subprograms, part of the select
24265         expansion utilities.
24266         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
24267         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
24268         where the trigger is a dispatching procedure of a limited tagged type.
24269
24270 2005-12-09  Olivier Hainque  <hainque@adacore.com>
24271
24272         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
24273         pointer initialization values. Make a SAVE_EXPR instead. Add comments
24274         about the use and expansion of SAVE_EXPRs in the various possible
24275         renaming handling cases.
24276         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
24277         abusing DECL_FCONTEXT.
24278
24279 2005-12-09  Matthew Heaney  <heaney@adacore.com>
24280
24281         * a-convec.adb (Merge): Added assertions to check whether vector params
24282         are sorted.
24283
24284         * a-coinve.adb (Merge): Added assertions to check whether vector params
24285         are sorted.
24286
24287         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
24288         draft.
24289         (Cursor'Read): raises PE
24290
24291         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
24292         to its default value.
24293
24294         * a-cihama.adb: Manually check whether cursor's key and elem are
24295         non-null
24296
24297         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
24298         (Merge): Assert that target and source lists are in order
24299         (Swap): Declare non-const temporaries, to pass to Splice
24300
24301         * a-cdlili.ads: (Splice): Changed param name and param mode
24302
24303         * a-cdlili.adb: (Splice): Changed param name and param mode
24304         (Merge): Assert that target and source lists are in order
24305         (Swap): Declare non-const temporaries, to pass to Splice
24306
24307         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
24308         (Write): declare Stream param as not null
24309
24310         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
24311         an exception message.
24312
24313 2005-12-09  Thomas Quinot  <quinot@adacore.com>
24314             Robert Dewar  <dewar@adacore.com>
24315
24316         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
24317         which is the absolute maximum length we can support.
24318
24319         * frontend.adb: For the processing of configuration pragma files,
24320         remove references to Opt.Max_Line_Length, which is not checked anymore.
24321
24322         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
24323         length.
24324
24325         * scn.adb, scng.adb:
24326         Always check line length against the absolute supported maximum,
24327         Hostparm.Max_Line_Length.
24328
24329         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
24330         value for the maximum line length is Max_Line_Length (not
24331         Column_Number'Last).
24332         Minor error msg update
24333         (Set_Style_Check_Options): New interface returning error msg
24334         Minor code reorganization (processing for 'M' was out of alpha order)
24335
24336         * switch-c.adb: New interface for Set_Style_Check_Options
24337
24338         * stylesw.ads (Set_Style_Check_Options): New interface returning error
24339         msg.
24340
24341 2005-12-09  Javier Miranda  <miranda@adacore.com>
24342
24343         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
24344         with IP subprogram were only supported if there were limited types.
24345
24346         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
24347         records with IP subprogram were only supported if there were limited
24348         types.
24349
24350 2005-12-09  Olivier Hainque  <hainque@adacore.com>
24351             Eric Botcazou  <ebotcazou@adacore.com>
24352
24353         * trans.c (tree_transform, emit_check): Adjust calls to
24354         build_call_raise, passing the now expected GNAT_NODE argument.
24355
24356         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
24357         source line information than what the current global locus indicates
24358         when appropriate.
24359
24360         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
24361         field has overflowed.
24362         (build_call_raise): Add a GNAT_NODE argument to convey better source
24363         line information than what the current global locus indicates when
24364         appropriate.
24365         (build_component_ref): Adjust call to build_call_raise.
24366
24367 2005-12-09  Pascal Obry  <obry@adacore.com>
24368
24369         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
24370         the iterator is quitting iteration on parent directory.
24371
24372 2005-12-09  Javier Miranda  <miranda@adacore.com>
24373
24374         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
24375         and the assignment to a class-wide object, before the assignment we
24376         generate a run-time check to ensure that the tag of the Target is
24377         covered by the tag of the source.
24378
24379 2005-12-09  Robert Dewar  <dewar@adacore.com>
24380
24381         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
24382         parameter in call to Image_Wide_Character.
24383
24384         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
24385         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
24386         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
24387         annoying FFFE/FFFF inconsistency.
24388
24389 2005-12-09  Robert Dewar  <dewar@adacore.com>
24390             Javier Miranda  <miranda@adacore.com>
24391             Ed Schonberg  <schonberg@adacore.com>
24392
24393         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
24394         of type conversion.
24395         (Find_Interface): New subprogram that given a tagged type and one of its
24396         component associated with the secondary table of an abstract interface
24397         type, return the entity associated with such abstract interface type.
24398         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
24399         base type to create anonymous subtype, because entity may be a locally
24400         declared subtype or generic actual.
24401         (Find_Interface): New subprogram that given a tagged type and one of its
24402         component associated with the secondary table of an abstract interface
24403         type, return the entity associated with such abstract interface type.
24404
24405         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
24406         conversion cannot be handled at compile time. In this case we pass this
24407         information to the expander to generate the appropriate code.
24408
24409 2005-12-09  Robert Dewar  <dewar@adacore.com>
24410             Ed Schonberg  <schonberg@adacore.com>
24411             Gary Dismukes  <dismukes@adacore.com>
24412             Javier Miranda  <miranda@adacore.com>
24413             Hristian Kirtchev  <kirtchev@adacore.com>
24414
24415         * einfo.adb (Itype_Printed): New flag
24416         (Is_Limited_Type): Derived types do not inherit limitedness from
24417         interface progenitors.
24418         (Is_Return_By_Reference_Type): Predicate does not apply to limited
24419         interfaces.
24420
24421         * einfo.ads (Itype_Printed): New flag
24422         Move Is_Wrapper_Package to proper section
24423         Add missing Inline for Is_Volatile
24424
24425         * output.ads, output.adb (Write_Erase_Char): New procedure
24426         (Save/Restore_Output_Buffer): New procedures
24427         (Save/Restore_Output_Buffer): New procedures
24428
24429         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
24430         Add missing support for anonymous access type
24431         (Write_Id): Insert calls to Write_Itype
24432         (Write_Itype): New procedure to output itypes
24433
24434         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
24435         use of "limited" in declaration.
24436
24437         * sinfo.ads, sinfo.adb:
24438         Formal derived types can carry an explicit "limited" indication.
24439
24440         * sem_ch3.adb: Add with and use of Targparm.
24441         (Create_Component): If Frontend_Layout_On_Target is True and the
24442         copied component does not have a known static Esize, then reset
24443         the size and positional fields of the new component.
24444         (Analyze_Component_Declaration): A limited component is
24445         legal within a protected type that implements an interface.
24446         (Collect_Interfaces): Do not add to the list the interfaces that
24447         are implemented by the ancestors.
24448         (Derived_Type_Declaration): If the parent of the full-view is an
24449         interface perform a transformation of the tree to ensure that it has
24450         the same parent than the partial-view. This simplifies the job of the
24451         expander in order to generate the correct object layout, and it is
24452         needed because the list of interfaces of the full-view can be given in
24453         any order.
24454         (Process_Full_View): The parent of the full-view does not need to be
24455         a descendant of the parent of the partial view if both parents are
24456         interfaces.
24457         (Analyze_Private_Extension_Declaration): If declaration has an explicit
24458         "limited" the parent must be a limited type.
24459         (Build_Derived_Record_Type): A derived type that is explicitly limited
24460         must have limited ancestor and progenitors.
24461         (Build_Derived_Type): Ditto.
24462         (Process_Full_View): Verify that explicit uses of "limited" in partial
24463         and full declarations are consistent.
24464         (Find_Ancestor_Interface): Remove function.
24465         (Collect_Implemented_Interfaces): New procedure used to gather all
24466         implemented interfaces by a type.
24467         (Contain_Interface): New function used to check whether an interface is
24468         present in a list.
24469         (Find_Hidden_Interface): New function used to determine whether two
24470         lists of interfaces constitute a set equality. If not, the first
24471         differing interface is returned.
24472         (Process_Full_View): Improve the check for the "no hidden interface"
24473         rule as defined by AI-396.
24474
24475 2005-12-09  Robert Dewar  <dewar@adacore.com>
24476
24477         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
24478         types, not on record subtypes.
24479         (Freeze_Entity): Code cleanup. Add barrier to the loop
24480         that generates the references for primitive operations. This allows to
24481         remove an unnecessary exception handler.
24482         Code reformatting and comment clean ups.
24483
24484 2005-12-09  Vincent Celier  <celier@adacore.com>
24485
24486         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
24487         If GNAT CHECK is called with a project file, but with no
24488         source on the command line, call gnatcheck with all the compilable
24489         sources of the project.
24490         Take into account the new command Check, for gnatcheck. Treat as for
24491         other ASIS tools: take into account project, specific package Check and
24492         Compiler switches.
24493         For ASIS tools, add the switches in package Compiler for
24494         the invocation of the compiler.
24495
24496         * prj-attr.adb: Add package Check and its attributes
24497
24498         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
24499
24500         * vms_conv.adb (Initialize): Change Params of command Check to
24501         unlimited files.
24502         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24503         Add data for new command Check
24504
24505         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
24506         ELIM.
24507         Add qualifiers for Check command options
24508         (Command_Type): New command Check
24509
24510 2005-12-09  Thomas Quinot  <quinot@adacore.com>
24511
24512         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
24513         command line switch overruns the output buffer.
24514
24515 2005-12-09  Robert Dewar  <dewar@adacore.com>
24516
24517         * sem_prag.adb: Processing for new pragma Complete_Representation
24518         (Analyze_Pragma, case Debug): Implement two argument form.
24519
24520         * par-prag.adb: Entry for new pragma Complete_Representation
24521         (Prag, case Debug): Recognize two argument form of pragma Debug
24522         New interface for Set_Style_Check_Options.
24523
24524         * sem_ch13.adb: Implement new pragma Complete_Representation.
24525
24526         * snames.adb, snames.ads, snames.h: Entry for new pragma
24527         Complete_Representation.
24528
24529 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
24530
24531         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
24532         available user-specified stream attributes on limited parameters to
24533         also test the type directly rather than only its underlying type (for
24534         Ada 95) and, in the case of Ada 2005, to check that the user-specified
24535         attributes are visible at the point of the subprogram declaration.
24536         For Ada 2005, the error message is modified to indicate that the
24537         type's stream attributes must be visible (again, only for -gnat05).
24538
24539 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
24540
24541         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
24542         anonymous access types.
24543
24544         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
24545         matching of anonymous access types and anonymous access to subprogram
24546         types. 'R'M 4.9.1 (2/2).
24547
24548 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
24549
24550         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
24551         rule prematurely when operands are universal, remaining ambiguities
24552         will be removed during resolution.
24553         Code cleanup.
24554
24555         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
24556         that are Ada 2005 functions.
24557         (Has_Abstract_Interpretation): Subsidiary to
24558         Remove_Conversions, to remove ambiguities caused by abstract operations
24559         on numeric types when operands are universal.
24560
24561 2005-12-09  Robert Dewar  <dewar@adacore.com>
24562
24563         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
24564         for case where spec is categorized.
24565
24566 2005-12-09  Javier Miranda  <miranda@adacore.com>
24567
24568         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
24569         types use the corresponding record type. This was not needed before
24570         the implementation of Ada 2005 synchronized types because
24571         concurrent types were never tagged types in Ada 95.
24572
24573 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
24574
24575         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
24576         first subtype of the type of the expression to verify that it is a
24577         legal Time type.
24578
24579 2005-12-09  Robert Dewar  <dewar@adacore.com>
24580
24581         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
24582         decoded names.
24583
24584 2005-12-09  Quentin Ochem  <ochem@adacore.com>
24585             Robert Dewar  <dewar@adacore.com>
24586             Ed Falis  <falis@adacore.com>
24587             Florian Villoing  <villoing@adacore.com>
24588             Thomas Quinot  <quinot@adacore.com>
24589             Arnaud Charlet  <charlet@adacore.com>
24590
24591         * gnat_ugn.texi: Created section "Stack Related Tools"
24592         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
24593         "Stack Related Tools"
24594         Added subsection "Static Stack Usage Analysis"
24595         Added subsection "Dynamic Stack Usage Analysis"
24596         Include documentation of itypes in sprint listing (-gnatG)
24597         Documented gnatbind -D switch (default sec stack size for fixed sec
24598         stacks).
24599         Added Interrupt_State and Persistent_BSS to list of configuration
24600         pragmas.
24601         Add missing doc for maximum value of nnn in -gnatyMnnn
24602
24603         * gnat_rm.texi: Document the AltiVec binding.
24604         Add documentation for pragma Complete_Representation
24605         Shortened an overly long line (> 79 chars)
24606         Clarify documentation of unchecked conversion in implementation
24607         defined cases.
24608         Document two argument form of pragma Debug
24609
24610         * types.ads (Column_Number): Update documentation.
24611
24612         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
24613         library level Finalize_Storage_Only objects (these are not attached to
24614         any finalization list).
24615
24616         * system-mingw.ads: (Underlying_Priorities): Update comment.
24617
24618 2005-12-09  Robert Dewar  <dewar@adacore.com>
24619
24620         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
24621         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
24622         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
24623         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
24624         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
24625         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
24626         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
24627         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
24628         reformatting.
24629
24630 2005-12-09  Robert Dewar  <dewar@adacore.com>
24631
24632         * s-vaflop-vms-alpha.adb: (Ne_F): New function
24633         (Ne_G): New function
24634
24635         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
24636         for tag assignment.
24637         (Rewrite_Comparison): Handle case where operation is not a comparison
24638         and ignore, and also handle type conversion case.
24639
24640 2005-12-09  Thomas Quinot  <quinot@adacore.com>
24641
24642         * exp_aggr.ads: Fix typo in comment.
24643         ???-mark Convert_Aggr_In_Assignment as needing documentation.
24644
24645 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
24646
24647         * layout.adb: Replace various uses of byte by storage unit throughout.
24648         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
24649         static size, convert to storage units before returning, to conform to
24650         spec.
24651
24652 2005-12-09  Matthew Gingell  <gingell@adacore.com>
24653
24654         * g-exctra.ads: Fix typo in comment.
24655
24656 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24657
24658         * utils.c: Minor reformatting.
24659
24660 2005-12-09  Robert Dewar  <dewar@adacore.com>
24661
24662         * g-soccon.ads:
24663         Further comment fixes to make the status of the default file clear
24664
24665         * s-bitops.adb: Clarify comment for Bits_Array
24666
24667 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
24668
24669         * Make-lang.in (ada.install-normal): Remove.
24670
24671 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
24672
24673         * Make-lang.in: Remove all dependencies on s-gtype.
24674
24675 2005-12-05  Richard Guenther  <rguenther@suse.de>
24676
24677         * utils.c (convert): Use fold_convert where appropriate.
24678
24679 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
24680
24681         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
24682         a period is meant.
24683
24684 2005-12-02  Richard Guenther  <rguenther@suse.de>
24685
24686         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
24687
24688 2005-12-01  Roger Sayle  <roger@eyesopen.com>
24689
24690         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
24691         nodes.
24692
24693 2005-11-23  Laurent Guerby  <laurent@guerby.net>
24694
24695         * mlib-prj.adb (Build_Library): Initialize Delete.
24696
24697 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
24698
24699         * socket.c: Add extern int h_errno for rtems since networking header
24700         files are not available at this point in a tool bootstrap. Newlib
24701         only has basic C library header files.
24702
24703 2005-11-19  Richard Guenther  <rguenther@suse.de>
24704         Roger Sayle  <roger@eyesopen.com>
24705
24706         PR ada/23717
24707         * misc.c (internal_error_function): Don't use vsprintf to format
24708         the error message text, instead use pp_format_text and the new
24709         pretty printer APIs.  This allows handling of %qs, %w, etc.
24710
24711 2005-11-18  Laurent Guerby  <laurent@guerby.net>
24712
24713         PR ada/24857
24714         * Makefile.in: Use s-auxdec-empty for RTEMS.
24715
24716 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24717
24718         PR ada/22333
24719         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
24720         a temporary if taking the address of something that is neither
24721         reference, declaration, or constant, since the gimplifier
24722         can't handle that case.
24723
24724 2005-11-17  Laurent Guerby  <laurent@guerby.net>
24725
24726         PR ada/24857
24727         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
24728
24729 2005-11-16  Richard Guenther  <rguenther@suse.de>
24730
24731         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
24732
24733 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
24734
24735         PR ada/24855
24736         * raise-gcc.c: Add missing stdarg.h include.
24737
24738 2005-11-16  Richard Guenther  <rguenther@suse.de>
24739
24740         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
24741         (ada/misc.o): Likewise.
24742
24743 2005-11-14  Thomas Quinot  <quinot@adacore.com>
24744
24745         * g-soccon.ads: Minor reformatting. Update comments.
24746
24747         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
24748         gain visibility on the declaration of struct timeval.
24749
24750         * g-soccon-freebsd.ads,
24751         g-soccon-darwin.ads,
24752         g-soccon-tru64.ads,
24753         g-soccon-aix.ads,
24754         g-soccon-irix.ads,
24755         g-soccon-hpux.ads,
24756         g-soccon-solaris.ads,
24757         g-soccon-vms.ads,
24758         g-soccon-mingw.ads,
24759         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
24760
24761         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
24762         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
24763         g-soccon-linux-x86.ads: New files.
24764
24765         * g-socthi-mingw.adb:
24766         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
24767
24768         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
24769         (time_t, suseconds_t): New types constructed to match the tv_sec
24770         and tv_usec fields of C struct timeval.
24771         (Timeval): Construct structure in terms of the new types.
24772         (Host_Errno): New function (imported from socket.c), returns last hosts
24773         database error.
24774
24775         * g-socthi-vxworks.adb:  Add error handling circuitry.
24776
24777         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
24778         components of struct timeval.
24779         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
24780         (Check_Selector): In error conditions, clear internal socket sets to
24781         avoid a memory leak.
24782         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
24783         Send_Timeout, Receive_Timeout.
24784
24785         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
24786         the tv_sec and tv_usec fields of C struct timeval.
24787         (Timeval): Construct structure in terms of the new types.
24788         (Host_Errno): New function (imported from socket.c), returns last hosts
24789         database error.
24790
24791         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
24792         hosts database last error code.
24793
24794         * gen-soccon.c: Complete value expansion should not be performed on
24795         TARGET, as it has the form of a math expression, and some components
24796         may be platform-defined macros.
24797         For VxWorks, generate the OK and ERROR values.
24798         New constants giving the sizes of the components of C struct timeval.
24799
24800 2005-11-14  Robert Dewar  <dewar@adacore.com>
24801             Ed Schonberg  <schonberg@adacore.com>
24802
24803         PR ada/18434
24804         * types.ads: Include All_Checks in Suppress_Array
24805
24806         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
24807         not(a=b), since we no longer do this rewriting, and hence it is not
24808         needed.
24809         (Elaboration_Checks_Suppressed): Add special casing to
24810         deal with different cases of static and dynamic elaboration checks (all
24811         checks does not count in the first case, but does in the second).
24812         (Expr_Known_Valid): Do not assume that the result of any arbitrary
24813         function call is valid, since this is not the case.
24814         (Ensure_Valid): Do not apply validity check to a real literal
24815         in a universal or fixed context
24816
24817         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
24818         elementary types using the operator in standard. It is cleaner not to
24819         modify the programmers intent, especially in the case of floating-point.
24820         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
24821         it did not matter because we always rewrote a/=b to not(a=b).
24822         (Expand_Allocator_Expression): For an allocator expression whose nominal
24823         subtype is an unconstrained packed type, convert the expression to its
24824         actual constrained subtype.
24825         Implement warning for <= or >= where < or > not possible
24826         Fix to Vax_Float tests (too early in many routines, causing premature
24827         Vax_Float expansions.
24828
24829         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
24830         to be used with packages and generic packages as well as with
24831         subprograms.
24832         (Suppress): Set All_Checks, but not Elaboration_Check, for case
24833         of pragma Suppress (All_Checks)
24834         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
24835         a string literal for precise control over warnings.
24836         Avoid raise of pragma in case of unrecognized pragma and just return
24837         instead.
24838
24839         * sem_prag.ads: Minor reformatting
24840
24841         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
24842         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
24843         Switch. Do not handle any exception.
24844         Include -gnatwx as part of -gnatg (warn on redundant parens)
24845         Allow optional = after -gnatm
24846         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
24847         longer sets Elaboration_Checks.
24848         Code to set warning mode moved to Sem_Warn
24849         so that it can be shared by pragma processing.
24850
24851         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
24852         statement.
24853
24854         * s-taprop-solaris.adb:
24855         Change some <= to =, to avoid new warning
24856
24857         * a-exexda.adb, prj-proc.adb:
24858         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
24859         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
24860
24861 2005-11-14  Robert Dewar  <dewar@adacore.com>
24862
24863         * exp_vfpt.adb: Handle /= case
24864         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
24865         so that we do not get duplicate scaling for fixed point conversions.
24866
24867         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
24868
24869 2005-11-14  Matthew Gingell  <gingell@adacore.com>
24870
24871         * system-lynxos-ppc.ads, system-lynxos-x86.ads:
24872         Increase default priority on Lynx from 15 to 17, and meet the Ada
24873         requirement that Default_Priority be ((Priority'First +
24874         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
24875
24876 2005-11-14  Vincent Celier  <celier@adacore.com>
24877
24878         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24879         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24880         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
24881         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
24882         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
24883         mlib-tgt-lynxos.adb (DLL_Prefix): New function
24884
24885 2005-11-14  Doug Rupp  <rupp@adacore.com>
24886
24887         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
24888         private part.
24889
24890 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
24891
24892         * s-traces-default.adb, s-trafor-default.ads,
24893         s-tratas-default.adb: Fix compilation errors.
24894
24895 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
24896
24897         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
24898         raising the exception so the memory used is freed.
24899
24900 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
24901
24902         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
24903         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
24904         (convert_address): Update comments and list of platforms using this.
24905
24906         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
24907         no longer used.
24908
24909 2005-11-14  Pascal Obry  <obry@adacore.com>
24910             Vincent Celier  <celier@adacore.com>
24911
24912         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
24913         GNAT.Command_Line.
24914
24915         * memroot.adb: Remove redundant with/use clause on
24916         System.Storage_Elements.
24917
24918 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
24919
24920         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
24921         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
24922         related code to a-exexpr.adb
24923         (Save_Occurrence_And_Private): Move GCC EH related code to
24924         a-exexpr-gcc.adb
24925         (Raise_Current_Excep): Add new variable Id with pragma
24926         volatile, to ensure that the variable lives on stack.
24927
24928         * a-exexpr-gcc.adb, raise-gcc.c: New file.
24929
24930         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
24931         from a-except.adb.
24932         Move GCC EH related code to a-exexpr-gcc.adb
24933
24934         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
24935         64-bit Solaris
24936         Split the Linux version of g-soccon into separate variants for 32 and 64
24937         bit platforms.
24938         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
24939         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
24940         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
24941         of host variable $(RANLIB_FLAGS).
24942         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
24943         Code clean up: remove unused/obsolete targets.
24944         (EH_MECHANISM): New variable introduced to differenciate between the
24945         two EH mechanisms statically.
24946         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
24947         (LIBGNAT_OBJS): Add raise-gcc.o
24948         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
24949         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
24950         supports VxWorks 6 RTPs.
24951         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
24952         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
24953
24954         * raise.c: Move all GCC EH-related routines to raise-gcc.c
24955
24956 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
24957
24958         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
24959         deferral level, when abort is not allowed, to a later stage (the
24960         Task_Wrapper).
24961         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
24962         it will not get changed by the generated code. It was previously done
24963         in Create_Task.
24964
24965 2005-11-14  Thomas Quinot  <quinot@adacore.com>
24966             Olivier Hainque  <hainque@adacore.com>
24967             Eric Botcazou  <ebotcazou@adacore.com>
24968
24969         * decl.c:
24970         Factor common code to build a storage type for an unconstrained object
24971         from a fat or thin pointer type and a constrained object type.
24972         (annotate_value): Handle BIT_AND_EXPR.
24973         (annotate_rep): Don't restrict the back annotation of inherited
24974         components to the type_annotate_only case.
24975         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
24976         we are not defining the type.
24977         <E_Record_Type>: Likewise.
24978         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
24979         to get advantage of the new maybe_stabilize_reference interface, to
24980         ensure that what we reference is indeed stabilized instead of relying
24981         on assumptions on what the stabilizer does.
24982         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
24983         type imported through a limited_with clause, use its non-limited view.
24984         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
24985         differentiation.
24986         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
24987         of #if sections + explicit comparisons of convention identifiers.
24988         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
24989         before early-returning for certain types when code generation is
24990         disabled.
24991         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
24992         nullification of gnu_expr we do for objects with address clause and
24993         that we are not defining.
24994         (elaborate_expression_1): Do not create constants when creating
24995         variables needed by the debug info: the dwarf2 writer considers that
24996         CONST_DECLs is used only to represent enumeration constants, and emits
24997         nothing for them.
24998         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
24999         object with an address clause into an indirect reference, drop the
25000         initializing expression.
25001         Include "expr.h".
25002         (STACK_CHECK_BUILTIN): Delete.
25003         (STACK_CHECK_PROBE_INTERVAL): Likewise.
25004         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
25005         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
25006         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
25007         corresponding to the renamed object as ignored for debugging purposes.
25008
25009         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
25010         related): For a prefix that is a dereference of a fat or thin pointer,
25011         if there is an actual subtype provided by the front-end, use that
25012         subtype to build an actual type with bounds template.
25013         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
25014         is provided by the front-end, use that subtype to compute the size of
25015         the deallocated object.
25016         (gnat_to_gnu): When adding a statement into an elaboration procedure,
25017         check for a potential violation of a No_Elaboration_Code restriction.
25018         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25019         with extra arguments to control whether to recurse through non-values
25020         and to let the caller know if the stabilization has succeeded.
25021         (gnat_stabilize_reference): Now a simple wrapper around
25022         maybe_stabilize, for common uses without restriction on lvalues and
25023         without need to check for the success indication.
25024         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
25025         pass false instead of 0 as the FORCE argument which is a bool.
25026         (Identifier_to_gnu): Remove checks ensuring that an renamed object
25027         attached to a renaming pointer has been properly stabilized, as no such
25028         object is attached otherwise.
25029         (call_to_gnu): Invoke create_var_decl to create the temporary when the
25030         function uses the "target pointer" return mechanism.
25031         Reinstate conversion of the actual to the type of the formal
25032         parameter before any other specific treatment based on the passing
25033         mechanism. This turns out to be necessary in order for PLACEHOLDER
25034         substitution to work properly when the latter type is unconstrained.
25035
25036         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
25037         common pattern.
25038         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25039         with extra arguments to control whether to recurse through non-values
25040         and to let the caller know if the stabilization has succeeded.
25041
25042         * utils2.c (gnat_build_constructor): Only sort the fields for possible
25043         static output of record constructor if all the components are constant.
25044         (gnat_build_constructor): For a record type, sort the list of field
25045         initializers in increasing bit position order.
25046         Factor common code to build a storage type for an unconstrained object
25047         from a fat or thin pointer type and a constrained object type.
25048         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
25049         types variants, and process special cases of VIEW_CONVERT expressions
25050         as their NOP_EXPR counterpart to ensure we get to the
25051         CORRESPONDING_VARs associated with CONST_DECls.
25052         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
25053         on the right-hand side.
25054
25055         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
25056         a common pattern.
25057         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
25058         are converting back to its original type.
25059         (convert) <JM input>: Fallthrough regular conversion code instead of
25060         extracting the object if converting to a type variant.
25061         (create_var_decl): When a variable has an initializer requiring code
25062         generation and we are at the top level, check for a potential violation
25063         of a No_Elaboration_Code restriction.
25064         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
25065         SIZE and SIZE_UNIT which we need for later back-annotations.
25066         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
25067         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
25068         is an unchecked union.
25069         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
25070         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
25071         main variant, just replace the VIEW_CONVERT_EXPR.
25072         <UNION_TYPE>: Revert 2005-03-02 change.
25073
25074         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
25075
25076         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
25077
25078 2005-11-14  Matthew Heaney  <heaney@adacore.com>
25079
25080         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
25081         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
25082         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
25083         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
25084         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25085         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
25086         Compiles against the spec for ordered maps described in sections
25087         A.18.6 of the most recent (August 2005) AI-302 draft.
25088
25089 2005-11-14  Olivier Hainque  <hainque@adacore.com>
25090
25091         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
25092         to ensure bias adjustments take place when need be and to prevent
25093         occurrences of intermediate overflows.
25094
25095 2005-11-14  Matthew Gingell  <gingell@adacore.com>
25096             Olivier Hainque  <hainque@adacore.com>
25097
25098         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
25099         ia64 HP-UX.
25100
25101         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
25102         tracebacks on ia64 HP-UX and provide explanatory comment.
25103         Enable backtraces on ia64 GNU/Linux.
25104         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
25105         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
25106
25107 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
25108             Javier Miranda  <miranda@adacore.com>
25109
25110         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
25111         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
25112         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
25113         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
25114
25115         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
25116         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
25117         assertions).
25118
25119         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
25120         subprogram that generates the external name associated with a
25121         secondary dispatch table.
25122         (Get_Secondary_DT_External_Name): New subprogram that generates the
25123         external name associated with a secondary dispatch table.
25124
25125 2005-11-14  Emmanuel Briot  <briot@adacore.com>
25126
25127         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
25128         line in the ALI file to include both an instantiation reference, and a
25129         returned value.
25130
25131 2005-11-14  Vincent Celier  <celier@adacore.com>
25132
25133         * clean.adb (Check_Project): Look for Ada code in extending project,
25134         even if Ada is not specified as a language.
25135         Use new function DLL_Prefix for DLL_Name
25136         (Clean_Interface_Copy_Directory): New procedure
25137         (Clean_Library_Directory): New procedure
25138         (Clean_Directory): Remove procedure, no longer used
25139         (Clean_Project): Do not delete any file in an externally built project
25140
25141         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
25142         directory of an extending project, even when there are no Ada source
25143         present.
25144         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
25145         (Set_Ada_Paths.Add.Recursive_Add): Ditto
25146
25147         * mlib-prj.adb (Check_Library): For all library projects, get the
25148         library file timestamp.
25149         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
25150         (Build_Library): Use new function DLL_Prefix for the DLL_Name
25151         (Clean): Remove procedure, no longer used
25152         (Ultimate_Extension_Of): New function
25153         (Build_Library): When cleaning the library directory, only remove an
25154         existing library file and any ALI file of a source of the project.
25155         When cleaning the interface copy directory, remove any source that
25156         could be a source of the project.
25157
25158         * prj.ads, prj.adb (Project_Empty): Add values of new components
25159         Library_TS and All_Imported_Projects.
25160         (Project_Empty): Add values for new components of Project_Data:
25161         Library_ALI_Dir and Display_Library_ALI_Dir
25162
25163         * prj-attr.adb: New project level attribute name Library_ALI_Dir
25164
25165         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
25166         attribute Library_ALI_Dir.
25167         (Check_Library_Attributes): The library directory cannot be the same as
25168         any source directory of the project tree.
25169         (Check_Stand_Alone_Library): The interface copy directory cannot be
25170         the same as any source directory of the project tree.
25171
25172         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
25173         all temporary files.
25174
25175 2005-11-14  Robert Dewar  <dewar@adacore.com>
25176             Ed Schonberg  <schonberg@adacore.com>
25177
25178         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25179         (Check_Elab_Call): A call within a protected body is never an
25180         elaboration call, and does not require checking.
25181         (Same_Elaboration_Scope): Take into account protected types for both
25182         entities.
25183         (Activate_Elaborate_All_Desirable): New procedure
25184
25185         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
25186         desirable
25187
25188         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
25189         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
25190
25191         * lib-writ.ads, lib-writ.adb:
25192         Implement new AD/ED for Elaborate_All/Elaborate desirable
25193         Use new Elaborate_All_Desirable flag in N_With_Clause node
25194
25195         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
25196         N_Free_Statement nodes.
25197         Define new class N_Subprogram_Instantiation
25198         Add Elaborate_Desirable flag to N_With_Clause node
25199         Add N_Delay_Statement (covering two kinds of delay)
25200
25201         * debug.adb: Introduce d.f flag for compiler
25202         Add -da switch for binder
25203
25204 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25205             Cyrille Comar  <comar@adacore.com>
25206
25207         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
25208         for task component, in the case of a limited aggregate. The enclosed
25209         object declaration will create it earlier. Otherwise, in the case of a
25210         nested aggregate, the object may appear in the wrong scope.
25211         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
25212         (Gen_Assign): If the component being assigned is an array type and the
25213         expression is itself an aggregate, wrap the assignment in a block to
25214         force finalization actions on the temporary created for each row of the
25215         enclosing object.
25216         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
25217         structures are initialized after all discriminants are set so that
25218         they can be accessed even when their offset is dynamic.
25219
25220 2005-11-14  Robert Dewar  <dewar@adacore.com>
25221             Hristian Kirtchev  <kirtchev@adacore.com>
25222
25223         * sem_attr.adb: Implement Machine_Rounding attribute
25224         (Analyze_Access_Attribute): The access attribute may appear within an
25225         aggregate that has been expanded into a loop.
25226         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
25227         'Terminated whenever the prefix is of a task interface class-wide type.
25228         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
25229         the prefix is of a task interface class-wide type.
25230
25231         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
25232         to avoid warnings.
25233
25234         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
25235         Remove pragma Inline for [Unaligned_]Valid.
25236         Add comments that Valid routines do not work for Vax_Float
25237
25238         * exp_attr.adb: Implement Machine_Rounding attribute
25239
25240         * snames.h: Add entry for Machine_Rounding attribute
25241
25242 2005-11-14  Javier Miranda  <miranda@adacore.com>
25243             Robert Dewar  <dewar@adacore.com>
25244             Hristian Kirtchev  <kirtchev@adacore.com>
25245
25246         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
25247         and related): For a prefix that is an explicit dereference of an
25248         access to unconstrained packed array type, annotate the dereference
25249         with an actual subtype so GIGI can make a correct size computation.
25250         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
25251         'Unrestricted_Access, if the designated type is an interface we
25252         add a type conversion to force the displacement of the pointer
25253         to the secondary dispatch table.
25254         Use Universal_Real instead of Long_Long_Float when we need a high
25255         precision float type for the generated code (prevents gratuitous
25256         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25257         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
25258         'Terminated for task interface class-wide objects. Generate a call to
25259         the predefined dispatching routine used to retrieve the _task_id from
25260         a task corresponding record.
25261         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
25262
25263         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25264         (Check_Dispatching_Operation): Protect the frontend againts
25265         previously detected errors.
25266
25267         * Makefile.rtl: Add new instantiations of system.fat_gen
25268
25269         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
25270         Change name of instantiated package for better consistency
25271         with newly added system.fat_gen instantiations.
25272
25273         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
25274         s-fvagfl.ads: New files.
25275
25276 2005-11-14  Cyrille Comar  <comar@adacore.com>
25277             Thomas Quinot  <quinot@adacore.com>
25278
25279         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
25280         assignment of a value of a tagged type that has been rewritten to a
25281         block statement, it is known by construction that no checks are
25282         necessary for the statements within the block: analyze it with checks
25283         suppressed.
25284         (Expand_N_If_Statement): When killing a dead then-branch in an
25285         if-statement that has elsif_parts, recompute the Current_Value node
25286         for any entity whose value is known from the condition of the first
25287         elsif_part.
25288         (Expand_N_Return_Statement): When returning a mutable record, convert
25289         the return value into its actual subtype in order to help the backend
25290         to return the actual size instead of the maximum. This is another
25291         aftermath of not returning mutable records on the sec-stack anymore.
25292
25293         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
25294         handling of error msg for suspicious reverse range iteration.
25295         (Check_Possible_Current_Value_Condition): Move declaration from body to
25296         spec, to allow this subprogram to be called from exp_ch5.
25297
25298 2005-11-14  Thomas Quinot  <quinot@adacore.com>
25299
25300         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
25301         generate a set of nested array aggregates instead of a single flat
25302         aggregate for multi-dimensional arrays.
25303
25304 2005-11-14  Pascal Obry  <obry@adacore.com>
25305
25306         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
25307         by spawnve is a process handle, no need to convert. Add a parameter
25308         close to control wether the process handle must be closed.
25309         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
25310         a process handle, not need to convert.
25311         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
25312
25313         * g-expect.adb: (Kill): Document the new close parameter.
25314         (Close): Do not release the process handle in the kill there as
25315         waitpid() is using it.
25316         (Send_Signal): Release the process handle.
25317
25318 2005-11-14  Robert Dewar  <dewar@adacore.com>
25319
25320         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
25321         need a high precision float type for the generated code (prevents
25322         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25323         used).
25324
25325         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
25326         need a high precision float type for the generated code (prevents
25327         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25328         used).
25329         (Expand_Width_Attribute): In configurable run-time, the attribute is not
25330         allowed on non-static enumeration subtypes. Force a load error to emit
25331         the correct diagnostic.
25332
25333 2005-11-14  Thomas Quinot  <quinot@adacore.com>
25334             Robert Dewar  <dewar@adacore.com>
25335             Ed Schonberg  <schonberg@adacore.com>
25336
25337         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
25338         subtype to compute the size of the designated object at run-time,
25339         create such a subtype and store it in the Actual_Designated_Subtype
25340         attribute of the N_Free_Statement.
25341         Generate itype for classwide designated object in both cases of
25342         user-specified storage pool: specific and class-wide, not only in the
25343         specific case.
25344         Raise CE when trying to set a not null access type object to null.
25345         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
25346         an explicit loop, because freeze nodes make its position variable.
25347
25348         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
25349         null object.
25350
25351 2005-11-14  Javier Miranda  <miranda@adacore.com>
25352
25353         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
25354         Build_Stream_Procedure): Add the null-excluding attribute to the first
25355         formal.
25356         This has no semantic meaning under Ada95 mode but it is a
25357         requirement under Ada05 mode.
25358
25359         * par-ch3.adb (P_Access_Definition): Addition of warning message if
25360         the null exclusion is used under Ada95 mode
25361         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
25362         (P_Access_Definition): Remove assertion that forbids the use of
25363         the null-exclusion feature in Ada95.
25364
25365 2005-11-14  Robert Dewar  <dewar@adacore.com>
25366
25367         * impunit.adb: Exclude container helper units not intended for use by
25368         users.
25369
25370 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25371
25372         * freeze.adb (Freeze_Entity): For an access formal that is an access
25373         to subprogram, freeze the anonymous subprogram type at the same time,
25374         to prevent later freezing in the wrong scope, such as the enclosing
25375         subprogram body.
25376         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
25377         subprogram whenever available.
25378
25379 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
25380
25381         PR ada/23732
25382         * gnatvsn.ads (Library_Version): Bump to 4.1
25383
25384 2005-11-14  Robert Dewar  <dewar@adacore.com>
25385
25386         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
25387         Storage_Offset to avoid wrap around causing invalid results.
25388
25389 2005-11-14  Pascal Obry  <obry@adacore.com>
25390
25391         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
25392         cross-compiler.
25393         (Scan_Bind_Arg): Fail with an error message if -M option is used
25394         on a native compiler.
25395
25396 2005-11-14  Robert Dewar  <dewar@adacore.com>
25397             Vincent Celier  <celier@adacore.com>
25398
25399         * gprep.adb: Implement -C switch to scan comments
25400
25401         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
25402
25403         * scans.ads: Comment updates (including new use of Tok_Comment in
25404         preprocessing)
25405
25406         * opt.ads: Add documentation for flags that are used by gprmake,
25407         currently and in the next version of gprmake.
25408         (Verbosity_Level): New variable
25409         Add Replace_In_Comments switch
25410
25411         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
25412         and -vm.
25413         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
25414
25415 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
25416
25417         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
25418         message, friendlier.
25419
25420 2005-11-14  Robert Dewar  <dewar@adacore.com>
25421
25422         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
25423
25424 2005-11-14  Doug Rupp  <rupp@adacore.com>
25425
25426         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
25427
25428 2005-11-14  Robert Dewar  <dewar@adacore.com>
25429
25430         * interfac.ads: Change declarations of IEEE float types so that we no
25431         longer need a separate version of this package for VMS.
25432
25433 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25434
25435         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
25436         internal entity created for the declaration of a child subprogram body
25437         with no spec as coming from source, to generate proper cross-reference
25438         information.
25439
25440 2005-11-14  Vincent Celier  <celier@adacore.com>
25441
25442         * make.adb (Compile_Sources): Change verbose message to minimum
25443         verbosity level High for "is in an Ada library", "is a read-only
25444         library" and "is an internal library",
25445         (Create_Binder_Mapping_File): Path name of ALI file for library project
25446         must include the library directory, not the object directory.
25447         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
25448         for new switches -vl, -vm and -vh.
25449         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
25450         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
25451         (Compile_Sources): Do not attempt to compile if an ALI file is missing
25452         in a project that is externally built.
25453         (Compute_All_Imported_Projects): New procedure
25454         (Gnatmake): Check if importing libraries should be regenerated because
25455         at least an imported library is more recent.
25456         (Initialize): For each project compute the list of the projects it
25457         imports directly or indirectly.
25458         (Add_Library_Search_Dir): New procedure, used in place of
25459         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25460         put in the search paths.
25461         (Add_Source_Search_Dir): New procedure, used in place of
25462         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25463         put in the search paths.
25464         (Mark_Directory): Resolve the absolute path the directory before marking
25465         it.
25466
25467         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
25468         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25469         Switch. Do not handle any exception.
25470         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
25471         so that the switch is recognized as valid.
25472         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
25473
25474 2005-11-14  GNAT Script  <nobody@adacore.com>
25475
25476         * Make-lang.in: Makefile automatically updated
25477
25478 2005-11-14  Pascal Obry  <obry@adacore.com>
25479
25480         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
25481         used.
25482         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
25483         In both cases the last argument was dropped.
25484
25485 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
25486
25487         * namet.h: (Column_Numbe): New type.
25488         (Get_Column_Number): Define to sinput__get_column_number.
25489         (Instantiation): Define to sinput__instantiation.
25490         (Get_Column_Number): Declare.
25491         (Instantiation): Likewise.
25492
25493 2005-11-14  Robert Dewar  <dewar@adacore.com>
25494
25495         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
25496         syntax, which could cause compiler hangs.
25497
25498 2005-11-14  Vincent Celier  <celier@adacore.com>
25499
25500         * prj-ext.adb: Take into account new environment variable
25501         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
25502         are defined.
25503         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
25504         normalize its path name, making it absolute and resolving symbolic
25505         links, and replace the original if resolved path is different.
25506
25507 2005-11-14  Vincent Celier  <celier@adacore.com>
25508
25509         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
25510         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
25511
25512 2005-11-14  Emmanuel Briot  <briot@adacore.com>
25513
25514         * prj-pp.adb (Print): Do not output the with statement if the
25515         associated name is empty, which happens for virtual extending projects.
25516         (Print): Preserve the "extends all" attribute when printing the project.
25517
25518         * prj-tree.ads (String_Value_Of): Add comment about returned value for
25519         a virtual extending project.
25520
25521 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25522
25523         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
25524         rhs of an assignment even if the type is unconstrained, when the
25525         context is non-expanding.
25526         In an inlined body, if the context type is private,
25527         resolve with its full view, which must be a composite type.
25528
25529 2005-11-14  Robert Dewar  <dewar@adacore.com>
25530             Ed Schonberg  <schonberg@adacore.com>
25531
25532         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25533         Do not give obsolescent warning on with of subprogram (since we
25534         diagnose calls)
25535         (Analyze_With_Clause): Add test for obsolescent package
25536         (Install_Context_Clauses): If the unit is the body of a child unit, do
25537         not install twice the private declarations of the parents, to prevent
25538         circular lists of Use_Clauses in a parent.
25539         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
25540         compiling body of child unit.
25541         Use new class N_Subprogram_Instantiation
25542         (Expand_With_Clause): If this is a private with_clause for a child unit,
25543         appearing in the context of a package declaration, then the implicit
25544         with_clauses generated for parent units are private as well.
25545         (License_Check): Do not generate message if with'ed unit is internal
25546
25547 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
25548             Ed Schonberg  <schonberg@adacore.com>
25549             Thomas Quinot  <quinot@adacore.com>
25550
25551         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
25552         names are internal, because they will not have a corresponding partner
25553         in the actual package.
25554         (Analyze_Formal_Package): Move the setting of the formal package spec's
25555         Generic_Parent field so that it occurs prior to analyzing the package,
25556         to allow proper operation of Install_Parent_Private_Declarations.
25557         (Analyze_Package_Instantiation): Set the instantiated package entity's
25558         Package_Instantiation field.
25559         (Get_Package_Instantiation_Node): Move declaration to package spec.
25560         Retrieve the N_Package_Instantiation node when the Package_Instantiation
25561         field is present.
25562         (Check_Generic_Child_Unit): Within an inlined call, the only possible
25563         instantiation is Unchecked_Conversion, for which no parents are needed.
25564         (Inline_Instance_Body): Deinstall and record the use_clauses for all
25565         parent scopes of a scope being removed prior to inlining an instance
25566         body.
25567         (Analyze_Package_Instantiation): Do not perform front-end inlining when
25568         the current context is itself an instance within a non-instance child
25569         unit, to prevent scope stack errors.
25570         (Save_References): If the node is an aggregate that is an actual in a
25571         call, rewrite as a qualified expression to preserve some type
25572         information, to resolve possible ambiguities in the instance.
25573         (Instance_Parent_Unit): New global variable to record the ultimate
25574         parent unit associated with a generic child unit instance (associated
25575         with the existing Parent_Unit_Visible flag).
25576         (type Instance_Env): New component Instance_Parent_Unit for stacking
25577         parents recorded in the global Instance_Parent_Unit.
25578         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
25579         stack.
25580         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
25581         it's not a top-level unit, and only do this if Instance_Parent_Unit is
25582         not already set. Replace test of Is_Child_Unit with test of parent's
25583         scope against package Standard. Add comments and a ??? comment.
25584         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
25585         on a child instance parent to test that the parent equals
25586         Instance_Parent rather than simply checking that the unit is not a
25587         child unit.
25588         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
25589         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
25590         a formal interface are ancestors of the corresponding actual.
25591         (Validate_Formal_Interface_Type): Additional legality checks.
25592         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
25593         interface types with ancestors.
25594         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
25595         to diagnose attempts to use generic within its own declaration.
25596
25597 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25598             Javier Miranda  <miranda@adacore.com>
25599
25600         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
25601         discriminant.
25602         (Build_Private_Derived_Type): The entity of the created full view of the
25603         derived type does not come from source. If after installing the private
25604         declarations of the parent scope the parent is still private, use its
25605         full view to construct the full declaration of the derived type.
25606         (Build_Derived_Record_Type): Relax the condition that controls the
25607         execution of the check that verifies that the partial view and
25608         the full view agree in the set of implemented interfaces. In
25609         addition, this test now only takes into account the progenitors.
25610         (Derive_Interface_Subprograms): No need to derive subprograms
25611         of ancestors that are interfaces.
25612         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
25613         associated code.
25614         Change name Is_Package to Is_Package_Or_Generic_Package
25615         (Complete_Subprograms_Derivation): Handle the case in which the full
25616         view is a transitive derivation of the ancestor of the partial view.
25617         (Process_Full_View): Rename local subprogram Find_Interface_In_
25618         Descendant to Find_Ancestor_Interface to leave the code more clear.
25619         Remove wrong code that avoids the generation of an error message
25620         when the immediate ancestor of the partial view is an interface.
25621         In addition some minor reorganization of the code has been done to
25622         leave it more clear.
25623         (Analyze_Type_Declaration): If type has previous incomplete tagged
25624         partial view, inherit properly its primitive operations.
25625         (Collect_Interfaces): Make public, for analysis of formal
25626         interfaces.
25627         (Analyze_Interface_Declaration): New procedure for use for regular and
25628         formal interface declarations.
25629         (Build_Derived_Record_Type): Add support for private types to the code
25630         that checks if a tagged type implements abstract interfaces.
25631         (Check_Aliased_Component_Type): The test applies in the spec of an
25632         instance as well.
25633         (Access_Type_Declaration): Clean up declaration of malformed type
25634         declared as an access to its own classwide type, to prevent cascaded
25635         crash.
25636         (Collect_Interfaces): For private extensions and for derived task types
25637         and derived protected types, the parent may be an interface that must
25638         be included in the interface list.
25639         (Access_Definition): If the designated type is an interface that may
25640         contain tasks, create Master_Id for it before analyzing the expression
25641         of the declaration, which may be an allocator.
25642         (Record_Type_Declaration): Set properly the interface kind, for use
25643         in allocators, the creation of master id's for task interfaces, etc.
25644
25645 2005-11-14  Javier Miranda  <miranda@adacore.com>
25646             Ed Schonberg  <schonberg@adacore.com>
25647
25648         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
25649         omitted in case of stream attribute subprograms.
25650         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
25651         appear immediately after a subprogram body, when there is no previous
25652         subprogram declaration.
25653         Change name Is_Package to Is_Package_Or_Generic_Package
25654         (Process_Formals): A non null qualifier on a non null named access
25655         type is not an error, and is a warning only if Redundant_Constructs
25656         are flagged.
25657
25658 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
25659             Ed Schonberg  <schonberg@adacore.com>
25660
25661         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
25662         nested within Analyze_Package_Specification to install the private
25663         declarations and use clauses within each of the parent units of a
25664         package instance of a generic child package.
25665         (Analyze_Package_Specification): When entering a private part of a
25666         package associated with a generic instance or formal package, the
25667         private declarations of the parent must be installed (by calling new
25668         procedure Install_Parent_Private_Declarations).
25669         Change name Is_Package to Is_Package_Or_Generic_Package
25670         (Preserve_Full_Attributes): For a synchronized type, the corresponding
25671         record is absent in a generic context, which does not indicate a
25672         compiler error.
25673
25674 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25675
25676         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
25677         not try to rewrite a renamed stream attribute, because the operations
25678         on the type may not have been generated.
25679         Handle properly a renaming_as_body generated for a stream operation
25680         whose default is abstract because the object type itself is abstract.
25681         (Find_Type): If the type is incomplete and appears as the prefix of a
25682         'Class reference, it is tagged, and its list of primitive operations
25683         must be initialized properly.
25684         (Chain_Use_Clauses): When chaining the use clauses that appear in the
25685         private declaration of a parent unit, prior to compiling the private
25686         part of a child unit, find on the scope stack the proper parent entity
25687         on which to link the use clause.
25688         (Note_Redundant_Use): Emit a warning when a redundant use clause is
25689         detected.
25690         (Analyze_Object_Renaming): An attribute reference is not a legal object
25691         if it is not a function call.
25692
25693 2005-11-14  Robert Dewar  <dewar@adacore.com>
25694             Ed Schonberg  <schonberg@adacore.com>
25695
25696         * sem_eval.adb: Implement d.f flag
25697         (Subtype_Statically_Match): A generic actual type has unknown
25698         discriminants when the corresponding actual has a similar partial view.
25699         If the routine is called to validate the signature of an inherited
25700         operation in a child instance, the generic actual matches the full view,
25701
25702 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
25703             Ed Schonberg  <schonberg@adacore.com>
25704             Robert Dewar  <dewar@adacore.com>
25705             Thomas Quinot  <quinot@adacore.com>
25706
25707         * sem_res.adb (Resolve_Call): Provide a better error message whenever
25708         a procedure call is used as a select statement trigger and is not an
25709         entry renaming or a primitive of a limited interface.
25710         (Valid_Conversion): If the operand has a single interpretation do not
25711         remove address operations.
25712         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
25713         statement to inhibit warning.
25714         (Resolve_Unary_Op): Do not produce a warning when
25715         processing an expression of the form -(A mod B)
25716         Use Universal_Real instead of Long_Long_Float when we need a high
25717         precision float type for the generated code (prevents gratuitous
25718         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25719         (Resolve_Concatenation_Arg): Improve error message when argument is an
25720         ambiguous call to a function that returns an array.
25721         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
25722         there is an implicit operator in the given scope if we are within an
25723         instance: legality check has been performed on the generic.
25724         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
25725         after resolving operand, to avoid false warnings on overloaded calls.
25726
25727 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25728             Javier Miranda  <miranda@adacore.com>
25729
25730         PR ada/15604
25731         * sem_type.adb (Covers): In an inlined body, a composite type matches
25732         a private type whose full view is a composite type.
25733         (Interface_Present_In_Ancestor): Protect the frontend against
25734         previously detected errors to ensure that its compilation
25735         with assertions enabled gives the same output that its
25736         compilation without assertions.
25737         (Interface_Present_In_Ancestor): Add support for private types.
25738         Change name In_Actual to In_Generic_Actual (clean up)
25739         (Disambiguate): New predicate In_Actual, to recognize expressions that
25740         appear in the renaming declaration generated for generic actuals, and
25741         which must be resolved in the outer context.
25742
25743 2005-11-14  Robert Dewar  <dewar@adacore.com>
25744             Thomas Quinot  <quinot@adacore.com>
25745             Hristian Kirtchev  <kirtchev@adacore.com>
25746             Ed Schonberg  <schonberg@adacore.com>
25747
25748         * sem_util.ads, sem_util.adb: Change name Is_Package to
25749         Is_Package_Or_Generic_Package.
25750         (Check_Obsolescent): New procedure.
25751         (Set_Is_Public): Remove obsolete junk test.
25752         (Set_Public_Status): Do not set Is_Public on an object whose declaration
25753         occurs within a handled_sequence_of_statemets.
25754         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
25755         for a parameterless procedure.
25756         (Enter_Name): Recognize renaming declarations created for private
25757         component of a protected type within protected operations, so that
25758         the source name of the component can be used in the debugger.
25759
25760 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
25761             Robert Dewar  <dewar@adacore.com>
25762
25763         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
25764         of a generic subprogram are not visible outside the body.
25765         (Set_Warning_Switch): New procedure (code to set warning mode moved
25766         here from Switch.C so that it can be shared by pragma processing.
25767         (Check_References): Special case warning for non-modified non-imported
25768         volatile objects.
25769         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
25770         form with a string literal argument
25771
25772 2005-11-14  Javier Miranda  <miranda@adacore.com>
25773
25774         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
25775         anonymous access.
25776         (Write): Addition of "not null" to the anonymous access.
25777         (Read): Addition of "not null" to the anonymous access.
25778         (Write): Addition of "not null" to the anonymous access.
25779
25780         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
25781         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
25782         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
25783         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
25784         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
25785         "not null" to the anonymous access.
25786
25787 2005-11-14  Robert Dewar  <dewar@adacore.com>
25788
25789         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
25790         offset values
25791
25792 2005-11-14  Vincent Celier  <celier@adacore.com>
25793
25794         * switch.adb (Bad_Switch): New procedure
25795         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
25796         message when in error.
25797
25798         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
25799         Too_Many_Output_Files): Remove declarations, no longer used.
25800         (Scan_Nat): New parameter Switch
25801         (Scan_Pos): Ditto
25802         (Bad_Switch): New procedure
25803
25804         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
25805         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
25806         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
25807         to Osint.Fail. Do not handle any exception.
25808
25809 2005-11-14  Vincent Celier  <celier@adacore.com>
25810
25811         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
25812         designates a non existent directory.
25813
25814 2005-11-14  Robert Dewar  <dewar@adacore.com>
25815
25816         * xgnatugn.adb: Replace invalid membership test by 'Valid
25817
25818 2005-11-14  Vincent Celier  <celier@adacore.com>
25819
25820         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
25821         there is no object directory.
25822
25823 2005-11-14  Robert Dewar  <dewar@adacore.com>
25824
25825         * usage.adb: Minor adjustment to output format, use nn instead of nnn
25826         (so that -gnateInnn does not run into next column)
25827
25828 2005-11-14  Ed Falis  <falis@adacore.com>
25829
25830         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
25831         "constrained"
25832
25833 2005-11-14  Cyrille Comar  <comar@adacore.com>
25834
25835         * s-chepoo.ads: Add comments on Dereference.
25836         Remove unnecessary inherited abstract primitives.
25837         Cosmetic cleanup.
25838
25839 2005-11-14  Robert Dewar  <dewar@adacore.com>
25840
25841         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
25842         node parameter, not needed, since it is available as Declaration_Node.
25843
25844 2005-11-14  Geert Bosch  <bosch@adacore.com>
25845
25846         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
25847         grammatically correct.
25848
25849 2005-11-14  Vincent Celier  <celier@adacore.com>
25850
25851         * s-fileio.ads: Correct spelling error in comment
25852
25853 2005-11-14  Cyrille Comar  <comar@adacore.com>
25854             Robert Dewar  <dewar@adacore.com>
25855             Vincent Celier  <celier@adacore.com>
25856             Ben Brosgol  <brosgol@adacore.com>
25857             Jose Ruiz  <ruiz@adacore.com>
25858             Pascal Obry  <obry@adacore.com>
25859
25860         * gnat_ugn.texi:
25861         Document that -fstack-check is needed for strict compliance with the
25862         Ada 95 Reference Manual.
25863         Correct reference to VAX systems to meet HP guidelines
25864         Add documentation for new gnatmake switches -vl, -vm and -vh
25865         Replace DEC Ada by HP Ada
25866         Replace DIGITAL by HP
25867         Remove empty section on tools in compatibility section
25868         Clarify the Windows convention semantics.
25869         Document the Win32 calling convention.
25870         The Stdcall, Win32 and DLL convention are synonyms.
25871         Add a note in -gnatR description about zero size record components
25872         Note on new >= and <= warnings for -gnatwc
25873         Document that equal sign after -gnatm is optional.
25874         Note that strip is working fine on DLL built with a Library
25875         Project. The restriction apply only to DLL built with gnatdll.
25876         Update section about the way to debug a DLL.
25877         Update information about the DLL convention.
25878         Document -C switch for gnatprep
25879         Document new attribute Library_ALI_Dir
25880         Update elaboration doc to include implicit Elaborate pragmas now
25881         generated for subprogram instantiations.
25882         Document limitation on executable names that include spaces for --GCC,
25883         --GNATBIND, and --GNATLINK switches.
25884         Document that -w causes -gnatws to be added at start of gcc switches
25885
25886         * gnat_rm.texi: Document that -mieee is needed for generating infinite
25887         and NaN values in case of overflow on machines that are not fully
25888         compliant with the IEEE floating-point standard.
25889         Create a section describing the set of compiler options needed for
25890         strict compliance with the Ada 95 Reference Manual.
25891         Add documentation for pragma Obsolescent applied to a package
25892         Clarify potential issues of mixed language programs related to the
25893         I/O buffering enabling in the elaboration of the GNAT runtime.
25894         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
25895         This documentation only patch adds extra documentsion for pragma
25896         Restrictions (No_Elaboration_Code), explaining why it is not possible
25897         to document this restriction in terms of allowed source constructs.
25898         Document string literal form of pragma Warnings
25899         Document new attribute Library_ALI_Dir
25900         Add documentation on stable attributes in project files that was missing
25901
25902         * gnat-style.texi: Indicate that paragraphs within a single comment
25903         should be separated by empty comment lines
25904
25905         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
25906         /05 respectively)
25907
25908         * bindusg.adb: Minor cleanup, put -m before -M for consistency
25909
25910 2005-11-14  Robert Dewar  <dewar@adacore.com>
25911
25912         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
25913         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
25914         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
25915         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
25916         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
25917         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
25918         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25919         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
25920         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
25921         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25922         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
25923         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
25924         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
25925         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
25926         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
25927         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
25928         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
25929         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
25930         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
25931         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
25932         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25933         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
25934         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
25935         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
25936         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
25937         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
25938         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
25939         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
25940         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
25941         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
25942         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
25943         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
25944         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
25945         system-interix.ads, system-solaris-sparc.ads,
25946         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
25947         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
25948         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
25949         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
25950         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
25951         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
25952         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
25953         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
25954         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
25955         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
25956         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
25957         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
25958         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
25959         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
25960         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
25961         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
25962         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
25963         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
25964         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
25965         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
25966         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
25967         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
25968         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
25969         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
25970         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
25971         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25972         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
25973         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
25974         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
25975         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
25976         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
25977         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
25978         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25979         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
25980         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
25981         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
25982         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
25983         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
25984         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
25985         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
25986         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
25987         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
25988         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
25989         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
25990         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
25991         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
25992         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
25993         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
25994         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
25995         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
25996         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
25997         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
25998         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
25999         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
26000         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
26001         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
26002         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
26003         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
26004         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
26005         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
26006         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
26007         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
26008         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
26009         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
26010         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
26011         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
26012         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
26013         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
26014         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
26015         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
26016         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
26017         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
26018         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
26019         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
26020         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
26021         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
26022         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
26023         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
26024         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
26025         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
26026         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
26027         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
26028         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
26029         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
26030         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
26031         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
26032         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
26033         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
26034         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
26035         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
26036         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
26037         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
26038         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
26039         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
26040         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
26041         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
26042         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
26043         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
26044         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
26045         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
26046         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
26047         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
26048         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
26049         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
26050         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
26051         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
26052         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
26053         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
26054         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
26055         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
26056         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
26057         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
26058         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
26059         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
26060         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
26061         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
26062         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
26063         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
26064         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
26065         a-numaux-darwin.ads, a-numaux-darwin.adb,
26066         a-swuwha.ads, a-stunha.ads: Minor reformatting
26067
26068 2005-11-14  Robert Dewar  <dewar@adacore.com>
26069
26070         PR ada/18434
26071         * osint-m.adb: Add pragma Elaborate_All for Osint
26072
26073 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
26074
26075         PR ada/23995
26076         * trans.c (call_to_gnu): Restore statement lost in translation.
26077
26078 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
26079
26080         * init.c: Use the Linux-specific section for the IA-64/Linux target.
26081         (__gnat_adjust_context_for_raise): Add conditional code so that the
26082         IA-64 is also supported.
26083
26084 2005-11-03  James E Wilson  <wilson@specifix.com>
26085
26086         PR ada/23427
26087         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
26088         TREE_OVERFLOW check.
26089
26090 2005-09-21  Olivier Hainque  <hainque@adacore.com>
26091
26092         PR ada/22418
26093         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
26094         as we create them to store a size in bits.
26095
26096 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
26097
26098         PR ada/21937
26099         PR ada/22328
26100         PR ada/22381
26101         PR ada/22383
26102         PR ada/22419
26103         PR ada/22420
26104         * utils2.c (build_return_expr): New helper function.
26105         * gigi.h (build_return_expr): Declare it.
26106         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
26107         of manually building the RETURN_EXPR tree.
26108         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
26109         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
26110         build_binary_op for the "target pointer" case.  Use build_return_expr
26111         instead of manually building the RETURN_EXPR tree.
26112
26113 2005-09-16  Laurent Guerby  <laurent@guerby.net>
26114
26115         PR ada/23788
26116         * s-tpinop.ads: Make this unit Preelaborate.
26117
26118 2005-09-16  Andreas Jaeger  <aj@suse.de>
26119
26120         * socket.c: Add string.h for memcpy.
26121
26122 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
26123
26124         * dec-io.ads, dec-io.adb: Removed, no longer used.
26125
26126 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26127
26128         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
26129
26130         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
26131         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
26132         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
26133         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
26134         dependent units are Preelaborate.
26135         (Initialize): Call Interrupt_Managemeent.Initialize and
26136         OS_Primitives.Initialize to ensure proper initialization of this unit.
26137         Remove use of System.Soft_Links
26138         Make this unit Preelaborate.
26139
26140         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
26141         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
26142         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
26143         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
26144         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26145         s-tratas.ads, s-tasinf.ads: Minor reformatting.
26146         Add pragma Preelaborate, since these packages are suitable for this
26147         categorization.
26148         Update comments.
26149
26150         * s-traent-vms.ads, s-intman-dummy.adb,
26151         s-taprop-dummy.adb: Make this unit Preelaborate.
26152
26153         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26154         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
26155         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
26156         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
26157         s-intman-solaris.adb, s-intman-irix-athread.adb,
26158         s-intman-irix.adb: Mark this unit Preelaborate.
26159         (Initialize): New procedure.
26160         Update comments.
26161
26162         * s-taspri-linux.ads: Removed.
26163
26164         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
26165         as done by other implementations (e.g. posix).
26166
26167         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
26168         responsible for deferring abort.
26169         Mark this unit Preelaborate.
26170
26171         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
26172         proper initialization of the tasking run-time.
26173
26174         * s-tasdeb.ads: Mark this unit Preelaborate.
26175         (Known_Tasks): Add explicit default value to avoid elaboration code.
26176
26177         * s-inmaop-vms.adb (Elaboration code): Add call to
26178         Interrupt_Management.Initialize since the elaboration code depends on
26179         proper initialization of this package.
26180
26181         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
26182         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
26183         s-osprim-posix.adb: Make this unit Preelaborate.
26184
26185         * a-calend.adb: Add call to OS_Primitives.Initialize
26186
26187         * a-elchha.adb: Update use of Except.Id.Full_Name.
26188         Minor reformatting.
26189         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
26190
26191         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
26192         Move with clauses outside Warnings Off now that dependent units are
26193         Preelaborate.
26194         Use raise xxx with "..."; Ada 2005 form.
26195
26196         * a-taside.ads, a-taside.adb:
26197         Remove some dependencies, to make it easier to make this unit truly
26198         Preelaborate.
26199         Rewrite some code to be conformant with Preelaborate rules.
26200
26201         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
26202         marked Preelaborate in the future.
26203
26204         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
26205         these units Preelaborate.
26206
26207         * s-exctab.adb: Update use of Except.Id.Full_Name.
26208
26209         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
26210         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
26211         Set_Exc_Stack_Addr): Removed, no longer used.
26212         Remove reference to *Machine_State_Addr*, no longer needed.
26213
26214         * s-stalib.ads: Mark this unit as Preelaborate[_05].
26215         (Exception_Data): Full_Name is now a System.Address so that this unit
26216         can be made Preelaborate.
26217         Clean up/simplify code thanks to Full_Name being a System.Address.
26218         Remove obsolete pragma Suppress (All_Checks), no longer needed.
26219
26220         * s-taskin.ads, s-taskin.adb:
26221         Move with clauses outside Warnings Off now that dependent units are
26222         Preelaborate.
26223         Make this unit Preelaborate.
26224         (Initialize): New proceduure, replace elaboration code and makes the
26225         set up of the tasking run-time cleaner.
26226         (Detect_Blocking): Now a function instead of a deferred boolean, to
26227         obey Preelaborate rules.
26228
26229         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
26230         soft links, no longer used.
26231
26232         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
26233         packages are suitable for this categorization.
26234
26235         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
26236         since we compile run-time sources in Ada 2005 mode.
26237         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
26238         avoid having s-taprop*.adb depend on s-soflin and to avoid code
26239         duplication.
26240         Remove reference to *Machine_State_Addr*, no longer needed.
26241
26242 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26243
26244         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
26245         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26246         Remove reference to System.Exceptions.
26247
26248         * s-mastop-x86.adb: Removed, no longer used.
26249
26250         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
26251
26252         * a-excach.adb: Minor reformatting.
26253
26254         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
26255         instead fix new warnings that were hidden by this change.
26256         (AAA, ZZZ): Removed, replaced by...
26257         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
26258         are used instead of constants, to help make Ada.Exception truly
26259         preelaborate.
26260         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
26261         Raise_Storage_Error): File is now a System.Address, to simplify code.
26262         (Elab code): Removed, no longer used.
26263         (Null_Occurrence): Remove Warnings Off and make this construct
26264         preelaborate.
26265         Remove code related to front-end zero cost exception handling, since
26266         it is no longer used.
26267         Remove -gnatL/-gnatZ switches.
26268
26269         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
26270         Update use of Except.Msg.
26271
26272         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
26273         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
26274         to front-end zero cost exception handling, since it is no longer used.
26275         Remove -gnatL/-gnatZ switches.
26276
26277         * lib-writ.ads: Minor reformatting
26278         Remove doc of UX
26279
26280         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
26281
26282         * Make-lang.in: Remove references to s-except.ads
26283
26284         * s-except.ads: Removed, no longer used.
26285
26286         * s-mastop.ads, s-mastop.adb:
26287         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26288         Remove reference to System.Exceptions.
26289
26290         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
26291         switch-b.adb: Remove code related to front-end zero cost exception
26292         handling, since it is no longer used.
26293         Remove -gnatL/-gnatZ switches.
26294
26295 2005-09-01  Robert Dewar  <dewar@adacore.com>
26296             Gary Dismukes  <dismukes@adacore.com>
26297             Javier Miranda  <miranda@adacore.com>
26298
26299         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
26300         type by valid test and generate warning.
26301         (Tagged_Membership): Generate call to the run-time
26302         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
26303         Change formal name Subtype_Mark to Result_Definition in several calls to
26304         Make_Function_Specification.
26305         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
26306         check for proper accessibility of the operand of a class-wide allocator.
26307         The check can be left out if checks are suppressed or if the expression
26308         has a specific tagged type whose level is known to be safe.
26309
26310         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
26311         generates the run-time check associated with null-excluding entities.
26312         (Expand_N_Return_Statement): Add tests to determine if the accessibility
26313         check on the level of the return expression of a class-wide function
26314         can be elided. The check usually isn't needed if the expression has a
26315         specific type (unless it's a conversion or a formal parameter). Also
26316         add a test for whether accessibility checks are suppressed. Augment
26317         the comments to describe the conditions for performing the check.
26318
26319 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
26320             Javier Miranda  <miranda@adacore.com>
26321             Gary Dismukes  <dismukes@adacore.com>
26322             Ed Schonberg  <schonberg@adacore.com>
26323
26324         * a-tags.adb (IW_Membership): Give support to
26325         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
26326         subprogram has been extended to look for the tag in the ancestors tag
26327         table.
26328         Update the structure of the GNAT Dispatch Table to reflect the
26329         additional two tables used in dispatching selects.
26330         Introduce appropriate array types and record components in
26331         Type_Specific_Data to reflect the two tables.
26332         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
26333         the TSD of a tag, indexed by position.
26334         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
26335         operation kind in the TSD of a tag, indexed by position.
26336
26337         * a-tags.ads: Introduce an enumeration type to capture different
26338         primitive operation kinds. Define a constant reflecting the number of
26339         predefined primitive operations.
26340         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
26341         of an entry wrapper.
26342         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
26343         callable entity of a primitive operation.
26344
26345         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
26346         primitive operations used in dispatching selects for limited
26347         interfaces, limited tagged, task and protected types what implement a
26348         limited interface.
26349         (Freeze_Type): Generate the bodies of the primitive operations used in
26350         dispatching selects for limited tagged, task and protected types that
26351         implement a limited interface. Generate statements to populate the two
26352         auxiliary tables used for dispatching in select statements.
26353         (Freeze_Record_Type): Add call to initialize the dispatch table entries
26354         associated with predefined interface primitive operations.
26355         (Build_Dcheck_Function): Change Set_Subtype_Mark to
26356         Set_Result_Definition.
26357         (Build_Variant_Record_Equality): Change Subtype_Mark to
26358         Result_Definition.
26359         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
26360         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
26361         (Build_Assignment): Simplify the code that adds the run-time-check.
26362         (Expand_N_Object_Declaration): Code cleanup.
26363
26364         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
26365         entries when there is a protected type that implements a limited
26366         interface.
26367
26368         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
26369         common routines used in expansion of dispatching selects.
26370         (Add_Private_Declarations): Select the appropriate protection type when
26371         there is a protected type that implements a limited interface.
26372         (Build_Parameter_Block): Generate a wrapped parameter block.
26373         (Build_Protected_Subprogram_Body): Select the appropriate type for
26374         locking entries when there is a protected type that implements a
26375         limited interface.
26376         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
26377         classified as entry wrappers.
26378         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
26379         asynchronous selects.
26380         (Expand_N_Conditional_Entry_Call): Add support for expansion of
26381         dispatching conditional selects.
26382         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
26383         protection when there is a protected type that implements limited
26384         interfaces.
26385         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
26386         timed selects.
26387         (Extract_Dispatching_Call): Extract the entity of the name of a
26388         dispatching call, the object parameter, actual parameters and
26389         corresponding formals.
26390         (Make_Initialize_Protection): Correct logic of protection initialization
26391         when there is a protected type that implements a limited interface.
26392         (Parameter_Block_Pack): Populate a wrapped parameter block with the
26393         values of actual parameters.
26394         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
26395         block and assign them to the original actual parameters.
26396
26397         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
26398         (Build_Protected_Sub_Specification): Change the type and name of the
26399         last formal to account for the increased variety of protection modes.
26400
26401         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
26402         entities. Used to save the value of the Is_Hidden attribute when the
26403         limited-view is installed.
26404         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
26405         the attribute of procedures classified as entry wrappers.
26406         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
26407         entity of a primitive wrapper.
26408         (Write_Entity_Flags): Output the name and value of the
26409         Is_Primitive_Wrapper attribute.
26410         (Write_Field27_Name): Output the name and entity of the field Wrapped_
26411         Entity.
26412         (Underlying_Type): If we have an incomplete entity that comes from
26413         the limited view then we return the Underlying_Type of its non-limited
26414         view if it is already available.
26415         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
26416         including operators.
26417         (Write_Field26_Name): Add entry for Overridden_Operation
26418         (Overridden_Operation): New attribute of functions and procedures.
26419
26420         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
26421         predefined position in the dispatch table for the primitive operations
26422         used in dispatching selects.
26423         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
26424         predefined primitive operations and replace it with
26425         Default_Prim_Op_Count.
26426         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
26427         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
26428         the names of the generated primitive operations used in dispatching
26429         selects.
26430         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
26431         case of abstract interface types. They will be inherit by the objects
26432         implementing the interface.
26433         (Make_DT): There is no need to inherit the dispatch table of the
26434         ancestor interface for the elaboration of abstract interface types.
26435         The dispatch table will be inherited by the object implementing the
26436         interface.
26437         (Copy_Secondary_DTs): Add documentation.
26438         (Validate_Position): Improve this static check in case of
26439         aliased subprograms because aliased subprograms must have
26440         the same position.
26441         (Init_Predefined_Interface_Primitives): New subprogram that initializes
26442         the entries associated with predefined primitives of all the secondary
26443         dispatch tables.
26444         (Build_Anonymous_Access_Type): Removed.
26445         (Expand_Interface_Actuals): With the previous cleanup there is no need
26446         to build an anonymous access type. This allows further cleanup in the
26447         code generated by the expander.
26448         (Expand_Interface_Conversion): If the actual is an access type then
26449         build an internal function to handle the displacement. If the actual
26450         is null this function returns null because no displacement is
26451         required; otherwise performs a type conversion that will be
26452         expanded in the code that returns the value of the displaced actual.
26453         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
26454         conversions that have no effect in the generated code because no
26455         displacement is required. Code cleanup; use local variables to
26456         avoid repeated calls to the subprogram directly_designated_type().
26457
26458         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
26459         Classify the primitive operations used in dispatching selects as
26460         predefined.
26461         (Implements_Limited_Interface): Determine whether some type either
26462         directly implements a limited interface or extends a type that
26463         implements a limited interface.
26464         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
26465         (Expand_Subtype_From_Expr): Do not build actual subtype if the
26466         expression is limited.
26467         (Find_Interface_Tag): Add code to handle class-wide types and
26468         entities from the limited-view.
26469
26470         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
26471         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
26472         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
26473         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
26474         Set_Prim_Op_Kind.
26475
26476         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
26477         of procedure name or prefix that appears as a trigger in a triggering
26478         alternative.
26479
26480         * uintp.ads: Introduce constants Uint_11 and Uint_13.
26481
26482 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26483
26484         * s-tataat.adb, a-tasatt.adb:
26485         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
26486
26487         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
26488         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
26489         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
26490         longer used.
26491
26492 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26493             Jose Ruiz  <ruiz@adacore.com>
26494
26495         * s-taprop-vxworks.adb:
26496         Move with clauses outside Warnings Off now that dependent units are
26497         Preelaborate.
26498         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
26499         initialization of this unit.
26500         (Specific): Add new procedures Initialize and Delete so that this
26501         package can be used for VxWorks 5.x and 6.x
26502         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
26503         differences between VxWorks 5.x and 6.x
26504         Minor reformatting.
26505         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
26506         caller.
26507         Use only Preelaborate-compatible constructs.
26508
26509         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
26510         Primitives.Operations.
26511         (Delete, Initialize): New procedures.
26512
26513         * s-osinte-vxworks.adb: Body used to handle differences between
26514         VxWorks 5.x and 6.x
26515         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
26516
26517         * s-osinte-vxworks.ads: Minor reformatting.
26518         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
26519         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
26520         and 6.
26521         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
26522         between Vxworks 5 and 6.
26523         (taskLock, taskUnlock): Removeed, no longer used.
26524
26525         * adaint.c: The wait.h header is not located in the sys directory on
26526         VxWorks when using RTPs.
26527         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
26528         using RTPs.
26529         (__gnat_dup): dup is available on Vxworks when using RTPs.
26530         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
26531
26532         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
26533
26534         * expect.c: The wait.h header is not located in the sys directory on
26535         VxWorks when using RTPs.
26536
26537 2005-09-01  Thomas Quinot  <quinot@adacore.com>
26538
26539         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
26540
26541         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
26542
26543         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
26544         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26545         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
26546         g-soccon-freebsd.ads: Add new constants:
26547          IP_MULTICAST_IF
26548          SO_RCVTIMEO/SO_SNDTIMEO
26549          IOV_MAX
26550
26551         * gen-soccon.c:
26552         Move all target-specific file inclusions and macro definitions to
26553         gsocket.h, in order to ensure that any C code in socket.c will see a
26554         set of constants that is consistent with the contents of g-soccon.ads.
26555
26556         * gsocket.h: Code imported from gen-soccon.c:
26557         Move all target-specific file inclusions and macro definitions to
26558         gsocket.h, in order to ensure that any C code in socket.c will see a set
26559         of constants that is consistent with the contents of g-soccon.ads.
26560         This change also makes gen-soccon self-contained (removing dependencies
26561         upon GCC internal headers).
26562
26563         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
26564         iovecs at a time.
26565         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
26566
26567         * socket.c: Minor reformatting.
26568
26569 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
26570             Thomas Quinot  <quinot@adacore.com>
26571
26572         * fname-sf.adb, mlib-tgt.ads,
26573         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
26574         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
26575         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
26576         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
26577         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
26578         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
26579         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
26580         makegpr.adb: Remove redundant use_clauses.
26581
26582 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
26583
26584         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
26585         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
26586         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
26587         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
26588         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
26589         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
26590         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
26591         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
26592         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26593         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
26594         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
26595         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
26596         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
26597         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
26598         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
26599         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
26600         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26601         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
26602         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
26603         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
26604         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
26605         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
26606         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
26607         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
26608         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
26609         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
26610         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
26611         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
26612         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
26613         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
26614         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
26615         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
26616         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
26617         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
26618         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
26619         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
26620         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
26621         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
26622         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
26623         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
26624         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
26625         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
26626         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
26627         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
26628         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
26629         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
26630         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
26631         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
26632         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
26633         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
26634         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
26635         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
26636         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
26637         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
26638         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
26639         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
26640         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
26641         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
26642         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
26643         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
26644         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
26645         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
26646         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
26647         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
26648         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
26649         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
26650         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
26651         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
26652         and always use the no parameter form for consistency.
26653
26654         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
26655
26656 2005-09-01  Robert Dewar  <dewar@adacore.com>
26657
26658         * binde.adb: Minor reformatting
26659         (Find_Elab_Order): Output warning if -p used with static elab order
26660
26661 2005-09-01  Robert Dewar  <dewar@adacore.com>
26662
26663         * checks.adb (Check_Needed): New procedure, deals with removing checks
26664         based on analysis of short-circuited forms. Also generates warnings for
26665         improper use of non-short-circuited forms.
26666         Code clean ups.
26667
26668 2005-09-01  Robert Dewar  <dewar@adacore.com>
26669
26670         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
26671         with 'Valid tests.
26672
26673 2005-09-01  Robert Dewar  <dewar@adacore.com>
26674
26675         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
26676         spec.
26677         Implement new insertion char < (conditional warning)
26678         * errutil.adb, erroutc.adb: Implement new insertion char <
26679         (conditional warning).
26680         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
26681         (Error_Msg_Warn): New variable for < insertion char.
26682         * prj-nmsc.adb: Implement new errout insertion char < (conditional
26683         warning).
26684         (Check_For_Source): Change value of Source_Id only after the current
26685         source has been dealt with.
26686
26687 2005-09-01  Robert Dewar  <dewar@adacore.com>
26688             Doug Rupp  <rupp@adacore.com>
26689
26690         * exp_attr.adb: Handle vax fpt for 'Valid attribute
26691         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
26692         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
26693         (Valid_D, Valid_F, Valid_G): New functions
26694
26695 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
26696             Hristian Kirtchev  <kirtchev@adacore.com>
26697             Javier Miranda  <miranda@adacore.com>
26698
26699         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
26700         from object notation, the original node is unanalyzed and carries no
26701         semantic information, so that accessiblity checks must be performed on
26702         the type of the actual itself.
26703         (Expand_N_Subprogram_Declaration): Change last actual parameter for
26704         compatibility with Build_Protected_Sub_Specification.
26705         (Check_Overriding_Inherited_Interfaces): Add suport to handle
26706         overloaded primitives.
26707         (Register_Interface_DT_Entry): Use the new name of the formal
26708         the the calls to Expand_Interface_Thunk
26709
26710         * exp_dbug.ads: Augment comments on encoding of protected types to
26711         include the generation of dispatching subprograms when the type
26712         implements at least one interface.
26713
26714         * lib.ads: Extend information in Load_Stack to include whether a given
26715         load comes from a Limited_With_Clause.
26716
26717         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
26718         whether a potential circularity is harmless, because it includes units
26719         loaded through a limited_with clause. Extends previous treatment which
26720         did not handle properly arbitrary combinations of limited and
26721         non-limited clauses.
26722
26723 2005-09-01  Nicolas Setton  <setton@adacore.com>
26724
26725         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
26726         to be encoded as typ___XBLU_lowerbound__upperbound instead of
26727         typ___XB_lowerbound__upperbound.
26728
26729 2005-09-01  Thomas Quinot  <quinot@adacore.com>
26730
26731         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
26732         dummy access formal for RACW/RAS TypeCode TSS.
26733         (Build_TypeCode_Call): Do not generate dummy null access actual for
26734         calls to the TypeCode TSS.
26735
26736 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
26737
26738         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
26739         fully qualified name, to distinguish instances with the same local name.
26740
26741         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
26742         fully qualified.
26743
26744 2005-09-01  Robert Dewar  <dewar@adacore.com>
26745
26746         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
26747         packed arrays.
26748
26749 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
26750
26751         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
26752         (Free): New deallocation procedure for filter elements
26753         (Close): Deallocate any existing filter for the concerned connection
26754
26755 2005-09-01  Laurent Pautet  <pautet@adacore.com>
26756
26757         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
26758         position set is provided, we compute one in order to reduce the maximum
26759         length of the keys.  This computation first selects a character
26760         position between 1 and the minimum length of the keys in order to
26761         avoid reducing one of the keys to an empty string.
26762         (Initialize, Compute): When the ratio V to K is too low, the algorithm
26763         does not converge. The initialization procedure now comes with a
26764         maximum number of iterations such that when exceeded, an exception is
26765         raised in Compute. The user can initialize this ratio to another value
26766         and try again
26767         Reformating and updated headers.
26768
26769 2005-09-01  Javier Miranda  <miranda@adacore.com>
26770
26771         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
26772         that given an entity T creates and returns an Itype that duplicates the
26773         contents of T. The returned Itype has the null-exclusion
26774         attribute set to True, and its Etype attribute references T
26775         to keep the association between the two entities.
26776         Update copyright notice
26777
26778         * sem_aggr.adb (Check_Can_Never_Be_Null,
26779         Aggregate_Constraint_Checks, Resolve_Aggregate,
26780         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
26781
26782         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
26783
26784 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
26785             Robert Dewar  <dewar@adacore.com>
26786             Hristian Kirtchev  <kirtchev@adacore.com>
26787
26788         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
26789         Result_Definition.
26790
26791         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
26792         function specs.
26793         Call Set_Result_Definition instead of Set_Subtype_Mark.
26794         (P_Subprogram_Specification): Add parsing of anonymous access result
26795         plus null exclusions. Call Set_Result_Definition instead of
26796         Set_Subtype_Mark.
26797
26798         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
26799         (P_Access_Type_Definition): Add parsing for an anonymous access result
26800         subtype, plus parsing for null exclusions. Call Set_Result_Definition
26801         instead of Set_Subtype_Mark.
26802
26803         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
26804         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
26805         (Result_Definition): New function for N_Function_Specifications.
26806         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
26807         N_Function_Specification.
26808         (Set_Null_Exclusion_Present): Allow this flag for
26809         N_Function_Specification.
26810         (Set_Result_Definition): New procedure for N_Function_Specifications.
26811         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
26812         and N_Function_Specification.
26813
26814         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
26815         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
26816         Add support for LIMITED NEW for Ada 2005 AI-419
26817         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
26818         syntax for anonymous access results.
26819         Replace Subtype_Mark field by Result_Definition in
26820         N_Function_Specification and N_Access_Definition specs.
26821         Add Null_Exclusion_Present to spec of N_Function_Specification.
26822         (Result_Definition): New function for N_Function_Specification and
26823         N_Access_Function_Definition.
26824         (Set_Result_Definition): New procedure for N_Function_Specification and
26825         N_Access_Function_Definition.
26826
26827         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
26828         Result_Definition for cases of N_Access_Function_Definition and
26829         N_Function_Specification.
26830         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
26831
26832 2005-09-01  Vincent Celier  <celier@adacore.com>
26833
26834         * lib-writ.adb: Update Copyright notice
26835         (Write_With_Lines): On platforms where file names are case-insensitive,
26836         record the file names in lower case.
26837         (Write_ALI): For D lines, on platforms where file names are
26838         case-insensitive, record the file names in lower case.
26839
26840 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
26841             Emmanuel Briot  <briot@adacore.com>
26842
26843         * lib-xref.adb (Output_Overridden_Op): Display information on
26844         overridden operation.
26845
26846         * lib-xref.ads: Add documentation on overridden operations.
26847
26848         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
26849         information.
26850
26851         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
26852         overriding entity information.
26853
26854 2005-09-01  Vincent Celier  <celier@adacore.com>
26855
26856         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
26857         including those that are inherited.
26858
26859 2005-09-01  Robert Dewar  <dewar@adacore.com>
26860
26861         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
26862
26863         * par-prag.adb: Implement new pragma Debug_Policy
26864
26865         * sem_prag.adb Implement new pragma Debug_Policy
26866         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
26867         Component_Size attribute specification. Give warning for ignored pragma
26868         Pack.
26869
26870         * snames.h, snames.ads, snames.adb: Introduce entries in
26871         Preset_Names for Name_Disp_Asynchronous_Select,
26872         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
26873         Name_Disp_Timed_Select.
26874         New pragma Debug_Policy
26875
26876         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
26877         explicitly.
26878         Switch -gnata also sets Debug_Pragmas_Enabled
26879
26880         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
26881         handle an explicit -gnata when compiling predefined files.
26882
26883 2005-09-01  Vincent Celier  <celier@adacore.com>
26884
26885         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
26886         directories of projects that have no Ada sources.
26887
26888 2005-09-01  Robert Dewar  <dewar@adacore.com>
26889
26890         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
26891         (makes a difference for wide characters)
26892
26893         * widechar.adb, widechar.ads:
26894         Add Wide_Char_Byte_Count feature to count chars vs bytes
26895
26896 2005-09-01  Thomas Quinot  <quinot@adacore.com>
26897             Ed Schonberg  <schonberg@adacore.com>
26898             Robert Dewar  <dewar@adacore.com>
26899
26900         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
26901         'Address attribute reference with an overloaded prefix, use the
26902         location of the prefix (not the location of the attribute reference) as
26903         the error location.
26904         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
26905         a function renaming thereof, is a valid prefix for 'Size (where it is
26906         intepreted as a function call).
26907         (Statically_Denotes_Entity): New predicate to determine whether the
26908         prefix of an array attribute can be considered static.
26909
26910         PR ada/9087
26911         (Eval_Attr): Fix failure to evaluate Component_Size for
26912         unconstrained arrays (resulted in wrong value in packed case, since
26913         back end cannot handle this case)
26914
26915 2005-09-01  Robert Dewar  <dewar@adacore.com>
26916
26917         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
26918         error msgs for most common cases.
26919         Use new errout insertion char < (conditional warning)
26920
26921 2005-09-01  Javier Miranda  <miranda@adacore.com>
26922             Ed Schonberg  <schonberg@adacore.com>
26923
26924         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
26925         become local to the whole package.
26926         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
26927         the package was already analyzed the new algorithm "replaces" the
26928         real entities by the shadow ones. This is required to ensure that
26929         the order of these entities in the homonym chains does not change;
26930         otherwise we can have undefined references at linking time because
26931         in case of conflicts the external name of the entities will have
26932         a suffix that depends on the order of the entities in the chain.
26933         (Remove_Limited_With_Clause): Complementary code that completes the
26934         new algorithm and replaces the shadow entities by the real ones.
26935         (Install_Limited_Withed_Unit): When unchaining entities before the
26936         installation of the shadow entities, only regular entities of the
26937         public part must be taken into account. This is required to
26938         keep this routine in synch with the work done by Remove_Limited_
26939         With_Clause
26940         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
26941         even if unit is analyzed, because the analysis of the unit is
26942         idempotent in any case, and the limited view of the unit may have to
26943         be installed for proper visibility.
26944         (Expand_Limited_With_Clause): Even if the unit in the implicit
26945         with_clause has been analyzed already, a limited view of the package
26946         must be built for the current context, if it does not exist yet.
26947
26948 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
26949             Javier Miranda  <miranda@adacore.com>
26950             Gary Dismukes  <dismukes@adacore.com>
26951
26952         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
26953         defining entity for the instance body, make a new defining identifier
26954         rather than copying the entity of the spec, to prevent accidental
26955         sharing of the entity list.
26956         (Check_Private_View): When exchanging views of private types, build the
26957         list of exchanged views as a stack, to ensure that on exit the exchanges
26958         are undone in the proper order.
26959         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
26960         Restore the compilation environment in case of instantiation_error.
26961         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
26962         for an anonymous access result.
26963         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
26964         (Formal_Entity): Handle properly the case of a formal package that
26965         denotes a generic package renaming.
26966
26967 2005-09-01  Thomas Quinot  <quinot@adacore.com>
26968
26969         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
26970         clause if the array aggregate is surrounded by parentheses.
26971
26972 2005-09-01  Cyrille Comar  <comar@adacore.com>
26973             Gary Dismukes  <dismukes@adacore.com>
26974             Ed Schonberg  <schonberg@adacore.com>
26975             Javier Miranda  <miranda@adacore.com>
26976
26977         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
26978         underlying type
26979         to check if a type is Constrained in cases related to code generation
26980         (rather than semantic checking) since otherwise we do not generate
26981         similar code for mutable private types depending if their
26982         discriminants are visible or not.
26983         (Check_Abstract_Overriding): Do not complain about failure to override
26984         the primitive operations used in dispatching selects since they will
26985         always be overriden at the freeze point of the type.
26986         (Access_Definition): Separate out handling for resetting the scope
26987         of an anonymous access function result type. Retrieve the scope
26988         of the associated function rather than using Current_Scope, which
26989         does not have a consistent value (depends on whether we're in the
26990         middle of analyzing formal parameters). Add ??? comment about
26991         finding a cleaner way to handle the special cases of scope setting.
26992         (Process_Incomplete_Dependents): A protected operation is never a
26993         dispatching operation (only its wrapper may be).
26994         (Build_Derived_Record_Type): In case of tagged private types that
26995         implement interfaces add derivation of predefined primitive
26996         operations.
26997         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
26998         by two parameters that are used in case of derivation from abstract
26999         interface types: No_Predefined_Prims is used to avoid the derivation
27000         of predefined primitives from the interface, and Predefined
27001         Prims_Only is used to complete the derivation predefined primitives
27002         in case of private tagged types implementing interfaces.
27003         Fix typo in comments
27004         (Find_Interface_In_Descendant): Protect the frontend against
27005         wrong code with large circularity chains.
27006         (Is_Private_Overriding): Add support for entities overriding interface
27007         subprograms. The test failed because Entities associated with overriden
27008         interface subprograms are always marked as hidden (and used to build
27009         the secondary dispatch table); in this case the overriden entity is
27010         available through the field abstract_interface_alias (cf. override_
27011         dispatching_operation)
27012         (Access_Definition): Set the scope of the type to Current_Scope for the
27013         case of a function with an anonymous access result type.
27014         (Access_Subprogram_Declaration): Handle creation of the type entity for
27015         an access-to-function type with an anonymous access result.
27016         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
27017         in handling for N_Access_Function_Definition.
27018         (Analyze_Subtype_Declaration): Modify the text of error message.
27019         (Derived_Type_Declaration): Modify the text of error message.
27020         (Process_Subtype): Modify the text of error message plus cleanup
27021         of one redundant error message.
27022         (Analyze_Component_Declaration): Code cleanup.
27023         (Analyze_Object_Declaration): Code cleanup.
27024         (Analyze_Subtype_Declaration): Propagate the null-exclusion
27025         attribute in case of access types. Code cleanup.
27026         (Array_Type_Declaration): Code cleanup.
27027         (Process_Discriminants): Create the new null-excluding itype
27028         if required. Code cleanup.
27029         (Process_Subtype): Create the new null-excluding itype if
27030         required. Code cleanup.
27031         (Build_Derived_Record_Type): Code cleanup to avoid calling
27032         twice the subprogram derive_subprograms in case of private
27033         types that implement interfaces. In this particular case the
27034         subprogram Complete_Subprograms_Derivation already does the
27035         job associated with the second call.
27036
27037         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
27038         conversion to the full view when generating an operation for a
27039         discriminant whose type may currently be private.
27040
27041 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27042             Javier Miranda  <miranda@adacore.com>
27043
27044         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
27045         V (Obj.F), the rewriting does not involve the indexed component, but
27046         only the selected component itself.
27047         Do not apply the transformation if the analyzed node is an actual of a
27048         call to another subprogram.
27049         (Complete_Object_Operation): Retain the entity of the
27050         dispatching operation in the selector of the rewritten node. The
27051         entity will be used in the expansion of dispatching selects.
27052         (Analyze_One_Call): Improve location of the error message associated
27053         with interface.
27054         (Analyze_Selected_Component): No need to resolve prefix when it is a
27055         function call, resolution is done when parent node is resolved, as
27056         usual.
27057         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
27058         when attempting to resolve a call transformed from its object notation.
27059         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
27060         of the argument list for each interpretation of the operation.
27061         (Try_Object_Operation): The designated type of an access parameter may
27062         be an incomplete type obtained through a limited_with clause, in which
27063         case the primitive operations of the type are retrieved from its full
27064         view.
27065         (Analyze_Call): If this is an indirect call, and the return type of the
27066         access_to_subprogram is incomplete, use its full view if available.
27067
27068 2005-09-01  Javier Miranda  <miranda@adacore.com>
27069             Gary Dismukes  <dismukes@adacore.com>
27070
27071         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
27072         access types the null-exclusion and access-to-constant attributes must
27073         also match.
27074         (Analyze_Return_Statement): When the result type is an anonymous access
27075         type, apply a conversion of the return expression to the access type
27076         to ensure that appropriate accessibility checks are performed.
27077         (Analyze_Return_Type): For the case of an anonymous access result type,
27078         generate the Itype and set Is_Local_Anonymous_Access on the type.
27079         Add ??? placeholder for check to disallow returning a limited object
27080         in Ada 2005 unless it's an aggregate or a result of a function call.
27081         Change calls from Subtype_Mark to Result_Definition.
27082         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
27083         Result_Definition in call to Make_Function_Specification.
27084         (Build_Body_To_Inline): Change Set_Subtype_Mark to
27085         Set_Result_Definition.
27086         (Make_Inequality_Operator): Change formal Subtype_Mark to
27087         Result_Definition in call to Make_Function_Specification.
27088         (Process_Formals): Create the new null-excluding itype if required.
27089         (New_Overloaded_Entity): For an entity overriding an interface primitive
27090         check if the entity also covers other abstract subprograms in the same
27091         scope. This is required to handle the general case, that is, overriding
27092         other interface primitives and overriding abstract subprograms inherited
27093         from some abstract ancestor type.
27094         (New_Overloaded_Entity): For an overriding entity that comes from
27095         source, note the operation that it overrides.
27096         (Check_Conformance, Type_Conformant): Addition of one new formal
27097         to skip controlling formals in the analysis. This is used to
27098         handle overloading of abstract interfaces.
27099         (Base_Types_Match): Add missing case for types imported from
27100         limited-with clauses
27101         (New_Overloaded_Entity): Add barrier to protect the use of
27102         the "alias" attribute.
27103
27104 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27105
27106         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
27107         verify that the procedure and the entry are mode conformant.
27108         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
27109         as a different operator, which is often a cut-and-paste error.
27110
27111 2005-09-01  Javier Miranda  <miranda@adacore.com>
27112             Ed Schonberg  <schonberg@adacore.com>
27113
27114         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
27115         used in controlling parameters exclude null because it is necessary to
27116         read the tag to dispatch, and null has no tag.
27117         (Override_Dispatching_Operation): If the previous operation is inherited
27118         from an interface, it becomes hidden  and does not participate in later
27119         name resolution.
27120
27121 2005-09-01  Javier Miranda  <miranda@adacore.com>
27122             Ed Schonberg  <schonberg@adacore.com>
27123             Gary Dismukes  <dismukes@adacore.com>
27124
27125         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
27126         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
27127         the expander will generate the corresponding run-time check to evaluate
27128         the expression.
27129         (Resolve_Call): Check for legal type of procedure name or prefix that
27130         appears as a trigger in a triggering alternative.
27131         (Valid_Conversion): If expression is ambiguous and the context involves
27132         an extension of System, remove System.Address interpretations.
27133         (Resolve_Qualified_Expression): Reject the case of a specific-type
27134         qualification applied to a class-wide argument. Enhance comment
27135         to explain checking of Original_Node.
27136         (Resolve_Type_Conversion): The location of the error message was not
27137         general enough to handle the general case and hence it has been removed.
27138         In addition, this patch improves the text of the message.
27139         (Resolve_Type_Conversion): Add missing support for access to interface
27140         types.
27141         (Resolve_Type_Conversion): If the target is a class-wide interface type,
27142         do not expand if the expression is the actual in a call, because proper
27143         expansion will take place when the call itself is expanded.
27144         (Resolve_Allocator): If the context is an unchecked conversion, the
27145         allocator inherits its storage pool, if any, from the target type of
27146         the conversion.
27147
27148 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27149             Javier Miranda  <miranda@adacore.com>
27150
27151         * sem_type.adb (Add_One_Interp): If a candidate operation is an
27152         inherited interface operation that has an implementation, use the
27153         implementation to avoid spurious ambiguities.
27154         (Interface_Present_In_Ancestor): In case of concurrent types we can't
27155         use the Corresponding_Record_Typ attribute to look for the interface
27156         because it is set by the expander (and hence it is not always
27157         available). For this reason we traverse the list of interfaces
27158         (available in the parent of the concurrent type).
27159         (Interface_Present_In_Ancestor): Handle entities from the limited view
27160
27161 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27162
27163         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
27164         from the list of required components.
27165         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
27166         primitive procedure of a limited interface with a controlling first
27167         parameter.
27168         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
27169         of an entry.
27170         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
27171         capture if it is generated in the second operand of a short-circuit
27172         operation.
27173         Do not capture values for variables with address clauses.
27174         (Is_Object_Reference): Treat a function call as an object reference only
27175         if its type is not Standard_Void_Type.
27176
27177 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
27178
27179         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
27180         to a variable that is statically known to be constant.
27181
27182 2005-09-01  Geert Bosch  <bosch@adacore.com>
27183             Robert Dewar  <dewar@adacore.com>
27184
27185         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
27186         (VAXGF_Safe_First): Idem.
27187
27188 2005-09-01  Robert Dewar  <dewar@adacore.com>
27189             Arnaud Charlet  <charlet@adacore.com>
27190
27191         * g-dirope.ads: Minor reformatting
27192         Document that bounds of result of Base_Name match the input index
27193         positions.
27194         Add documentation on environment variable syntax for Expand_Path
27195
27196         * gnat_ugn.texi: Update documentation to include mention of -m switches
27197         Document new treatment of wide characters in max line length
27198         style check.
27199         Remove -gnatL/-gnatZ switches, no longer used.
27200         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
27201         of -gnata switch.
27202
27203         * gnat_rm.texi: Add doc for two argument form of pragma
27204         Float_Representation.
27205         Add documentation for pragma No_Strict_Aliasing
27206         Add note that explicit component clause overrides pragma Pack.
27207         Add documentation of pragma Debug_Policy
27208
27209 2005-09-01  Matthew Heaney  <heaney@adacore.com>
27210
27211         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
27212         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
27213         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
27214         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
27215         draft (Draft 13, August 2005) of Ada Amendment 1.
27216
27217 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
27218
27219         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
27220         Note that the platform-specific version of g-soccon.ads for VMS is now
27221         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
27222         really is a package spec).
27223         Replace s-taspri-linux.ads by s-taspri-posix.ads
27224         Remove references to s-mastop-x86.adb
27225
27226         * system-vxworks-xscale.ads: Removed, no longer used.
27227         * s-vxwork-xscale.ads: Removed, no longer used.
27228
27229 2005-09-01  Robert Dewar  <dewar@adacore.com>
27230
27231         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
27232         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
27233         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
27234         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
27235         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
27236         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
27237         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
27238         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
27239         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
27240         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
27241         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
27242         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
27243         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
27244         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
27245         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
27246         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
27247         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
27248         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
27249         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
27250         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
27251         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
27252
27253 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
27254
27255         PR ada/23187
27256         * adaint.c
27257         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
27258
27259 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
27260             Doug Rupp  <rupp@adacore.com>
27261
27262         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
27263         when needed.
27264         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
27265         this code in the GNAT run-time.
27266
27267         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
27268
27269         PR ada/21053
27270         * init.c (__gnat_error_handler [many]): Mark "msg" as const
27271         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
27272
27273         (__gnat_inside_elab_final_code): Moved here from
27274         Standard_Library and only defined for the compiler.
27275         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
27276         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
27277         using RTPs because directly vectored Interrupt routines are not
27278         supported on this configuration.
27279         (getpid): Do not redefine this function on VxWorks when using RTPs
27280         because this primitive is well supported by the RTP libraries.
27281         (copy_msg): Correct the code that checks for buffer overflow.
27282         Discovered during code reading.
27283
27284 2005-08-29  Olivier Hainque  <hainque@adacore.com>
27285
27286         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
27287         a library level mutable variable with an initializer, tell
27288         build_allocator to ignore the initializer's size. It may not be large
27289         enough for all the values that might be assigned to the variable later
27290         on.
27291
27292 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
27293             Eric Botcazou  <ebotcazou@adacore.com>
27294
27295         * trans.c: Protect < in error msg with quote
27296         Replace GCC_ZCX by Back_End_Exceptions.
27297         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
27298         has been sufficiently aligned in the record.
27299
27300 2005-08-15  James E. Wilson  <wilson@specifix.com>
27301
27302         * system-linux-alpha.ads: Change ia64 to alpha.
27303
27304 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
27305
27306         * decl.c, utils.c: Fix comment typos.
27307
27308 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
27309
27310         * decl.c, init.c, initialize.c: Fix comment typos.
27311
27312 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
27313
27314         Make CONSTRUCTOR use VEC to store initializers.
27315         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
27316         CONSTRUCTOR_ELTS.
27317         * trans.c (extract_values): Likewise.
27318         * utils.c (convert, remove_conversions): Likewise.
27319         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
27320         gnat_build_constructor): Likewise.
27321
27322 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
27323
27324         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
27325         DECL_SECTION_NAME.
27326         (compare_field_bitpos): Likewise.
27327
27328 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
27329
27330         * utils.c (create_var_decl): Only set DECL_COMMON on
27331         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
27332         VAR_OR_FUNCTION_DECL_P.
27333
27334 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
27335
27336         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
27337         removed.
27338
27339 2005-07-07  Pascal Obry  <obry@adacore.com>
27340
27341         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
27342         returned type on Windows.
27343
27344         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
27345         routine.
27346
27347         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
27348         exception in this case.
27349         Simplify the code as "Image (Image'Range)" = "Image".
27350
27351 2005-07-07  Vincent Celier  <celier@adacore.com>
27352
27353         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
27354         the destructor/constructor attributes for <lib>final/<lib>init.
27355
27356         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
27357
27358 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
27359
27360         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
27361         type if the parameter is not passed by copy but reference by default.
27362
27363 2005-07-07  Javier Miranda  <miranda@adacore.com>
27364
27365         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
27366         Reimplementation of the support for abstract interface types in order
27367         to leave the code more clear and easy to maintain.
27368
27369         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
27370         abstract interface types in order to leave the code clearer and easier
27371         to maintain.
27372
27373         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
27374         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
27375         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
27376         appropriate entry of the secondary dispatch table.
27377         (Make_DT): Add code to inherit the secondary dispatch tables of
27378         the ancestors.
27379
27380         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
27381         implementing both functionalities by means of a common routine, each
27382         routine has its own code.
27383
27384 2005-07-07  Javier Miranda  <miranda@adacore.com>
27385
27386         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
27387
27388         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
27389         types:
27390         --
27391           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27392         --
27393
27394         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
27395         use of tag incomplete types.
27396
27397         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
27398         give support to tagged incomplete types.
27399
27400         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
27401         expression is a discriminant reference and its type is private, as can
27402         happen within a stream operation for a mutable record, use the full
27403         view of the type to resolve the case alternatives.
27404         (Analyze_Assignment): Check wrong dereference of incomplete types.
27405
27406         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
27407         types.
27408
27409         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
27410         incomplete types.
27411
27412         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
27413         N_Incomplete_Type_Declaration nodes.
27414
27415         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
27416         Tag_Present to give support to tagged incomplete types:
27417         --
27418           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27419         --
27420
27421 2005-07-07  Olivier Hainque  <hainque@adacore.com>
27422
27423         PR ada/22301
27424         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
27425         definitions for the Unwind wrappers in the compiler case.
27426
27427 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
27428             Javier Miranda  <miranda@adacore.com>
27429
27430         * par-load.adb (Load): If a child unit is loaded through a limited_with
27431         clause, each parent must be loaded as a limited unit as well.
27432
27433         * sem_ch10.adb (Previous_Withed_Unit): Better name for
27434         Check_Withed_Unit. Return true if there is a previous with_clause for
27435         this unit, whether limited or not.
27436         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
27437         the current unit.
27438         (Is_Visible_Through_Renamings): New local subprogram of install_limited
27439         _withed_unit that checks if some package installed through normal with
27440         clauses has a renaming declaration of package whose limited-view is
27441         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
27442         of the current Draft document for Ada 2005.
27443         (Analyze_Context): Complete the list of compilation units that
27444         are allowed to contain limited-with clauses. It also contains
27445         checks that were previously done by Install_Limited_Context_Clauses.
27446         This makes the code more clear and easy to maintain.
27447         (Expand_Limited_With_Clause) It is now a local subprogram of
27448         Install_Limited_Context_Clauses, and contains the code that adds
27449         the implicit limited-with clauses for parents of child units.
27450         This functionality was prevously done by Analyze_Context.
27451
27452         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
27453         incomplete type.
27454
27455         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
27456         been erroneously named in a limited-with clause of its own context.
27457         In this case the error has been previously notified by Analyze_Context.
27458
27459 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
27460
27461         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
27462         generic package that contains local declarations with the same name.
27463         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
27464
27465 2005-07-07  Bernard Banner  <banner@adacore.com>
27466
27467         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
27468         ia64 platform only on platforms that you the GCC unwind library
27469         rather than the system unwind library.
27470
27471 2005-07-07  Thomas Quinot  <quinot@adacore.com>
27472
27473         * expect.c: Minor reformatting
27474
27475 2005-07-07  Sergey Rybin  <rybin@adacore.com>
27476
27477         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
27478         --no-separate-is
27479
27480         * gnat_ugn.texi: Add description for new gnatpp option
27481         (--no-separate-is)
27482
27483 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27484
27485         * g-expect-vms.adb, g-expect.ads, g-expect.adb
27486         (Get_Command_Output): New subprogram to launch a process and get its
27487         standard output as a string.
27488
27489 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
27490             Olivier Hainque  <hainque@adacore.com>
27491
27492         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
27493         fetch a code-range descriptor associated with the machine state. On
27494         failure set the machine state's PC to 0; on success, pass the
27495         descriptor to exc_virtual_unwind.
27496
27497         * init.c (Tru64 section): New function __gnat_set_code_loc.
27498
27499 2005-07-04  Vincent Celier  <celier@adacore.com>
27500
27501         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27502         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27503         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
27504         Remove all auto-initialization code, as this is now done through the
27505         constructor mechanism.
27506
27507         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
27508         __gnat_sals_init_using_constructors): New functions.
27509
27510         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
27511         Linker_Constructor and Linker_Destructor when switch -a is used.
27512
27513         * bindusg.adb: Add line for new switch -a
27514
27515         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
27516         (Gnatbind): When switch -a is used, check if it is allowed
27517
27518         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
27519
27520 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
27521
27522         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
27523         This prevents us from hitting a limitation during the debug info
27524         generation when using stabs.
27525         (Prims_Ptr): Likewise.
27526
27527 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
27528             Ed Schonberg  <schonberg@adacore.com>
27529             Javier Miranda  <miranda@adacore.com>
27530
27531         * checks.adb (Null_Exclusion_Static_Checks): In the case of
27532         N_Object_Declaration, only perform the checks if the Object_Definition
27533         is not an Access_Definition.
27534
27535         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
27536         where the parent of an the access definition is an N_Object_Declaration
27537         when determining the Associated_Node_For_Itype and scope of an
27538         anonymous access-to-subprogram type.
27539
27540         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
27541         Corresponding_Spec on the body created for a null procedure. Add ???
27542         comment. Remove New_Copy_Tree call on body argument to
27543         Set_Body_To_Inline.
27544
27545         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
27546         discriminants, use the type of the actual as well, because the
27547         discriminants may be read by the called subprogram.
27548
27549         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
27550         access type we do not need to handle non-limited views.
27551         (Build_Derived_Record_Type): Additional check to check that in case of
27552         private types, interfaces are only allowed in private extensions.
27553
27554 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
27555
27556         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
27557         <Pragma_Linker_Destructor>: Likewise.
27558
27559         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
27560         Pragma_Linker_Destructor.
27561
27562         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
27563         ATTR_LINK_DESTRUCTOR.
27564         (static_ctors, static_dtors): New variables.
27565
27566         * misc.c (gnat_expand_body): Output current function as constructor
27567         and destructor if requested.
27568
27569         * par-prag.adb: Add processing for pragma Linker_Constructor and
27570         Linker_Destructor.
27571
27572         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
27573         extracted from Check_Interrupt_Or_Attach_Handler.
27574         (Check_Interrupt_Or_Attach_Handler): Invoke it.
27575         Implement pragma Linker_Constructor and Linker_Destructor with the
27576         help of Find_Unique_Parameterless_Procedure.
27577         Replace Name_Alias with Name_Target for pragma Linker_Alias.
27578
27579         * snames.h, snames.ads, snames.adb:
27580         Add Name_Linker_Constructor and Name_Linker_Destructor.
27581         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
27582         * snames.adb: Remove Name_Alias.
27583
27584         * trans.c: Include cgraph.h.
27585         (build_global_cdtor): New function.
27586         (Compilation_Unit_to_gnu): Build global constructor and destructor if
27587         needed.
27588         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
27589         of objects too.
27590         (addressable_p) <COMPONENT_REF>: Unconditionally test
27591         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
27592
27593         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
27594         variable if it is external.
27595
27596         (static_ctors, static_dtors): New global variables.
27597         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
27598         <ATTR_LINK_DESTRUCTOR>: Likewise.
27599         (end_subprog_body): Chain function as constructor and destructor
27600         if requested.
27601
27602         * exp_util.adb (Force_Evaluation): Unconditionally invoke
27603         Remove_Side_Effects with Variable_Ref set to true.
27604         (Remove_Side_Effects): Handle scalar types first. Use a renaming
27605         for non-scalar types even if Variable_Ref is true and for class-wide
27606         expressions.
27607
27608 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27609
27610         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
27611         to prevent spurious warnings.
27612
27613 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27614
27615         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
27616         Itypes. Itypes are really unexpected there.
27617         (Build_TypeCode_Function): Generalise special processing for Itypes to
27618         handle the case of numeric implicit base types as well as enumerated
27619         ones.
27620
27621 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27622
27623         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
27624         controlled, indicate the expected type of the dereference that is
27625         created for the call to Deep_Finalize, to prevent spurious errors when
27626         the designated type is private and completed with a derivation from
27627         another private type.
27628
27629 2005-07-04  Vincent Celier  <celier@adacore.com>
27630
27631         * make.adb (Change_To_Object_Directory): When unable to change the
27632         current dir to the object directory, output the full path of the
27633         directory.
27634
27635 2005-07-04  Matthew Gingell  <gingell@adacore.com>
27636
27637         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
27638
27639         * indepsw-linux.adb: Replace by...
27640
27641         * indepsw-gnu.adb: ...this new file
27642
27643 2005-07-04  Vincent Celier  <celier@adacore.com>
27644
27645         * mlib-prj.adb (Auto_Initialize): New constant String
27646         (SALs_Use_Constructors): New Boolean function
27647         (Build_Library): Call gnatbind with Auto_Initialize switch when
27648         SALs_Use_Constructors returns True.
27649
27650         * mlib-tgt.ads: Minor reformatting
27651
27652         * mlib-utl.ads: Minor reformatting
27653
27654         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
27655
27656 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27657
27658         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
27659         single protected declarations can have an interface list.
27660         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
27661         with seriously malformed entry declarations, and lead to compilation
27662         abandoned messages.
27663
27664 2005-07-04  Javier Miranda  <miranda@adacore.com>
27665
27666         * par-load.adb: Load the context items in two rounds.
27667
27668 2005-07-04  Robert Dewar  <dewar@adacore.com>
27669
27670         * scng.adb: Do not consider Mod used as an attribute to be a keyword
27671
27672 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27673             Javier Miranda  <miranda@adacore.com>
27674
27675         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
27676         type extension needs a limited view.
27677         Remove previous restriction on private types available through the
27678         limited-view (only tagged private types were previously allowed).
27679         (Install_Withed_Unit): In the code that implements the
27680         legality rule given in AI-377, exclude a child unit with the name
27681         Standard, because it is a homonym of the Standard environment package.
27682
27683 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27684
27685         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
27686         overloaded function call, carry interpretations from the original tree
27687         to the copy.
27688
27689 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27690
27691         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
27692         types check whether some designated type is a limited view, and use
27693         the non-limited view if available.
27694
27695 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
27696
27697         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
27698         constraint of full view of a private view T1 if present, when T2 is a
27699         discriminated full view.
27700
27701 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27702
27703         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
27704         actual that is a view conversion of a bit packed array reference.
27705
27706 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27707
27708         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
27709         present before checking whether an interface type covers a synchronized
27710         type.
27711
27712 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
27713
27714         * sem_util.adb (Is_Object_Reference): An indexed or selected component
27715         whose prefix is an implicit dereference is an object reference. Removes
27716         spurious errors when compiling with -gnatc.
27717
27718 2005-07-04  Robert Dewar  <dewar@adacore.com>
27719
27720         PR ada/22039
27721         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
27722
27723 2005-07-04  Matthew Gingell  <gingell@adacore.com>
27724
27725         * tracebak.c: Enable tracebacks on ia64 platforms
27726
27727 2005-07-04  Vincent Celier  <celier@adacore.com>
27728
27729         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
27730         the GNAT BIND command, as gnatbind accepts multiples ALI files with
27731         the -L or -n switches.
27732
27733 2005-07-04  Vincent Celier  <celier@adacore.com>
27734
27735         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
27736         correctly computed and the main project data is not modified while
27737         doing so.
27738         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
27739         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
27740         c++linker as this does not work on some platforms.
27741
27742 2005-07-04  Matthew Heaney  <heaney@adacore.com>
27743
27744         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
27745         was changed.
27746         * a-coinve.adb: Perform constraint checks explicitly.
27747
27748 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27749             Thomas Quinot  <quinot@adacore.com>
27750
27751         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
27752         new target gen-soccon.
27753
27754 2005-07-04  Robert Dewar  <dewar@adacore.com>
27755
27756         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
27757
27758 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27759
27760         * g-socket.ads (Check_Selector): Minor rewording of comment.
27761
27762 2005-07-04  Vincent Celier  <celier@adacore.com>
27763
27764         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
27765
27766 2005-07-04  Thomas Quinot  <quinot@adacore.com>
27767
27768         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
27769
27770 2005-07-04  Sergey Rybin  <rybin@adacore.com>
27771
27772         * gnat_ugn.texi: Add description of --eol gnatpp option
27773
27774 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
27775             Thomas Quinot  <quinot@adacore.com>
27776
27777         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
27778         if the user wants all calls of a subprogram to be flagged,
27779         independently of whether they are made from within the same unit or
27780         another unit.
27781         Mention restriction for pragma Linker_Alias on some platforms.
27782         Document pragma Linker_Constructor and Linker_Destructor.
27783         Rewrite documentation of Weak_External, Linker_Section and
27784         Linker_Alias pragmas.
27785
27786 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
27787
27788         * s-stausa.ads, s-stausa.adb: New files.
27789
27790 2005-06-30  Kelley Cook
27791
27792         * all files:  Update FSF address in copyright headers.
27793         * gen-soccon.co (main): Output new FSF address in generated files.
27794
27795 2005-06-28  Paul Brook  <paul@codesourcery.com>
27796
27797         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
27798
27799 2005-06-14  Olivier Hainque  <hainque@adacore.com>
27800             Eric Botcazou  <ebotcazou@adacore.com>
27801
27802         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
27803         exc_unwind, now that we are generating proper .debug_frame output for
27804         that target.
27805
27806         * tracebak.c: Remove the mips-irix section, as we are now using the
27807         s-mastop based unwinder again.
27808         Under SPARC/Solaris, take into account the stack bias to compute the
27809         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
27810         ABI.
27811
27812 2005-06-14  Doug Rupp  <rupp@adacore.com>
27813
27814         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
27815
27816         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
27817
27818 2005-06-14  Pascal Obry  <obry@adacore.com>
27819
27820         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
27821         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
27822         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
27823         package name).
27824
27825         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
27826         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
27827         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
27828         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
27829         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
27830         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
27831         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
27832         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
27833         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
27834         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
27835         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
27836         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
27837         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
27838         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
27839         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
27840         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
27841         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
27842         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
27843         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
27844         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
27845         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
27846         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
27847         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
27848         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
27849         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
27850         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
27851         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
27852         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
27853         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
27854         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
27855         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
27856         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
27857         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
27858         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
27859         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
27860         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
27861         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
27862         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
27863         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
27864         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
27865         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
27866         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
27867         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
27868         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
27869         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
27870         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
27871         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
27872         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
27873         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
27874         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
27875         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
27876         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
27877         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
27878         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
27879         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
27880         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
27881         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
27882         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
27883         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
27884         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
27885         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
27886         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
27887         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
27888         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
27889         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
27890         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
27891         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
27892         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
27893         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
27894         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
27895         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
27896         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
27897         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
27898         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
27899         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
27900         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
27901         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
27902         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
27903         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
27904         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
27905         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
27906         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
27907         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
27908         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
27909         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
27910         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
27911         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
27912         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
27913         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
27914         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
27915         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
27916         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
27917         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
27918         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
27919         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
27920         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
27921         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
27922         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
27923         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
27924         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
27925         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
27926         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
27927         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
27928         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
27929         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
27930         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
27931         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
27932         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
27933         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
27934         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
27935         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
27936         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
27937         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
27938         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
27939         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
27940         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
27941         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
27942         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
27943         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
27944         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
27945         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
27946         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
27947         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
27948         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
27949         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
27950         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
27951         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
27952         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
27953         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
27954         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
27955         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
27956         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
27957         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
27958
27959 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
27960             Arnaud Charlet  <charlet@adacore.com>
27961
27962         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
27963         longer protected objects. They have been replaced by lower-level
27964         suspension objects made up by a mutex and a condition variable (or
27965         their equivalent given a particular OS) plus some internal data to
27966         reflect the state of the suspension object.
27967         (Initialize, Finalize): Add this initialization procedure for
27968         Suspension_Object, which is a controlled type.
27969         (Finalize): Add the finalization procedure for Suspension_Object,
27970         which is a controlled type.
27971
27972         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
27973         Ada.Synchronous_Task_Control because there is no longer a need for a
27974         VxWorks specific version of this package. Target dependencies
27975         has been moved to System.Task_Primitives.Operations.
27976
27977         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
27978         longer needed.
27979         (InitializeCriticalSection, EnterCriticalSection,
27980         LeaveCriticalSection, DeleteCriticalSection): Replace the type
27981         pCriticalSection by an anonymous access type so that we avoid problems
27982         of accessibility to local objects.
27983
27984         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
27985         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
27986         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
27987         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
27988         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
27989         set the environment task mask here.
27990         (Current_State): Add this function that returns the state of the
27991         suspension object.
27992         (Set_False): Add this procedure that sets the state of the suspension
27993         object to False.
27994         (Set_True): Add this procedure that sets the state of the suspension
27995         object to True, releasing the task that was suspended, if any.
27996         (Suspend_Until_True): Add this procedure that blocks the calling task
27997         until the state of the object is True. Program_Error is raised if
27998         another task is already waiting on that suspension object.
27999         (Initialize): Add this procedure for initializing the suspension
28000         object. It initializes the mutex and the condition variable which are
28001         used for synchronization and queuing, and it sets the internal state
28002         to False.
28003         (Finalize): Add this procedure for finalizing the suspension object,
28004         destroying the mutex and the condition variable.
28005
28006         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
28007         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
28008         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
28009         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
28010         which provides a low-level abstraction (using operating system
28011         primitives) for Ada.Synchronous_Task_Control.
28012         This object is made up by a mutex (for ensuring mutual exclusion), a
28013         condition variable (for queuing threads until the condition is
28014         signaled), a Boolean (State) indicating whether the object is open,
28015         and a Boolean (Waiting) reflecting whether there is a task already
28016         suspended on this object.
28017
28018         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
28019         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
28020         s-intman-vms.ads, s-intman-mingw.adb,
28021         (Initialize_Interrupts): Removed, no longer used.
28022
28023         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
28024         (Setup_Interrupt_Mask): New procedure.
28025
28026         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
28027
28028         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
28029
28030         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
28031         this is no longer done in the body of s-taprop
28032         (Server_Task): Explicitely test for Pending_Action in case
28033         System.Parameters.No_Abort is True.
28034
28035         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
28036         is no longer done in the body of s-taprop
28037
28038 2005-06-14  Robert Dewar  <dewar@adacore.com>
28039
28040         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28041         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28042         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28043         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28044         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28045         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
28046         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
28047         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28048         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
28049         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
28050         system-linux-hppa.ads, system-vms_64.ads,
28051         system-vxworks-alpha.ads: Minor comment update for
28052         AI-362 (unit is Pure).
28053
28054         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
28055         Add pragma Pure_05 for AI-362
28056         Make remaining conversion functions obsolescent in Ada 95
28057
28058         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28059         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
28060         Add entries for a-wichun and a-zchuni
28061         Add a-widcha a-zchara for AI-395
28062         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
28063
28064         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28065         Add entries for a-wichun.o and a-zchuni.o
28066         Entries for a-widcha.o and a-zchara.o
28067         Add entry for a-chacon.o
28068
28069         * a-ztenau.adb: Add with of Ada.Characters.Conversions
28070
28071         * a-chacon.ads, a-chacon.adb: New files.
28072
28073         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
28074         categorization violations.
28075
28076         * a-strmap.ads: Add pragma Pure_05 for AI-362
28077         * a-strmap.ads: Add note on implicit categorization for AI-362
28078
28079         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
28080
28081         * par-prag.adb: Dummy entry for pragma Persistent_BSS
28082         Set Ada_Version_Explicit, for implementation of AI-362
28083         Add processing for pragma Pure_05 and Preelaborate_05
28084         Add entry for Assertion_Policy pragma
28085
28086         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
28087         when needed for proper processing of categorization stuff
28088
28089         * sem_cat.adb:
28090         For several cases, make errors in preealborate units warnings,
28091         instead of errors, if GNAT_Mode is set. For AI-362.
28092
28093         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
28094         preelaborate unit is now warning if in GNAT mode
28095
28096         * s-stoele.ads: Document AI-362 for pragma preelaborate
28097
28098 2005-06-14  Doug Rupp  <rupp@adacore.com>
28099
28100         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
28101         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
28102         Default_Exception_Msg_Max_Length: new parameter.
28103
28104         * a-except.ads: (Exception_Msg_Max_Length): Set to
28105         System.Parameters.Default_Exception_Msg_Max_Length
28106         Add pragma Preelaborate_05 for AI-362
28107         Add warnings off to allow categorization violations for AI-362
28108
28109 2005-06-14  Vincent Celier  <celier@adacore.com>
28110
28111         * gnatsym.adb: Adapt to modification of package Symbols: procedure
28112         Process is now in package Processing.
28113
28114         * symbols.ads, symbols.adb:
28115         (Processing): New package, containing procedure Process
28116
28117         * symbols-vms-alpha.adb:
28118         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
28119
28120         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
28121         symbols-processing-vms-ia64.adb: New files.
28122
28123 2005-06-14  Pascal Obry  <obry@adacore.com>
28124
28125         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
28126         implementation. This new version generates the proper DllMain routine
28127         to initialize the SAL. The DllMain is generated in Ada and compiled
28128         before being added as option to the library build command.
28129
28130 2005-06-14  Doug Rupp  <rupp@adacore.com>
28131             Pascal Obry  <obry@adacore.com>
28132
28133         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
28134         call to decc$translate_vms.
28135         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
28136         need to remove those quotes before catenating the filename.
28137         (__gnat_locate_exec_on_path): improvements to the Win32 section:
28138         * avoid allocating the memory twice for better efficiency;
28139         * allocate 32K buffer for environment expansion as suggested by MSDN;
28140         * prepend ".;" to the path so that current directory is searched too.
28141
28142 2005-06-14  Robert Dewar  <dewar@adacore.com>
28143
28144         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
28145         instead of raising CE (AI-241)
28146         Add warnings off to allow categorization violations for AI-362
28147
28148 2005-06-14  Robert Dewar  <dewar@adacore.com>
28149
28150         * ali-util.adb, gnatbind.adb: Remove references to
28151         Force_RM_Elaboration_Order.
28152
28153         * switch-b.adb: Remove recognition of -f switch
28154
28155 2005-06-14  Pascal Obry  <obry@adacore.com>
28156
28157         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
28158         implementation which is slightly more efficient.
28159
28160 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
28161             Javier Miranda  <miranda@adacore.com>
28162             Ed Schonberg  <schonberg@adacore.com>
28163             Hristian Kirtchev  <kirtchev@adacore.com>
28164
28165         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
28166         allocator's designated type is a class-wide type, and compiling for
28167         Ada 2005, emit a run-time check that the accessibility level of the
28168         type given in the allocator's expression is not deeper than the level
28169         of the allocator's access type.
28170
28171         (Tagged_Membership): Modified to gives support to abstract interface
28172         types.
28173
28174         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
28175         Access_Level.
28176         (Descendant_Tag): New predefined function
28177         (Is_Descendant_At_Same_Level): New predefined function
28178         (Get_Access_Level): New private function
28179         (Set_Access_Level): New private procedure
28180         (IW_Membership): New function. Given the tag of an object and the tag
28181         associated with an interface, evaluate if the object implements the
28182         interface.
28183         (Register_Interface_Tag): New procedure used to initialize the table of
28184         interfaces used by the IW_Membership function.
28185         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
28186         of the dispatch table.
28187         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
28188         table of interfaces of the parent.
28189         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
28190         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
28191         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
28192         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
28193         Ada 2005 semantics for the new predefined function.
28194
28195         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
28196         call to Descendant_Tag rather than Internal_Tag.
28197         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
28198         the accessibility level of the attribute's Item parameter is not deeper
28199         than the level of the attribute's prefix type. Tag_Error is raised if
28200         the check fails. The check is only emitted for Ada_05.
28201         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
28202         requested stream attribute, use it.
28203         (Expand_N_Attribute_Reference): If the designated type is an interface
28204         then rewrite the referenced object as a conversion to force the
28205         displacement of the pointer to the secondary dispatch table.
28206         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
28207         is a dereference of an object with a constrained partial view.
28208
28209         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
28210         type is a class-wide type, emit a run-time check that the accessibility
28211         level of the returned object is not deeper than the level of the
28212         function's master (only when compiling for Ada 2005).
28213
28214         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
28215         Action_Nb_Arg): Add entries for new Get_Access_Level and
28216         Set_Access_Level routines in these tables.
28217         (Make_DT): Generate a call to set the accessibility level of the
28218         tagged type in its TSD.
28219         (Make_DT): Code cleanup. The functionality of generating all the
28220         secondary dispatch tables has been moved to freeze_record_type.
28221         (Make_Abstract_Interface_DT): Minor code cleanup.
28222         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
28223         this subprogram implements a new algorithm that provides the
28224         same functionality and it is more clear in case of primitives
28225         associated with abstract interfaces.
28226         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
28227         clean up, the functionality of this subprogram is now provided
28228         by Set_All_DT_Position.
28229         (Write_DT): New subprogram: a debugging procedure designed to be called
28230         within gdb to display the dispatch tables associated with a tagged
28231         type.
28232         (Collect_All_Interfaces): New subprogram that collects the whole list
28233         of interfaces that are directly or indirectly implemented by a tagged
28234         type.
28235         (Default_Prim_Op_Position): New subprogram that returns the fixed
28236         position in the dispatch table of the default primitive operations.
28237         (Expand_Interface_Actuals): New subprogram to generate code that
28238         displaces all the actuals corresponding to class-wide interfaces to
28239         reference the interface tag of the actual object.
28240         (Expand_Interface_Conversion): New subprogram. Reference the base of
28241         the object to give access to the interface tag associated with the
28242         secondary dispatch table.
28243         (Expand_Interface_Thunk): New subprogram that generates the code of the
28244         thunk. This is required for compatibility with the C+ ABI.
28245         (Make_Abstract_Interface_DT): New subprogram that generate the
28246         declarations for the secondary dispatch tables associated with an
28247         abstract interface.
28248         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
28249         attribute for each primitive operation covering interface subprograms
28250         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
28251         These subprograms were upgraded to give support to abstract interfaces
28252
28253         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
28254         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
28255         RE_Set_Access_Level.
28256         (RE_Unit_Table): Add entries for new Ada.Tags operations.
28257         Add support to call the followig new run-time subprograms:
28258         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
28259
28260         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
28261         match its full declaration when both have an access definition with
28262         statically matching designated subtypes.
28263         (Analyze_Component_Declaration): Delete commented out code that was
28264         incorrectly setting the scope of an anonymous access component's type.
28265         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
28266         an access discriminant when the containing type is nonlimited.
28267         (Make_Incomplete_Type_Declaration): Create an incomplete type
28268         declaration for a record type that includes self-referential access
28269         components.
28270         (Check_Anonymous_Access_Types): Before full analysis of a record type
28271         declaration, create anonymous access types for each self-referential
28272         access component.
28273         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
28274         an access component in this context is a Local_Anonymous_Access, for
28275         proper accessibility checks.
28276         (Access_Definition): Set properly the scope of the anonymous access type
28277         created for a stand-alone access object.
28278         (Find_Type_Of_Object): An object declaration may be given with an access
28279         definition.
28280         (Complete_Subprograms_Derivation): New subprogram used to complete
28281         type derivation of private tagged types implementing interfaces.
28282         In this case some interface primitives may have been overriden
28283         with the partial-view and, instead of re-calculating them, they
28284         are included in the list of primitive operations of the full-view.
28285         (Build_Derived_Record_Type): Modified to give support to private
28286         types implemening interfaces.
28287         (Access_Definition): Reject ALL on anonymous access types.
28288         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
28289         type derivation to occur at a deeper accessibility level than the
28290         parent type.
28291         For the case of derivation within a generic body however, disallow the
28292         derivation if the derived type has an ancestor that is a formal type
28293         declared in the formal part of an enclosing generic.
28294         (Analyze_Object_Declaration): For protected objects, remove the check
28295         that they cannot contain interrupt handlers if not declared at library
28296         level.
28297         (Add_Interface_Tag_Components): New subprogram to add the tag components
28298         corresponding to all the abstract interface types implemented by a
28299         record type or a derived record type.
28300         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28301         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28302         Process_Full_View, Record_Type_Declaration): Modified to give
28303         support to abstract interface types
28304         (Collect_Interfaces): New subprogram that collects the list of
28305         interfaces that are not already implemented by the ancestors
28306         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
28307         when partial view has no discriminants and full view has defaults.
28308         (Constrain_Access): Reject a constraint on a general access type
28309         if the discriminants of the designated type have defaults.
28310         (Access_Subprogram_Declaration): Associate the Itype node with the inner
28311         full-type declaration or subprogram spec. This is required to handle
28312         nested anonymous declarations.
28313         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28314         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28315         Process_Full_View, Record_Type_Declaration): Modified to give
28316         support to abstract interface types
28317         (Derive_Subprograms): Addition of a new formal to indicate if
28318         we are in the case of an abstact-interface derivation
28319         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
28320         to the specification because it is requied to analyze all the
28321         identifiers found in a list of interfaces
28322
28323         * debug.adb: Complete documentation of flag "-gnatdZ"
28324
28325         * exp_ch3.adb: Implement config version of persistent_bss pragma
28326         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
28327         testing for TSS presence to properly enforce visibility rules.
28328         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
28329         Make_Abstract_Interfaces_DT to generate the secondary tables
28330         associated with abstract interfaces.
28331         (Build_Init_Procedure): Modified to initialize all the tags
28332         corresponding.
28333         (Component_Needs_Simple_Initialization): Similar to other tags,
28334         interface tags do not need initialization.
28335         (Freeze_Record_Type): Modified to give support to abstract interface
28336         types.
28337         (Expand_N_Object_Declaration): Do not generate an initialization for
28338         a scalar temporary marked as internal.
28339
28340         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
28341         in-out parameter that is a component in an initialization procedure,
28342         whose constraint might depend on discriminants, and that may be
28343         misaligned because of packing or representation clauses.
28344         (Is_Legal_Copy): New predicate to determine whether a possibly
28345         misaligned in-out actual can actually be passed by copy/return. This
28346         is an error in case the type is by_reference, and a warning if this is
28347         the consequence of a DEC import pragma on the subprogram.
28348         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
28349         interface types
28350         (Expand_Inlined_Call): Mark temporary generated for the return value as
28351         internal, so that no useless scalar normalization is generated for it.
28352         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
28353         null procedure can always be inlined.
28354         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
28355         procedure, generate an explicit empty body for it.
28356
28357         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
28358         Given a type implementing an interface, returns the corresponding
28359         access_disp_table value.
28360         (Find_Interface_Tag): New subprogram. Given a type implementing an
28361         interface, returns the record component containing the tag of the
28362         interface.
28363         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
28364         previous ones that return the corresponding tag and access_disp_table
28365         entities.
28366         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
28367         is a predefined primitive operation.
28368         (Expand_Subtype_From_Expr): If the expression is a selected component
28369         within an initialization procedure, compute its actual subtype, because
28370         the component may depend on the discriminants of the enclosing record.
28371
28372         * i-cpp.ads, i-cpp.adb:
28373         This package has been left available for compatibility with previous
28374         versions of the frontend. As part of the new layout this is now a
28375         dummy package that uses declarations available at a-tags.ads
28376
28377         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
28378         "constant access" and "aliased [constant] access" when not compiling
28379         with -gnat05.
28380         Suppress Ada 2005 keyword warning if -gnatwY used
28381         (P_Identifier_Declarations): Add support for object declarations with
28382         access definitions.
28383         (Private_Extension_Declaration): Complete the documentation
28384         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
28385         attribute in case of private extension declaration
28386         (P_Type_Declaration): Mark as "abstract" the type declarations
28387         corresponding with protected, synchronized and task interfaces
28388         (P_Declarative_Items): "not" and "overriding" are overriding indicators
28389         for a subprogram or instance declaration.
28390
28391         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
28392         instantiation that is a dispatching operation has controlling access
28393         parameters that are null excluding.
28394         Save and restore Ada_Version_Explicit, for implementation of AI-362
28395         (Validate_Derived_Type_Instance): Add check for abstract interface
28396         types.
28397         (Analyze_Formal_Package): Establish Instantiation source for the copy of
28398         the generic that is created to represent the formal package.
28399         (Analyze_Package_Instantiation): Instantiate body immediately if the
28400         package is a predefined unit that contains inlined subprograms, and
28401         we are compiling for a Configurable_Run_Time.
28402         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
28403         If the program has a null default, generate an empty body for it.
28404
28405         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
28406         error message condition, null procedures are correctly detected now.
28407         (New_Overloaded_Entity): Bypass trivial overriding indicator check
28408         for subprograms in the context of protected types. Instead, the
28409         indicator is examined in Sem_Ch9 while analysing the subprogram
28410         declaration.
28411         (Check_Overriding_Indicator): Check consistency of overriding indicator
28412         on subprogram stubs as well.
28413         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
28414         the library level.
28415         (Analize_Subprogram_Specification): When analyzing a subprogram in which
28416         the type of the first formal is a concurrent type, replace this type
28417         by the corresponding record type.
28418         (Analyze_Subprogram_Body): Undo the previous work.
28419         (Analyze_Procedure_Call): If the call has the form Object.Op, the
28420         analysis of the prefix ends up analyzing the call itself, after which
28421         we are done.
28422         (Has_Interface_Formals): New subprogram subsidiary to analyze
28423         subprogram_specification that returns true if some non
28424         class-wide interface subprogram is found
28425         (New_Overloaded_Entity): Modified to give support to abstract
28426         interface types
28427         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
28428         access to subprograms must be recursive.
28429         (Is_Unchecked_Conversion): Improve the test that recognizes
28430         instantiations of Unchecked_Conversion, and allows them in bodies that
28431         are to be inlined by the front-end. When the body comes from an
28432         instantiation, a reference to Unchecked_Conversion will be an
28433         Expanded_Name, even though the body has not been analyzed yet.
28434         Replace Is_Overriding and Not_Overriding in subprogram_indication with
28435         Must_Override and Must_Not_Override, to better express intent of AI.
28436         (Analyze_Subprogram_Body): If an overriding indicator is given, check
28437         that it is consistent with the overrinding status of the subprogram
28438         at this point.
28439         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
28440         always inlined.
28441         If the subprogram is a null procedure, indicate that it does not need
28442         a completion.
28443
28444         * sem_disp.adb (Check_Controlling_Type): Give support to entities
28445         available through limited-with clauses.
28446         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
28447         allowed as the last primitive of a tagged type if it has no previous
28448         spec.
28449         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
28450         to give support to abstract interface types
28451
28452         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
28453         in the case where the target type is an anonymous access type of an
28454         object or component (that is, when Is_Local_Anonymous_Access is true).
28455         Prevent the special checks for conversions of access discriminants in
28456         the case where the discriminant belongs to a nonlimited type, since
28457         such discriminants have their accessibility level defined in the same
28458         way as a normal component of an anonymous access type.
28459         (Resolve_Allocator): When an allocator's designated type is a class-wide
28460         type, check that the accessibility level of type given in the
28461         allocator's expression or subtype indication is not statically deeper
28462         than the level of the allocator's access type.
28463         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
28464         name in a discriminant constraint of a record component.
28465         (Resolve_Explicit_Dereference): Do not check whether the type is
28466         incomplete when the dereference is a use of an access discriminant in
28467         an initialization procedure.
28468         (Resolve_Type_Conversion): Handle conversions to abstract interface
28469         types.
28470         (Valid_Tagged_Conversion): The conversion of a tagged type to an
28471         abstract interface type is always valid.
28472         (Valid_Conversion): Modified to give support to abstract interface types
28473         (Resolve_Actuals): Enable full error reporting on view conversions
28474         between unrelated by_reference array types.
28475         The rule for view conversions of arrays with aliased components is
28476         weakened in Ada 2005.
28477         Call to obsolescent subprogram is now considered to be a violation of
28478         pragma Restrictions (No_Obsolescent_Features).
28479         (Check_Direct_Boolean_Operator): If the boolean operation has been
28480         constant-folded, there is nothing to check.
28481         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
28482         check on possible violation of restriction No_Direct_Boolean_Operators
28483         until after expansion of operands, to prevent spurious errors when
28484         operation is constant-folded.
28485
28486         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
28487         Has_Compatible_Type): Modified to give support to abstract interface
28488         types.
28489         (Interface_Present_In_Ancestor): New function to theck if some ancestor
28490         of a given type implements a given interface
28491
28492         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
28493         prefix is a parameterless function that returns an access_to_procedure.
28494         (Transform_Object_Operation): Handle properly function calls of the
28495         form Obj.Op (X), which prior to analysis appear as indexed components.
28496         (Analyze_One_Call): Complete the error notification to help new Ada
28497         2005 users.
28498         (Analyze_Allocator): For an allocator without an initial value, where
28499         the designated type has a constrained partial view, a discriminant
28500         constraint is illegal.
28501
28502 2005-06-14  Robert Dewar  <dewar@adacore.com>
28503
28504         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
28505         do with treatment of Set_Col when positioned at end of line character.
28506
28507 2005-06-14  Robert Dewar  <dewar@adacore.com>
28508
28509         * atree.adb: (Elist*): Protect against uninitialized field
28510
28511 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28512
28513         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
28514         for an attribute reference that returns an access type.
28515         (Apply_Discriminant_Check): No need for check if (designated) type has
28516         constrained partial view.
28517
28518         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
28519         both bound checks, rather than a conjunction.
28520         (Insert_Valid_Check): If the expression is an actual that is an indexed
28521         component of a bit-packed array, force expansion of the packed element
28522         reference, because it is specifically inhibited elsewhere.
28523
28524 2005-06-14  Vincent Celier  <celier@adacore.com>
28525
28526         * clean.adb (Clean_Project): Correctly delete executable specified as
28527         absolute path names.
28528
28529         * make.adb (Gnatmake): Allow relative executable path names with
28530         directory information even when project files are used.
28531         (Change_To_Object_Directory): Fail gracefully when unable to change
28532         current working directory to object directory of a project.
28533         (Gnatmake): Remove exception handler that could no longer be exercized
28534         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
28535         may be deallocated by Normalize_Arguments.
28536         (Collect_Arguments): Eliminate empty arguments
28537
28538         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
28539         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
28540         (Check_Project): Return False when Project is No_Project. Return True
28541         when All_Projects is True.
28542         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
28543         All_Projects to True.
28544         Minor reformatting
28545
28546 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28547             Javier Miranda  <miranda@adacore.com>
28548             Thomas Quinot  <quinot@adacore.com>
28549             Robert Dewar  <dewar@adacore.com>
28550             Hristian Kirtchev  <kirtchev@adacore.com>
28551             Gary Dismukes  <dismukes@adacore.com>
28552
28553         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
28554         anonymous access types, to indicate that the accessibility level of
28555         the type is determined by that of the enclosing declaration.
28556         (Has_Persistent_BSS): New flag
28557         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
28558         of this attribute with functions.
28559         (Is_Primitive_Wrapper): Remove the barrier.
28560         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
28561         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
28562         New subprograms.
28563         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
28564         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
28565         New subprograms.
28566         (Is_Pure_Unit_Access_Type): New flag
28567         (Abstract_Interfaces): Complete the assertion to cover all usages.
28568         (Set_Is_Interface): Complete the assertion to cover all usages.
28569         (Is_Primitive_Wrapper): New attribute.
28570         (Is_Obsolescent): Now applies to all entities (though it is only set
28571         for subprograms currently)
28572         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
28573         which solves various problems concerning access subtypes.
28574         (Has_Persistent_BSS): New flag
28575         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
28576         Remove these subprograms because this attribute is currently
28577         not used.
28578         New entity flags:
28579         Has_Specified_Stream_Input (Flag190)
28580         Has_Specified_Stream_Output (Flag191)
28581         Has_Specified_Stream_Read (Flag192)
28582         Has_Specified_Stream_Write (Flag193)
28583         Present in all type and subtype entities. Set for a given view if the
28584         corresponding stream-oriented attribute has been defined by an
28585         attribute definition clause. When such a clause occurs, a TSS is set
28586         on the underlying full view; the flags are used to track visibility of
28587         the attribute definition clause for partial or incomplete views.
28588         (Is_Pure_Unit_Access_Type): New flag
28589         Clarify use of Is_Internal.
28590         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
28591         internally generated to wrap the invocation of tasks and protected
28592         types that implement interfaces.
28593         (Implementation_Base_Type): Documentation correction
28594         (Is_Obsolescent): Now applies to all entities (though it is only set
28595         for subprograms currently)
28596         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
28597         which solves various problems concerning access subtypes.
28598
28599         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
28600         for examined parameters. Identify unequal parameter list lengths as
28601         non-conformant parameters.
28602         (Overriding_Possible): Do not check for "All" qualifier in declaration
28603         of controlling access parameter, following prescription of AI-404.
28604         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
28605         that build the procedure body that wraps an entry invocation
28606         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
28607         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
28608         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
28609         give support to abstract interface types
28610
28611         * freeze.adb (Freeze_Entity): Issue error message if
28612         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
28613         type has no storage pool (Ada 2005) AI-366.
28614         Also modified to give support to abstract interface types
28615         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
28616         Inline_Always pragma.
28617
28618         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
28619         now begin an entry declaration.
28620         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
28621         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
28622         a subprogram declaration preceded by an overriding indicator.
28623         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
28624         declarations or subprogram declarations preceded by reserved words
28625         "not" or "overriding".
28626         (P_Entry_Declaration): Update comment. Parse and check overriding
28627         indicator, set semantic flags of entry declarations.
28628         (P_Task): New error message in case of private applied
28629         to a task type declaration.
28630         (P_Protected): New error message in case of private applied
28631         to a task type declaration.
28632
28633         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
28634         in which the full view of a type implementing an interface is a
28635         concurrent type.
28636         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
28637         Declare_Inherited_Private_Subprograms): If an explicit operation
28638         overrides an operation that is inherited in the private part, mark the
28639         explicit one as overriding, to enable overriding indicator checks.
28640         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
28641         full view to partial view, to simplify handling in back-end.
28642
28643         * sprint.adb: Print interface lists where needed: derived types,
28644         protected types, task types.
28645         output "is null" for null procedures. Part of implementation of
28646
28647         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
28648         relaxation of rules for access types in pure, shared passive partitions.
28649
28650         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
28651         first read discriminants into temporary objects, performing checks on
28652         the read values, then possibly performing discriminant checks on the
28653         actual (if it is constrained), and only finally reading the components
28654         into a constrained temporary object.
28655         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
28656         case of reading discriminants of a mutable record type to recognize
28657         the new form of the code generated by
28658         Build_Mutable_Record_Read_Procedure.
28659
28660         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
28661         of a simple call to Make_TSS_Name.
28662         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
28663         buffer, in order for Is_TSS to work correctly on local TSS names.
28664
28665         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
28666         Is_Local_Anonymous_Access to check legaliy of attributes in the
28667         context of  access components and stand-alone access objects.
28668         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
28669         treated as available for a limited private type if there is an
28670         attribute_definition_clause that applies to its full view, but not in
28671         other cases where the attribute is available for the full view
28672         (specifically, the sole fact that the full view is non-limited does not
28673         make the attribute available for the partial view).
28674         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
28675         non-overloaded intrinsic subprogram.
28676         (Check_Stream_Attribute): Reject an attribute reference for an
28677         unavailable stream attribute even if the prefix is not a limited type
28678         (case of a 'Input attribute reference for an abstract, non-classwide
28679         type)
28680         (Stream_Attribute_Available): New function to determine whether a stream
28681         attribute is available at a place.
28682         (Check_Attribute): Use Stream_Attribute_Available instead of just
28683         testing for TSS presence on the implementation base type.
28684         (Analyze_Attribute): Modified to give support to task interfaces.
28685         (Analyze_Access_Attribute): Add error check for use of an Access (or
28686         Unrestricted_Access) attribute with a subprogram marked as
28687         Inline_Always.
28688         (Analyze_Attribute, case Attribute_Address): Add error check for use of
28689         an Address attribute with a subprogram marked as Inline_Always.
28690         Update Eval_Attribute to handle new value of Width from AI-395
28691
28692         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
28693         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
28694         Factor common code across the stream-oriented attribute circcuits into
28695         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
28696         processing is functionally identical to the previous duplicated one,
28697         except that an expression that denotes an abstract subprogram will now
28698         be rejected, as mandated by AI-195 item 5.
28699
28700         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
28701         Is_Local_Anonymous_Access to apply accessibility checks to access
28702         components and stand-alone access objects.
28703         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
28704         elsewhere.
28705         (Is_Potentially_Persistent_Type): New function
28706         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
28707         a heap-object whose type has a constrained partial view, the object is
28708         unconstrained and the component may depend on a discriminant, making its
28709         renaming illegal.
28710
28711         * sinfo.ads, sinfo.adb
28712         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
28713         (Must_Override): Flag applicable to N_Entry_Declaration.
28714         Indicate that interface_list can appear in single task and single
28715         protected declarations.
28716         Replace Is_Overriding and Not_Overriding with Must_Override and
28717         Must_Not_Override, to better express intent of AI.
28718         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
28719         of an overriding indicator in a subprogram or instance.
28720         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
28721         Add the overriding indicator [[not] overriding] construct to the
28722         following grammar productions:
28723          ENTRY_DECLARATION
28724          GENERIC_INSTANTIATION
28725          SUBPROGRAM_SPECIFICATION
28726
28727         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
28728         can start with an overriding indicator.
28729
28730         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
28731         flags accordingly on subrogram specifications or instances.
28732
28733         * sem_ch8.adb:
28734         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
28735         overriding_indicator, if present, is consistent with status of spec.
28736         Improve error message for null-excluding checks on controlling access
28737         parameters.
28738         (Check_In_Previous_With_Clause): Protect the frontend against
28739         previously reported critical errors in the context clauses.
28740         Save and restore Ada_Version_Explicit, for implementation of AI-362
28741         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
28742         operation verify that controlling formals of the renamed entity that
28743         are access parameters are explicitly non-null.
28744         (Find_Expanded_Name): Improve error message when prefix is an illegal
28745         reference to a private child unit.
28746
28747         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
28748         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
28749         Rewrite to correspond to new wide character names in AI-395
28750
28751         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
28752         default procedures.
28753
28754 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28755             Robert Dewar  <dewar@adacore.com>
28756
28757         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
28758         code, not on the bodies of predefined operations, to cut down on
28759         spurious noise.
28760
28761 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28762
28763         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
28764         be expanded in place. The size computation does not require a
28765         subtraction, which would raise an exception on a compiler built with
28766         assertions when the upper bound is Integer'first.
28767         (Flatten): For an array of composite components, take into account the
28768         size of the components to determine whether it is safe to expand the
28769         array into a purely positional representation.
28770
28771 2005-06-14  Thomas Quinot  <quinot@adacore.com>
28772
28773         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
28774         denoting a formal parameter into account.
28775
28776 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28777
28778         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
28779         the entry_call alternative of a conditional entry call, wrap the
28780         conditional entry call itself.
28781
28782 2005-06-14  Nicolas Setton  <setton@adacore.com>
28783             Ed Schonberg  <schonberg@adacore.com>
28784
28785         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
28786         the "simple_choice" member in a variant record, in accordance with the
28787         description in the package spec: the information output for a constant
28788         should be "S number", not "SS number".
28789         (Get_Encoded_Name): Return at once if not generating code. Avoids name
28790         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
28791
28792 2005-06-14  Thomas Quinot  <quinot@adacore.com>
28793
28794         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
28795         RACW without any primitives, do not generate the if statement for
28796         dispatching by name in the PolyORB/DSA case, as it would be malformed
28797         (it would have an Elsif_Parts list that is not No_List, but with a
28798         length of 0).
28799
28800 2005-06-14  Robert Dewar  <dewar@adacore.com>
28801
28802         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
28803
28804 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
28805
28806         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
28807         can determine whether pragma Suppress_Exception_Locations is in effect.
28808
28809         * utils2.c (build_call_raise): Do not pass the file name to the
28810         exception handler if pragma Suppress_Exception_Locations is in effect.
28811         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
28812
28813 2005-06-14  Emmanuel Briot  <briot@adacore.com>
28814
28815         * g-debpoo.adb (Deallocate, Dereference): Improve output.
28816
28817 2005-06-14  Nicolas Roche  <roche@adacore.com>
28818
28819         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
28820         to ""
28821         (Next_Level): Fix minor bug in handling of ../dir case
28822         (Read): Add dir separator to Directory name so that "" is understood as
28823          "/"
28824
28825 2005-06-14  Pascal Obry  <obry@adacore.com>
28826
28827         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
28828         releasing the items.
28829
28830 2005-06-14  Vincent Celier  <celier@adacore.com>
28831             Cyrille Comar  <comar@adacore.com>
28832
28833         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
28834         with output file descriptor and with output file name.
28835         (Dup, Dup2): Now global procedures as they are used by two subprograms
28836         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
28837
28838 2005-06-14  Thomas Quinot  <quinot@adacore.com>
28839
28840         PR ada/6717
28841         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
28842         broadcast address.
28843         (Create_Selector): Bind listening socket used to create the signalling
28844         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
28845         Set listen backlog to 1 to ensure that we detect socket theft by a
28846         failure of our own connect(2) call.
28847         (Check_Selector): Improve documentation of the selector mechanism.
28848         (Broadcast_Inet_Addr): New constant.
28849
28850 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
28851
28852         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
28853         type which turns out to be an incomplete and incorrect fix.
28854         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
28855         of the type is declared in a record (for determination of insertion
28856         type).
28857         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
28858         a private type and ensure that the primary entity is used for the type
28859         of the newly created function's V formal by taking the Etype of the
28860         view.
28861
28862 2005-06-14  Javier Miranda  <miranda@adacore.com>
28863             Jose Ruiz  <ruiz@adacore.com>
28864             Robert Dewar  <dewar@adacore.com>
28865             Ed Schonberg  <schonberg@adacore.com>
28866
28867         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
28868         that indicates if we are parsing a compilation unit found in a
28869         limited-with clause.
28870         It is use to avoid the circularity check.
28871
28872         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
28873         we are parsing a compilation unit found in a limited-with clause. This
28874         is use to avoid the circularity check.
28875
28876         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
28877         unit as a consequence of parsing a limited-with clause. This is used
28878         to avoid the circularity check.
28879
28880         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
28881         (Analyze_Context): Limited-with clauses are now allowed
28882         in more compilation units.
28883         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
28884         againts previously reported critical errors in context clauses
28885         (Install_Limited_Withed_Unit): Code cleanup plus static detection
28886         of two further errors: renamed subprograms and renamed packages
28887         are not allowed in limited with clauses.
28888         (Install_Siblings): Do not install private_with_clauses on the package
28889         declaration for a non-private child unit.
28890         (Re_Install_Parents): When a parent of the subunit is reinstalled,
28891         reset visibility of child units properly.
28892         (Install_Withed_Unit): When a child unit appears in a with_clause of its
28893         parent, it is immediately visible.
28894
28895 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
28896             Emmanuel Briot  <briot@adacore.com>
28897
28898         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
28899         declared within an inlined body as referenced, to prevent spurious
28900         warnings.
28901         (Output_One_Ref): If an entity renames an array component, indicate in
28902         the ALI file that this aliases (renames) the array. Capture as well
28903         function renamings that rename predefined operations.
28904         Add information about generic parent for package and subprogram
28905         instances.
28906         (Get_Type_Reference): For a subtype that is the renaming of an actual in
28907         an instantiation, use the first_subtype to ensure that we don't generate
28908         cross-reference information for internal types.
28909         For objects and parameters of a generic private type, retain the '*'
28910         indicator to distinguish such an entity from its type.
28911
28912         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
28913         to store information about instantiated entities.
28914
28915         * ali.adb (Scan_ALI): Add support for parsing the reference to the
28916         generic parent
28917
28918         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
28919         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
28920         information.
28921
28922 2005-06-10  Doug Rupp  <rupp@adacore.com>
28923             Arnaud Charlet  <charlet@adacore.com>
28924             Olivier Hainque  <hainque@adacore.com>
28925             Jose Ruiz  <ruiz@adacore.com>
28926
28927         * Make-lang.in: Add initialize.o when needed.
28928         Remove obsolete references to RT_FLAGS.
28929         Add missing dependencies for sdefault.o
28930
28931         * initialize.c: New file.
28932
28933         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
28934         [VMS] cond_signal_table: Fix problem in declaration.
28935         [VMS] __gnat_error_handler: rewrite.
28936         Move all __gnat_initialize() routines to initialize.c
28937         Specialize the former "hpux" section to "hppa hpux", as this is what the
28938         section really is here for and we now have other hpux ports that need
28939         different contents.
28940         (__gnat_adjust_context_for_raise) i386-linux: First version of this
28941         function for this target. Adjust PC by one in the machine context. This
28942         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
28943         it is more reliable to do that in the signal handler itself.
28944         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
28945         flags, so that the handler is passed the context structure to adjust
28946         prior to the raise.
28947         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
28948         SA_SIGINFO sigaction should look like. Call
28949         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
28950         Machine_State_Operations stuff.
28951         Add conditional code so that the x86_64 is also supported.
28952
28953 2005-06-14  Pascal Obry  <obry@adacore.com>
28954
28955         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
28956         the library name.
28957
28958 2005-06-14  Robert Dewar  <dewar@adacore.com>
28959
28960         * opt.ads, opt.adb: New flags for persistent_bss mode
28961         Add Ada_Version_Explicit, for implementation of AI-362
28962         Add Assertions_Enabled_Config and associated handling
28963         Needed since setting can be changed with Assertion_Policy pragma
28964         Add new flag Warn_On_Ada_2005_Compatibility
28965
28966         * switch-c.adb: Recognize -gnatwy/Y
28967         Set Ada_Version_Explicit, for implementation of AI-362
28968         The -gnatg switch now includes -gnatyu
28969
28970         * usage.adb: Add -gnatwy/Y
28971         Remove wrong asterisk on -gnatwX line
28972         Add line for -gnatyu switch
28973
28974 2005-06-14  Vincent Celier  <celier@adacore.com>
28975
28976         * osint.adb (Add_Default_Search_Dirs): Put source and object
28977         directories of project files before directories coming from
28978         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
28979
28980 2005-06-14  Robert Dewar  <dewar@adacore.com>
28981
28982         PR ada/15613
28983         * par-ch2.adb (Scan_Pragma_Argument): New procedure
28984         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
28985
28986 2005-06-14  Vincent Celier  <celier@adacore.com>
28987
28988         * prep.adb (Preprocess): Ignore error when scanning the first token of
28989         a line.
28990
28991 2005-06-14  Vincent Celier  <celier@adacore.com>
28992
28993         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
28994         (Check_Stand_Alone_Library): If the specified reference symbol file does
28995         not exist, only issue a warning when the symbol policy is not
28996         Controlled. And, when symbol policy is Compliant, set the symbol
28997         policy to Autonomous.
28998
28999 2005-06-14  Vincent Celier  <celier@adacore.com>
29000
29001         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
29002         when the project file in a with clause is not the last one, that is the
29003         project file name is followed by a comma.
29004         * prj-pp.adb: (First_With_In_List): New Boolean global variable
29005         (Print): Issue list of project files separated by commas in with clauses
29006         according to the values returned by Is_Not_Last_In_List.
29007         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
29008         (Set_Is_Not_Last_In_List): New procedure
29009
29010 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
29011
29012         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
29013
29014 2005-06-14  Robert Dewar  <dewar@adacore.com>
29015
29016         * scng.adb: Add call to new Check_EOF routine
29017         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
29018         Add some comments regarding wide character handling
29019
29020         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
29021
29022         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
29023
29024         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
29025         characters are now considered graphic characters and hence yield false
29026         in this call.
29027
29028         * nmake.adt: Modify header so that xnmake does not generate output
29029         files with multiple blank lines.
29030
29031         * treeprs.adt: Remove a blank line so that output from xtreeprs does
29032         not have an extra blank line
29033
29034 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
29035
29036         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
29037         expression when the component type is an anonymous access type to
29038         ensure that appropriate accessibility checks are done.
29039
29040         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
29041         expression of an assignment when the target object is of an anonymous
29042         access type. This ensures that required accessibility checks are done.
29043         (One_Bound): Move the check for type Universal_Integer to
29044         Process_Bounds.
29045         (Process_Bounds): Check whether the type of the preanalyzed range is
29046         Universal_Integer, and in that case set Typ to Integer_Type prior
29047         to setting the type of the original range and the calls to One_Bound.
29048
29049 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29050
29051         * sem_case.adb (Expand_Others_Choice): Improve warning.
29052
29053 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29054
29055         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
29056         constraint of full view if present, when other type is discriminated.
29057         (Eval_Relational_Op): Recognize tests of pointer values against Null,
29058         when the pointer is known to be non-null, and emit appropriate warning.
29059
29060 2005-06-14  Robert Dewar  <dewar@adacore.com>
29061             Ed Schonberg  <schonberg@adacore.com>
29062
29063         PR ada/10671
29064         * sem_prag.adb: Implement pragma Persistent_BSS
29065         Remove obsolete pragma Persistent_Data, Persistent_Object
29066         Set Ada_Version_Explicit, for implementation of AI-362
29067         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
29068         Add processing for pragma Pure_05 and Preelaborate_05
29069         Add processing for Assertion_Policy pragma
29070         Add pragma identifiers for Assert
29071         (Analyze_Pragma, case Assert): Check number of arguments
29072         (Process_Inline): Additional guard against an illegal program, where the
29073         argument of the pragma is undefined, and warnings on redundant
29074         constructs are enabled.
29075         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
29076         Ada_05 to this pragma, specifying that the pragma is only active in
29077         Ada_05 mode.
29078         (Check_Arg_Order): New procedure
29079         Add appropriate calls to this procedure throughout
29080         Also throughout, check entity name before doing any other checks
29081
29082         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
29083         Remove obsolete pragma Persistent_Data, Persistent_Object
29084         Add entries for pragma Pure_05 and Preelaborate_05
29085         Add entries for Assertion_Policy pragma and associated names
29086         Add some names for pragma argument processing
29087
29088         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
29089
29090 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
29091
29092         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
29093         appears within a negation (either from source or as a rewriting of
29094         inequality) adjust text of warning accordingly.
29095
29096 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29097
29098         * s-strxdr.adb: Follow AI95-00132
29099
29100 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
29101
29102         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
29103
29104 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
29105             Jose Ruiz  <ruiz@adacore.com>
29106
29107         * s-tposen.adb, s-tpobop.adb
29108         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
29109         the exception id.
29110         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
29111         there is no violation of the Max_Entry_Queue_Length restriction (if it
29112         has been set); Program_Error is raised otherwise.
29113         (Requeue_Call): Before requeuing the task on the target entry queue we
29114         check that there is no violation of the Max_Entry_Queue_Length
29115         restriction (if it has been set); Program_Error is raised otherwise.
29116
29117 2005-06-14  Robert Dewar  <dewar@adacore.com>
29118
29119         * styleg.adb: Fix several remaining problems in -gnatyu switch
29120         Blank line count not reset at start
29121         Scanning outside source buffer in some cases
29122         Confusing message for blanks at end of file
29123         Non-empty blank lines not recognized
29124
29125         * nmake.adt: Modify header so that xnmake does not generate output
29126         files with multiple blank lines.
29127
29128         * treeprs.adt: Remove a blank line so that output from xtreeprs does
29129         not have an extra blank line
29130
29131 2005-06-14  Sergey Rybin  <rybin@adacore.com>
29132
29133         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
29134
29135 2005-06-14  Doug Rupp  <rupp@adacore.com>
29136             Vincent Celier  <celier@adacore.com>
29137
29138         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
29139         Update copyright.
29140
29141         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29142         Remove "Library" command.
29143         Change keyword for style check -gnatyd from NOCRLF to
29144         DOS_LINE_ENDINGS.
29145         Remove useless second style check keyword NONE
29146         Remove help documentation for inexistent style check keyword
29147         RM_COLUMN_LAYOUT.
29148         Add help documentation for style check keywords DOS_LINE_ENDINGS,
29149         UNNECESSARY_BLANK_LINES and XTRA_PARENS
29150         Add UNNECESSARY_BLANK_LINES for -gnatyu
29151         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
29152
29153         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29154
29155 2005-06-14  Vincent Celier  <celier@adacore.com>
29156
29157         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
29158         gprmake was invoked with -d.
29159         (Compile_Sources): If -d was used, output the "completed ..." message
29160         for each compilation.
29161         (Scan_Arg): Recognize new switch -d
29162         When -c and at least one main is specified, set
29163         Unique_Compile to True to guarantee that no other sources will be
29164         compiled.
29165
29166 2005-06-14  Matthew Heaney  <heaney@adacore.com>
29167
29168         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
29169         * a-swuwha.ads, a-swuwha.adb: New files
29170
29171         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
29172         * a-szuzha.ads, a-szuzha.adb: New files.
29173
29174         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
29175         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
29176         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
29177         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
29178         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
29179         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
29180         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
29181         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
29182         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
29183         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
29184         Ada 2005 RM.
29185
29186 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
29187             Olivier Hainque  <hainque@adacore.com>
29188             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29189             Pascal Obry  <obry@adacore.com>
29190
29191         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
29192
29193         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
29194         making a temporary around a procedure call because of non-addressable
29195         actual parameter.
29196         (process_freeze_entity): If entity is a private type, capture size
29197         information that may have been computed for the full view.
29198         (tree_transform, case N_Allocator): If have initializing expression,
29199         check type for Has_Constrained_Partial_View and pass that to
29200         build_allocator.
29201         (tree_transform, case N_Return_Statement): Pass extra arg to
29202         build_allocator.
29203
29204         * decl.c (annotate_value): Remove early return if -gnatR is not
29205         specified.
29206         (gnat_to_gnu_field): Don't make a packable type for a component clause
29207         if the position is byte aligned, the field is aliased, and the clause
29208         size isn't a multiple of the packable alignment. It serves no useful
29209         purpose packing-wise and would be rejected later on.
29210         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
29211
29212         PR ada/20515
29213         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
29214         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
29215         instead.
29216         (create_concat_name): Idem.
29217
29218 2005-06-10  Robert Dewar  <dewar@adacore.com>
29219             Eric Botcazou  <ebotcazou@adacore.com>
29220             Ben Brosgol  <brosgol@adacore.com>
29221             Cyrille Comar  <comar@adacore.com>
29222             Sergey Rybin  <rybin@adacore.com>
29223             Pascal Obry  <obry@adacore.com>
29224
29225         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
29226         Document second argument (Ada_05) of pragma Obsolescent
29227         Add note that call to subprogram marked with pragma Obsolescent
29228         is now considered to be a violation of program Restrictions
29229         (No_Obsolescent_Features).
29230         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
29231         that only machine-dependent attributes are supported.
29232
29233         * gnat_ugn.texi:
29234         Commented out menu lines and empty section for gnatclean examples
29235         Document -gnatwy/Y
29236         Fix some over long lines
29237         Clarify and enhance documentation of ADA_PROJECT_PATH.
29238         Rework section 2.11.2(3) about linking with a non-GNU compiler.
29239         Mention new switch -fcallgraph-info.
29240         Mention new switch -fstack-usage.
29241         For gnatpp, replace '-notab' with '-N' and add this option to Index
29242         Corrected VMS example.
29243         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
29244         Minor reformatting
29245         Add documentation for -gnatyu switch (unnecessary blank lines)
29246         Document new switch -U for GNAT PRETTY and GNAT METRIC
29247         Add note about Stdcall being handled as C convention on non Windows OS.
29248         Remove some junk typo in description of gnatbind -S switch
29249         Remove reference to Extensions_Allowed pragma
29250         Document the new order of the directories to be searched (source and
29251         object directories of project files before directories in ADA_*_PATH
29252         environment variables.
29253
29254         * g-trasym.ads: Document that IRIX is supported
29255
29256 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
29257
29258         * Makefile.in: Add initialize.o when needed.
29259         Adapt to new VMS package body Symbols and subunits
29260         No specialized version of a-sytaco is needed for VxWorks.
29261
29262         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
29263         * a-zchara.ads, a-widcha.ads: New files.
29264
29265         * system-hpux-ia64.ads: New file.
29266
29267         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
29268         is imported from the VxWorks kernel.
29269
29270 2005-06-14  Robert Dewar  <dewar@adacore.com>
29271
29272         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
29273         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
29274         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
29275         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
29276         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
29277         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
29278         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
29279         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
29280         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
29281         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
29282         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
29283         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
29284
29285 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29286
29287         * xeinfo.adb: Fix typo in comment
29288
29289 2005-06-14  Javier Miranda  <miranda@adacore.com>
29290
29291         * repinfo.ads: Fix typo in comment
29292
29293 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
29294
29295         * s-finimp.adb (Parent_Tag): Delete this imported function (function
29296         Parent_Tag is now in the visible part of Ada.Tags).
29297         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
29298         using imported function.
29299
29300 2005-06-14  Bernard Banner  <banner@adacore.com>
29301
29302         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
29303         also apply for handling support for VxSim 653.
29304
29305 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
29306
29307         * xsnames.adb: Add automatic generation of snames.h.
29308
29309 2005-06-14  Thomas Quinot  <quinot@adacore.com>
29310
29311         * gen-soccon.c: Add IP_MULTICAST_IF constant
29312         Minor reformatting and adjustments to prevent warnings.
29313
29314 2005-06-14  Pascal Obry  <obry@adacore.com>
29315
29316         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
29317
29318 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
29319
29320         * trans.c (gnat_gimplify_expr): Call
29321         recompute_tree_invarant_for_addr_expr when we change
29322         the operand of the ADDR_EXPR.
29323
29324 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29325
29326         * misc.c: Don't include errors.h.
29327
29328 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29329
29330         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
29331
29332 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
29333
29334         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
29335         comment typos.
29336         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
29337
29338 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
29339
29340         PR ada/20270
29341         * Makefile.in: Make TGT_LIB behave correctly.
29342
29343 2005-04-23  DJ Delorie  <dj@redhat.com>
29344
29345         * misc.c: Adjust warning() callers.
29346
29347 2005-04-16  Laurent Guerby  <laurent@guerby.net>
29348
29349         PR ada/18847
29350         * a-nudira.adb (Value): Check for valid string.
29351         * a-nuflra.adb (Value): Likewise.
29352
29353 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
29354
29355         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
29356
29357 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
29358
29359         * adaint.c, init.c, tracebak.c: Fix comment typos.
29360         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
29361
29362 2005-04-07  Laurent Guerby  <laurent@guerby.net>
29363             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29364
29365         * Makefile.in: Add make ifeq define for hppa linux tasking support.
29366         * system-hpux.ads: Define Signed_Zeros to be True.
29367         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
29368
29369 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
29370
29371         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
29372         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
29373         typos.
29374
29375 2005-03-30  Tom Tromey  <tromey@redhat.com>
29376
29377         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
29378
29379 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
29380
29381         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
29382
29383 2005-03-29  Robert Dewar  <dewar@adacore.com>
29384
29385         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
29386         fixed-point expression has value that is not a multiple of the Small
29387         value.
29388
29389         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
29390
29391         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
29392         nanoseconds.
29393
29394         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
29395
29396 2005-03-29  Vincent Celier  <celier@adacore.com>
29397
29398         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
29399         (Build_Dynamic_Library.Version_String): Return the empty string when
29400         Lib_Version is empty or when the symbol policy is not Autonomous.
29401
29402         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
29403         a symbol is not in the reference symbol file, increase the Major ID
29404         and set the Minor ID to 0.
29405         Use gsmatch=lequal instead of gsmatch=equal
29406
29407 2005-03-29  Doug Rupp  <rupp@adacore.com>
29408
29409         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
29410         name and translate.
29411
29412 2005-03-29  Javier Miranda  <miranda@adacore.com>
29413
29414         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
29415         (Inherit_DT): The first formal has been redefined as a Tag.
29416         This allows us the removal of the subprogram Get_TSD.
29417         (TSD): Replace the call to Get_TSD by the actual code.
29418
29419         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
29420         (Make_DT): Upgrade the call to Inherit_TSD according to the
29421         new interface: the first formal is now a Tag.
29422
29423         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
29424         redefined as a Tag.
29425         This change allows us to remove the subprogram Get_TSD.
29426         (CPP_Get_TSD): Subprogram removed.
29427         (TSD): Replace the call to CPP_Get_TSD by the actual code.
29428
29429         * rtsfind.ads: Remove support to call the run-time
29430         subprogram Get_TSD
29431
29432 2005-03-29  Robert Dewar  <dewar@adacore.com>
29433
29434         * errutil.adb, errout.adb:
29435         Minor comment updates on Line_Terminator references
29436
29437         * par-ch10.adb: Add ??? comment about line terminator
29438
29439         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
29440         (check dos line terminator).
29441         (Check_Line_Max_Length): New procedure, split off from the existing
29442         Check_Line_Terminator routine. Separating this out allows -gnatyf to
29443         be properly recognized.
29444
29445         * styleg.adb: Add ??? comment for line terminator reference
29446
29447         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
29448         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
29449
29450         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
29451         (check dos line terminator).
29452         (Check_Line_Max_Length): New procedure, split off from the existing
29453         Check_Line_Terminator routine. Separating this out allows -gnatyf to
29454         be properly recognized.
29455
29456         * stylesw.ads, stylesw.adb:
29457         Add handling for new -gnatyd switch (check dos line terminator)
29458
29459         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
29460         Recognize -gnatwb/-gnatwB switches
29461         Include Warn_On_Bad_Fixed_Value for -gnatg
29462
29463         * usage.adb:
29464         Add line for new -gnatyd switch (check dos line terminator)
29465
29466         * usage.adb: Add lines for -gnatwb/-gnatwB
29467
29468         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
29469
29470         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
29471
29472         * gnat_ugn.texi: Fix overlong lines
29473         Document new -gnatyd switch
29474         Document new -gnatwb/-gnatwB switches
29475
29476 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
29477
29478         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
29479         order to retrieve the component list of the type, before examining
29480         individual components.
29481
29482         * sem_type.adb (Covers): Types are compatible if one is the base type
29483         of the other, even though their base types might differ when private
29484         views are involved.
29485
29486 2005-03-29  Thomas Quinot  <quinot@adacore.com>
29487
29488         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
29489         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
29490         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
29491         analyzed if expansion is disabled (which could otherwise cause spurious
29492         error messages if expansion has been disabled due to previous
29493         (unrelated) errors).
29494
29495         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
29496         is disabled, the entity denoted by the argument is the access type
29497         itself, not an underlying record type, so there is no need to go back
29498         to the Corresponding_Remote_Type.
29499
29500 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
29501             Robert Dewar  <dewar@adacore.com>
29502
29503         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
29504         expand a call to an instance of
29505         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
29506         Constructor actual of the instance. A class-wide membership
29507         check is also generated, to ensure that the tag passed to the instance
29508         denotes a type in the class.
29509         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
29510         of Name_Generic_Dispatching_Constructor.
29511
29512         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
29513         05 unit for AI-260-02).
29514
29515         * a-tgdico.ads: New file.
29516
29517         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
29518         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
29519
29520         * snames.ads, snames.adb (Preset_Names): Add entry for
29521         Generic_Dispatching_Constructor.
29522
29523         PR ada/20300
29524         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
29525         character type cases.
29526         (Analyze_Subprogram_Renaming): Add special handling for
29527         the case of renaming of stream attributes when the renaming denotes a
29528         generic formal subprogram association for an abstract formal subprogram.
29529         Check that the attribute is a primitive stream attribute (and not
29530         a class-wide stream attribute) and then rewrite the attribute name
29531         as the name of the appropriate compiler-generated stream primitive.
29532
29533 2005-03-29  Robert Dewar  <dewar@adacore.com>
29534
29535         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
29536         recursive calls.
29537         (Is_Possibly_Unaligned_Object): Correct typo that
29538         resulted in inaccurate result for unaligned scalars within records.
29539
29540 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
29541
29542         * freeze.adb (Freeze_Record_Type): If the type of the component is an
29543         itype whose parent is controlled and not yet frozen, do not create a
29544         freeze node for the itype if expansion is disabled.
29545
29546 2005-03-29  Vincent Celier  <celier@adacore.com>
29547
29548         * make.adb (Gnatmake): Don't fail if the main project file is declared
29549         as having no Ada sources. Do not display message "no sources to
29550         compile" in quiet output.
29551
29552 2005-03-29  Doug Rupp  <rupp@adacore.com>
29553
29554         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
29555         extra tools.
29556
29557 2005-03-29  Robert Dewar  <dewar@adacore.com>
29558
29559         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
29560         child.
29561
29562 2005-03-29  Robert Dewar  <dewar@adacore.com>
29563
29564         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
29565         missing TYPE Improve the error message generated when compiling a
29566         limited interface in Ada83 or Ada95 mode.
29567
29568 2005-03-29  Robert Dewar  <dewar@adacore.com>
29569
29570         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
29571         rather than proceed ahead using a junk attribute name.
29572
29573 2005-03-29  Vincent Celier  <celier@adacore.com>
29574
29575         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
29576
29577         * prj-part.adb (Parse_Single_Project): Set the location of a project
29578         on its defining identifier, rather than on the reserved word "project".
29579
29580         * prj-proc.adb (Expression): Adapt to the fact that default of external
29581         references may be string expressions, not always literal strings.
29582         (Recursive_Process): Set Display_Name equal to Name
29583         when Location is No_Location, that is when there is no actual file.
29584         Get the Display_Name of the project from the source, when it is not a
29585         virtual project.
29586         (Process): Use the Display_Name in error messages
29587
29588         * prj-strt.adb (External_Reference): Allow default to be string
29589         expressions, not only literal strings.
29590
29591 2005-03-29  Vincent Celier  <celier@adacore.com>
29592
29593         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
29594         file and the reference symbol file to be the same file.
29595
29596 2005-03-29  Thomas Quinot  <quinot@adacore.com>
29597
29598         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
29599         forbid conversion of a local access-to-subprogram type to a remote one.
29600
29601         * sem_util.adb (Wrong_Type): For a record type that is the expanded
29602         equivalent type for a remote access-to-subprogram type, go back to the
29603         original RAS entity when displaying an error message, so the casing is
29604         the original source casing.
29605
29606 2005-03-29  Robert Dewar  <dewar@adacore.com>
29607
29608         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
29609         on param update.
29610
29611 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
29612
29613         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
29614         subtype if code is being pre-analyzed, to prevent un-expanded
29615         references to protected formals, among others.
29616         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
29617         interpretation that can be a call, include the result of the call as a
29618         possible interpretation of the dereference.
29619
29620         * sem_ch5.adb (Process_Bounds): Determine type of range by
29621         pre-analyzing a copy of the original range, and then analyze the range
29622         with the expected type.
29623
29624         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
29625         with an overloaded prefix where not all interpretations yield an
29626         access to subprogram, do not rewrite node as a call.
29627         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
29628         the node as a call once the context identifies the interpretation of
29629         the prefix whose call yields the context type.
29630         (Valid_Conversion): For the case of a conversion between
29631         local access-to-subprogram types, check subtype conformance using
29632         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
29633         detailed error message.
29634
29635 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
29636
29637         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
29638         indicator, indicate that the formal can never be null.
29639         (Process_Formals): If a formal has a non_null indicator, insert the
29640         resulting subtype immediately before the enclosing subprogram decl,
29641         and not at the beginning of the corresponding declarative part, to
29642         prevent access before elaboration (Ada2005).
29643
29644 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29645
29646         PR ada/19956
29647         * utils.c (finish_record_type): Use variable_size when setting sizes.
29648
29649 2005-03-29  Robert Dewar  <dewar@adacore.com>
29650
29651         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
29652         guarantee Unix style line terminators for the output files, even when
29653         running on windows.
29654
29655 2005-03-29  Robert Dewar  <dewar@adacore.com>
29656
29657         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
29658         buffer if an exception is raised.
29659
29660 2005-03-29  Ed Falis  <falis@adacore.com>
29661
29662         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
29663         VxWorks 653 1.4
29664
29665 2005-03-29  Robert Dewar  <dewar@adacore.com>
29666
29667         * sem_util.ads: Minor reformatting
29668         * gnat_rm.texi: Minor editing.
29669
29670 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
29671
29672         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
29673         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
29674
29675 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
29676
29677         * adaint.c (__gnat_portable_spawn): Adjust cast.
29678
29679 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
29680
29681         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
29682
29683 2005-03-17  Pascal Obry  <obry@adacore.com>
29684
29685         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
29686         used.
29687
29688         * expect.c (__gnat_waitpid): Moved here from adaint.c.
29689         Reimplement under Win32 using Win32 API.
29690
29691         (__gnat_kill) [Win32]: Properly close the process handle before leaving
29692         this routine.
29693
29694 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
29695
29696         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
29697         (DECL_RENAMED_OBJECT): New accessor macro.
29698         (SET_DECL_RENAMED_OBJECT): New setter macro.
29699
29700         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
29701         object in all cases.  Attach the renamed object to the VAR_DECL.
29702         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
29703         field is not prescribed.
29704
29705         * misc.c (gnat_handle_option): Handle -gnatO separately.
29706         (gnat_print_decl) <VAR_DECL>: New case.
29707         Print the DECL_RENAMED_OBJECT node.
29708
29709         * lang.opt:  Declare separate -gnatO option.
29710
29711         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
29712         pointer, replace it with the renamed object.
29713         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
29714         pointer type if the source is not a fat pointer type whose underlying
29715         array has the same non-zero alias set as that of the destination array.
29716
29717 2005-03-17  Javier Miranda  <miranda@adacore.com>
29718
29719         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
29720         (Get_Inheritance_Depth): Removed.
29721         (Set_Inheritance_Depth): Removed.
29722
29723         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
29724         subprogram Get_Expanded_Name because it is not referenced by the
29725         frontend.
29726
29727         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
29728         (CPP_Get_Inheritance_Depth): Removed.
29729         (CPP_Set_Inheritance_Depth): Removed.
29730
29731         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
29732
29733 2005-03-17  Robert Dewar  <dewar@adacore.com>
29734
29735         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
29736         3, since we now expect GCC 3 to do all the work.
29737
29738 2005-03-17  Javier Miranda  <miranda@adacore.com>
29739
29740         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
29741         of one barrier to avoid wrong usage of this attribute.
29742
29743         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
29744         First_Private_Entity.
29745
29746         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
29747         the subprogram against wrong usage.
29748         Adapt the code to traverse the entities in the
29749         scope of a record_type because in addition to its usage regarding
29750         packages, this subprogram is also called by Expand_N_Freeze_Entity
29751         to install the visible declarations of the enclosing scope of a
29752         record_type_with_private to establish the proper visibility before
29753         freezing the entity and related subprograms.
29754
29755 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
29756
29757         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
29758         entry formals.
29759
29760 2005-03-17  Thomas Quinot  <quinot@adacore.com>
29761
29762         * exp_ch3.adb (Check_Attr): New subprogram.
29763         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
29764         into a new Check_Attr subprogram, in order to provide a more
29765         explanatory error message (including the name of the missing attribute).
29766         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
29767         subprogram determines whether a default implementation exists for a
29768         given stream attribute.
29769         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
29770         Determine whether to generate a default implementation for each stream
29771         attribute separately, as this depends on the specific attribute.
29772
29773         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
29774         limited extension where a stream attribute is missing for a limited
29775         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
29776         generate a bogus reference to the missing attribute to prevent
29777         cascaded errors. Instead, generate a null statement.
29778
29779         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
29780         available for a limited type if it has been specified for an ancestor
29781         of the type.
29782
29783 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
29784
29785         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
29786         entity is an operator.
29787
29788 2005-03-17  Thomas Quinot  <quinot@adacore.com>
29789
29790         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
29791         spec, to make this predicate available to other units.
29792
29793         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
29794         reimplementing it.
29795
29796         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
29797         when no distribution runtime library is available.
29798
29799         * sem_res.adb, sem_dist.adb: Disable expansion of remote
29800         access-to-subprogram types when no distribution runtime library is
29801         available.
29802         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
29803         predicate available to other units.
29804
29805         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
29806         spec, to make this predicate available to other units.
29807
29808 2005-03-17  Vincent Celier  <celier@adacore.com>
29809
29810         * make.adb (Insert_Project_Sources): Make sure the Q is always
29811         initialized.
29812
29813         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
29814         the default for the tree, not the global default naming.
29815
29816         * prj-proc.adb (Recursive_Process): No need to put the default naming
29817         in the project data, it's already there.
29818
29819 2005-03-17  Doug Rupp  <rupp@adacore.com>
29820
29821         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
29822
29823         * 5xcrtl.ads: Renamed to...
29824         * s-crtl-vms64.ads: ...this new file
29825
29826 2005-03-17  Robert Dewar  <dewar@adacore.com>
29827
29828         PR ada/19519
29829         * namet.adb (Copy_One_Character): Set proper wide character encoding
29830         for upper half character if we have upper half encoding.
29831
29832 2005-03-17  Robert Dewar  <dewar@adacore.com>
29833
29834         * par.adb (Par): Improved msg for attempt to recompile predefined unit
29835
29836 2005-03-17  Thomas Quinot  <quinot@adacore.com>
29837
29838         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
29839         tagged limited type, the TSS is a newly built renaming declaration:
29840         insert it using Set_TSS, not Copy_TSS.
29841
29842 2005-03-17  Javier Miranda  <miranda@adacore.com>
29843
29844         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
29845         Try_Object_Operation): Analyze the object that is accessible
29846         through the prefix of the subprogram call before we apply
29847         the transformation of the object-operation notation.
29848
29849 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
29850
29851         * s-taprob.adb (Initialize_Protection): Initialize the protected
29852         object's owner to Null_Task.
29853         (Lock): If pragma Detect_Blocking is in effect and the caller of this
29854         procedure is already the protected object's owner then Program_Error
29855         is raised. In addition the protected object's owner is updated.
29856         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
29857         of this procedure is already the protected object's owner then
29858         Program_Error is raised.
29859         In addition the protected object's owner is updated.
29860         (Unlock): Remove the ownership of the protected object.
29861
29862         * s-taprob.ads (Protection): Add the field Owner, used to store the
29863         protected object's owner.
29864         This component is needed for detecting one type of potentially blocking
29865         operations (external calls on a protected subprogram with the same
29866         target object as that of the protected action). Document the rest of
29867         the components.
29868
29869         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
29870         Initialize the protected object's owner to Null_Task.
29871         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
29872         caller of this procedure is already the protected object's owner then
29873         Program_Error is raised.
29874         Do not raise Program_Error when this procedure is called from a
29875         protected action.
29876         (Unlock_Entries): Remove the ownership of the protected object.
29877         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
29878         of this procedure is already the protected object's owner then
29879         Program_Error is raised.
29880         Do not raise Program_Error when this procedure is called from
29881         a protected action.
29882
29883         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
29884         used to store the protected object's owner.
29885
29886         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
29887         effect and this procedure (a potentially blocking operation) is called
29888         from whithin a protected action, Program_Error is raised.
29889         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
29890         and this procedure (a potentially blocking operation) is called from
29891         whithin a protected action, Program_Error is raised.
29892
29893 2005-03-17  Vincent Celier  <celier@adacore.com>
29894             Nicolas Setton  <setton@adacore.com>
29895
29896         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
29897         switch, not supported by the linker on Darwin. Add '_' before
29898         <library>init, as this character is added unconditionally by the
29899         compiler.
29900         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
29901         correct one ".dylib". This fixes detection of the archive files when
29902         building library projects.
29903
29904 2005-03-17  Vincent Celier  <celier@adacore.com>
29905
29906         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
29907         -gnat83, -gnat95 and -gnat05.
29908
29909 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
29910
29911         * gnat_ugn.texi: Document gnatmem restriction
29912
29913 2005-03-17  Thomas Quinot  <quinot@adacore.com>
29914
29915         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
29916         cleanup
29917
29918 2005-03-17  Robert Dewar  <dewar@adacore.com>
29919
29920         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
29921         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
29922         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
29923
29924         * casing.adb: Comment improvements
29925
29926 2005-03-17  Pascal Obry  <obry@adacore.com>
29927
29928         * g-expect.adb: Minor reformatting.
29929
29930 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
29931
29932         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
29933         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
29934         to dependencies.
29935
29936 2005-03-15  Vincent Celier  <celier@adacore.com>
29937
29938         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
29939         Add new parameter In_Tree to specify the project tree: needed
29940         by the project manager. Adapt to changes in project manager
29941         using new parameter In_Tree.
29942
29943 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
29944
29945         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
29946         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
29947         ada/bldtools to avoid make -jN failures.
29948
29949 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
29950
29951         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
29952         to NULL_TREE on entry.
29953
29954 2005-03-15  Robert Dewar  <dewar@adacore.com>
29955
29956         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
29957         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
29958         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
29959         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
29960         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
29961         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
29962         system-interix.ads, system-solaris-sparc.ads,
29963         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
29964         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
29965         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
29966         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
29967         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
29968         Compiler_System_Version to be False.
29969
29970         * opt.ads: Add new flag Opt.Address_Is_Private
29971
29972         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
29973         Add new parameter Compiler_System_Version to avoid checking for
29974         completeness of parameters when compiler is compiling itself.
29975         Allows old versions of GNAT to be compiled with new compiler.
29976
29977 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
29978
29979         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
29980         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
29981         calling thread.
29982         (Stack_Base_Available): New flag.
29983         (Get_Page_Size): New overloaded functions imported from C.
29984         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
29985         PROT_ON, PROT_OFF): New constants.
29986         (mprotect): New function imported from C.
29987         (pthread_teb_t): New record type.
29988
29989         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
29990         (Create_Task): Account for the Yellow Zone and the guard page.
29991
29992 2005-03-15  Vincent Celier  <celier@adacore.com>
29993
29994         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29995         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29996         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
29997         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
29998         Library_File_Name_For): Add new parameter In_Tree
29999         to specify the project tree: needed by the project manager.
30000         Adapt to changes in project manager using new parameter In_Tree.
30001         Remove local imports, use functions in System.CRTL.
30002
30003         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
30004         to use the project manager.
30005
30006         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
30007         In_Tree to designate the project tree. Adapt to changes in the project
30008         manager, using In_Tree.
30009
30010         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
30011         Copy_Interface_Sources): Add new parameter In_Tree to specify the
30012         project tree: needed by the project manager.
30013         (Build_Library): Check that Arg'Length >= 6 before checking if it
30014         contains "--RTS=...".
30015
30016         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
30017         Library_File_Name_For): Add new parameter In_Tree to specify the
30018         project tree: needed by the project manager.
30019
30020         * prj.ads, prj.adb: Major modifications to allow several project trees
30021         in memory at the same time.
30022         Change tables to dynamic tables and hash tables to dynamic hash
30023         tables. Move tables and hash tables from Prj.Com (in the visible part)
30024         and Prj.Env (in the private part). Move some constants from the visible
30025         part to the private part. Make other constants deferred.
30026         (Project_Empty): Make it a variable, not a function
30027         (Empty_Project): Add parameter Tree. Returns the data with the default
30028         naming data of the project tree Tree.
30029         (Initialize): After updating Std_Naming_Data, copy its value to the
30030         component Naming of Project Empty.
30031         (Register_Default_Naming_Scheme): Use and update the default naming
30032         component of the project tree, instead of the global variable
30033         Std_Naming_Data.
30034         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
30035         Tree is not defaulted, return the default naming data of the Tree.
30036         (Initial_Buffer_Size): Constant moved from private part
30037         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
30038         variables initialized in procedure Initialize.
30039         (Add_To_Buffer): Add two in out parameters to replace global variables
30040         Buffer and Buffer_Last.
30041         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
30042         functions.
30043         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
30044         hash tables.
30045         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30046         for the project tree.
30047         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
30048         constant at the beginning of the package spec, so that they cane be used
30049         in subprograms before their full declarations.
30050         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
30051         (Empty_Project): Add parameter of type Project_Node_Ref
30052         (Private_Project_Tree_Data): Add component Default_Naming of type
30053         Naming_Data.
30054         (Buffer, Buffer_Last): remove global variables
30055         (Add_To_Buffer): Add two in out parameters to replace global variables
30056         Buffer and Buffer_Last.
30057         (Current_Packages_To_Check): Remove global variable
30058         (Empty_Name): Move to private part
30059         (No-Symbols): Make it a constant
30060         (Private_Project_Tree_Data): New type for the private part of the
30061         project tree data.
30062         (Project_Tree_Data): New type for the data of a project tree
30063         (Project_Tree_Ref): New type to designate a project tree
30064         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30065         for the project tree.
30066
30067         * prj-attr.ads: Add with Table; needed, as package Prj no longer
30068         imports package Table.
30069
30070         * prj-com.adb: Remove empty, no longer needed body
30071
30072         * prj-com.ads: Move most of the content of this package to package Prj.
30073
30074         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
30075         designate the project node tree and Packages_To_Check to replace
30076         global variable Current_Packages_To_Check.
30077         Add new parameters In_Tree and Packages_To_Check to local subprograms,
30078         when needed. Adapt to changes in project manager with project node tree
30079         In_Tree.
30080
30081         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
30082         project tree to most subprograms. Move tables and hash tables to
30083         private part of package Prj.
30084         Adapt to changes in project manager using project tree In_Tree.
30085
30086         * prj-makr.adb (Tree): New constant to designate the project node tree
30087         Adapt to change in project manager using project node tree Tree
30088
30089         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
30090         display the Library_Src_Dir and the Library_Dir.
30091         Add new parameter In_Tree to designate the project node tree to most
30092         subprograms. Adapt to changes in the project manager, using project tree
30093         In_Tree.
30094         (Check_Naming_Scheme): Do not alter the casing on platforms where
30095         the casing of file names is not significant.
30096         (Check): Add new parameter In_Tree to designate the
30097
30098         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
30099         designate the project tree.
30100         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
30101
30102         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
30103         to replace those that were in the private part of package Prj.
30104         Add new parameter In__Tree to designate the project node tree to most
30105         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30106         (Post_Parse_Context_Clause): When specifying the project node of a with
30107         clause, indicate that it is a limited with only if there is "limited"
30108         in the with clause, not necessarily when In_Limited is True.
30109         (Parse): Add new parameter In_Tree to designate the project node tree
30110
30111         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
30112         designate the project node tree. Adapt to change in Prj.Tree with
30113         project node tree In_Tree.
30114
30115         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
30116         tree In_Tree in the call to function Empty_Process to give its initial
30117         value to the project data Processed_Data.
30118         Add new parameters In_Tree to designate the project tree and
30119         From_Project_Node_Tree to designate the project node tree to several
30120         subprograms. Adapt to change in project manager with project tree
30121         In_Tree and project node tree From_Project_Node_Tree.
30122
30123         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
30124         to replace those that were in the private part of package Prj.
30125         Add new parameter In_Tree to designate the project node tree to most
30126         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30127
30128         * prj-tree.ads, prj-tree.adb: Add new parameter of type
30129         Project_Node_Tree_Ref to most subprograms.
30130         Use this new parameter to store project nodes in the designated project
30131         node tree.
30132         (Project_Node_Tree_Ref): New type to designate a project node tree
30133         (Tree_Private_Part): Change table to dynamic table and hash tables to
30134         dynamic hash tables.
30135
30136         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
30137         the project tree to most subprograms. Adapt to changes in project
30138         manager using project tree In_Tree.
30139
30140         * makegpr.adb (Project_Tree): New constant needed to use project
30141         manager.
30142
30143 2005-03-15  Olivier Hainque  <hainque@adacore.com>
30144
30145         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
30146         for sigactions with SA_SIGINFO set. Call
30147         __gnat_adjust_context_for_raise before raising, to perform the
30148         potentially required adjustments to the machine context for the GCC
30149         unwinder.
30150
30151         * raise.h (__gnat_adjust_context_for_raise): New prototype.
30152
30153         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
30154         Adjust PC by one in the provided machine context.
30155         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
30156         so that the handler is passed the context structure to adjust prior to
30157         the raise.
30158         (__gnat_error_handler) HPUX: Adjust the signature to match what an
30159         SA_SIGINFO sigaction should look like. Call
30160         __gnat_adjust_context_for_raise before actually raising.
30161         (__gnat_adjust_context_for_raise): Default noop to help PC
30162         adjustments before raise from signal handlers.
30163         (__gnat_error_handler): Indirectly call a predicate function to
30164         determine if a condition should be resignaled or not.
30165         (__gnat_set_resignal_predicate): User interface to modify the predicate.
30166         (__gnat_default_resignal_p): Default GNAT predicate.
30167
30168 2005-03-15  Doug Rupp  <rupp@adacore.com>
30169
30170         * adaint.c: Prefix #include of VMS system header files with vms/
30171         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
30172         Do not define a dummy function "convert_addresses" under Darwin,
30173         not needed.
30174
30175         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
30176         with vms/
30177
30178 2005-03-15  Nicolas Setton  <setton@adacore.com>
30179
30180         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
30181         PPC/AIX.
30182
30183 2005-03-15  Robert Dewar  <dewar@adacore.com>
30184
30185         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
30186         AI-386.
30187
30188         * a-retide.ads: Minor comment changes
30189
30190 2005-03-15  Robert Dewar  <dewar@adacore.com>
30191
30192         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
30193         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
30194         Realloc_For_Chunk to private part of package.
30195         New subprograms for AI-301
30196
30197         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
30198         Get_Line procedure.
30199         Avoid unnecessary use of Get/Set_Wide_String
30200
30201 2005-03-15  Robert Dewar  <dewar@adacore.com>
30202
30203         PR ada/13470
30204         * a-stunau.ads, a-stunau.adb:
30205         Change interface to allow efficient (and correct) implementation
30206         The previous changes to allow extra space in unbounded strings had
30207         left this interface a bit broken.
30208
30209         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
30210
30211         * g-spipat.ads, g-spipat.adb: New interface for Get_String
30212         Minor reformatting (function specs)
30213
30214         * g-spitbo.adb: New interface for Get_String
30215
30216         * g-spitbo.ads: Minor reformatting
30217
30218         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
30219
30220         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
30221
30222 2005-03-15  Javier Miranda  <miranda@adacore.com>
30223             Robert Dewar  <dewar@adacore.com>
30224             Thomas Quinot  <quinot@adacore.com>
30225             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30226
30227         * atree.ads, atree.adb: Add support for Elist24 field
30228
30229         * atree.h: Fix wrong definition of Field27
30230         Add support for Elist16 field
30231         Add support for Elist24 field
30232
30233         * einfo.ads, einfo.adb (Abstract_Interfaces,
30234         Set_Abstract_Interfaces): New subprograms.
30235         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
30236         subprograms.
30237         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
30238         entities rather than a single node.
30239         (Is_Interface, Set_Is_Interface): New subprogram
30240         (First_Tag_Component): New syntesized attribute
30241         (Next_Tag_Component): New synthesized attribute
30242         (Write_Entity_Flags): Upgraded to write Is_Interface
30243         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
30244         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
30245         (Task_Body_Procedure): New subprogram to read this attribute.
30246         (Set_Task_Body_Procedure): New subprogram to set this attribute.
30247         (Has_Controlled_Component): Now applies to all entities.
30248         This is only a documentation change, since it always worked to apply
30249         this to other than composite types (yielding false), but now this is
30250         official.
30251         Update documentation on Must_Be_Byte_Aligned for new spec
30252
30253         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
30254         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
30255         uses of the Access_Disp_Table attribute to reference the first dispatch
30256         table associated with a tagged type. As
30257         part of the implementation of abstract interface types,
30258         Access_Disp_Table has been redefined to contain a list of dispatch
30259         tables (rather than a single dispatch table).
30260         Similarly, upgrade all the references to Tag_Component by the
30261         new attribute First_Tag_Component.
30262         (Find_Inherited_TSS): Moved to exp_tss.
30263         Clean up test in Expand_N_Object_Declaration for cases
30264         where we need to do a separate assignment of the initial value.
30265         (Expand_N_Object_Declaration): If the expression in the
30266         declaration of a tagged type is an aggregate, no need to generate an
30267         additional tag assignment.
30268         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
30269         is to be deleted.
30270         Bit packed array ops are only called if operands are known to be
30271         aligned.
30272         (Component_Equality): When returning an N_Raise_Program_Error statement,
30273         ensure that its Etype is set to Empty to avoid confusing GIGI (which
30274         expects that only expressions have a bona fide type).
30275         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
30276         determine the amount of data to be copied.
30277
30278         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
30279         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
30280             INTERFACE_TYPE_DEFINITION ::=
30281               [limited | task | protected | synchronized] interface
30282                 [AND interface_list]
30283
30284         * par-ch3.adb (P_Type_Declaration): Modified to give support to
30285         interfaces.
30286         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
30287         interfaces.
30288         (P_Interface_Type_Definition): New subprogram that parses the new
30289         syntax rule of Ada 2005 interfaces
30290         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
30291         messages by the correct RENAMES (quotes removed).
30292
30293         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
30294         attribute First_Tag_Component.
30295
30296         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
30297         (Interface_List, Set_Interface_List): New subprograms.
30298         (Interface_Present, Set_Interface_Present): New subprograms.
30299         (Limited_Present, Set_Limited_Present): Available also in derived
30300         type definition nodes.
30301         (Protected_Present, Set_Protected_Present): Available also in
30302         record type definition and
30303         derived type definition nodes.
30304         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
30305         (Task_Present, Set_Task_Present): New subprogram.
30306         (Task_Body_Procedure): Removed.
30307         (Set_Task_Body_Procedure): Removed.
30308         These subprogram have been removed because the attribute
30309         Task_Body_Procedure has been moved to the corresponding task type
30310         or task subtype entity to leave a field free to store the list
30311         of interfaces implemented by a task (for AI-345)
30312         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
30313         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
30314         expression flag Do_Range_Check
30315         (Exception_Junk): Change to Flag7 to accomodate above change
30316         (Box_Present, Default_Name, Specification, Set_Box_Present,
30317         Set_Default_Name, Set_Specification): Expand the expression
30318         "X in N_Formal_Subprogram_Declaration" into the corresponding
30319         two comparisons. Required to use the csinfo tool.
30320
30321         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
30322         "with string" given.
30323
30324         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
30325         expression given.
30326
30327         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
30328         in 2005 mode
30329
30330         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
30331         attribute Task_Body_Procedure rather than the old semantic field that
30332         was available in the task_type_declaration node.
30333
30334         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
30335         interface type definitions.
30336         (P_Formal_Derived_Type_Definition): Modified to handle the list of
30337         interfaces.
30338
30339         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
30340         task type declaration.
30341         (P_Protected): Modified to handle the list of interfaces in a
30342         protected type declaration.
30343
30344 2005-03-15  Doug Rupp  <rupp@adacore.com>
30345             Vincent Celier  <celier@adacore.com>
30346
30347         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
30348         (Gen_Output_File_C): Likewise.
30349         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
30350
30351 2005-03-15  Thomas Quinot  <quinot@adacore.com>
30352
30353         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
30354         is an N_Raise_Constraint_Error node, create a new copy of it without
30355         going through a call to Duplicate_Subexpr.
30356
30357 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30358             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30359             Nicolas Setton  <setton@adacore.com>
30360             Ed Schonberg  <schonberg@adacore.com>
30361
30362         PR ada/19900
30363         PR ada/19408
30364         PR ada/19140
30365         PR ada/20255
30366         * decl.c (gnat_to_gnu_field): Reject aliased components with a
30367         representation clause that prescribes a size not equal to the rounded
30368         size of their types.
30369         (gnat_to_gnu_entity, case E_Component): Always look at
30370         Original_Record_Component if Present and not the entity.
30371         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
30372         of tagged extension types by not making field for components that are
30373         inside the parent.
30374         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
30375         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
30376         expression to the type of the object when the object is constant.
30377         Reverse defer_debug_incomplete_list before traversing it, so that trees
30378         are processed in the order at which they were added to the list. This
30379         order is important when using the stabs debug format.
30380         If we are deferring the output of debug information, also defer this
30381         output for a function return type.
30382         When adding fields to a record, prevent emitting debug information
30383         for incomplete records, emit the information only when the record is
30384         complete.
30385         (components_to_record): New parameter defer_debug.
30386         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
30387         (gnat_to_gnu_field_decl): New function.
30388         (substitution_list, annotate_rep): Call it.
30389         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
30390         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
30391         No longer update discriminants to not be a COMPONENT_REF.
30392         (copy_alias_set): Strip padding from input type; also handle
30393         unconstrained arrays properly.
30394
30395         * gigi.h (write_record_type_debug_info): New function.
30396         Convert to use ANSI-style prototypes. Remove unused
30397         declarations for emit_stack_check, elab_all_gnat and
30398         set_second_error_entity.
30399         (gnat_to_gnu_field_decl): New decl.
30400
30401         * utils.c (write_record_type_debug_info): New function.
30402         (finish_record_type): Delegate generation of debug information to
30403         write_record_type_debug_info.
30404         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
30405         (update_pointer_to): Fix pasto.
30406         (convert) <UNION_TYPE>: Accept slight type variations when
30407         converting to an unchecked union type.
30408
30409         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
30410         replace the N_Freeze_Entity with a null statement.
30411
30412         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
30413         within a constrained subcomponent of an enclosing record, place the
30414         freeze nodes in the scope stack entry for the enclosing record.
30415         (Undelay_Type): New Subprogram.
30416         (Set_Small_Size): Pass T, the type to modify; all callers changed.
30417         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
30418         within records; allow them to have freeze nodes if their base types
30419         aren't frozen yet.
30420
30421         * exp_util.adb (Remove_Side_Effects): Properly test for
30422         Expansion_Delayed and handle case when it's inside an
30423         N_Qualified_Expression.
30424
30425         * sem_ch3.adb (Derived_Type_Declaration): New predicate
30426         Comes_From_Generic, to recognize accurately that the parent type in a
30427         derived type declaration can be traced back to a formal type, because
30428         it is one or is derived from one, or because its completion is derived
30429         from one.
30430         (Constrain_Component_Type): If component comes from source and has no
30431         explicit constraint, no need to constrain in in a subtype of the
30432         enclosing record.
30433         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
30434         Minor change to propagate Is_Ada_2005 flag
30435
30436         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
30437         Expansion_Delayed is False.
30438         (assoc_to_constructor): Ignore fields that have a
30439         Corresponding_Discriminant.
30440         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
30441         function returns "by target", dereference the target pointer using the
30442         type of the actual return value.
30443         <all>: Be prepared for a null gnu_result.
30444         (processed_inline_subprograms): Check flag_really_no_inline
30445         instead of flag_no_inline.
30446         (set_second_error_entity): Remove unused function.
30447         (gnat_to_gnu, case N_Selected_Component): Call
30448         gnat_to_gnu_field_decl.
30449         (assoc_to_constructor): Likewise.
30450
30451 2005-03-15  Robert Dewar  <dewar@adacore.com>
30452             Ed Schonberg  <schonberg@adacore.com>
30453             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30454
30455         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
30456         Must_Be_Byte_Aligned for cases where we do not need to use a
30457         System.Pack_nn unit.
30458
30459         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
30460         as procedures.
30461         Needed now that we do some processing for IN parameters as well. This
30462         may well fix some unrelated errors.
30463         (Expand_Call): Handle case of unaligned objects (in particular those
30464         that come from packed arrays).
30465         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
30466         renamed entity is an inherited operation, re-expand the call using the
30467         original operation, which is the one to call.
30468         Detect attempt to inline parameterless recursive subprogram.
30469         (Represented_As_Scalar): Fix to work properly with private types
30470         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
30471         accurate estimate. Yields True in far fewer cases than before,
30472         improving the quality of code that depends on this test.
30473
30474         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
30475         over both visible and private declarations to remove them from tree,
30476         and mark subprograms declared in package as eliminated, to prevent
30477         spurious use in subsequent compilation of generic units in the context.
30478
30479         * exp_util.ads: Minor cleanup in variable names
30480
30481         * sem_eval.ads, sem_eval.adb: Minor reformatting
30482         (Compile_Time_Known_Bounds): New function
30483
30484 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30485
30486         * exp_ch7.adb (Convert_View): Use base types of underlying types when
30487         determining whether an unchecked conversion is needed for the argument
30488         of an initialization call.
30489
30490 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30491
30492         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
30493         that appears in the instantiation rather than the internal subtype
30494         generated in the wrapper package, to avoid anomalies in gigi when the
30495         target is derived from a private type whose full view is an access type.
30496
30497 2005-03-15  Robert Dewar  <dewar@adacore.com>
30498
30499         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
30500         not needed.
30501         Add documentation to replace the use of this flag
30502         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
30503         the x86_64.
30504
30505 2005-03-15  Thomas Quinot  <quinot@adacore.com>
30506
30507         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
30508         here from exp_attr so it can be shared between exp_attr and exp_dist.
30509         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
30510         all TSS names, not a subset thereof, and the previous name introduced
30511         an unnecessarily confusion that a distinction might exist between
30512         "OK" TSS names and some "not OK" TSS names.
30513
30514 2005-03-15  Doug Rupp  <rupp@adacore.com>
30515
30516         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
30517         Command_Name.
30518
30519 2005-03-15  Pascal Obry  <obry@adacore.com>
30520             Eric Botcazou  <ebotcazou@adacore.com>
30521
30522         PR ada/20226
30523         PR ada/20344
30524         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
30525         when IN_RTS. This is to work around a bootstrap path problem.
30526
30527         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
30528         table and pass it to __gnat_install_SEH_handler().
30529         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
30530
30531         * lang.opt: Fix specification of -fRTS=.
30532
30533 2005-03-15  Doug Rupp  <rupp@adacore.com>
30534             Bernard Banner  <banner@adacore.com>
30535             Vincent Celier  <celier@adacore.com>
30536             Arnaud Charlet  <charlet@adacore.com>
30537
30538         PR ada/6852
30539         This change works fine when gnatlib is built from the gcc directory,
30540         but does not work when using the libada Makefile, since GCC_FOR_TARGET
30541         is not passed to ada/Makefile.in, so more work is needed by a
30542         Makefile/configure expert.
30543
30544         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
30545         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
30546         Setup gnatlink switch -M for x86_64 linux, as it is already setup
30547         for Linux x86.
30548         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
30549         Run ranlib on libgccprefix.a
30550         Define PREFIX_OBJS for Darwin, to build libgccprefix.
30551         (ADA_INCLUDE_SRCS): Split Ada packages.
30552
30553 2005-03-15  Robert Dewar  <dewar@adacore.com>
30554
30555         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
30556
30557         * impunit.adb: Add GNAT.UTF_32
30558
30559         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
30560
30561         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
30562         now uses GNAT.UTF_32).
30563
30564         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
30565         capabilities for categorizing characters using Unicode categories
30566
30567 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30568
30569         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
30570         instantiation that has been rewritten as a package body, retrieve spec
30571         to generate proper name for implicit_with_clause.
30572         (Install_Parents): Recognize a parent that is an instantiation but has
30573         been rewritten as a package declaration during analysis.
30574
30575 2005-03-15  Javier Miranda  <miranda@adacore.com>
30576             Ed Schonberg  <schonberg@adacore.com>
30577
30578         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
30579         parameter reported some error we immediately return. This improves the
30580         behaviour of the frontend in case of errors.
30581         (Install_Parent, Remove_Parent): Introduce new flag
30582         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
30583         ancestor of a generic child unit, when the child is being instantiated.
30584         (Inline_Instance_Body): If we are compiling the private
30585         part or the body of a child unit, restore the proper visibility of the
30586         parents after compiling the instance body.
30587
30588 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30589             Javier Miranda  <miranda@adacore.com>
30590
30591         PR ada/15608
30592         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
30593         of a private type, in which case it is underlying_type that denotes
30594         the proper task. Also modified to use the new entity attribute
30595         that is directly available in the task type and task subtype entities
30596         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
30597         arrays when other dimensions than the first are constrained by
30598         discriminants of an enclosing record.
30599         (Insert_Explicit_Dereference): If the prefix is an indexed component or
30600         a combination of indexed and selected components, find ultimate entity
30601         and generate the appropriate reference for it, to suppress spurious
30602         warnings.
30603         (Note_Possible_Modification): If an entity name has no entity, return.
30604         (Is_Variable): A function call never denotes a variable.
30605         (Requires_Transient_Scope): For record types, recurse only on
30606         components, not on internal subtypes that may have been generated for
30607         constrained components.
30608
30609 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30610
30611         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
30612         Eliminated as candidates for resolution. Both efficient, and avoids
30613         anomalies with operators declared in deleted code.
30614         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
30615         expansion is disabled (as when compiling a generic) to prevent spurious
30616         warnings on prefixes of selected components.
30617
30618 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30619
30620         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
30621         attached to a list before checking whether it appears in the private
30622         declarations of the current package.
30623         (Make_Inequality_Operator): Insert declaration in proper declarative
30624         list rather than just setting the Parent field, so that
30625         Is_Private_Declaration can handle it properly.
30626
30627 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
30628
30629         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
30630         a renaming a body, check that the renamed subprogram in not intrinsic.
30631         (Find_Direct_Name): If several use_visible entities hide
30632         each other, and the context is a predefined file compiled through
30633         rtsfind, keep only the entity that comes from a predefined file.
30634
30635 2005-03-15  Geert Bosch  <bosch@adacore.com>
30636
30637         * s-fatgen.adb (Valid): Extend special exceptions to account for long
30638         long float padding to also cover AMD64 and IA64.
30639
30640 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
30641
30642         * s-imgwch.adb: Add with and use of Interfaces.
30643         (Img_Wide_Character): Change type of Val to Unsigned_16.
30644         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
30645
30646 2005-03-15  Matthew Gingell  <gingell@adacore.com>
30647
30648         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
30649
30650 2005-03-15  Robert Dewar  <dewar@adacore.com>
30651
30652         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
30653
30654         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
30655
30656         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
30657
30658 2005-03-15  Robert Dewar  <dewar@adacore.com>
30659
30660         * s-bitops.adb, s-bitops.ads,
30661         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
30662         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
30663         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
30664         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
30665         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
30666         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
30667         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
30668         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
30669         reformatting.
30670
30671 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30672
30673         * utils2.c (build_binary_op): Fix typo.
30674
30675 2005-03-15  Doug Rupp  <rupp@adacore.com>
30676
30677         * s-crtl.ads (popen,pclose): New imports.
30678
30679 2005-03-15  Cyrille Comar  <comar@adacore.com>
30680
30681         * comperr.adb (Compiler_Abort): remove references to obsolete
30682         procedures in the bug boxes for various GNAT builds.
30683
30684 2005-03-15  Vincent Celier  <celier@adacore.com>
30685
30686         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
30687
30688 2005-03-15  Geert Bosch  <bosch@adacore.com>
30689             Arnaud Charlet  <charlet@adacore.com>
30690             Robert Dewar  <dewar@adacore.com>
30691             Cyrille Comar  <comar@adacore.com>
30692             Sergey Rybin  <rybin@adacore.com>
30693
30694         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
30695         too specific and long-winded to be appropriate for the GNAT User's
30696         Guide.
30697         Warn about use of GCC switches not documented in the GNAT User's Guide,
30698         as these may cause generated code to not conform to Ada semantics.
30699         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
30700         Add documentation for -gnat95 and -gnat05 switches
30701         Remove paragraph documenting obsolete way to refer to third party
30702         libraries.
30703         Add a few references to Ada_05 that were missing.
30704         Update documentation on -gnatZ/-gnatL.
30705         Document limitation when using -m64 under Solaris.
30706         Change the "Name Casing" subsection of the pretty-printer section
30707         according to the changes in the dictionary processing.
30708
30709         * gnat_rm.texi: Document the Ada_05 pragma.
30710         Section on record representation clauses describes the new more
30711         relaxed rules about placement of large packed bit array components.
30712         Add documentation of GNAT.UTF_32
30713
30714 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
30715
30716         * misc.c (gnat_post_options): Turn off structural
30717         aliasing for now.
30718
30719 2005-03-08  Laurent Guerby  <laurent@guerby.net>
30720
30721         * system-linux-sparc.ads: Fix typo in previous commit.
30722
30723 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
30724             Laurent Guerby  <laurent@guerby.net>
30725
30726         PR ada/20035
30727         * system-linux-sparc.ads: New.
30728         * Makefile.in: Add sparc linux entry.
30729
30730 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
30731
30732         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
30733         parameters as unused.
30734
30735 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
30736         Partial merge from libada-gnattools-branch:
30737
30738         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
30739         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
30740         into code in gnattools/Makefile.in.  Remove direct dependencies on
30741         stamp-tools by tools clauses.
30742         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
30743         * config-lang.in: Add gnattools to $lang_dirs.
30744
30745 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
30746
30747         PR ada/19942
30748         * utils.c (gnat_type_for_mode): Return null instead of ICE because
30749         we asked for an unknown mode.
30750
30751 2005-02-12  Richard Henderson  <rth@redhat.com>
30752
30753         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
30754         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
30755
30756 2005-02-10  Andreas Jaeger  <aj@suse.de>
30757
30758         * init.c (__gnat_initialize): Mark parameter as unused.
30759
30760 2005-02-09  Doug Rupp  <rupp@adacore.com>
30761
30762         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
30763         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
30764
30765 2005-02-09  Doug Rupp  <rupp@adacore.com>
30766
30767         * gnatchop.adb (dup, dup2),
30768         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
30769
30770         * gnatlbr.adb (mkdir),
30771         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
30772
30773         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
30774
30775 2005-02-09  Doug Rupp  <rupp@adacore.com>
30776
30777         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
30778
30779 2005-02-09  Robert Dewar  <dewar@adacore.com>
30780             Thomas Quinot  <quinot@adacore.com>
30781             Javier Miranda  <miranda@adacore.com>
30782             Pascal Obry  <obry@adacore.com>
30783             Ed Schonberg  <schonberg@adacore.com>
30784             Doug Rupp  <rupp@adacore.com>
30785             Gary Dismukes  <dismukes@adacore.com>
30786             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30787
30788         * g-zstspl.ads: New file.
30789
30790         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
30791
30792         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
30793         Ada 95 mode
30794         Add definition of Wide_Wide_Space for AI-285
30795
30796         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
30797         interface (to support Ada 95 and Ada 2005 units).
30798         Add Unbounded_IO files
30799         Add entries for Wide_Wide packages for AI-285
30800         Add list of containers packages to Ada 2005 unit list
30801
30802         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
30803         support new Unbounded_IO package cleanly.
30804
30805         * g-utf_32.ads, g-utf_32.adb: New files.
30806
30807         * Makefile.rtl: Add entry for g-utf_32
30808         Add new files for Unbounded_IO
30809         Adjust make file for new AI-285 wide wide packages
30810         Add AI-302 containers to the run time.
30811
30812         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
30813         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
30814         subprograms for AI-301.
30815
30816         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
30817
30818         * a-stunau.ads: Minor comment correction
30819
30820         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
30821         etc.
30822         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
30823         (Check_RPC): Update to match changes in expanded code.
30824         Clean up unused entity.
30825
30826         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
30827         was not taken into account.
30828         This includes proper initialization with Normalize_Scalars.
30829         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
30830         normalize scalars cases (particularly the latter) to do a better job
30831         of finding invalid representations.
30832
30833         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
30834
30835         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
30836         used
30837
30838         * exp_dist.adb: Add support for wide wide character type
30839         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
30840         private part, generate stub bodies at the end of the private part,
30841         not the visible part.
30842         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
30843         PolyORB support.
30844         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
30845         generic wrapper to execute final processing after completing the
30846         expansion of the RPC receiver for an RACW.
30847
30848         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
30849         packages and attributes.
30850         (Preset_Names): Addition of the new reserved words of Ada 2005,
30851         that is interface, overriding and synchronized.
30852         (Get_Pragma_Id): Give support to the use of the new reserved word
30853         "interface" as a pragma name.
30854         (Is_Pragma_Name): Give support to the use of the new reserved word
30855         "interface" as a pragma name.
30856         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
30857         attribute implementation.
30858
30859         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
30860         checks to entities that are output parameters of Asm operations.
30861         Handle the Stream_Size attribute.
30862         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
30863
30864         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
30865
30866         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
30867         for second parameter being 0.0.
30868         Add support for wide wide character type.
30869         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
30870
30871         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
30872         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
30873         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
30874         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
30875         for wide wide character cases.
30876
30877         * cstand.adb: Create entities for Wide_Wide_Character and
30878         Wide_Wide_String.
30879
30880         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
30881         accordance with AI-258.
30882         Add new declarations for 16/32 bit C character types (Part of AI285)
30883
30884         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
30885         (Obsolescent_Warning): New field
30886         (Rep_Clause): New local subprogram used to share code. Returns the rep
30887         clause for which the name is given in parameter.
30888         (Has_Stream_Size_Clause): New routine.
30889         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
30890         (Address_Clause): Implementation is now using Rep_Clause.
30891         (Alignment_Clause): Idem.
30892         (Size_Clause): Idem.
30893
30894         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
30895         entity in non-Ada 2005 mode and generate warning.
30896
30897         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
30898         (Prag): Code cleanup. Remove old gnat pragma "overriding"
30899
30900         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
30901         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
30902         on the named unit if the pragma is not in the current compilation unit,
30903         so that elaboration calls in the current unit can set up an elaboration
30904         dependency on the named unit, as needed.
30905         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
30906         subprogram as well as for subprograms declared within a package.
30907         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
30908         pragma overriding.
30909
30910         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
30911         to z) to avoid some instances of duplication for Wide_Wide packages.
30912
30913         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
30914         characters.
30915
30916         * scn.adb: Char_Literal_Value field is now a Uint
30917
30918         * scng.adb: Significant rewrite to handle new Ada 2005 features
30919         allowing wide and wide wide characters in program text, e.g. for
30920         identifiers, as described in AI-285.
30921         (Set_Reserved): New procedure, makes setting up keywords cleaner.
30922         (Initialize_Scanner): Register the new reserved words of Ada 2005.
30923         (Scan): Give support to the new reserved words.
30924
30925         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
30926         warning notifying that interface, overriding, and synchronized are
30927         new reserved words.
30928         (P_Pragma): Allow the use of the new reserved word "interface" as
30929         a pragma name.
30930
30931         * gnatls.adb, gnatbind.adb,
30932         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
30933         identifiers named "interface" to "SAL_Interface".
30934
30935         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
30936         (Structured Exception handling).
30937         (Gen_Main_C): Idem.
30938
30939         * bindgen.adb:
30940         (Gen_Main_Ada): Set the default exit code if specified.
30941         (Gen_Main_C): Likewise.
30942         Part of *DC20-006.
30943         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
30944         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
30945
30946         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
30947         new -Xnnn switch.
30948
30949         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
30950         has a collision with the new Ada 2005 "interface" reserved word.
30951
30952         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
30953         generate a warning notifying that interface, overriding, and
30954         synchronized are new reserved words.
30955
30956         * scans.ads (Token_Type): Addition of the tokens corresponding to the
30957         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
30958         and Tok_Synchronized.
30959
30960         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
30961         "dispatching" rather than "primitive" operations, since dispatching
30962         calls are now allowed to abstract formal subprograms (which are not
30963         primitive).
30964         Char_Literal_Value field is now a Uint
30965         (Resolve_Slice): If the prefix is an access to an unconstrained array,
30966         compute the actual subtype of the designated object to impose the proper
30967         index constraints.
30968         (Resolve_Selected_Component): Do not insert an access check if the
30969         prefix is an access type: such a node is expanded into an explicit
30970         dereference, on which the access check is performed anyway. Removes
30971         expensive duplicate checks.
30972         (Resolve_Call): Use new flag Is_Obsolescent and field
30973         Obsolescent_Warning so that pragma Obsolescent works on library
30974         subprograms.
30975         Add support for wide wide character type
30976         (Resolve_Allocator): Replace the error message on wrong null-exclusion
30977         value by a warning message.
30978         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
30979         as fixed-point, and one of the operands is non-static and universal, it
30980         can only be an illegal exponentiation operation, in which case there is
30981         no real value to retrieve.
30982
30983         * exp_strm.adb: Add support for wide wide character type
30984         (Build_Elementary_Input_Call): Compute the size of the stream element by
30985         querying the rep chain to find the Stream_Attribute attribute value.
30986         (Build_Elementary_Write_Call): Ditto.
30987
30988         * sem_aggr.adb: Char_Literal_Value field is now a Uint
30989         Add support for wide wide character type
30990         Replace the error messages on wrong null-exclusion value by warnings
30991         as described in Ada 2005.
30992         (Resolve_Extension_Aggregate): Document the fact that the error
30993         message on class-wide expressions in extensions aggregates.
30994
30995         * sem_case.adb: Add support for wide wide character type
30996
30997         * sem_ch13.adb: Add support for wide wide character type
30998         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
30999
31000         * sem_ch3.adb: Add support for wide wide character type
31001         (Process_Subtype): If constraint is illegal for the type, set Ekind of
31002         now-useless Itype, to prevent cascaded errors on a compiler built
31003         without -gnatp.
31004
31005         * sem_ch8.adb: Add with and use of Sem_Disp.
31006         (Analyze_Subprogram_Renaming): Replace unclean uses of
31007         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
31008         of Corresponding_Spec to Empty).
31009         (Attribute_Renaming): Replace use of Corresponding_Spec with
31010         Corresponding_ Formal_Spec and simplify condition.
31011         (Use_One_Package): Check that scope of homonym of identifier is defined,
31012         before checking whether it is a wrapper package.
31013         Add support for wide wide character type
31014
31015         * sem_eval.adb: Add support for wide wide character type.
31016         (Eval_Arithmetic_Op): Check for compile time known signed integer
31017         overflow in the non-static case.
31018         (Subtypes_Statically_Match): A formal scalar type and its base type do
31019         not statically match.
31020
31021         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
31022         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
31023         subtype).
31024         (Unit_Declaration_Node): Ditto.
31025         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
31026         has a packed array type, the prefix has been rewritten into a type
31027         conversion. Determine variable-ness from the converted expression.
31028         Handle wide wide character cases.
31029
31030         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
31031
31032         * stringt.ads, stringt.adb: Handle full UTF-32 range.
31033         Remove ["0A"] from comment, since it can look like a line terminator.
31034         Currently we don't permit this, but this is under discussion by the
31035         ARG, and it is easy enough to use a different example.
31036
31037         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
31038         handling UTF-32 encoding for wide wide character.
31039         Implement new brackets coding ["hhhhhhhh"]
31040         Add UTF-8 encodings for full UTF-32 range
31041
31042         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
31043
31044         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
31045         bit range Add full UTF-32 support.
31046         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
31047         notify that constraint error will be raised at run-time
31048         because a null value is assigned to a null-excluding object.
31049         Remove some obsolete declarations and make Char_Code
31050         unsigned.
31051
31052         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
31053         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
31054         Rcheck subprograms.
31055
31056         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
31057         wrong null-exclusion value by a warning message.
31058         (Enable_Range_Check): Do range check if the prefix is an
31059         explicit dereference whose designated object is an unconstrained array.
31060         Current algorithm for removing duplicate checks is over-eager in this
31061         case.
31062
31063         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
31064         null-exclusion value by a warning message
31065
31066         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
31067         completely. Add support for Uint2 field
31068
31069         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
31070         exp_prag.adb: Char_Literal_Value field is now a Uint.
31071
31072         * exp_util.adb (Insert_Actions): Replace
31073         N_Formal_Subprogram_Declaration by
31074         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
31075         Char_Literal_Value field is now a Uint.
31076
31077         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
31078         defined for subprogram renaming declarations. When set, the field
31079         indicates the defining entity of a corresponding formal subprogram
31080         when the renaming corresponds to a formal subprogram association in an
31081         instantiation.
31082         (Set_Corresponding_Formal_Spec): New procedure to return
31083         Corresponding_Formal_Spec field.
31084         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
31085         (which is now a subtype).
31086         Char_Literal_Value field is now a Uint
31087
31088         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
31089         pointer to the base of the dispatch table.
31090         Minor changes to comments.
31091         (Controlling_Type): New function for determining the tagged type
31092         associated with a tagged primitive subprogram.
31093         (Expand_Dispatching_Call): Add support for a controlling actual that is
31094         directly a value of type Ada.Tag rather than a tagged object.
31095
31096         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
31097         describing the new layout.
31098         (Dispatch_Table): The expander computes the actual array size, allocates
31099         the Dispatch_Table record accordingly, and generates code that displaces
31100         the base of the record after the Typeinfo_Ptr component. The access to
31101         these components is done by means of local functions.
31102         (Offset_To_Top): New function.
31103         (Typeinfo_Ptr): New function.
31104         (Get_TSD): Modified to access the new position of the TSD.
31105         (Set_TSD): Modified to save the TSD in its new position.
31106
31107         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
31108         case of formal abstract subprograms. Add check and message for -gnat05.
31109         Update comments.
31110
31111         * sem_ch12.adb: Add with and use for Sem_Disp.
31112         (Analyze_Associations): Minor change from "=" to "in" for use of
31113         N_Formal_Subtype_Declaration (which is now a subtype).
31114         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
31115         N_Formal_Subtype_Declaration (which is now a subtype).
31116         (Analyze_Formal_Subprogram): Add handling for
31117         N_Formal_Abstract_Subprogram, marking the formal as abstract and
31118         dispatching, setting the controlling status of the formal parameters
31119         and result, and issuing an error if there is no controlling type for
31120         the formal subprogram.
31121         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
31122         which is an unclean use of that field, we set the new field
31123         Corresponding_Formal_Spec to make the formal subprogram available to
31124         processing in Analyze_Subprogram_Declaration.
31125         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
31126         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
31127         Constrained, so that it is is does not statically match its anonymous
31128         base type.
31129
31130         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
31131         abstract formal subprograms in error check for functions returning
31132         abstract types. Set scope of new designator for
31133         a parameterless subprogram, so that it is available when checking the
31134         body for nested subprograms, before full analysis of said body.
31135         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
31136         subprogram only if inner one comes from source.
31137         (Analyze_Function_Call): If the call is given in object notation, the
31138         analysis of the name rewrites the node and analyzes it with the proper
31139         argument list. After analyzing the name, if the call has been rewritten
31140         and the result type is set, no further analysis is needed.
31141         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
31142         mark in function specification, in a context where the formals are
31143         visible and hide outer homographs.
31144
31145         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
31146         as the tagged type for the cases of abstract formal subprograms and
31147         renamings of those.  Clean up spec comments.
31148         (Check_Dispatching_Context): Add error message to indicate "abstract
31149         procedure", covering the case of a call to a formal abstract procedure
31150         that has statically tagged operands.
31151         (Check_Dispatching_Call): Check for the case of an actual given by
31152         a tag-indeterminate function call whose type is an ancestor of the
31153         containing call's associated tagged type. This situation can occur
31154         for inherited primitives with function defaults. In this case we
31155         use the tagged type's tag directly as the controlling argument for
31156         the calls.
31157         (Expand_Call): Name change on call to Expand_Dispatch_Call.
31158
31159         * sprint.adb (Sprint_Node_Actual): Split
31160         N_Formal_Subprogram_Declaration into two alternatives for the new
31161         cases N_Formal_Abstract_Subprogram_Declaration and
31162         N_Formal_Concrete_Subprogram_Declaration.
31163         Char_Literal_Value field is now a Uint.
31164
31165         * trans.c: Get rid of junk Uint2 reference.
31166         Char_Literal_Value field is now a Uint.
31167         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
31168         (gigi): Correct third arg to gimplify_body.
31169
31170         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
31171         (TYPE_LANG_FLAG_0): Check for record or union.
31172
31173         * treepr.adb: Char_Literal_Value field is now a Uint
31174
31175         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
31176         UI_From_CC.
31177
31178         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
31179         Add full UTF-32 support
31180         Char_Code is now 32 bits
31181
31182         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
31183         wide character UTF_32 line terminators.
31184         Initialize Main_Source_File to avoid error when no main
31185         source is loaded.
31186
31187         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
31188         (Main_Source_File) when no main source has been loaded, to avoid
31189         potential crash.
31190
31191 2005-02-09  Robert Dewar  <dewar@adacore.com>
31192
31193         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
31194         Fix name of Set routine
31195
31196         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
31197         fixed packages.
31198
31199         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
31200         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
31201         fixed packages
31202
31203         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
31204         forms of Get_Line subprograms for AI-301.
31205
31206         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
31207         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
31208         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
31209         a-stwima.ads: Minor reformatting.
31210
31211 2005-02-09  Doug Rupp  <rupp@adacore.com>
31212             Thomas Quinot  <quinot@adacore.com>
31213
31214         * adaint.c, adaint.h
31215         [VMS] (to_ptr32): New function.
31216         (MAYBE_TO_PTR32): New macro.
31217         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
31218         for pointer size.
31219         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
31220         [VMS] (#define fork()): Remove since unneccessary.
31221         (__gnat_set_close_on_exec): New routine to support
31222         GNAT.OS_Lib.Set_Close_On_Exec.
31223
31224         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
31225         the parent side as close-on-exec so that they are not inherited by the
31226         child.
31227
31228         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
31229         set or clear the FD_CLOEXEC flag on a file descriptor.
31230
31231 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
31232             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31233
31234         PR ada/19386
31235         * decl.c:
31236         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
31237         on the field if Pragma Component_Alignment (Storage_Unit).
31238         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
31239         side-effects as if it were a constant; also make SAVE_EXPR to protect
31240         side-effects.
31241         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
31242         UNION_TYPE.
31243         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
31244         (components_to_record): Test it.
31245         Fix improper usage of REFERENCE_CLASS_P.
31246
31247         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
31248         RECORD_TYPE.
31249
31250         * utils2.c: Minor reformatting.
31251
31252         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
31253         handle other cases like RECORD_TYPE.
31254
31255         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
31256
31257 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31258
31259         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
31260         component of an array of arrays in an assignment context, and the
31261         aggregate has component associations that require sliding on
31262         assignment, force reanalysis of the aggregate to generate a temporary
31263         before the assignment.
31264         (Must_Slide): Make global to the package, for use in Gen_Assign.
31265
31266 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31267
31268         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
31269         unchecked union with no inferable discriminants, return a
31270         Raise_Program_Error node, rather than inserting it at the point the
31271         type is frozen.
31272         (Expand_Record_Equality, Component_Equality): Handle properly the case
31273         where some subcomponent is an unchecked union whose generated equality
31274         code raises program error.
31275
31276 2005-02-09  Doug Rupp  <rupp@adacore.com>
31277
31278         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
31279         [VMS] (#define exit hack): Remove.
31280
31281 2005-02-09  Pascal Obry  <obry@adacore.com>
31282             Arnaud Charlet  <charlet@adacore.com>
31283
31284         * init.c (__gnat_initialize): Add a new parameter eh which contains the
31285         address of the exception registration. The Win32 version of this
31286         routine calls __gnat_install_SEH_handler() to initialize the SEH
31287         (Structured Exception Handling) handler.
31288         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
31289         SEH (Structured Exception Handling) now.
31290         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
31291         (__gnat_initialize for ppc-vxworks): Adjust comments and the
31292         preprocessor condition protecting the call to the extra eh setup
31293         subprogram, which is only available for the ppc target.
31294         (__gnat_clear_exception_count): replaced reference to
31295         variable taskIdCurrent by call to taskIdSelf(), cleaner.
31296
31297         * seh_init.c: New file.
31298
31299         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
31300         (GNATBIND_OBJS): Idem.
31301
31302         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
31303         routine takes a new parameter (a pointer to the exception registration
31304         for the SEH (Structured Exception Handling) support.
31305
31306         * raise.h: (__gnat_install_SEH_handler): New prototype.
31307         Update copyright notice.
31308
31309         * s-tassta.adb (Task_Wrapper): Declare the exception registration
31310         record and initialize it by calling __gnat_install_SEH_handler.
31311
31312 2005-02-09  Vincent Celier  <celier@adacore.com>
31313
31314         * make.adb (Gnatmake): Do not fail when the main project has no object
31315         directory.
31316
31317 2005-02-09  Doug Rupp  <rupp@adacore.com>
31318
31319         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
31320         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
31321         [VMS]: Add translations for g-enblsp.adb.
31322
31323         * s-asthan-vms.adb: Removed.
31324         * s-asthan-vms-alpha.adb: Added.
31325
31326 2005-02-09  Pascal Obry  <obry@adacore.com>
31327
31328         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
31329         (LIBGNAT_OBJS): Add seh_init.o.
31330
31331 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31332
31333         PR ada/16592
31334         * Makefile.in: Link all gnat tools with -static-libgcc, since
31335         -shared-libgcc is now used by default on some systems (e.g. linux with
31336         recent binutils).
31337         Remove references to Makefile.prolog/generic, no longer used.
31338
31339 2005-02-09  Vincent Celier  <celier@adacore.com>
31340
31341         * prj-makr.adb (Process_Directory): Put file name in canonical case
31342         before matching against the patterns.
31343         If gnatname has been invoked as <prefix>-gnatname
31344         then invoke the compiler as <prefix>-gcc, not just "gcc".
31345
31346 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31347
31348         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
31349         with expansion disabled. The actual subtype is needed among other
31350         places when the selected component appears in the context of a loop
31351         bound, and denotes a packed array.
31352         (Operator_Check): Always use the first subtype in the
31353         error message, to avoid the appearance of internal base types.
31354         (Transform_Object_Operation): Copy each actual in full
31355         to the parameter associations of the constructed call, rather than
31356         using the shallow copy mechanism of New_Copy_List. This ensures that
31357         the chaining of named associations is done properly.
31358         (Complete_Object_Operation): Rewrite node, rather than
31359         replacing it, so that we can trace back to the original selected
31360         component.
31361
31362         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
31363         and calls that use object notation, if the called function is not
31364         declared  in a withed unit, place the elaboration constraint on the
31365         unit in the context that makes the function accessible.
31366         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
31367         imposes an elaboration constraint between two packages.
31368
31369 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
31370
31371         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
31372         views of a private type after handling its private dependents, to
31373         maintain proper stack discipline between entry and exit from the
31374         package.
31375
31376 2005-02-09  Cyrille Comar  <comar@adacore.com>
31377
31378         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
31379         Minor reformatting.
31380
31381 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31382
31383         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
31384         fields for foreign threads.
31385
31386 2005-02-09  Doug Rupp  <rupp@adacore.com>
31387
31388         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
31389         recursion warnings when compiled with -gnatdm.
31390
31391 2005-02-09  Robert Dewar  <dewar@adacore.com>
31392
31393         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
31394         Slight fix to documentation of -gnaty with no parameters
31395
31396         * xr_tabls.ads: Add ??? comment for missing overall comment
31397
31398         * xsinfo.adb: Make default file name be sinfo.h, since this is what
31399         we now use by default.
31400
31401         * xsnames.adb: Adjust end of file test to look for five space followed
31402         by '#' instead of six spaces. The format of xsnames.adb was modified
31403         in the last update.
31404
31405         * a-numeri.ads: Add reference to AI-388 for greek letter pi
31406         identifier.
31407
31408         * clean.adb: Minor reformatting.
31409
31410         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
31411         gnatname.adb: Minor reformatting
31412         Add 2005 to copyright output when utility is run
31413
31414         * csets.adb: Eliminate obsolete comment
31415
31416         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
31417         Update comments.
31418
31419         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
31420
31421 2005-02-09  Sergey Rybin  <rybin@adacore.com>
31422
31423         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
31424         the difference between compact and incompact layout and add the record
31425         representation clause to the example illustrating different layouts.
31426         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
31427         component clauses").
31428
31429 2005-02-09  Florian Villoing  <villoing@adacore.com>
31430
31431         * gnat_ugn.texi: Fix typos.
31432         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
31433         @file.
31434         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
31435         in the generated documentation.
31436
31437 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31438
31439         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
31440         longer supported.
31441         Update linker wrapper when linking with non GNU C++.
31442
31443 2005-02-09  Pascal Obry  <obry@adacore.com>
31444
31445         * gnat_ugn.texi:
31446         Document the procedure to debug the DllMain routine on Windows.
31447         Add note about -funwind-tables and mixed Ada and C/C++ programming in
31448         ZCX mode.
31449         Document new BIND qualifer /RETURN_CODES=VMS.
31450
31451 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
31452
31453         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31454         Edited gnatmetric chapter
31455
31456 2005-02-09  Robert Dewar  <dewar@adacore.com>
31457
31458         * gnat_rm.texi:
31459         Changes to document new wide wide character support
31460         For AI-285
31461         Update documentation on Normalize_Scalars and Initialize_Scalars
31462
31463 2005-02-09  Pascal Obry  <obry@adacore.com>
31464
31465         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
31466
31467 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
31468
31469         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
31470         from the VxWorks kernel) that is needed for getting the active
31471         priority of the different tasks.
31472
31473         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
31474         Use a pragma Elaborate_Body in the spec file instead.
31475         Noticed by code reading.
31476
31477 2005-02-09  Thomas Quinot  <quinot@adacore.com>
31478
31479         * exp_util.ads: Minor correction in comment.
31480
31481 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31482
31483         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
31484         since this procedure is now too complex to be worth inlining.
31485
31486 2005-02-09  Richard Henderson  <rth@redhat.com>
31487
31488         * utils.c (gnat_define_builtin): Remove.
31489         (gnat_install_builtins): Use build_common_builtin_nodes.
31490
31491 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
31492
31493         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
31494         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
31495         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
31496         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
31497         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
31498         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
31499         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
31500         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
31501         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
31502         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
31503         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
31504         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
31505         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
31506         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
31507         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
31508         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
31509         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
31510         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
31511         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
31512         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
31513         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
31514         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
31515         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
31516         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
31517         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
31518         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
31519         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
31520         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
31521         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
31522         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
31523         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
31524         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
31525         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
31526         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
31527         library.
31528
31529 2005-01-27  Laurent Guerby  <laurent@guerby.net>
31530
31531         * Makefile.in: Fix a-intnam.ads from previous commit,
31532         add 2005 to copyright.
31533         * a-intman-rtems.ads: Renamed to...
31534         * a-intnam-rtems.ads:
31535
31536 2005-01-27  Laurent Guerby  <laurent@guerby.net>
31537
31538         * Makefile.in: Rename GNAT RTEMS specific files.
31539         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
31540         5rosinte.ads, 5rparame.adb: Replaced by files below.
31541         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
31542         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
31543
31544 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
31545             Laurent Guerby  <laurent@guerby.net>
31546
31547         PR ada/19488
31548         * 5rosinte.ads: Add No_Key constant.
31549         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
31550         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
31551
31552 2005-01-26  Laurent Guerby  <laurent@guerby.net>
31553
31554         PR ada/19414
31555         * i-cobol.adb (Valid_Numeric): Handle zero length case.
31556
31557 2005-01-20  Richard Henderson  <rth@redhat.com>
31558
31559         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
31560         a-intnam-linux.ads and system-linux-alpha.ads.
31561         * a-intnam-linux-alpha.ads: Remove file.
31562         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
31563         * system-linux-alpha.ads: New file.
31564
31565 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
31566
31567         PR ada/13470
31568         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
31569         set to the new string.
31570
31571 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
31572
31573         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
31574         to True.
31575
31576 2005-01-18  Richard Henderson  <rth@redhat.com>
31577
31578         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
31579         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
31580         for alpha-linux.
31581         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
31582
31583 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
31584
31585         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
31586         (GCC_ZCX_Support): Likewise.
31587
31588 2005-01-11  Bastian Blank  <waldi@debian.org>
31589
31590         * system-linux-s390.ads: Define Preallocated_Stacks.
31591         * system-linux-s390x.ads: Likewise.
31592
31593 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
31594
31595         * gnat_ugn.texi: Fix texi errors with null variables.
31596
31597 2005-01-03  Thomas Quinot  <quinot@adacore.com>
31598
31599         * gen-soccon.c: New utility program to generate g-soccon.ads
31600         automatically.
31601
31602         * socket.c, gsocket.h: Split inclusion of system header files into a
31603         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
31604
31605         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
31606         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31607         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
31608         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
31609         should not be edited by hand anymore, but should be regenerated using
31610         gen-soccon.
31611
31612 2005-01-03  Robert Dewar  <dewar@adacore.com>
31613             Ed Schonberg  <schonberg@adacore.com>
31614             Vincent Celier  <celier@adacore.com>
31615
31616         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
31617         on/off, since this is an obsolescent feature, for which we now generate
31618         a warning.
31619
31620         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
31621         warning mode is set and obsolescent usage of this attribute occurs.
31622         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
31623         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
31624         predates, and partly motivates, the adoption of the AI.
31625         Implement new Ada 2005 attribute Mod
31626
31627         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
31628         attribute Mod.
31629
31630         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
31631
31632         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
31633         pragma restrictions.
31634         New entry for Ada 2005 attribute Mod.
31635
31636         * par-prag.adb:
31637         Add recognition of new pragma Restrictions No_Dependence
31638         Recognize restriction No_Obsolescent_Features at parse time
31639
31640         * bcheck.adb: Add circuitry for checking for consistency of
31641         No_Dependence restrictions.
31642
31643         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
31644         restrictions.
31645
31646         * restrict.ads, restrict.adb: Add subprograms to deal with
31647         No_Dependence restrictions.
31648
31649         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
31650         restrictions.
31651
31652         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
31653         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
31654
31655         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
31656         dummy parameter to scng instantiation.
31657         Needed for new restriction No_Obsolescent_Features
31658
31659         * scn.adb: (Obsolescent_Check): New procedure
31660         Needed for new restriction No_Obsolescent_Features
31661
31662         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
31663         specified by AI-285, needed for implementation of AI-388 (adding greek
31664         pi to Ada.Numerics).
31665         Add new generic formal to scng, needed for new restriction
31666         No_Obsolescent_Features.
31667
31668         * s-rident.ads: Add new restriction No_Obsolescent_Features.
31669
31670         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
31671         restrictions lines.
31672         (Scan_ALI): When finding an unexpected character on an R line, raise
31673         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
31674         Ignore_Errors is True, default restrictions are set and scanning of the
31675         ALI file continues with the next line. Also, when Bad_R_Line is raised
31676         and Ignore_Errors is True, skip to the end of le line.
31677
31678         * sem_ch10.adb: Check that explicit with's do not violate
31679         No_Dependence restrictions.
31680         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
31681         illegal context clauses containing child units of instance.
31682
31683         * sem_prag.adb: Processing and checking for new No_Dependence
31684         restrictions.
31685         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
31686         analyze and check the External argument.
31687
31688         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
31689
31690 2005-01-03  Robert Dewar  <dewar@adacore.com>
31691
31692         * atree.adb: Add a fifth component to entities
31693         This allows us to add 32 flags and four new fields
31694
31695         * atree.ads: Add a fifth component to entities
31696         This allows us to add 32 flags and four new fields
31697
31698         * einfo.ads, einfo.adb: Document new fields and new flags now available
31699         Add routines for printing new fields
31700
31701         * treepr.adb: Call routines to print out additional fields if present
31702
31703 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
31704
31705         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
31706         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
31707
31708         * Makefile.in: Add support to build shared Ada libraries on solaris x86
31709         Remove gpr2make, replaced by gprmake.
31710         Remove references to gnatmem and libaddr2line.
31711         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
31712         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
31713         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
31714         a-numaux-darwin.ads and a-numaux-darwin.adb
31715         Enable mlib-tgt-lynxos.adb on lynxos.
31716
31717         * Make-lang.in: Remove rules for gpr2make.
31718         When generating sdefault.adb, do not call Relocate_Path
31719         on S3 for function Target_Name, as it is not a path.
31720         Remove references to gnatmem and libaddr2line.
31721
31722         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
31723         files.
31724
31725 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
31726
31727         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
31728         address is incompatible with its base type alignment constraints when
31729         this can be decided statically.
31730
31731 2005-01-03  Olivier Hainque  <hainque@adacore.com>
31732
31733         * decl.c (compatible_signatures_p): New function. The intended purpose
31734         is to check if two function signatures for a call-site and a callee are
31735         compatible enough for the call to be valid. The underlying purpose is
31736         to check if a call to a mapped builtin is using the right interface.
31737         The current code actually does not check antyhing - this a placeholder
31738         for future refinements.
31739         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
31740         builtin calls for convention Intrinsic.
31741
31742         * gigi.h (builtin_decl_for): Declare (new function).
31743
31744         * utils.c (gnat_install_builtins): Install the target specific builtins.
31745         (builtin_decl_for): New function, provide a dummy body for now.
31746
31747 2005-01-03  Geert Bosch  <bosch@adacore.com>
31748
31749         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
31750         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
31751         (Pred): Implement in terms of Succ.
31752
31753         * trans.c (convert_with_check): Reimplement conversion of float to
31754         integer.
31755
31756 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
31757             Vincent Celier  <celier@adacore.com>
31758
31759         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
31760         bounds can be negative, and must be declared Int, not Nat.
31761
31762         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
31763         array is checked after using the index in the array.
31764
31765         * makegpr.adb (Add_Switches): Check if there is a package for the
31766         processor. If there is no package, do not look for switches.
31767
31768 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
31769
31770         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
31771         generation of predefined stream operations (specs and bodies) should
31772         proceed. Under various restrictions these subprograms must not be
31773         generated.
31774
31775 2005-01-03  Thomas Quinot  <quinot@adacore.com>
31776
31777         * exp_dist.adb:
31778         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
31779         amount of PCS-specific code in RACW stubs generation.
31780         (Copy_Specification): Set Etype on copied formal parameter entities, as
31781         this information is needed for PolyORB stubs generation.
31782         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
31783         variable Dynamic_Async.
31784         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
31785         (Build_RPC_Receiver_Specification): Make generic again, as recent
31786         changes have allowed RPC receivers to have the same profile for both
31787         variants of the PCS.
31788         Reorganise RPC receiver generation to reduce differences between the
31789         structure of GARLIC and PolyORB RPC receivers.
31790         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
31791         PCS-specific.
31792         Simplify elaboration code for RCI packages.
31793
31794         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
31795         generation to reduce differences between the structure of GARLIC and
31796         PolyORB RPC receivers.
31797
31798         * s-stratt.adb: Fix typo in comment.
31799
31800 2005-01-03  Thomas Quinot  <quinot@adacore.com>
31801
31802         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
31803         copied from Make_Init_Call).
31804
31805         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
31806         reads and assignments on a temporary variable declared with appropriate
31807         discriminants.
31808
31809 2005-01-03  Robert Dewar  <dewar@adacore.com>
31810
31811         * i-c.adb (To_C): Raise CE if string is null and Append_Null
31812
31813 2005-01-03  Robert Dewar  <dewar@adacore.com>
31814
31815         * i-cstrin.adb (Update): Do not append a null in form called with a
31816         String. This avoids unintended behavior.
31817
31818 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
31819
31820         PR ada/17527
31821         * init.c: Fix warnings on Free BSD section.
31822
31823 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
31824
31825         PR ada/16949
31826         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
31827         xsinfo.adb).
31828
31829 2005-01-03  Vincent Celier  <celier@adacore.com>
31830
31831         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
31832         libraries when Unique_Compile is True (-u switch).
31833         (Gnatmake): ditto.
31834
31835 2005-01-03  Robert Dewar  <dewar@adacore.com>
31836
31837         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
31838         upper case letter or underscore after W, as allowed by spec.
31839
31840 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
31841
31842         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
31843         darwin port by using proper type definitions from header files.
31844         Use SIGTERM instead of SIGABRT for SIGADAABORT.
31845
31846 2005-01-03  Robert Dewar  <dewar@adacore.com>
31847
31848         * par.adb: Enhance error message handling for configuration file
31849         pragmas.
31850
31851 2005-01-03  Robert Dewar  <dewar@adacore.com>
31852
31853         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
31854         removed during the previous update (test properly for case of dividing
31855         largest negative number by -1, which generates overflow).
31856
31857 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
31858             Sergey Rybin  <rybin@adacore.com>
31859
31860         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
31861         to use as the defining identifier for a formal package.
31862         (Remove_Parent): If the instance takes place within (an instance of)
31863         a sibling, preserve private declarations of common parent.
31864
31865 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
31866
31867         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
31868         to determine whether one of the operands is a fixed-point type for
31869         which a user-defined multiplication or division operation might be
31870         defined.
31871
31872         * sem_res.adb (Valid_Conversion): The legality rules for conversions
31873         of access types are symmetric in Ada 2005: either designated type can
31874         be unconstrained.
31875
31876 2005-01-03  Vincent Celier  <celier@adacore.com>
31877
31878         * s-fileio.adb (Temp_File_Record): Change length of string component
31879         Name from L_tmpnam + 1 to max_path_len + 1.
31880
31881 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
31882
31883         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
31884         Self_Id.Deferral_Level = 0.
31885         (Do_Pending_Action): Move this function to the spec.
31886
31887         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
31888         Do_Pending_Action explicitely when needed, in case we're using
31889         No_Abort restrictions.
31890
31891         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
31892         deferral level since it will not get changed by the generated code.
31893         Keeping a default value of 1 would prevent some operations (e.g.
31894         select or delay) to proceed successfully.
31895
31896 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
31897             Robert Dewar  <dewar@adacore.com>
31898             Cyrille Comar  <comar@adacore.com>
31899
31900         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
31901         porting guide chapter (vms version).
31902         Revised doc title (removed "for native platforms") and subtitle.
31903         Add discussion on warning flag for obsolescent features. First we
31904         note that it applies to obsolete GNAT features, which was previously
31905         omitted. Second we contrast the behavior with that of the new
31906         Ada 2005 AI-368 restriction No_Obsolescent_Features.
31907         Preliminary rewriting of GNAT & libraries chapter in order to take
31908         into account default project locations & new project manager
31909         capabilities.
31910
31911 2005-01-03  Robert Dewar  <dewar@adacore.com>
31912
31913         * cstand.adb (Create_Operators): Clean up format and documentation of
31914         unary and binary operator result tables. No change in code, just
31915         reformatting and addition of comments.
31916
31917         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
31918         sem_ch2.adb: Minor reformatting
31919
31920         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
31921         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
31922         comments for Tree_Read and Tree_Write.
31923
31924 2005-01-03  Pascal Obry  <obry@adacore.com>
31925
31926         * exp_attr.ads: Minor reformatting.
31927
31928 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
31929
31930         * comperr.adb (Compiler_Abort): Add specialized message for GAP
31931         versions.
31932
31933 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
31934
31935         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
31936         whether the ancestor type is private, as may be the case with nested
31937         instantiations.
31938
31939 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
31940
31941         PR ada/19128
31942         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
31943
31944 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
31945
31946         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
31947         * utils2.c (build_unary_op): Likewise.
31948
31949 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31950
31951         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
31952
31953 2004-12-19  Richard Henderson  <rth@redhat.com>
31954
31955         * trans.c (gigi): Update gimplify_body call.
31956
31957 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
31958
31959         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
31960
31961 2004-12-07  Ed Falis  <falis@adacore.com>
31962
31963         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
31964         current task being suspended.
31965
31966         * init.c (__gnat_clear_exception): added to reset VxWorks exception
31967         count.
31968         (__gnat_map_signal): removed test for current task being suspended.
31969
31970 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
31971
31972         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
31973         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
31974         targets (such as AAMP).
31975
31976 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
31977
31978         * atree.adb (Visit_Itype): Create a new name for the generated itype,
31979         because the back-end may otherwise treat it as a redefinition of the
31980         old symbol.
31981
31982 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
31983
31984         * back_end.adb (Scan_Back_End_Switches): Accept --param.
31985
31986         * lang-specs.h: Accept --param.
31987
31988 2004-12-07  Vincent Celier  <celier@adacore.com>
31989
31990         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
31991         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
31992         Current_Body_Suffix => Ada_Body_Suffix).
31993         Take into account Externally_Built attribute.
31994
31995         * clean.adb (In_Extension_Chain): Always return False when one of the
31996         parameter is No_Project.
31997         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
31998         Ada_Language_Index).
31999         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
32000         Process_Languages for procedure Parse).
32001
32002         * gnatcmd.adb (Carg_Switches): New table.
32003         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
32004         Adapt to name changes in package Prj (Current_Spec_Suffix =>
32005         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
32006
32007         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
32008         Header_Num and function Hash are now declared in package Prj,
32009         not Prj.Com.
32010
32011         * prj.adb (Suffix_Of): New function.
32012         (Set (Suffix)): New procedure.
32013         (Hash): One function moved from Prj.Com
32014         (Is_Present, Language_Processing_Data_Of): New functions
32015         (Set): Two new procedures
32016         (Add_Language_Name, Display_Language_Name): New procedures
32017
32018         * prj.ads: (Suffix_Of): New function
32019         (Set (Suffix)): New procedure
32020         Add several types and tables for multi-language support.
32021         (Header_Num): Type moved from Prj.Com
32022         (Hash): Two functions moved from Prj.Com
32023         (Is_Present, Language_Processing_Data_Of): New functions
32024         (Set): Two new procedures
32025         (Add_Language_Name, Display_Language_Name): New procedures
32026         (Naming): Component name changes:
32027         Current_Spec_Suffix => Ada_Spec_Suffix,
32028         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
32029         Impl_Suffixes, Supp_Suffixes.
32030         (Project_Data): New components: Externally_Built, Supp_Languages,
32031         First_Language_Processing, Supp_Language_Processing, Default_Linker,
32032         Default_Linker_Path.
32033
32034         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
32035         new package Language_Processing with its attributes (Compiler_Driver,
32036         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
32037         Binder_Driver, Default_Linker).
32038
32039         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
32040         (Header_Num): Type moved to package Prj
32041
32042         * prj-env.adb: Adapt to name changes in package Prj
32043         (Current_Spec_Suffix => Ada_Spec_Suffix,
32044         Current_Body_Suffix => Ada_Body_Suffix).
32045
32046         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
32047         default to the project path, except the "-" is one of the directories
32048         in env var ADA_PROJECT_PATH.
32049         (Current_Project_Path): Global variable, replacing Project_Path
32050         that was in the body of Prj.Part.
32051         (Project_Path): New function
32052         (Set_Project_Path): New procedure
32053         Initialize Current_Project_Path during elaboration of the package
32054         Remove dependency on Prj.Com, no longer needed
32055
32056         * prj-ext.ads (Project_Path): New function
32057         (Set_Project_Path): New procedure
32058
32059         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
32060         suffix is defined for language <lang>.
32061         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
32062         accessing directly the components of Naming.
32063         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
32064         Reorganise of this package.
32065         Break procedure Check in several procedures.
32066
32067         * prj-nmsc.ads: Replace all procedures (Ada_Check,
32068         Other_Languages_Check and Language_Independent_Check) with a single
32069         procedure Check.
32070
32071         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
32072         Process_Languages, no longer needed.
32073
32074         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
32075         Current_Project_Path.
32076         Remove elaboration code, moved to the body of Prj.Ext
32077         Use new function Prj.Ext.Project_Path instead of old variable
32078         Project_Path.
32079         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
32080         When comparing with project paths on the stack, first put the resolved
32081         path in canonical case.
32082         (Parse_Single_Project): Set the path name of the project file in the
32083         tree to the normalized path.
32084
32085         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
32086         parameter Process_Languages, no longer needed.
32087         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
32088         Other_Languages_Check.
32089
32090         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
32091         to store the resolved canonical path of the project file.
32092         Remove dependency to Prj.Com, no longer needed
32093
32094         * prj-util.adb: Adapt to name changes in package Prj
32095         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
32096         Ada_Body_Suffix).
32097
32098         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
32099         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
32100         Externally_Built, Include_Option, Language_Processing.
32101
32102         * makegpr.adb: Numerous changes due to changes in packages
32103         Prj and Prj.Nmsc.
32104
32105         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
32106         default to the project path, except whe "-" is one of the directories
32107         in env var ADA_PROJECT_PATH.
32108         (Gnatls): In verbose mode, add the new section "Project Search Path:"
32109
32110 2004-12-07  Robert Dewar  <dewar@adacore.com>
32111
32112         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
32113
32114         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
32115         set -gnatR3m mode.
32116
32117         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
32118         flag. No longer needed now that we handle this in gnat1drv.adb.
32119
32120         * repinfo.ads: Minor reformatting
32121
32122 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32123             Olivier Hainque  <hainque@adacore.com>
32124             Eric Botcazou  <ebotcazou@adacore.com>
32125
32126         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
32127         TYPE_SIZE_UNIT of result type if SIZE is not specified.
32128         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
32129         of a bitfield, which we know is useless and causes trouble because of
32130         alignment implications.
32131
32132         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
32133         BSS sections.
32134         (process_attributes): Clear DECL_COMMON again when a section attribute
32135         is present.
32136         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
32137         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
32138         (create_field_decl): Special case ADDRESSABLE negative to mean
32139         "no bitfield creation", to be used by make_aligning_type. Don't
32140         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
32141         fields claimed addressable still have to be bitfields. Use
32142         value_factor_p instead of a raw binop construction to check for the
32143         position's alignment.
32144
32145 2004-12-07  Geert Bosch  <bosch@adacore.com>
32146
32147         * eval_fat.adb: Revert previous change.
32148
32149 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32150             Ed Schonberg  <schonberg@adacore.com>
32151
32152         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
32153         with an implicit dereference as its prefix, use
32154         Insert_Explicit_Dereference instead of merely rewriting the prefix into
32155         an explicit dereference. This ensures that a reference to the original
32156         prefix is generated, if appropriate.
32157
32158         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
32159         dereference is rewritten to an explicit one, generate a reference to
32160         the entity denoted by its prefix using the original prefix node, so
32161         the dereference can be properly recorded as a read of the denoted
32162         access value, if appropriate.
32163
32164         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
32165         emitting 'assigned but never read' warning on a variable on the basis
32166         that it has an access type.
32167         (Check_References): Emit unreferenced warning when the scope is a
32168         subprogram body.
32169
32170 2004-12-07  Robert Dewar  <dewar@adacore.com>
32171             Ed Schonberg  <schonberg@adacore.com>
32172
32173         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
32174         intrinsic
32175
32176         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
32177         leaving call unchanged.
32178         This deals with the case where the pragma Import specified
32179         an external name, to be handled by the back end.
32180
32181         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
32182         subprogram which is Imported with convention Intrinsic if an
32183         External_Name argument is specified.
32184         (Process_Import_Or_Interface): Properly diagnose link name argument.
32185         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
32186         with Sem_Ch6.Cannot_Inline.
32187         (Process_Inline): Provide separate warning for inapplicable inline
32188         pragma.
32189         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
32190         treatment is uniform on different targets.
32191
32192 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
32193
32194         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
32195         construct is rewritten, preserve end label to permit source navigation.
32196
32197 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32198
32199         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
32200         Specific_Build_Stub_Target): New subprograms.
32201         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
32202         the PCS implementation used, using the above PCS-customized subprograms.
32203         Minor reformatting.
32204         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
32205         for generation of DSA code targeted to the PolyORB PCS.
32206         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
32207         implementation of the partition communication subsystem in ancillary
32208         subprograms.
32209         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
32210         PolyORB_Support.Build_Stub_Type): New subrograms containing the
32211         PCS-specific part of Add_Stub_Type.
32212         (Insert_Partition_Check): Use runtime library function to perform
32213         E.4(19) check.
32214
32215         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
32216         (RE_Same_Partition): New entity, from s-parint.
32217
32218         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
32219
32220 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
32221
32222         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
32223         Output the copyright message on a separate line from the version
32224         message.
32225
32226 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
32227
32228         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
32229         compile-time warning.
32230
32231 2004-12-07  Robert Dewar  <dewar@adacore.com>
32232
32233         * g-regpat.adb: (Match): Change a misuse of or to or else
32234
32235 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
32236
32237         * lib-xref.adb:
32238         (Generate_Reference): Handle properly a reference to an entry formal,
32239          when an accept statement has a pragma Unreferenced for it.
32240
32241         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
32242         and the Has_Pragma_Unreferenced flag for each formal before analyzing
32243         the body, to ensure that warnings are properly emitted for each accept
32244         statement of a given task entry.
32245
32246 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
32247
32248         * Makefile.in: Add support for foreign threads on VMS.
32249
32250 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32251
32252         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
32253         Remove.
32254         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
32255
32256         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
32257
32258         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
32259         exception.
32260         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
32261
32262 2004-12-07  Robert Dewar  <dewar@adacore.com>
32263
32264         * nlists.adb (Prepend_Debug): Remove parameters and nest within
32265         Prepend.
32266         (Remove_Next_Debug): Same fix
32267
32268         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
32269         maintain back pointers now, though we did not used to, and comments
32270         were out of date).
32271         (Prepend): Remove pragma Inline.
32272         (Remove_Next): Same cleanup
32273
32274 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32275
32276         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
32277         used to record an implicit dereference as a read operation on its
32278         prefix when operating under -gnatc. Necessary to avoid spurious
32279         'variable assigned but never read' warnings in that mode.
32280         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
32281         is a non-overloaded implicit dereference, call the above subprogram to
32282         ensure proper recording of references.
32283
32284 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
32285
32286         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
32287         to be resolved later as part of Analyze_Iteration_Scheme's call to
32288         Make_Index.
32289
32290 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
32291
32292         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
32293         prefix is not a scalar type, place error message on prefix, not on
32294         type entity.
32295
32296 2004-12-07  Bernard Banner  <banner@adacore.com>
32297
32298         * vxaddr2line.adb: Add support for x86 vxworks
32299
32300 2004-12-07  Thomas Quinot  <quinot@adacore.com>
32301
32302         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
32303         documentation of the behaviour of these functions when passed an IP
32304         address that has no record in the system hosts database and no reverse
32305         record in the DNS.
32306
32307         * cstand.adb, a-tags.ads: Fix typos in comment.
32308
32309 2004-12-07  Robert Dewar  <dewar@adacore.com>
32310
32311         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
32312         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
32313         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
32314         s-poosiz.ads: Minor reformatting
32315
32316         * make.adb: Minor reformatting
32317         Add some ??? comments asking for more comments
32318
32319         * s-poosiz.adb: Minor reformatting
32320         Add comments on alignment requirement
32321
32322         * sinfo.ads: Remove obsolete comment and fix typo.
32323
32324 2004-12-07  Vincent Celier  <celier@adacore.com>
32325             Sergey Rybin  <rybin@adacore.com>
32326
32327         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
32328         Files" with the new tool and package names.
32329         Reformatting to suppress most of the warnings for line too long
32330         Document the new section "Project Search Path:" in the output of
32331         gnatls -v.
32332         Add gnatmetric section
32333
32334 2004-12-07  Vincent Celier  <celier@adacore.com>
32335
32336         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
32337         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
32338         and -eit to -ept. Added qualifier
32339         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
32340
32341 2004-11-27  Andreas Schwab  <schwab@suse.de>
32342
32343         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
32344
32345 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
32346
32347         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
32348         internal implementation unit GNAT.Sockets.Thin,
32349         as their usage for sockets is non-portable (using the read and write
32350         functions from the system runtime library is fine on UNIX but won't
32351         work under Windows).
32352
32353         * mingw32.h: Update copyright notice.
32354
32355 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
32356
32357         * ada-tree.h: Minor reformatting of previous change to avoid lines
32358         longer than 79 characters.
32359
32360 2004-11-25  Olivier Hainque  <hainque@adacore.com>
32361
32362         * tb-gcc.c: GCC infrastructure based implementation of
32363         __gnat_backtrace.
32364
32365 2004-11-24  Steven Bosscher  <stevenb@suse.de>
32366
32367         * misc.c (gnat_post_options): Don't clear
32368         flag_inline_functions.
32369
32370 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
32371
32372         PR ada/17986
32373         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
32374         tree.
32375
32376 2004-11-21  Andreas Jaeger  <aj@suse.de>
32377
32378         * stylesw.adb: Change Style_Check_Subprogram_Order to
32379         Style_Check_Order_Subprograms.
32380
32381 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
32382
32383         * adaint.h, adaint.c
32384         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
32385         to avoid warnings.
32386         Add also a cast to kill another warning.
32387         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
32388         parameter with the priority class of the parent process instead of
32389         always using the NORMAL_PRIORITY_CLASS.
32390         (__gnat_dup): New function.
32391         (__gnat_dup2): New function.
32392         (__gnat_is_symbolic_link): Enable the effective body of this
32393         function when __APPLE__ is defined.
32394
32395         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
32396         Update comments.
32397
32398 2004-11-18  Olivier Hainque  <hainque@adacore.com>
32399
32400         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
32401         address of which may be used to represent "others" and "all others"
32402         choices in exception tables, instead of the current harcoded
32403         (void *)0 and (void *)1.
32404         (Setup_Exception): Do nothing in the GNAT SJLJ case.
32405
32406         * gigi.h (others_decl, all_others_decl): New decls representing the
32407         new Others_Value and All_Others_Value objects.
32408         (struct attrib): Rename "arg" component as "args", since GCC expects a
32409         list of arguments in there.
32410
32411         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
32412         corresponding objects exported by a-exexpr, instead of hardcoded dummy
32413         addresses.
32414
32415         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
32416         others_decl and all_others_decl instead of hardcoded dummy addresses
32417         to represent "others" and "all others" choices, which is cleaner and
32418         more flexible with respect to the possible eh pointer encoding policies.
32419
32420         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
32421         (process_attributes): Account for the naming change of the "args"
32422         attribute list entry component.
32423
32424         * decl.c (build_attr_list): Rename into prepend_attributes to allow
32425         cumulating attributes for different entities into a single list.
32426         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
32427         attributes for the current entity and propagate first subtype
32428         attributes to other subtypes.
32429         <E_Procedure>: Attribute arguments are attr->args and not
32430         attr->arg any more.
32431         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
32432         argument provided, as this is what GCC expects. Use NULL_TREE instead
32433         of 0 for trees.
32434
32435 2004-11-18  Robert Dewar  <dewar@adacore.com>
32436
32437         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
32438         Minor reformatting througout (including new function specs)
32439         Add ??? comments asking for clarification.
32440
32441 2004-11-18  Thomas Quinot  <quinot@adacore.com>
32442
32443         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
32444         incomplete duplicate implementation of this subprogram from butil.
32445
32446 2004-11-18  Thomas Quinot  <quinot@adacore.com>
32447
32448         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
32449         procedures factors the common processing for building an RPC receiver
32450         for an RCI package or an RACW type.
32451         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
32452         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
32453         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
32454         in use.
32455         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
32456         Add_RACW_Features.
32457         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
32458         Add_RAST_Features.
32459         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
32460         distribution subprogram identifiers that are either subprogram numbers
32461         or strings.
32462         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
32463         string distribution identifiers assigned to a given subprogram.
32464         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
32465         (Add_RAS_Dereference_TSS): Add comments.
32466         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
32467         is not referenced yet because it will be used by the PolyORB DSA
32468         implementation.
32469         (Insert_Partition_Check): Remove fossile code.
32470         (First_RCI_Subprogram_Id): Document this constant.
32471         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
32472         RAS_Access TSS.
32473         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
32474         replaced with calls to Get_Library_Unit_Name_String. Previously there
32475         were several instances of the same code in different locations in the
32476         compiler; this checkin completes the replacement of all of these
32477         instances with calls to a common subprogram.
32478         Minor reformatting.
32479
32480         * sem_dist.adb: Remove comment noting that RPC receiver generation
32481         should be disabled for RACWs that implement RASs.
32482         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
32483
32484         * sem_util.ads, sem_util.adb (Has_Stream): New function
32485         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
32486         qualified name of a library unit into the name buffer.
32487         (Note_Possible_Modification): Generate a reference only
32488         if the context comes from source.
32489
32490         * snames.ads (PCS_Names): New subtype corresponding to names of
32491         supported implementations of the Partition Communication Subsystem
32492         (PCS) (i.e. the runtime library support modules for the distributed
32493         systems annex).
32494
32495 2004-11-18  Robert Dewar  <dewar@adacore.com>
32496             Ed Schonberg  <schonberg@adacore.com>
32497
32498         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
32499         (Has_Rep_Pragma): New function
32500         (Has_Attribute_Definition_Clause): New function
32501         (Record_Rep_Pragma): Moved here from sem_ch13.adb
32502         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
32503
32504         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
32505
32506         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
32507         (Expand_Pragma_Psect_Object): New procedure
32508         These procedures contain the revised and cleaned up processing for
32509         these two pragmas. This processing was formerly in Sem_Prag, but
32510         is more appropriately moved here. The cleanup involves making sure
32511         that the pragmas are properly attached to the tree, and that no
32512         nodes are improperly shared.
32513
32514         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
32515         pragmas to Exp_Prag, which is more appropriate.
32516         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
32517         check for duplicates Remove use of Is_Psected flag, no longer needed.
32518         Use new Make_String_Literal function with string.
32519
32520         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
32521         that are functions return universal values, that have to be converted
32522         to the context type.
32523         Use new Make_String_Literal function with string.
32524         (Get_Stream_Convert_Pragma): New function, replaces the use of
32525         Get_Rep_Pragma, which had to be kludged to work in this case.
32526
32527         * freeze.adb: Use new Has_Rep_Pragma function
32528
32529         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
32530         function with string.
32531         Use new Has_Rep_Pragma function.
32532
32533         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
32534         string argument.
32535
32536 2004-11-18  Robert Dewar  <dewar@adacore.com>
32537
32538         * errout.ads, errout.adb: (First_Sloc): New function
32539
32540         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
32541         check (-gnatyx) instead of being included as a redundant construct
32542         warning.
32543
32544         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
32545         Style_Check_Order_Subprograms.
32546
32547         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
32548         stylesw.adb: Add Style_Check_Xtra_Parens
32549
32550         * usage.adb: Add line for -gnatyx (check extra parens)
32551
32552         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
32553
32554 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
32555             Robert Dewar  <dewar@adacore.com>
32556
32557         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
32558         discriminant of a constrained subtype, analyze the copy of the
32559         corresponding constraint, because in some cases it may be only
32560         partially analyzed.
32561         Removes long-lived ??? comments.
32562
32563         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
32564         handled controlled or secondary-stack expressions within the
32565         iteration_scheme of a loop.
32566
32567         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
32568         bounds that may contain functions calls, to prevent memory leaks when
32569         the bound contains a call to a function that uses the secondary stack.
32570         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
32571         generate temporaries for loop bounds that might contain function calls
32572         that require secondary stack and/or finalization actions.
32573
32574         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
32575         selected component and the selector is overloadable (not just a
32576         function) treat as function call, Analyze_Call will disambiguate if
32577         necessary.
32578         (Analyze_Selected_Component): Do not generate an actual subtype for the
32579         selected component if expansion is disabled. The actual subtype is only
32580         needed for constraint checks.
32581         (Analyze_Allocator): If restriction No_Streams is set, then do
32582         not permit objects to be declared of a stream type, or of a
32583         composite type containing a stream.
32584
32585         * restrict.ads: Remove the a-stream entry from Unit_Array, since
32586         No_Streams no longer prohibits with'ing this package.
32587
32588         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
32589         discriminants, but the parent base has unknown discriminants, there is
32590         no discriminant constraint to inherit. Such a discrepancy can arise
32591         when the actual for a formal type with unknown discriminants is a
32592         similar private type whose full view has discriminants.
32593         (Analyze_Object_Declaration): If restriction No_Streams is set, then
32594         do not permit objects to be declared of a stream type, or of a
32595         composite type containing a stream.
32596
32597 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
32598
32599         * exp_dbug.ads: Update documentation to reflect simpler encoding for
32600         protected operations.
32601
32602         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
32603         generated name, it complicates decoding in gdb and hinders debugging
32604         of protected operations.
32605         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
32606         flag for the protected entry barrier function.
32607         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
32608         flag for the protected entry function.
32609
32610 2004-11-18  Nicolas Setton  <setton@adacore.com>
32611
32612         * expect.c: Define __unix__ when __APPLE__ is defined.
32613
32614         * Makefile.in: Inform the value of the variable GMEM_LIB in the
32615         Darwin-specific section.
32616
32617         * lang-specs.h: Change the placement of the %1 marker.
32618         Works around the fact that gcc adds -fPIC by default under Darwin.
32619
32620 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
32621
32622         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
32623         type of the object with the packed array type, set the Analyzed flag
32624         on the object if it is an entity or simple indexed component, to avoid
32625         spurious type errors.
32626
32627 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
32628
32629         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
32630         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
32631         separate line from the version message.
32632
32633 2004-11-18  Ed Falis  <falis@adacore.com>
32634
32635         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
32636         vthreads.
32637         (init_float): Eliminate initialization of floating point status for
32638         AE653. The instructions have no effect for vThreads.
32639
32640 2004-11-18  Vincent Celier  <celier@adacore.com>
32641
32642         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
32643         gnatbind is invoked with -shared.
32644
32645 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
32646
32647         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
32648         for Detect_Blocking which is redundant with the check done within the
32649         procedure Protected_Single_Entry_Call.
32650         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
32651         Detect_Blocking which is redundant with the check done within the
32652         procedure Protected_Single_Entry_Call.
32653
32654 2004-11-18  Vincent Celier  <celier@adacore.com>
32655
32656         * makegpr.adb (Compile): Put the compiling switches (in package
32657         Compiler and on the command line) immediately after "-c", instead of
32658         at the end of the command line invocation of the compiler, when
32659         compiling a non-Ada file.
32660         (Build_Global_Archive): When there is no need to rebuild the archive,
32661         set Global_Archive_Exists, so that the archive is passed to the linker
32662         if one is needed.
32663
32664 2004-11-18  Robert Dewar  <dewar@adacore.com>
32665             Sergey Rybin  <rybin@adacore.com>
32666
32667         * gnat_ugn.texi:
32668         Remove extra paren check from list of checks for redundant constructs
32669         Add documentation of new -gnatyx style check (check extra parens)
32670         Remove paragraph about gnatelim debug options.
32671
32672         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
32673         objects rather than forbidding dependencies on the package Ada.Streams.
32674
32675         * sinfo.ads: Add ??? note that we should document pragmas passed to
32676         back end.
32677
32678         * g-expect.ads: Fix a few typos in the comments.
32679
32680 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
32681
32682         * misc.c (gnat_handle_option): Use %< and %> for quoting in
32683         warning message.
32684
32685 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32686
32687         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
32688
32689 2004-11-07  Andreas Schwab  <schwab@suse.de>
32690
32691         * Makefile.in (install-gnatlib): Remove spurious hyphen.
32692
32693 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
32694
32695         PR ada/18228
32696         * Makefile.in (darwin): Set soext to .dylib.
32697
32698 2004-10-26  Vincent Celier  <celier@gnat.com>
32699             Thomas Quinot   <quinot@act-europe.fr>
32700
32701         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
32702         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
32703         there is no use of GNAT.Sockets.Constants.
32704         Remove remaining pragma Import for C_Write
32705         Remove C_Read and C_Write from internal implementation unit
32706         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
32707         the read and write functions from the system runtime library is fine
32708         on UNIX but won't work under Windows).
32709
32710         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
32711         (Check_Selector): Use C_Recv instead of C_Read.
32712         Selectors are the GNAT.Sockets abstraction to perform a select()
32713         call on a set of descriptors. To allow abortion of an ongoing
32714         select operation, some data is written to a dedicated socket that
32715         is always monitored.
32716         Under Windows, the write and read library functions cannot operate
32717         on sockets, so we need to use send and recv instead, which is portable
32718         across all supported platforms.
32719
32720         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
32721         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
32722         (using the read and write functions from the system runtime library is
32723         fine on UNIX but won't work under Windows).
32724
32725 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
32726
32727         * mlib-tgt-darwin.adb: New file.
32728
32729         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32730         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32731         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32732         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
32733         subprogram body.
32734
32735         * Makefile.in: Add support for building shared libraries under Darwin.
32736         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
32737         the low level EH init subprogram to be called from __gnat_initialize.
32738
32739         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
32740         indicates which options to pass to the archive indexer.
32741
32742         * mlib-utl.adb: Add support for calling ranlib with additional
32743         options. This is needed for instance under Mac OS X.
32744         (Ranlib_Options): New global variable, used to store the potential
32745         options to pass to ranlib.
32746         (Ar): Use Ranlib_Options when spawning ranlib.
32747         (Initialize): Set the value of ranlib option.
32748
32749 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
32750
32751         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
32752         instead of 8K, to reflect the real potential needs for stack-checking
32753         in the ZCX case.
32754
32755 2004-10-26  Pascal Obry  <obry@gnat.com>
32756
32757         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
32758
32759         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
32760         Windows only the initial thread stack size can be set so it is good to
32761         start we a low stack size.
32762         The OS will adjust the size as needed.
32763
32764 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
32765             Nicolas Setton  <setton@act-europe.fr>
32766
32767         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
32768         "__unix__" instead of "unix".
32769         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
32770         sections were just mistakenly ignored. The former is
32771         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
32772         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
32773         of hpux. This prevents an unwanted definition of the symbol
32774         convert_addresses in adaint.o.
32775
32776 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
32777
32778         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
32779         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
32780
32781 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
32782
32783         * a-filico.ads, a-filico.adb: fix incorrect header.
32784
32785 2004-10-26  Javier Miranda  <miranda@gnat.com>
32786
32787         * a-ststio.ads: Fix typo in identifier
32788
32789 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
32790
32791         * sem_ch4.adb: Minor reformatting.
32792
32793 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
32794
32795         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
32796         enabled, check the result of unary and binary operations when the
32797         expression is the right-hand side of an assignment.
32798
32799 2004-10-26  Vincent Celier  <celier@gnat.com>
32800
32801         * clean.adb (Delete): Do not output warnings when in quiet output and
32802         not in verbose mode.
32803         (Force_Deletions): New Boolean flag, defaulted to False
32804         (Delete): Only delete a file if it is writable, and when
32805         Force_Deletions is True.
32806         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
32807         (Usage): Line for new switch -f
32808         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
32809         own.
32810
32811 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
32812
32813         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
32814         JM type only if its size matches that of the wrapper.  When a size is
32815         prescribed and the field is not aliased, remove the wrapper of a JM
32816         type only if the size is not greater than that of the packed array.
32817         (gnat_to_gnu_entity): Change the extension of packed array wrappers
32818         from LJM to JM.
32819
32820 2004-10-26  Geert Bosch  <bosch@gnat.com>
32821
32822         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
32823         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
32824         (Pred): Implement in terms of Succ.
32825
32826 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
32827
32828         * exp_aggr.adb (Safe_Component): An aggregate component that is an
32829         unchecked conversion is safe for in-place use if the expression of the
32830         conversion is safe.
32831         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
32832         be expandable in place even if the aggregate does not come from source.
32833         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
32834         designated object of an allocator in place, rather than building it
32835         first on the stack. The previous scheme forces a full copy of the array,
32836         and may be altogether unsusable if the size of the array is too large
32837         for stack allocation.
32838
32839 2004-10-26  Robert Dewar  <dewar@gnat.com>
32840
32841         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
32842         compares if the component is atomic.
32843
32844         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
32845         array assignment if the component type is atomic.
32846
32847 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
32848             Eric Botcazou  <ebotcazou@act-europe.fr>
32849
32850         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
32851         is aliased and is a by_reference type, do not pass by copy.
32852         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
32853         detect whether the call is in the right side of an assignment or
32854         the expression of an object declaration.  Recurse on component
32855         association within aggregates.
32856         Call it in the condition that determines whether the temporary is
32857         necessary for correct stack-checking.
32858
32859 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
32860
32861         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
32862         RACW_Type, used in the PolyORB version.
32863         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
32864         version and the GARLIC version.
32865
32866         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
32867         Rename RCI_Info to RCI_Locator for better consistency between the
32868         GARLIC and PolyORB versions of the distributed systems annex.
32869         (DSA_Implementation_Name): This enumeration lists the possible
32870         implementations of the Partition Communication Subsystem for the
32871         Distributed Systems Annex (DSA). The three available implementations
32872         are the dummy stub implementation (No_DSA), and two versions based on
32873         two different distribution runtime libraries: GARLIC and PolyORB. Both
32874         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
32875         technology.
32876         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
32877         that organization.
32878
32879         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
32880         between the GARLIC and PolyORB versions of the distributed systems
32881         annex.
32882         Remove RE_Unbounded_Reclaim_Pool since it is unused.
32883
32884 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
32885
32886         * gnat1drv.adb: Suppress calling the back end when
32887         Frontend_Layout_On_Target is true.
32888
32889 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
32890
32891         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
32892         Set_Read_Only): New subprograms.
32893         These new routines allow the user to set or unset the Owner execute
32894         and Owner write permission flags on a file.
32895
32896         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
32897         GNAT.OS_Lib.Set_Executable instead of rolling our own.
32898
32899 2004-10-26  Matthew Gingell  <gingell@gnat.com>
32900
32901         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
32902
32903 2004-10-26  Pascal Obry  <obry@gnat.com>
32904
32905         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
32906         memory before the faulting page we properly test the process read
32907         access for this address using appropriate Win32 routine.
32908         (HPUX sections): guard with "__hpux__" instead of "hpux".
32909
32910 2004-10-26  Robert Dewar  <dewar@gnat.com>
32911
32912         * lib-xref.adb (Generate_Reference): Don't complain about reference to
32913         entry parameter if pragma Unreferenced set, since we do not properly
32914         handle the case of multiple parameters.
32915
32916 2004-10-26  Vincent Celier  <celier@gnat.com>
32917
32918         * prj-env.adb: (Contains_ALI_Files): New Boolean function
32919         (Ada_Objects_Path.Add): For a library project, add to the object path
32920         the library directory only if there is no object directory or if the
32921         library directory contains ALI files.
32922         (Set_Ada_Paths.Add.Recursive_Add): Ditto
32923
32924 2004-10-26  Vincent Celier  <celier@gnat.com>
32925
32926         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
32927         extension of library projects.
32928
32929         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
32930         path defaults to ".:<prefix>/lib/gnat".
32931         (Parse): For an extending all project, allow direct import of a project
32932         that is virtually extended.
32933
32934         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
32935         the specified name is directly imported, return its ID. Otherwise, if
32936         an extension of this project is imported, return the ID of the
32937         extension.
32938
32939 2004-10-26  Robert Dewar  <dewar@gnat.com>
32940
32941         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
32942         (Sub3): New procedure, used by Scaled_Divide
32943         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
32944         correct more than one instance of failure to propagate carries
32945         correctly.
32946         (Double_Divide): Handle overflow case of largest negative number
32947         divided by minus one.
32948
32949         * s-arit64.ads (Double_Divide): Document that overflow can occur in
32950         the case of a quotient value out of range.
32951         Fix comments.
32952
32953 2004-10-26  Robert Dewar  <dewar@gnat.com>
32954
32955         * s-bitops.adb (Bit_Eq): Remove redundant check.
32956
32957         * s-bitops.ads: Minor comment updates
32958         Change some occurrences of Address to System.Address
32959
32960         * s-carsi8.ads: Fix minor cut-and-paste error in comments
32961
32962 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
32963
32964         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
32965         accessibility check to prefix that is a protected operation.
32966
32967 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
32968
32969         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
32970         empty, post message on stub.
32971
32972 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
32973             Javier Miranda  <miranda@gnat.com>
32974
32975         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
32976         current instance appears within a unit that is directly in the context
32977         of the main unit.
32978         Used to determine whether the body of the instance should be analyzed
32979         immediately after its spec, to make its subprogram bodies available
32980         for front-end inlining.
32981         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
32982         constraint is not allowed on the component type (AARM 12.5.3(3))
32983
32984 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
32985
32986         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
32987         'Storage_Pool): enhance, document & limit detection of non-sharable
32988         internal pools.
32989
32990         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
32991
32992         * s-pooglo.ads: Add more documentation now that this pool is properly
32993         documented.
32994
32995 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
32996
32997         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
32998         or protected type with discriminants, do not constrain the
32999         corresponding record type if the subtype declaration has no
33000         discriminant constraints. This can be the case in source code, or in
33001         the subtype declaration created to rename an actual type within an
33002         instantiation.
33003
33004 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33005
33006         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
33007         different kind of stub (possibly wrong name for file), do not check
33008         for conformance.
33009         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
33010         includes call to some function that returns an unconstrained type, do
33011         not inline.
33012
33013 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
33014
33015         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
33016         appear in the code for the main unit. Dependencies among units in the
33017         context of the main unit are established when those other units are
33018         compiled. Otherwise spurious elaboration constraints can generate
33019         incorrect elaboration circularities.
33020
33021 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
33022             Ed Schonberg   <schonberg@gnat.com>
33023
33024         * sem_util.adb (Is_Aliased_View): Defend against the case where this
33025         subprogram is called with a parameter that is not an object name. This
33026         situation arises for some cases of illegal code, which is diagnosed
33027         later, and in this case it is wrong to call Is_Aliased, as that might
33028         cause a compiler crash.
33029         (Explain_Limited_Type): Refine previous fix to include
33030         inherited components of derived types, to provide complete information.
33031
33032         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
33033         is the prival for a protected object.
33034         It is necessary to mark this entity as a variable, in addition to
33035         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
33036         modified to avoid checking the Aliased flag on entities that are not
33037         objects. (Checking that flag for non-objects is erroneous and could
33038         lead to a compiler crash).
33039
33040 2004-10-26  Robert Dewar  <dewar@gnat.com>
33041
33042         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
33043         X_Frac = 0.5, then we know that the number X must be positive.
33044         (Succ): Remove the same redundant test, and also fix the primary test
33045         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
33046         Minor reformatting
33047         (Decompose): Add fuller comments to spec
33048
33049 2004-10-26  Pascal Obry  <obry@gnat.com>
33050
33051         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
33052         validity (process must have read access). Set to 0 in all other cases.
33053         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
33054         violation on Win32.
33055         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
33056         segmentation violation.
33057
33058 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
33059
33060         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
33061         whose type is a constructed subtype of an aliased object with an
33062         unconstrained nominal subtype, convert the actual to the constructed
33063         subtype before taking its address.
33064
33065 2004-10-26  Vincent Celier  <celier@gnat.com>
33066
33067         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
33068         (Is_Path_Name_Case_Sensitive): New function
33069
33070         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
33071         (Base_Name, Simple_Name, Current_Directory, Compose,
33072         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
33073         the result.
33074
33075 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
33076             Vasiliy Fofanov  <fofanov@act-europe.fr>
33077             Vincent Celier   <celier@gnat.com>
33078
33079         * gnat_ugn.texi: Generalize "finding memory problems" section into a
33080         "memory management issues" section and document some of the useful
33081         memory pools provided as part of the GNAT library.
33082         Remove "virtual" from declaration of A::method2 in
33083         the simple example of Ada/C++ mixed system.
33084         Library Projects may be virtually extended: their virtual extensions
33085         are not Library Projects.
33086         Added section on extending project hierarchies.
33087
33088 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
33089
33090         * adaint.c (__gnat_get_libraries_from_registry): Cast value
33091         to LPBYTE.
33092         (__gnat_portable_spawn): Remove const.
33093
33094         * mingw32.h (MAXPATHLEN): Check for previous definition.
33095
33096 2004-10-17  Matthias Klose  <doko@debian.org>
33097
33098         * gnatvsn.ads: Set gnat library version to 4.0.
33099
33100 2004-10-05  Vincent Celier  <celier@gnat.com>
33101
33102         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
33103
33104 2004-10-04  Laurent Guerby  <laurent@guerby.net>
33105
33106         PR ada/15156
33107         * Makefile.in: Define and use RANLIB_FLAGS.
33108
33109 2004-10-04  Pascal Obry  <obry@gnat.com>
33110
33111         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
33112         other x86 platforms).
33113
33114 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
33115
33116         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
33117         in general and triggers stack alignment adjustment for thread entry
33118         points on targets where this is necessary.
33119
33120 2004-10-04  Bernard Banner  <banner@gnat.com>
33121
33122         PR ada/13897
33123         * Makefile.in: Add section for powerpc linux
33124         Add variant i-vxwork-x86.ads
33125
33126         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
33127
33128 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
33129
33130         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
33131         table registration calls when need be. Ensures no reference to the crt
33132         ctors symbol are issued in the SJLJ case, which avoids possible
33133         undefined symbol errors in the case of modules to be statically linked
33134         with the kernel.
33135
33136 2004-10-04  Javier Miranda  <miranda@gnat.com>
33137
33138         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
33139         in-line the code corresponding to subprogram Analyze_Actuals. In
33140         addition, analyze the actuals only in case of subprogram call.
33141
33142 2004-10-04  Ed Falis  <falis@gnat.com>
33143
33144         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
33145
33146 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
33147
33148         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
33149         in the documentation.
33150
33151 2004-10-04  Robert Dewar  <dewar@gnat.com>
33152
33153         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
33154         IF and CASE.
33155         (Analyze_Block_Statement): Add circuitry to detect following dead code
33156         (Check_Unreachable_Code): Handle case of block exit
33157
33158 2004-10-04  Robert Dewar  <dewar@gnat.com>
33159
33160         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
33161         (XMatchD): Avoid warning for Logic_Error call
33162
33163 2004-10-04  Robert Dewar  <dewar@gnat.com>
33164
33165         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
33166         consider expressions buried within a procedure actual to be an actual.
33167         This caused some blowups with uses of packed slices within a procedure
33168         actual.
33169
33170 2004-10-04  Robert Dewar  <dewar@gnat.com>
33171
33172         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
33173         longer need to be initialized to zero.
33174         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
33175         initialized to zero.
33176
33177         * checks.adb (Expr_Known_Valid): Packed arrays are now always
33178         considered valid, even if the representation is modular. That's correct
33179         now that we no longer initialize packed modular arrays to zero.
33180
33181         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
33182         suffixes. These are now documented as the only cases in which the
33183         debugger ignores outer records.
33184         Previously, the spec allowed arbitrary suffixes for this purpose.
33185         Change name of LJM to JM for packed array pad records
33186         Create separate section on packed array handling, and add a whole new
33187         set of comments to this section describing the situation with packed
33188         modular types and justification requirements depending on endianness.
33189
33190 2004-10-04  Robert Dewar  <dewar@gnat.com>
33191
33192         * a-except.adb: Add a comment for last change
33193
33194         * einfo.ads: Minor spelling correction in comment
33195
33196         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
33197
33198         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
33199         messages.
33200
33201         * sem_util.ads: Minor comment update
33202
33203 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33204
33205         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
33206         Inline_Always when in Configurable_Run_Time mode.
33207
33208         * sem_prag.adb (Process_Convention): If entity is an inherited
33209         subprogram, apply convention to parent subprogram if in same scope.
33210         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
33211         when in Configurable_Run_Time mode.
33212
33213 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33214
33215         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
33216         class_wide type after component list has been inherited.
33217
33218 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33219
33220         * sem_ch12.adb (Check_Generic_Actuals): New predicate
33221         Denotes_Previous_Actual, to handle properly the case of a private
33222         actual that is also the component type of a subsequent array actual.
33223         The visibility status of the first actual is not affected when the
33224         second is installed.
33225         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
33226         make fully recursive the treatment of formals of packages declared
33227         with a box.
33228         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
33229         the above on exit from an instantiation.
33230         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
33231         current instantiation which is now complete.
33232         (Analyze_Package_Instantiation): No instantiated body is needed if the
33233         main unit is generic. Efficient, and avoid anomalies when a instance
33234         appears in a package accessed through rtsfind.
33235
33236 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33237
33238         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
33239         do not generate a declaration for a temporary if the call is part of a
33240         library-level instantiation.
33241
33242 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
33243
33244         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
33245         searching for a limited component to flag.
33246
33247         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
33248         expansion of Input, to account for the fact that the implicit call
33249         generated by the attribute reference must freeze the user-defined
33250         stream subprogram. This is only relevant to 'Input, because it can
33251         appear in an object declaration, prior to the body of the subprogram.
33252
33253         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
33254         expansion can proceed and further errors uncovered.
33255         (Minor clean up): Fix cases of using | instead of \ for continuation
33256         messages.
33257
33258 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33259
33260         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
33261
33262         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
33263         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
33264         Use gcc_assert and gcc_unreachable.
33265
33266         * decl.c (gnat_to_gnu_entity, case object): Check and process a
33267         specified alignment before validating size.
33268         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
33269         stripped-down declaration for the type of the inner field when making
33270         a JM type.
33271
33272         * utils.c (finish_record_type): Do not compute the size in units
33273         incrementally. Instead compute it once for the rep clause case.
33274         Use gcc_assert and gcc_unreachable.
33275
33276 2004-10-04  Vincent Celier  <celier@gnat.com>
33277
33278         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
33279         in file name.
33280         (Is_Valid_Path_Name): Take '/' as a directory separator.
33281
33282 2004-10-04  Vincent Celier  <celier@gnat.com>
33283
33284         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
33285         (Extended_Project) only if Extended_Project is defined, to avoid
33286         assertion error.
33287         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
33288         resolved path.
33289         (Parse_Single_Project): Ditto.
33290
33291         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
33292         Add_To_Project_Path for virtual projects.
33293
33294 2004-10-04  Vincent Celier  <celier@gnat.com>
33295
33296         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33297         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33298         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
33299         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
33300         parameter Options_2.
33301
33302         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
33303         Build_Dynamic_Library with an empty Options_2.
33304
33305         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
33306         default anymore.
33307
33308         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
33309         directory separator, if any.
33310         (Gprmake): Do not allow mains on the command line for library projects.
33311         Do not attempt to link when the project is a library project.
33312         (Library_Opts): New table to store Library_Options.
33313         (Build_Library): If Library_Options is specified, pass these options
33314         when building a shared library.
33315
33316 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
33317
33318         * s-tposen.adb (Service_Entry): The object must be always unlocked at
33319         the end of this procedure now that the unlock operation was inserted
33320         by the expander.
33321
33322 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
33323
33324         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
33325         corresponding to the Preallocated_Stacks flags in System.
33326         (Get_Target_Parameters): Including the processing for
33327         Preallocated_Stacks.
33328
33329         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
33330         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
33331         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33332         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
33333         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
33334         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
33335         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
33336         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
33337         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
33338         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
33339         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
33340         used to signal whether the compiler creates the required stacks and
33341         descriptors for the different tasks (when True) or it is done by the
33342         underlying operating system at run time (when False).
33343         It is initially set to False in all targets.
33344
33345         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
33346         if it is supported by the target.
33347         (Make_Task_Create_Call): Pass the stack address if it has been
33348         previously created. Otherwise pass a Null_Address.
33349
33350         * snames.adb: Add _stack.
33351
33352         * snames.ads: Add Name_uStack. Required to allow the expander to
33353         statically allocated task stacks.
33354
33355         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
33356         Stack_Address argument.
33357         Check that its value is equal to Null_Address because this target does
33358         not support the static stack allocation.
33359
33360 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
33361
33362         * usage.adb: Change "pragma inline" to "pragma Inline" in information
33363         and error messages
33364
33365 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
33366
33367         * exp_dist.adb: Split declaration of asynchronous flag out of
33368         Add_RACW_Read_Attribute.
33369         Minor reformatting for better alignment with PolyORB version.
33370         Store the entity for the asynchronous flag of an RACW, rather than the
33371         expression, in the asynchronous flags table. This will allow this flag
33372         to be used in other subprograms beside Add_RACW_Read_Attribute.
33373
33374 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
33375
33376         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
33377         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
33378         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
33379         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
33380         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
33381         sockets constant MSG_NOSIGNAL (Linux-specific).
33382         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
33383         all Send operations.
33384         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
33385         from trigerring SIGPIPE.
33386         Rename components to avoid clash with Ada 2005 possible reserved
33387         word 'interface'.
33388         (Check_Selector): When the select system call returns with an error
33389         condition, propagate Socket_Error to the caller.
33390
33391 2004-10-01  Jan Hubicka  <jh@suse.cz>
33392
33393         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
33394
33395 2004-09-23  Robert Dewar  <dewar@gnat.com>
33396
33397         PR ada/17540
33398         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
33399         instead do this at freeze time (we won't do it if there is an address
33400         clause).
33401         Change "pragma inline" to "pragma Inline" in information and error
33402         messages.
33403         Minor reformatting.
33404
33405         * freeze.adb (Check_Address_Clause): Remove previous change, not the
33406         right way of doing things after all.
33407         (Freeze_Entity): For object, set Is_Public for imported entities
33408         unless there is an address clause present.
33409
33410 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
33411
33412         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
33413         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
33414         ensures proper handling of types with rep clauses, which might have
33415         their TYPE_SIZE set already.
33416
33417 2004-09-21  Robert Dewar  <dewar@gnat.com>
33418
33419         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
33420         packed array types in both little- and big-endian cases. This change
33421         ensures that we no longer count on the unused bits being initialized
33422         for such types (and in particular ensures that equality testing will
33423         only read the relevant bits).
33424         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33425         These changes mean that we no longer need to initialize small packed
33426         arrays.
33427         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
33428         optimization to an LJM field as to its parent field.
33429
33430         * ada-tree.h, trans.c, utils.c, utils2.c:
33431         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33432
33433 2004-09-20  Jan Hubicka  <jh@suse.cz>
33434
33435         * utils.c (gnat_finalize): Remove.
33436         (end_subprog_body): Directly call cgraph_finalize_function;
33437         do not lower the nested functions.
33438
33439 2004-09-20  Robert Dewar  <dewar@gnat.com>
33440
33441         PR ada/17540
33442         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
33443         if an address clause is present, since that means that the Import
33444         should be ignored.
33445
33446 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
33447
33448         * 5tsystem.ads: Removed, no longer used.
33449
33450 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
33451             Zack Weinberg  <zack@codesourcery.com>
33452
33453         * ada-tree.def: Use tree_code_class enumeration constants
33454         instead of code letters.
33455         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
33456         Update for new tree-class enumeration constants.
33457
33458 2004-09-17  Vincent Celier  <celier@gnat.com>
33459
33460         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
33461         capabilities of the general project manager.
33462
33463 2004-09-09  Vincent Celier  <celier@gnat.com>
33464
33465         * a-direct.ads: Add pragma Ada_05
33466         (Directory_Entry_Type): Give default value to component Kind to avoid
33467         not initialized warnings.
33468
33469         * a-direct.adb (Current_Directory): Remove directory separator at the
33470         end.
33471         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
33472         an existing directory.
33473         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
33474         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
33475         Convert the result to File_Size.
33476
33477         * prj.ads: (Project_Error): New exception
33478
33479         * prj-attr.adb: Except in procedure Initialize, Fail comes from
33480         Prj.Com, not from Osint.
33481         (Attrs, Package_Attributes): Tables moved to private part of spec
33482         (Add_Attribute, Add_Unknown_Package): Moved to new child package
33483         Prj.Attr.PM.
33484         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
33485         Prj.Project_Error after call to Fail.
33486         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
33487         Fail. Check that package name is not already in use.
33488
33489         * prj-attr.ads: Comment updates to indicate that all subprograms may be
33490         used by tools, not only by the project manager, and to indicate that
33491         exception Prj.Prj_Error may be raised in case of problem.
33492         (Add_Unknown_Package, Add_Attribute): Moved to new child package
33493         Prj.Attr.PM.
33494         (Attrs, Package_Attributes): Table instantiations moved from the body to
33495         the private part to be accessible from Prj.Attr.PM body.
33496
33497         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
33498         from new package Prj.Attr.PM.
33499         (Parse_Attribute_Declaration): Call Add_Attribute from new package
33500         Prj.Attr.PM.
33501
33502         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
33503
33504         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
33505         instead of Elaboration_Checks).
33506
33507         * a-calend.adb: Minor reformatting
33508
33509 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33510
33511         * gigi.h (maybe_pad_type): New declaration.
33512         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
33513
33514         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
33515
33516         * cuintp.c: Convert to use buildN.
33517
33518         * decl.c (maybe_pad_type): No longer static.
33519         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
33520         target pointer.
33521         Convert to use buildN.
33522
33523         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
33524         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
33525         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
33526         RHS.
33527         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
33528         (gnat_gimplify_expr, case ADDR_EXPR): New case.
33529         Convert to use buildN.
33530
33531         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
33532         TREE_READONLY for const.
33533         Convert to use buildN.
33534
33535         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
33536         (create_var_decl): Refine when TREE_STATIC is set.
33537         Convert to use buildN.
33538
33539 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
33540
33541         * gnat_ugn.texi: Delete text relating to checking of ali and object
33542         consistency.
33543
33544         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
33545         routines.
33546
33547 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
33548
33549         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
33550         pragmas recognized by GNAT.
33551
33552         * gnat_rm.texi: Document pragma Detect_Blocking.
33553
33554         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
33555         raise Program_Error if called from a protected operation.
33556
33557         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
33558         the protected action nesting level.
33559         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
33560         protected action nesting level.
33561         (Unlock): When pragma Detect_Blocking is active decrease the protected
33562         action nesting level.
33563
33564         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
33565         Protected_Action_Nesting.
33566
33567         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
33568         Common_ATCB record. It contains the dynamic level of protected action
33569         nesting for each task. It is needed for checking whether potentially
33570         blocking operations are called from protected operations.
33571         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
33572         Detect_Blocking is active or not in the partition.
33573
33574         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
33575         raise Program_Error if called from a protected operation.
33576         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
33577         Program_Error if called from a protected operation.
33578         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
33579         Program_Error if called from a protected operation.
33580
33581         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
33582         raise Program_Error if called from a protected operation.
33583
33584         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
33585         raise Program_Error if called from a protected operation, and increase
33586         the protected action nesting level.
33587         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
33588         Program_Error if called from a protected operation, and increase the
33589         protected action nesting level.
33590         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
33591         protected action nesting level.
33592
33593         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
33594         raise Program_Error if called from a protected operation, and increase
33595         the protected action nesting level.
33596         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
33597         Program_Error if called from a protected operation, and increase the
33598         protected action nesting level.
33599         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
33600         raise Program_Error if called from a protected operation.
33601         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
33602         active, raise Program_Error if called from a protected operation.
33603         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
33604         protected action nesting level.
33605
33606         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
33607         insertion of the statement raising Program_Error. The run time
33608         contains the required machinery for handling that.
33609
33610         * sem_util.ads: Change comment associated to procedure
33611         Check_Potentially_Blocking_Operation.
33612         This procedure does not insert a call for raising the exception because
33613         that is currently done by the run time.
33614
33615         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
33616
33617         * init.c: Add the global variable __gl_detect_blocking that indicates
33618         whether pragma Detect_Blocking is active (1) or not (0). Needed for
33619         making the pragma available at run time.
33620         (__gnat_set_globals): Pass and update the detect_blocking parameter.
33621
33622         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
33623         pragma Detect_Blocking is active.
33624
33625         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
33626
33627         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
33628         DB is found in the ali file. Any unit compiled with pragma
33629         Detect_Blocking active forces its effect in the whole partition.
33630
33631         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
33632         Detect_Blocking is active and delay is called from a protected
33633         operation.
33634
33635         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
33636         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
33637         Detect_Blocking is active (0 otherwise).
33638         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
33639         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
33640         otherwise).
33641
33642 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
33643
33644         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
33645         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
33646         package.
33647
33648         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
33649         (Register_Receiving_Stub): Add Subp_Info formal parameter.
33650         Update API in placeholder implemetation of s-parint to reflect changes
33651         in distribution runtime library.
33652
33653         * sem_ch3.adb (Expand_Derived_Record): Rename to
33654         Expand_Record_Extension.
33655
33656         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
33657         primitive operations of potentially distributed object types that have
33658         non-controlling anonymous access formals.
33659
33660         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
33661         subprogram.
33662         New implementation of expansion for remote access-to-subprogram types,
33663         based on the RACW infrastructure.
33664         This version of sem_dist is compatible with PolyORB/DSA as well as
33665         GLADE.
33666
33667         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
33668         Asynchrronous that applies to a remote access-to-subprogram type, mark
33669         the underlying RACW type as asynchronous.
33670
33671         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
33672          __gnat_using_gnu_linker to 1.
33673
33674         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
33675         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
33676         GNAT.Perfect_Hash_Generators, and remove the empty
33677         GNAT.Perfect_Hash package.
33678
33679         * atree.adb: Minor reformatting
33680
33681         * exp_ch3.adb (Expand_Derived_Record): Rename to
33682         Expand_Record_Extension.
33683         (Build_Record_Init_Proc.Build_Assignment): The default expression in
33684         a component declaration must remain attached at that point in the
33685         tree so New_Copy_Tree copies it if the enclosing record type is derived.
33686         It is therefore necessary to take a copy of the expression when building
33687         the corresponding assignment statement in the init proc.
33688         As a side effect, in the case of a derived record type, we now see the
33689         original expression, without any rewriting that could have occurred
33690         during expansion of the ancestor type's init proc, and we do not need
33691         to go back to Original_Node.
33692
33693         * exp_ch3.ads (Expand_Derived_Record): Rename to
33694         Expand_Record_Extension.
33695
33696         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
33697         Returns the RACW type used to implement a remote access-to-subprogram
33698         type.
33699         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
33700         New subprograms. Used to create a proxy tagged object for a remote
33701         subprogram. The proxy object is used as the designated object
33702         for RAS values on the same partition (unless All_Calls_Remote applies).
33703         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
33704         System.Partition_Interface.Get_Unique_Remote_Pointer.
33705         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
33706         Renamed from Add_RAS_*_Attribute.
33707         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
33708         subprograms.
33709         New implementation of expansion for remote access-to-subprogram types,
33710         based on the RACW infrastructure.
33711
33712         * exp_dist.ads (Copy_Specification): Update comment to note that this
33713         function can copy the specification from either a subprogram
33714         specification or an access-to-subprogram type definition.
33715
33716 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
33717
33718         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
33719         in an instance, between an explicit subprogram an one inherited from a
33720         type derived from an actual.
33721
33722         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
33723         add a polling call if the subprogram is to be inlined by the back-end,
33724         to avoid repeated calls with multiple inlinings.
33725
33726         * checks.adb (Apply_Alignment_Check): If the expression in the address
33727         clause is a call whose name is not a static entity (e.g. a dispatching
33728         call), treat as dynamic.
33729
33730 2004-09-09  Robert Dewar  <dewar@gnat.com>
33731
33732         * g-trasym.ads: Minor reformatting
33733
33734         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
33735         packed arrays, since unused bits are expected to be zero for a
33736         comparison.
33737
33738 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
33739
33740         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
33741         comment.
33742
33743 2004-09-09  Pascal Obry  <obry@gnat.com>
33744
33745         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
33746         enable map file generation. Add the right option to generate the map
33747         file if Map_File is set to True.
33748
33749         * gnatdll.adb (Gen_Map_File): New variable.
33750         (Syntax): Add info about new -m (Map_File) option.
33751         (Parse_Command_Line): Add support for -m option.
33752         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
33753         Minor reformatting.
33754
33755 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
33756
33757         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
33758         new gnatdist implementation.
33759         Define a subpackage isolating the output routines specific to this
33760         verbose mode.
33761
33762 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
33763
33764         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
33765
33766         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
33767
33768 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
33769
33770         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
33771         internal unit.
33772
33773         * opt.ads: Add Ada_Version_Runtime constant used to decide which
33774         version of the language is used to compile the run time.
33775
33776 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
33777
33778         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
33779         of variable length temporaries for function return now that the
33780         back-end and gigi support it.
33781
33782 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33783
33784         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
33785
33786         * trans.c (struct stmt_group): Delete field GLOBAL.
33787         (gnat_init_stmt_group): Do not initialize it.
33788         (call_to_gnu): Use save_expr, not protect_multiple_eval.
33789         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
33790         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
33791         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
33792         (start_stmt_group): Likewise.
33793         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
33794
33795         * utils2.c (ggc.h): Include.
33796         (build_call_raise): Call build_int_cst, not build_int_2.
33797
33798         * utils.c (gnat_init_decl_processing): Fix arg to
33799         build_common_tree_nodes.
33800         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
33801         (gnat_define_builtin): Set built_in_decls.
33802         (init_gigi_decls): Call build_int_cst, not build_int_2.
33803
33804         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
33805         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
33806         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
33807         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
33808         SET_TYPE_MODULE): Use them.
33809         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
33810         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
33811         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
33812         SET_TYPE_ADA_SIZE): Likewise.
33813         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
33814         (DECL_CONST_CORRESPONDING_VAR,
33815         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
33816         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
33817         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
33818         (TYPE_RM_SIZE_NUM): New macro.
33819         (TYPE_RM_SIZE): Modified to use above.
33820
33821         * cuintp.c: (build_cst_from_int): New function.
33822         (UI_To_gnu): Use it.
33823
33824         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
33825         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
33826         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
33827         MIN_EXPR for the size, copy it into new.
33828
33829 2004-09-01  Robert Dewar  <dewar@gnat.com>
33830
33831         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
33832         packed indexed component where array is an IN OUT formal. This
33833         generated garbage code previously.
33834
33835         * gnat_ugn.texi: Document -fverbose-asm
33836
33837         * gnat-style.texi: Minor updates (note that boolean constants and
33838         variables are joined with AND/OR rather than short circuit forms).
33839
33840 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
33841
33842         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
33843         it is an upward conversion of an untagged type with no representation
33844         change.
33845
33846 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
33847
33848         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
33849         System.Partition_Interface.
33850
33851         * checks.adb (Apply_Access_Checks): Do not generate checks when
33852         expander is not active (but check for unset reference to prefix of
33853         dereference).
33854
33855         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
33856         pragma Debug as an if statement with a constant condition, for
33857         consistent treatment of entity references contained within the
33858         enclosed procedure call.
33859
33860 2004-09-01  Vincent Celier  <celier@gnat.com>
33861
33862         * bindgen.adb: (Set_EA_Last): New procedure
33863         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
33864         Set_EA_Last.
33865         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
33866         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
33867         linked without errors.
33868         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
33869         ST and EA.
33870         (Gen_Exception_Table_C): Correct same bugs
33871
33872         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
33873
33874         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
33875         on Windows, make sure that the drive letter is in upper case.
33876
33877         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
33878         Windows, when the drive letter is added and Case_Sensitive is True, the
33879         drive letter is forced to upper case.
33880
33881         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
33882         to Options_2 for the call to MLib.Utl.Gcc.
33883
33884         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
33885         directory separator when defining BASE_DIR.
33886
33887 2004-09-01  Pascal Obry  <obry@gnat.com>
33888
33889         * gprcmd.adb (Extend): Do not output trailing directory separator. This
33890         is not needed and it confuses Windows GNU/make which does not report
33891         directory terminated by a slash as a directory.
33892         (gprcmd): Idem for "pwd" internal command.
33893
33894         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
33895         target names rewrite to fix regressions with recent version of
33896         GNU/make. Starting with GNU/make 3.80 the pipe character was not
33897         handled properly anymore.
33898
33899 2004-09-01  Andreas Schwab  <schwab@suse.de>
33900
33901         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
33902         * raise.c [!IN_RTS]: Undef abort.
33903
33904 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
33905
33906         * utils2.c (build_allocator): Use ssize_int.
33907
33908         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
33909
33910 2004-08-27  Andreas Schwab  <schwab@suse.de>
33911
33912         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
33913
33914 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
33915             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33916
33917         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
33918
33919 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
33920
33921         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
33922         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
33923         * utils.c (init_gigi_decls): Likewise.
33924         * utils2.c (build_call_raise, build_allocator): Likewise.
33925
33926 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
33927
33928         * utils.c (gnat_init_decl_processing): Adjust
33929         build_common_tree_nodes call.
33930
33931 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
33932
33933         * utils2.c (build_allocator): Use build_int_cst for negative
33934         size types.
33935
33936 2004-08-18  Richard Henderson  <rth@redhat.com>
33937
33938         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
33939
33940 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
33941
33942         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
33943         call.s
33944         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
33945         (gnat_to_gnu): Likewise.
33946
33947 2004-08-16  Pascal Obry  <obry@gnat.com>
33948
33949         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
33950         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
33951         option and not mdll anymore. Update comment.
33952
33953 2004-08-16  Pascal Obry  <obry@gnat.com>
33954
33955         * bld.adb (Put_Include_Project): Properly handle directory separators
33956         on Windows.
33957
33958 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
33959
33960         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
33961         decreasing the number of allocated junk nodes while searching for the
33962         appropriate subprogram.
33963
33964 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
33965
33966         * cuintp.c (UI_To_gnu): Use build_int_cst..
33967         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
33968         * utils.c (init_gigi_decls): Likewise.
33969         * utils2.c (build_call_raise): Likewise.
33970
33971 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
33972
33973         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
33974         for a global aliased object with a variable size and an unconstrained
33975         nominal subtype, pretend there is no initializer if the one we have is
33976         incomplete, and avoid referencing an inexistant component in there. The
33977         part we have will be rebuilt anyway and the reference may confuse
33978         further operations.
33979
33980 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
33981
33982         * einfo.ads: Minor reformatting
33983
33984         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
33985         restrictions in the ALI if we only want to warn about violations.
33986
33987 2004-08-13  Vincent Celier  <celier@gnat.com>
33988
33989         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
33990         when creating a new Unit_Record in table Units.
33991
33992         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
33993         that are violated, if any.
33994
33995         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
33996         add directory separator if path already ends with a directory separator.
33997
33998 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
33999
34000         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
34001         unit, this is an attempt to inline a construct that is not available in
34002         the current restricted mode, so abort rather than trying to continue.
34003
34004         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
34005         discriminants that rename those of the parent, recover names of
34006         original discriminants for the constraint on the full view of the
34007         parent.
34008         (Complete_Private_Subtype): Do not create a subtype declaration if the
34009         subtype is an itype.
34010
34011         * gnat_rm.texi: Added section on implementation of discriminated
34012         records with default values for discriminants.
34013
34014 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
34015
34016         PR ada/15601
34017         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
34018         the second operand is overloaded.
34019
34020 2004-08-10  Richard Henderson  <rth@redhat.com>
34021
34022         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
34023         add __builtin_alloca.
34024
34025 2004-08-10  Richard Henderson  <rth@redhat.com>
34026
34027         * config-lang.in (boot_language): Yes.
34028
34029 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
34030
34031         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
34032         from complaining on potential uninitialized reference.
34033         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
34034         new specification and test explicitly for non-zero return value.
34035
34036         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
34037         returning C.int, to avoid using a derived boolean type.
34038
34039         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
34040         Duplicate_Subexpr_No_Checks in preference to direct use of
34041         Remove_Side_Effects and New_Copy_Tree.
34042         Clear Comes_From_Source on prefix of 'Size attribute reference.
34043
34044         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
34045         g-socthi-vxworks.adb: Change calls to
34046         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
34047         and test explicitly for non-zero return value.
34048
34049         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
34050         (Is_Socket_In_Set): Declare imported function as returning C.int, to
34051         avoid using a derived boolean type.
34052
34053 2004-08-09  Albert Lee  <lee@gnat.com>
34054
34055         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
34056
34057 2004-08-09  Pascal Obry  <obry@gnat.com>
34058
34059         * gnat_ugn.texi: Document new way to build DLLs on Windows using
34060         GCC's -shared option.
34061
34062         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
34063         Options_2 parameter (options put after object files).
34064
34065 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
34066
34067         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
34068         ignore overflows on low and high bounds of an index to also account for
34069         differences in signedness between sizetype and gnu_index_subtype.
34070         These are as legitimate as the ones caused by a lower TYPE_PRECISION
34071         on sizetype.
34072
34073 2004-08-09  Robert Dewar  <dewar@gnat.com>
34074
34075         * s-solita.ads, s-solita.adb: Minor reformatting
34076
34077         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
34078         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
34079         obsolescent section
34080         Add note that No_Implicit_Conditionals does not suppress
34081         run time constraint checks.
34082
34083         * vms_conv.ads: Minor reformatting
34084
34085         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
34086         and necessary for following change).
34087         (Mark): Return new format Mark_Id containing sec stack address
34088         (Release): Use sec stack address from Mark_Id avoiding Self call
34089
34090         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
34091         pointer (cleanup and necessary for following change).
34092         Define Mark_Id as record containing address of secondary stack, that way
34093         Release does not need to find the stack again, decreasing the number of
34094         calls to Self and improving efficiency.
34095
34096         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
34097
34098         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
34099         case variable into the individual case branches when possible.
34100
34101         * sem_ch11.adb: Minor reformatting
34102
34103         * prj.ads: Correct spelling of suffixs
34104
34105         * prj-nmsc.adb: Minor reformatting
34106         Correct spelling suffixs throughout (also in identifiers)
34107
34108         * freeze.adb: Minor spelling correction
34109
34110         * exp_ch2.adb: Cleanups to handling of Current_Value
34111         (no functional effect).
34112
34113         * bld.adb: Correct spelling of suffixs
34114
34115         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
34116
34117 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
34118
34119         PR ada/15408
34120         * sem_ch7.adb (Install_Private_Declarations): In the body of the
34121         package or of a child, private entities are both immediately_visible
34122         and not hidden.
34123
34124 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
34125
34126         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
34127         there are no range checks on the value of the literal.
34128
34129         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
34130         wrapped is the triggering alternative of an asynchronous select, action
34131         statements mustbe inserted before the select itself.
34132
34133         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
34134         case where the prefix is a protected function call.
34135         (Resolve_Attribute, case 'Access): The attribute reference on a
34136         subprogram is legal in a generic body if the subprogram is declared
34137         elsewhere.
34138
34139 2004-08-09  Vincent Celier  <celier@gnat.com>
34140
34141         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
34142         languages, otherwise building the library may fail with unresolved
34143         symbols.
34144         (Compile_Sources): Do not build libraries if -c switch is used
34145
34146         * gnatlink.adb (Process_Args): New switches -M and -Mmap
34147         (Write_Usage): If map file creation is supported, output new switches
34148         -M and -Mmap.
34149         (Gnatlink): When -M is specified, add the necessary switch(es) to the
34150         gcc call, when supported.
34151
34152         * Makefile.in: Added indepsw.o to the object list for gnatlink
34153         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
34154
34155         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
34156         indepsw.adb, indepsw.ads: New files.
34157
34158 2004-08-09  Bernard Banner  <banner@gnat.com>
34159
34160         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
34161
34162         * Makefile.in: add section for vxworks x86
34163
34164 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
34165
34166         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
34167         per-object constrained components where the discriminant is of an
34168         Access type.
34169         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
34170         the parent initialization procedure for derived Unchecked_Unions.
34171         Instead, derived Unchecked_Unions build their own initialization
34172         procedure.
34173         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
34174         Check the body of the subprogram for details.
34175         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
34176         functions for derived Unchecked_Union types by introducing a condition.
34177         Allow the creation of TSS equality functions for Unchecked_Unions.
34178         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
34179         Add formal parameter Discr to function signature. Discr is used to
34180         control the generated case statement for Unchecked_Union types.
34181         (Make_Eq_If): Rename formal parameter Node to E in function signature.
34182
34183         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
34184         Unchecked_Unions.
34185         Check the body of the subprogram for details.
34186         (Expand_Composite_Equality): Augment composite type equality to include
34187         correct handling of Unchecked_Union components.
34188         (Expand_N_In): Add condition to detect illegal membership tests when the
34189         subtype mark is a constrained Unchecked_Union and the expression lacks
34190         inferable discriminants, and build a Raise_Program_Error node.
34191         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
34192         to detect types that contain components of unconstrained Unchecked_Union
34193         subtype. Add condition to detect equality between types that have an
34194         unconstrained Unchecked_Union component, and build a Raise_Program_Error
34195         node. Add condition to detect equality between Unchecked_Union types
34196         that lack inferable discriminants, and build a Raise_Program_Error node.
34197         Otherwise build a TSS equality function call.
34198         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
34199         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
34200         with the operand lacking inferable discriminants, and build a Raise_
34201         Program_Error node.
34202         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
34203         composite equality.
34204         (Has_Inferable_Discriminants): Implement new predicate for objects and
34205         expressions of Unchecked_Union type. Check the body of subprogram for
34206         details.
34207         (Has_Unconstrained_UU_Components): Add function
34208         Component_Is_Unconstrained_UU. It is used to detect whether a single
34209         component is of an unconstrained Unchecked_Union subtype. Add function
34210         Variant_Is_Unconstrained_UU. It is used to detect whether a single
34211         component inside a variant is of an unconstrained Unchecked_Union type.
34212
34213         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
34214         inferred discriminant values. Add condition to generate a case
34215         statement with an inferred discriminant as the switch.
34216         (Make_Component_List_Assign): Introduce a Boolean flag that determines
34217         the behaviour of the subprogram in the presence of an Unchecked_Union.
34218         Add condition to trigger the usage of the inferred discriminant value
34219         as the generated case statement switch.
34220         (Make_Field_Assign): Introduce a Boolean flag that determines the
34221         behaviour of the subprogram in the presence of an Unchecked_Union. Add
34222         condition to trigger the usage of the inferred discriminant value as
34223         the right-hand side of the generated assignment.
34224
34225         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
34226         parameter generation when dealing with Unchecked_Unions.
34227
34228         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
34229         checks for Unchecked_Unions.
34230
34231         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
34232
34233         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
34234         Raise_Program_Error nodes for the execution of Read and Write
34235         attributes of Unchecked_Union types and the execution of Input and
34236         Output attributes of Unchecked_Union types that lack default
34237         discriminant values.
34238
34239         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
34240         Unchecked_Union. Add procedure Check_Component. It is used to inspect
34241         per-object constrained components of Unchecked_Unions for being
34242         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
34243         check individual components withing a variant.
34244
34245         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
34246         comparison of Unchecked_Unions.
34247         (Resolve_Equality_OP): Remove guard that prevents equality between
34248         Unchecked_Unions.
34249
34250         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
34251         of component subtypes for Unchecked_Union components.
34252         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
34253         since it is the actual subtype.
34254
34255         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
34256         pass of Unchecked_Union subtypes as generic actuals to formal types
34257         that lack known_discriminant_parts or that are derived Unchecked_Union
34258         types, and do nothing. In any other case, produce an error message.
34259
34260         * sem_ch3.adb (Analyze_Component_Declaration): Add function
34261         Contains_POC. It determines whether a constraint uses the discriminant
34262         of an enclosing record type.
34263         Add condition to detect per-object constrained component and set the
34264         appropriate flag.
34265         (Derived_Type_Declaration): Remove guard that prevents derivation from
34266         Unchecked_Union types.
34267         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
34268         Union subtypes.
34269
34270         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
34271         references to Unchecked_Union discriminants.
34272
34273         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
34274         formal generation when dealing with Unchecked_Unions.
34275         (Set_Actual_Subtypes): Add condition to prevent generation of actual
34276         subtypes for Unchecked_Unions.
34277
34278         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
34279         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
34280         completions of discriminated partial views by Unchecked_Unions and
34281         produce an error message.
34282
34283 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34284
34285         * trans.c (struct stmt_group): New field, GLOBAL.
34286         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
34287         (struct elab_info): New struct.
34288         (elab_info_list, gnu_elab_proc_stack): New variables.
34289         (Compilation_Unit_to_gnu): New procedure.
34290         (gigi): Call it and also handle elaboration procs we've saved.
34291         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
34292         global field from parent.
34293         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
34294         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
34295         (start_stmt_group): Initialize global field from parent.
34296         (add_decl_expr): Set to global for current statement group.
34297         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
34298         post.
34299
34300         * utils.c (global_bindings_p): True when no current_function_decl; no
34301         longer check current_binding_level.
34302
34303 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
34304
34305         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
34306         choice.
34307
34308         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
34309
34310 2004-08-06  Andreas Schwab  <schwab@suse.de>
34311
34312         * utils.c (gnat_define_builtin): Remove second parameter of
34313         make_decl_rtl.
34314         (begin_subprog_body): Likewise.
34315
34316 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
34317
34318         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
34319         optimization, not supported by the tree-ssa back-end.
34320
34321 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
34322
34323         * s-mastop-irix.adb: Update comments.
34324
34325         * a-except.adb (Exception_Information): Raise Constraint_Error if
34326         exception Id is Null_Id.
34327         This is required behavior, which is more reliably and clearly checked
34328         at the top level interface level.
34329
34330 2004-07-26  Javier Miranda  <miranda@gnat.com>
34331
34332         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
34333         call if a component has no default_expression and the box is used.
34334
34335         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
34336         default_expression and you use box, it behaves as if you had declared a
34337         stand-alone object.
34338         (Resolve_Record_Aggregate): If a component has no default_expression and
34339         you use box, it behaves as if you had declared a stand-alone object.
34340
34341         * sem_ch10.adb (Install_Siblings): Do not make visible the private
34342         entities of private-with siblings.
34343
34344 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
34345
34346         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
34347         for a component of an itype, set the parent pointer for analysis,
34348         there is no list in which to insert it.
34349
34350         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
34351         bona-fide renamings, not for inherited operations.
34352
34353         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
34354         actual for a formal that is an access parameter, create local
34355         finalization list even if the expression is not an aggregate.
34356
34357 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
34358
34359         PR ada/16213
34360         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
34361         Diagnose properly illegal subprogram renamings that are library units.
34362
34363 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
34364
34365         PR ada/15588
34366         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
34367         conversion rewritten as an unchecked conversion, check that original
34368         expression is a variable.
34369
34370         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
34371         unchecked_conversion, create new node rather than rewriting in place,
34372         to preserve original construct.
34373
34374 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34375
34376         * gigi.h (gnat_expand_body): Deleted.
34377
34378         * Make-lang.in: (trans.o): Depends on function.h.
34379
34380         * misc.c: (gnat_expand_body): Moved to here.
34381
34382         * trans.c (gnat_expand_body_1): Deleted.
34383         (gnat_expand_body): Moved from here.
34384         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
34385         (add_stmt): Check for marked visited with global_bindings_p.
34386         (gnat_gimplify_expr, case COMPONENT_REF): New case.
34387         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
34388
34389         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
34390         VIEW_CONVERT_EXPR if not operation type.
34391
34392         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
34393         fat pointer.
34394
34395         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
34396         changes: reformatting of negation operators, removing unneeded
34397         inequality comparison with zero, converting equality comparisons with
34398         zero to negations, changing int/0/1 to bool/false/true, replace calls
34399         to gigi_abort with abort, and various other similar changes.
34400
34401 2004-07-26  Vincent Celier  <celier@gnat.com>
34402
34403         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
34404         "setup".
34405
34406         * make.adb (Gnatmake): Fail when a library is not present and there is
34407         no object directory.
34408
34409         * mlib-prj.adb (Check_Library): No need to check if the library needs
34410         to be rebuilt if there is no object directory, hence no object files
34411         to build the library.
34412
34413         * opt.ads (Setup_Projects): New Boolean flag.
34414
34415         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
34416         Location.
34417         Create directory when Kind /= "" and in "gnat setup". Report error if
34418         directory cannot be created.
34419         (Ada_Check): Create library interface copy dir if it does not exist
34420         and we are in "gnat setup".
34421         (Find_Sources): No error if in "gnat setup" and no Ada sources were
34422         found.
34423         (Language_Independent_Check): Create object directory, exec directory
34424         and/or library directory if they do not exist and we are in
34425         "gnat setup".
34426
34427         * vms_conv.ads: (Command_Type): New command Setup.
34428
34429         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
34430
34431         * vms_data.ads: Add qualifiers/switches for new built-in command
34432         "setup".
34433
34434 2004-07-25  Richard Henderson  <rth@redhat.com>
34435
34436         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
34437         DECL_IGNORED_P on RESULT_DECL.
34438
34439 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
34440
34441         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
34442         allocation and potentially overflowing update with
34443         Tailored_Exception_Information. Use the sec-stack free procedural
34444         interface to output Exception_Information instead.
34445
34446         * a-except.adb (To_Stderr): New subprogram for character, and string
34447         version moved from a-exextr to be visible from other separate units.
34448         (Tailored_Exception_Information): Remove the procedural version,
34449         previously used by the default Last_Chance_Handler and not any more.
34450         Adjust various comments.
34451
34452         * a-exexda.adb: Generalize the exception information procedural
34453         interface, to minimize the use of secondary stack and the need for
34454         local buffers when the info is to be output to stderr:
34455         (Address_Image): Removed.
34456         (Append_Info_Character): New subprogram, checking for overflows and
34457         outputing to stderr if buffer to fill is of length 0.
34458         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
34459         (Append_Info_Address, Append_Info_Exception_Name,
34460         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
34461         Append_Info_Basic_Exception_Traceback,
34462         Append_Info_Exception_Information): New subprograms.
34463         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
34464         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
34465         Exception_Info_Maxlength, Exception_Name_Length,
34466         Exception_Message_Length): New subprograms.
34467         (Exception_Information): Use Append_Info_Exception_Information.
34468         (Tailored_Exception_Information): Use
34469         Append_Info_Basic_Exception_Information.
34470         Export services for the default Last_Chance_Handler.
34471
34472         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
34473         other separate units.
34474
34475 2004-07-20  Vincent Celier  <celier@gnat.com>
34476
34477         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
34478
34479 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
34480
34481         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
34482         emit itype references for the designated types of component types that
34483         are declared outside of the full record declaration, and that may
34484         denote a partial view of that record type.
34485
34486 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
34487
34488         PR ada/15607
34489         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
34490         which is the designated type in an access component declaration, to the
34491         list of incomplete dependents of the parent type, to avoid elaboration
34492         issues with out-of-scope subtypes.
34493         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
34494         full view of the parent.
34495
34496 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
34497
34498         PR ada/15610
34499         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
34500         entities that are hidden, such as references to generic actuals
34501         outside an instance.
34502
34503 2004-07-20  Javier Miranda  <miranda@gnat.com>
34504
34505         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
34506         support to the new notation.
34507         (Analyze_Selected_Component): Add call to Try_Object_Operation.
34508
34509 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
34510
34511         * s-taprob.adb: Adding the elaboration code required for initializing
34512         the tasking soft links that are common to the full and the restricted
34513         run times.
34514
34515         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
34516         restricted run time has been moved to the package
34517         System.Soft_Links.Tasking.
34518
34519         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
34520         restricted run time has been moved to the package
34521         System.Soft_Links.Tasking.
34522
34523         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
34524
34525         * s-solita.ads, s-solita.adb: New files.
34526
34527 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34528
34529         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
34530         Case_Statement_to_gnu): Split off from gnat_to_gnu.
34531         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
34532         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
34533         Exception_Handler_to_gnu_zcx): Likewise.
34534
34535 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
34536
34537         * gigi.h (builtin_function): Declare.
34538
34539 2004-07-15  Robert Dewar  <dewar@gnat.com>
34540
34541         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
34542         reformatting
34543
34544         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
34545         access values as an example of a warning.
34546
34547         * gnat_rm.texi: Document new attribute Has_Access_Values
34548
34549         * gnat-style.texi: Document that box comments belong on nested
34550         subprograms
34551
34552         * sem_util.ads (Has_Access_Values): Improved documentation
34553
34554         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
34555
34556         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
34557         (Process_Interface_Name): Call to this new procedure
34558         (Set_Extended_Import_Export_External_Name): Call to this new procedure
34559
34560         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
34561
34562         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
34563
34564         * einfo.ads: Minor comment typo fixed
34565
34566 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
34567
34568         * snames.adb: Add _atcb.
34569
34570         * snames.ads: Add Name_uATCB.
34571
34572         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
34573         (in the expanded code) when using the restricted run time.
34574
34575         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
34576         a in parameter in order to allow ATCBs to be preallocated (in the
34577         expanded code).
34578
34579         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
34580         order to allow ATCBs to be preallocated. In case of error, the ATCB is
34581         deallocated in System.Tasking.Stages.
34582
34583         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
34584         order to allow ATCBs to be preallocated.
34585
34586         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
34587         here. It was previously done in Initialize_ATCB.
34588
34589         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
34590
34591         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
34592         Restricted run time.
34593
34594         * exp_ch3.adb: When using the Restricted run time, pass the
34595         preallocated Ada_Task_Control_Block when creating a task.
34596
34597 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
34598
34599         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
34600         function call that is itself an actual in an enclosing call, diagnose
34601         problem here rather than assuming that resolution will catch it.
34602
34603         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
34604         the local copy of a generic unit for a formal package, and the generic
34605         is a child unit, install private part of ancestors before compiling
34606         private part of spec.
34607
34608         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
34609         use scope entities rather than tree structures, to handle properly
34610         parent units that are instances rewritten as bodies for inlining
34611         purposes.
34612
34613         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
34614         Remove_Parents): Handle properly a parent unit that is an
34615         instantiation, when the unit has been rewritten as a body for inlining
34616         purposes.
34617
34618         * par.adb (Goto_List): Global variable to collect goto statements in a
34619         given unit, for use in detecting natural loops.
34620
34621         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
34622         use in detecting natural loops.
34623
34624         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
34625         backwards goto's, and rewrite as a infinite loop, to improve locality
34626         of temporaries.
34627
34628         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
34629         subcomponent that includes an indexed reference, to prevent the
34630         generation of copies that would miscompile the desired assignment
34631         statement.
34632         (Build_Task_Image_Decls): Add a numeric suffix to
34633         generated name for string variable, to avoid spurious conflicts with
34634         the name of the type of a single protected object.
34635
34636         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
34637         loop with an explicit exit statement, to avoid generating an
34638         out-of-range value with 'Succ leading to spurious constraint_errors
34639         when compiling with -gnatVo.
34640
34641 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
34642
34643         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
34644         might not be analyzed yet, even if its Etype is already set (case of an
34645         unchecked conversion built using Unchecked_Convert_To, for example).
34646         If the prefix has already been analyzed, this will be a nop anyway.
34647
34648         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
34649         controller type, or an assignment of a record type with controlled
34650         components, copy only user data, and leave the finalization chain
34651         pointers untouched.
34652
34653 2004-07-15  Vincent Celier  <celier@gnat.com>
34654
34655         * make.adb (Collect_Arguments): Improve error message when attempting
34656         to compile a source not part of any project, when -x is not used.
34657
34658         * prj.ads: (Defined_Variable_Kind): New subtype
34659
34660         * prj-attr.adb (Register_New_Package): Two new procedures to register
34661         a package with or without its attributes.
34662         (Register_New_Attribute): Mew procedure to register a new attribute in a
34663         package.
34664         New attribute oriented subprograms: Attribute_Node_Id_Of,
34665         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
34666         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
34667         Next_Attribute.
34668         New package oriented subprograms: Package_Node_Id_Of,
34669         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
34670
34671         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
34672         type.
34673         (Package_Node_Id): Now a private, self initialized type
34674         (Register_New_Package): New procedure to register a package with its
34675         attributes.
34676         New attribute oriented subprograms: Attribute_Node_Id_Of,
34677         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
34678         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
34679         Next_Attribute.
34680         New package oriented subprograms: Package_Node_Id_Of,
34681         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
34682
34683         * prj-dect.adb (Parse_Attribute_Declaration,
34684         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
34685
34686         * prj-makr.adb (Make): Parse existing project file before creating
34687         other files. Fail if there was an error during parsing.
34688
34689         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
34690         new spec of Prj.Attr.
34691
34692         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
34693         to new spec of Prj.Attr.
34694
34695 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34696
34697         * utils2.c: Fix typo in comment.
34698
34699 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34700
34701         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
34702         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
34703
34704 2004-07-14  Andreas Schwab  <schwab@suse.de>
34705
34706         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
34707
34708 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34709
34710         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
34711         object type.
34712         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
34713         TYPE_STUB_DECL.
34714
34715         * misc.c (gnat_types_compatible_p): New function.
34716         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
34717         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
34718
34719         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
34720         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
34721         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
34722         (mark_visited): Don't mark dummy type.
34723         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
34724         parameter, we must remove any LJM building from GNU_NAME.
34725         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
34726         (pos_to_constructor): Use int_const_binop.
34727         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
34728         PARM_DECL.
34729
34730         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
34731         (gnat_pushlevel): Set TREE_USE on BLOCK node.
34732         (gnat_install_builtins): Add __builtin_memset.
34733
34734 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
34735
34736         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
34737         for a renaming, stabilize the initialization expression if we are at a
34738         local level.  At the local level, uses of the renaming may be performed
34739         by a direct dereference of the initializing expression, and we don't
34740         want possible variables there to be evaluated for every use.
34741
34742         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
34743         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
34744         them on the way.  Account for the fact that we may introduce side
34745         effects in the process.
34746
34747 2004-07-13  Richard Henderson  <rth@redhat.com>
34748
34749         * misc.c (default_pass_by_ref): Use pass_by_reference.
34750
34751 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
34752
34753         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
34754         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
34755
34756 2004-07-08  Richard Henderson  <rth@redhat.com>
34757
34758         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
34759         commentary.
34760
34761 2004-07-06  Vincent Celier  <celier@gnat.com>
34762
34763         * vms_conv.ads: Minor reformatting.
34764         Alphabetical order for enumerated values of type Command_Type, to have
34765         the command in alphabetical order for the usage.
34766
34767         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
34768         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
34769
34770         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
34771
34772         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
34773         (Add_Archive_Path): Only add the global archive if there is one.
34774         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
34775         or not any object file to put in the global archive, and don't build
34776         a global archive if there is none.
34777         (X_Switches): New table
34778         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
34779         in the X_Switches table, if any.
34780         (Initialize): Make sure the X_Switches table is empty
34781         (Scan_Arg): Record -X switches in table X_Switches
34782
34783         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
34784
34785         * make.adb: Minor comment fix
34786
34787         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
34788         invoked with directory information, add the directory in front of the
34789         path.
34790
34791         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
34792         invoked with directory information, add the directory in front of the
34793         path.
34794
34795         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
34796         when Keep_Temporary_Files is False.
34797         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
34798         directory information, add the directory in front of the path.
34799         When not on VMS, handle new switch -dn before the command to set
34800         Keep_Temporary_Files to True.
34801         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
34802         everywhere.
34803
34804         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
34805         invoked with directory information, add the directory in front of the
34806         path.
34807
34808 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
34809
34810         * snames.ads, snames.adb (Name_Stub): New name for the distributed
34811         systems annex.
34812
34813         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
34814         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
34815
34816         * g-socket.adb (To_Timeval): Fix incorrect conversion of
34817         Selector_Duration to Timeval for the case of 0.0.
34818
34819         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
34820         documentation from Evolve_And_Then.
34821
34822 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
34823
34824         * s-taprop-tru64.adb, s-taprop-os2.adb,
34825         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
34826
34827 2004-07-06  Robert Dewar  <dewar@gnat.com>
34828
34829         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
34830         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
34831         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
34832         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
34833         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
34834         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
34835         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
34836         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
34837         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
34838         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
34839         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
34840         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
34841         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
34842         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
34843         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
34844         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
34845         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
34846         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
34847         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
34848         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
34849         vms_data.ads: Minor reformatting,
34850         Fix bad box comment format.
34851
34852         * gnat_rm.texi: Fix minor grammatical error
34853
34854         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
34855
34856         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
34857         more cases of discriminated records to be recognized as not needing a
34858         secondary stack.
34859         (Has_Access_Values): New function.
34860
34861         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
34862
34863         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
34864         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
34865         with LRM terminology).
34866         Change terminology in comments primitive type => elementary type.
34867
34868 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
34869
34870         PR ada/15602
34871         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
34872         parameters do not impose any requirements on the presence of a body.
34873
34874 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
34875
34876         PR ada/15593
34877         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
34878         compilation unit and is in an open scope at the point of instantiation,
34879         assume that a body may be present later.
34880
34881 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
34882
34883         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
34884         Improve error message when specified size is not supported.
34885
34886         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
34887         is never a primitive operation.
34888
34889 2004-07-05  Andreas Schwab  <schwab@suse.de>
34890
34891         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
34892         RECORD_OR_UNION_CHECK.
34893         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
34894
34895 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
34896
34897         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
34898         dependency on xgnatugn, instead build it via a submake.
34899         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
34900
34901 2004-07-04  Richard Henderson  <rth@redhat.com>
34902
34903         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
34904
34905 2004-07-01  Richard Henderson  <rth@redhat.com>
34906
34907         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
34908         * utils.c (max_size): Likewise.
34909
34910 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34911
34912         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
34913         and rest_of_type_compilation; add arg to create_*_decl.
34914         (annotate_decl_with_node): Deleted.
34915         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
34916         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
34917         (get_current_block_context, gnat_pushdecl): New declarations.
34918         (gnat_init_stmt_group): Likewise.
34919         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
34920         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
34921         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
34922         (gnat_init): Call gnat_init_stmt_group.
34923         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
34924         (gnu_pending_elaboration_list): Deleted.
34925         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
34926         (gigi): Rearrange initialization calls and move some to last above.
34927         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
34928         Delete calls to add_decl_expr; add arg to create_*_decl.
34929         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
34930         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
34931         begin_subprog_body and call it.
34932         Don't push and pop ggc context.
34933         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
34934         (add_stmt): Remove handling of DECL_EXPR from here.
34935         If not in function, mark visited.
34936         (add_decl_expr): Put global at top level.
34937         Check for cases of DECL_INITIAL we have to handle here.
34938         (process_type): Add extra arg to create_type_decl.
34939         (build_unit_elab): Rework to just gimplify.
34940         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
34941         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
34942         (get_pending_elaborations, pending_elaborations_p): Likewise.
34943         (push_pending_elaborations, pop_pending_elaborations): Likewise.
34944         (get_elaboration_location, insert_elaboration_list): Likewise.
34945         (gnat_binding_level): Renamed from ada_binding_level.
34946         (init_gnat_to_gnu): Don't clear pending_elaborations.
34947         (global_bindings_p): Treat as global if no current_binding_level.
34948         (set_current_block_context): New function.
34949         (gnat_pushdecl): Renamed from pushdecl; major rework.
34950         All callers changed.
34951         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
34952         (finish_record_type): Call call pushdecl for stub decl.
34953         (function_nesting_depth): Deleted.
34954         (begin_subprog_body): Delete obsolete code.
34955         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
34956
34957 2004-06-28  Robert Dewar  <dewar@gnat.com>
34958
34959         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
34960         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
34961         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
34962         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
34963         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
34964
34965         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
34966         deal with problem of inefficient slices on machines with strict
34967         alignment, when the slice is a component of a composite.
34968
34969         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
34970         machines, we need the check there as well.
34971
34972 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
34973
34974         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
34975         determine safe copying direction for overlapping slice assignments
34976         when component is controlled.
34977
34978         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
34979         formal derived type in the actual for a formal package are visible in
34980         the enclosing instance.
34981
34982 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
34983
34984         PR ada/15600
34985         * sem_util.adb (Trace_Components): Diagnose properly an illegal
34986         circularity involving a private type whose completion includes a
34987         self-referential component.
34988         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
34989         renaming or an instantiation from an implicit derived operation.
34990
34991 2004-06-28  Pascal Obry  <obry@gnat.com>
34992
34993         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
34994         DLL.
34995         (Library_File_Name_For): Idem.
34996
34997 2004-06-28  Matthew Gingell  <gingell@gnat.com>
34998
34999         * g-traceb.ads: Add explanatory note on the format of addresses
35000         expected by addr2line.
35001
35002 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
35003
35004         * Makefile.in: Force debugging information on s-tasdeb.adb,
35005         a-except.adb and s-assert.adb needed by the debugger.
35006
35007 2004-06-28  Vincent Celier  <celier@gnat.com>
35008
35009         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
35010         Need_To_Build_Lib.
35011         (Gnatmake): Ditto.
35012
35013         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
35014
35015         * prj.adb: Minor reformatting
35016         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
35017
35018         * prj.ads: Comment updates
35019         Minor reformatting
35020         (Project_Data): Change Flag1 to Need_To_Build_Lib.
35021         Remove Flag2: not used.
35022
35023         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
35024         declaration.
35025
35026         * gnat_ugn.texi: Put a "null;" declaration in one project file example
35027
35028         * gnat_rm.texi: Document Empty declarations "null;".
35029
35030         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
35031         front of the linker options.
35032         (Link_Foreign): Put the global archives and the libraries in front of
35033         the linker options.
35034
35035 2004-06-28  Javier Miranda  <miranda@gnat.com>
35036
35037         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
35038         (RTU_Loaded): Code cleanup
35039         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
35040         withed predefined units.
35041
35042         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
35043         explicitly withed predefined units.
35044         Fix typo in comment
35045
35046         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
35047         explicitly withed predefined units.
35048
35049 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35050
35051         * ada-tree.def (DECL_STMT): Deleted.
35052         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
35053         (DECL_STMT_VAR): Deleted.
35054         * decl.c: add_decl_stmt now add_decl_expr.
35055         * gigi.h: Likewise.
35056         * trans.c: Likewise.
35057         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35058         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
35059         (add_stmt): Only handle padded type here.
35060         (add_stmt_with_node): Allow gnat_node to not be present.
35061         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
35062         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
35063         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
35064         make a SAVE_EXPR for the entire fat pointer.
35065         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
35066         (create_index_type): Make a DECL_EXPR.
35067         (end_subprog_body): Don't call allocate_struct_function here but
35068         do clear cfun.
35069
35070 2004-06-25  Pascal Obry  <obry@gnat.com>
35071
35072         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
35073         Relocatable from Build_Dynamic_Library call.
35074
35075         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
35076         Relocatable are now synonym.
35077
35078         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
35079
35080         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
35081         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
35082         call.
35083
35084         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
35085         Lib_Address and Relocatable.
35086         (Default_DLL_Address): Removed.
35087
35088         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35089         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
35090         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
35091         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
35092         (Default_DLL_Address): Removed.
35093
35094         * mlib-tgt-mingw.adb: Ditto.
35095         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
35096
35097         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
35098         the initial thread stack size.
35099
35100         * a-strmap.ads: Move package L to private part as it is not used in
35101         the spec. Found while reading code.
35102
35103 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
35104
35105         * tracebak.c: Introduce support for a GCC infrastructure based
35106         implementation of __gnat_backtrace.
35107
35108         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
35109         any more. Use accessors instead. This eases maintenance and relaxes
35110         some alignment constraints.
35111         (_GNAT_Exception structure): Remove the Ada specific fields
35112         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
35113         a-exexpr.adb.
35114         (is_handled_by, __gnat_eh_personality): Replace component references to
35115         exception structure by use of the new accessors.
35116
35117         * init.c (__gnat_initialize): Adjust comments to match the just
35118         reverted meaning of the -static link-time option.
35119
35120         * adaint.c (convert_addresses): Arrange not to define a stub for
35121         mips-irix any more, as we now want to rely on a real version from a
35122         recent libaddr2line.
35123
35124         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
35125         the personality routine can use them and not have to rely on a C
35126         counterpart of the record anymore. This simplifies maintenance and
35127         relaxes the constraint of having Standard'Maximum_Alignment match
35128         BIGGEST_ALIGNMENT.
35129         Update comments, and add a section on the common header alignment issue.
35130
35131 2004-06-25  Geert Bosch  <bosch@gnat.com>
35132
35133         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
35134         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
35135
35136 2004-06-25  Robert Dewar  <dewar@gnat.com>
35137
35138         * gnat_rm.texi: Fix section on component clauses to indicate that the
35139         restriction on byte boundary placement still applies for bit packed
35140         arrays.
35141         Add comment on stack usage from Initialize_Scalars
35142
35143         * gnat_ugn.texi: Add documentation for -gnatyLnnn
35144
35145         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
35146         limiting nesting level.
35147
35148         * usage.adb: Add line for -gnatyLnnn switch
35149
35150         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
35151         sem_ch13.adb, exp_aggr.adb: Minor reformatting
35152
35153         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
35154         type as well as on the subtype. This corrects a problem in freeze in
35155         setting alignments of atomic types.
35156
35157         * sem_eval.ads: Minor comment typo fixed
35158
35159         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
35160         level.  Minor reformatting.
35161
35162         * fname.adb (Is_Predefined_File_Name): Require a letter after the
35163         minus sign. This means that file names like a--b.adb will not be
35164         considered predefined.
35165
35166         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
35167         record Test new flag and give diagnostic for bad component clause.
35168         (Freeze_Entity): Set alignment of array from component alignment in
35169         cases where this is safe to do.
35170
35171         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
35172         arrays.
35173
35174         * cstand.adb: (Create_Standard): Set alignment of String to 1
35175
35176         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
35177
35178         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
35179         code in the common constrained array cases.
35180
35181         * a-storio.adb: Change implementation to avoid possible alignment
35182         problems on machines requiring strict alignment (data should be moved
35183         as type Buffer, not type Elmt).
35184
35185         * checks.adb (Apply_Array_Size_Check): Improve these checks by
35186         killing the overflow checks which we really do not need (64-bits is
35187         enough).
35188
35189 2004-06-25  Vincent Celier  <celier@gnat.com>
35190
35191         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
35192         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
35193         inconditionally for the main project.
35194         (Recursive_Add_Archives.Add_Archive_Path): New procedure
35195         (Link_Executables.Check_Time_Stamps): New procedure
35196         (Link_Executables.Link_Foreign): New procedure
35197         Changes made to reduce nesting level of this package
35198         (Check): New procedure
35199         (Add_Switches): When not in quiet output, check that a switch is not
35200         the concatenation of several valid switches. If it is, issue a warning.
35201         (Build_Global_Archive): If the global archive is rebuilt, linking need
35202         to be done.
35203         (Compile_Sources): Rebuilding a library archive does not imply
35204         rebuilding the global archive.
35205         (Build_Global_Archive): New procedure
35206         (Build_Library): New name for Build_Archive, now only for library
35207         project
35208         (Check_Archive_Builder): New procedure
35209         (Create_Global_Archive_Dependency_File): New procedure
35210         (Gprmake): Call Build_Global_Archive before linking
35211         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
35212         throughout.
35213         (Scan_Arg): Display the Copyright notice when -v is used
35214
35215         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
35216         for gnatls.
35217
35218         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
35219         COMPILE.
35220         Add new GNAT LIST qualifier /FILES=
35221         Added qualifier /DIRECTORY= to GNAT METRIC
35222         Added qualifier /FILES= to GNAT METRIC
35223         Added qualifier /FILES to GNAT PRETTY
35224
35225         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
35226         to take into account both versions of the switch.
35227
35228         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
35229         always be the last switch to the gcc driver. Disable switch storing so
35230         that switches automatically added by the gcc driver are not put in the
35231         ALI file.
35232
35233         * prj.adb (Project_Empty): Take into account changes in components of
35234         Project_Data.
35235
35236         * prj.ads (Languages_Processed): New enumaration value All_Languages.
35237
35238         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
35239         used. Split Boolean component Ada_Sources_Present in two Boolean
35240         components Ada_Sources_Present and Other_Sources_Present.
35241         Minor reformatting
35242
35243         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
35244         instead of Sources_Present.
35245         (Set_Ada_Paths.Add.Recursive_Add): Ditto
35246
35247         * prj-nmsc.adb: Minor reformatting
35248         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
35249         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
35250         Check_Ada_Naming_Scheme.
35251         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
35252         throughout.
35253
35254         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
35255         In_Limited.
35256         Make sure that all cycles where there is at least one "limited with"
35257         are detected.
35258         (Parse_Single_Project): New Boolean parameter In_Limited
35259
35260         * prj-proc.adb (Recursive_Check): When Process_Languages is
35261         All_Languages, call first Prj.Nmsc.Ada_Check, then
35262         Prj.Nmsc.Other_Languages_Check.
35263
35264         * prj-proc.adb (Process): Use Ada_Sources_Present or
35265         Other_Sources_Present (instead of Sources_Present) depending on
35266         Process_Languages.
35267
35268         * lang-specs.h: Keep -g and -m switches in the same order, and as the
35269         last switches.
35270
35271         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
35272         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
35273         False.
35274         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
35275         False.
35276
35277         * lib.ads (Disable_Switch_Storing): New procedure.
35278
35279         * make.adb: Modifications to reduce nesting level of this package.
35280         (Check_Standard_Library): New procedure
35281         (Gnatmake.Check_Mains): New procedure
35282         (Gnatmake.Create_Binder_Mapping_File): New procedure
35283         (Compile_Sources.Compile): Add switch -gnatez as the last option
35284         (Display): Never display -gnatez
35285
35286         * Makefile.generic:
35287         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
35288
35289         * gnatcmd.adb (Check_Project): New function
35290         (Process_Link): New procedure to reduce nesting depth
35291         (Check_Files): New procedure to reduce the nesting depth.
35292         For GNAT METRIC, include the inherited sources in extending projects.
35293         (GNATCmd): When GNAT LS is invoked with a project file and no files,
35294         add the list of files from the sources of the project file. If this list
35295         is too long, put it in a temp text files and use switch -files=
35296         (Delete_Temp_Config_Files): Delete the temp text file that contains
35297         a list of source for gnatpp or gnatmetric, if one has been created.
35298         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
35299         in the project file is too large, create a temporary text file that
35300         list them and pass it to the tool with "-files=<temp text file>".
35301         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
35302
35303         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
35304         generated file is in not in Ada.
35305
35306         * gnatls.adb: Remove all parameters And_Save that are no longer used.
35307         (Scan_Ls_Arg): Add processing for -files=
35308         (Usage): Add line for -files=
35309
35310         * g-os_lib.adb (On_Windows): New global constant Boolean flag
35311         (Normalize_Pathname): When on Windows and the path starts with a
35312         directory separator, make sure that the resulting path will start with
35313         a drive letter.
35314
35315         * clean.adb (Clean_Archive): New procedure
35316         (Clean_Project): When there is non-Ada code, delete the global archive,
35317         the archive dependency files, the object files and their dependency
35318         files, if they exist.
35319         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
35320
35321 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
35322
35323         * sinfo.ads: Fix typo in comment.
35324
35325         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
35326         the TSS for remote access-to-subprogram types, since these TSS are
35327         always present once the type has been analyzed.
35328         (RAS_E_Dereference): Same.
35329
35330         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
35331         reference raises Bad_Attribute, mark the reference as analyzed so the
35332         node (and any children resulting from rewrites that could have occurred
35333         during the analysis that ultimately failed) is not analyzed again.
35334
35335         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
35336
35337         * exp_dist.adb: Minor comment fix.
35338
35339         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
35340         type is an anonymous access type, no unchecked deallocation of the
35341         allocated object can occur. If the object is controlled, attach it with
35342         a count of 1. This allows attachment to the Global_Final_List, if
35343         no other relevant list is available.
35344         (Get_Allocator_Final_List): For an anonymous access type that is
35345         the type of a discriminant or record component, the corresponding
35346         finalisation list is the one of the scope of the type.
35347
35348 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
35349
35350         * sem_ch3.adb (Replace_Type): When computing the signature of an
35351         inherited subprogram, use the first subtype if the derived type
35352         declaration has no constraint.
35353
35354         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
35355         before applying previous optimization. Minor code cleanup.
35356
35357         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
35358         placed at the beginning of an unpacked record without explicit
35359         alignment, a slice of it will be aligned and does not need a copy when
35360         used as an actual.
35361
35362 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
35363
35364         PR ada/15591
35365         PR ada/15592
35366         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
35367         reference is written with expressions mimicking parameters.
35368
35369 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
35370
35371         PR ada/15589
35372         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
35373         STEP 2a. The constraints of a full type declaration of a derived record
35374         type are checked for conformance with those declared in the
35375         corresponding private extension declaration. The message
35376         "not conformant with previous declaration" is emitted if an error is
35377         detected.
35378
35379 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
35380
35381         * g-traceb.ads: Document the need for -E binder switch in the spec.
35382
35383         * g-trasym.ads: Document the need for -E binder switch in the spec.
35384
35385 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
35386
35387         * sem_prag.adb: Add handling of pragma Detect_Blocking.
35388
35389         * snames.h, snames.ads, snames.adb: Add entry for pragma
35390         Detect_Blocking.
35391
35392         * s-rident.ads: Change reference to pragma Detect_Blocking.
35393
35394         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
35395         system.ads.
35396
35397         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
35398         to indicate whether pragma Detect_Blocking is active.
35399
35400         * par-prag.adb: Add entry for pragma Detect_Blocking.
35401
35402         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
35403         of not handling WITH.
35404         Note that this replaces the previous update which was incorrect.
35405
35406 2004-06-25  Javier Miranda  <miranda@gnat.com>
35407
35408         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
35409         use-clauses to have a clean environment.
35410
35411         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
35412         the installation of the use-clauses to stablish a clean environment in
35413         case of compilation of a separate unit; otherwise the call to
35414         use_one_package is protected by the barrier Applicable_Use.
35415
35416         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
35417         the installation of the use-clauses to stablish a clean environment in
35418         case of compilation of a separate unit.
35419         (End_Use_Clauses): Minor comment cleanup.
35420
35421 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
35422
35423         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
35424
35425 2004-06-23  Richard Henderson  <rth@redhat.com>
35426
35427         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
35428
35429 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35430
35431         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
35432         now bool instead of int.
35433         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
35434         * trans.c (gnu_switch_label_stack): New function.
35435         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
35436         elaboration of renamed entity returns.
35437         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
35438         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
35439         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
35440         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
35441         DECL_SIZE_UNIT and simplify variable-sized case.
35442         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35443         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
35444         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
35445         (build_unit_elab): Disable for now.
35446         * utils.c (mark_visited): New function.
35447         (pushdecl): Walk tree to call it for global decl.
35448         (update_pointer_to): Update all variants of pointer and ref types.
35449         Add arg to COMPONENT_REF.
35450         (convert): Likewise.
35451         Move check for converting between variants lower down.
35452         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
35453         (build_allocator): Don't force type of MODIFY_EXPR.
35454         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
35455         put_var_into_stack.
35456
35457 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35458
35459         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
35460         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
35461         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
35462         subprograms.
35463         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
35464         all callers changed.
35465         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
35466         the way that EXIT_STMT finds the loop label.
35467         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
35468         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
35469         (add_stmt): Use annotate_with_locus insted of setting directly.
35470         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
35471         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
35472         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
35473         (build_vms_descriptor): Add extra args to ARRAY_REF.
35474         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
35475         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
35476         New cases.
35477         (build_binary_op): Don't make explicit CONVERT_EXPR.
35478         Add extra rgs to ARRAY_REF.
35479
35480 2004-06-14  Pascal Obry  <obry@gnat.com>
35481
35482         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
35483         Windows.  Fix minor typo.
35484
35485         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
35486         which is now supported on Windows. With this implementation using the
35487         Library Project feature is no different on Windows than on UNIX.
35488
35489 2004-06-14  Vincent Celier  <celier@gnat.com>
35490
35491         * makegpr.adb (Compile_Sources): Nothing to do when there are no
35492         non-Ada sources.
35493
35494         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
35495
35496         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
35497         found, show the project name and the path of the previously parsed
35498         project file.
35499
35500 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
35501
35502         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
35503         array, avoid copying the actual before the call.
35504
35505 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
35506
35507         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
35508         Instead, allocate memory on worst-case alignment assumptions, and then
35509         return an aligned address within the allocated zone.
35510
35511 2004-06-14  Robert Dewar  <dewar@gnat.com>
35512
35513         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
35514         elab entities in predefined units in No_Run_Time_Mode.
35515         (Gen_Adainit_C): Same fix
35516         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
35517         units in No_Run_Time_Mode
35518         (Gen_Elab_Calls_C): Same fix
35519
35520         * symbols-vms-alpha.adb: Minor reformatting
35521
35522         * g-debpoo.ads: Minor reformatting
35523
35524         * lib.adb (In_Same_Extended_Unit): Version working on node id's
35525
35526         * lib.ads (In_Same_Extended_Unit): Version working on node id's
35527
35528         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
35529         working on nodes.
35530
35531         * make.adb: Minor reformatting
35532
35533         * par-ch12.adb: Minor reformatting
35534
35535         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
35536
35537         * prj-strt.adb: Minor reformatting
35538
35539         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
35540         be more general.
35541
35542         * sem_attr.adb: Minor reformatting
35543
35544         * sem_ch7.adb: Minor reformatting
35545
35546         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
35547         for type in the same unit as the object declaration.
35548
35549         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
35550         static string expressions and not just string literals.
35551         Minor reformatting
35552         (Set_Warning): Reset restriction warning flag for restriction pragma
35553         Implement pragma Profile_Warnings
35554         Implement pragma Profile (Restricted)
35555         Give obolescent messages for old restrictions and pragmas
35556
35557         * snames.h, snames.ads, snames.adb: Add new entry for pragma
35558         Profile_Warnings.
35559
35560         * s-rident.ads: Add declarations for restrictions required by profile
35561         Restricted and profile Ravenscar.
35562
35563         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
35564
35565         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
35566         configuration pragmas.
35567
35568 2004-06-11  Vincent Celier  <celier@gnat.com>
35569
35570         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
35571         gnatsym, when symbol policy is Restricted.
35572
35573         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
35574         gnatsym, when symbol policy is Restricted.
35575
35576         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
35577         read the symbol file.
35578         (Finalize): Fail in symbol policy Restricted if a symbol in the original
35579         symbol file is not in the object files. Do not create a new symbol file
35580         when symbol policy is Restricted.
35581
35582         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
35583         in Scng.
35584
35585         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
35586         Restricted.
35587         (Usage): Line for new switch -R
35588
35589         * make.adb (Initialize): When the platform is not VMS, add the
35590         directory where gnatmake is invoked in the front of the path, if
35591         gnatmake is invoked with directory information.  Change the Scan_Args
35592         while loop to a for loop.
35593         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
35594         if Depth is equal or greater than the proposed depth, there is nothing
35595         to do.
35596         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
35597         instead of 0.
35598
35599         * prj.ads: Add new symbol policy Restricted.
35600
35601         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
35602         with the new parameters Check_All_Labels and Case_Location.
35603
35604         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
35605         (Library_Symbol_File needs to be defined).
35606
35607         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
35608         and Case_Location If Check_All_Labels is True, check that all values of
35609         the string type are used, and output warning(s) if they are not.
35610
35611         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
35612         and Case_Location.
35613
35614         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
35615
35616         * gnat_ugn.texi: Update documentation about the library directory in
35617         Library Projects.
35618
35619         * makegpr.adb (Display_Command): In verbose mode, also display the
35620         value of the CPATH env var, when the compiler is gcc.
35621         (Initialize): Change the Scan_Args while loop to a for loop
35622         (Compile_Individual_Sources): Change directory to object directory
35623         before compilations.
35624
35625         * symbols.ads: New symbol policy Restricted.
35626
35627 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
35628
35629         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
35630         is now taken care of internally in the Exception_Propagation package
35631         and does not require clients assistance any more.
35632
35633         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
35634         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
35635         functions. Helpers to maintain a predicate required in the handling of
35636         occurrence transfer between tasks.
35637         This is now handled internally and does not require clients assistance
35638         for the setup/propagate separation anymore.
35639         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
35640         allocation strategy, handle the Setup_And_Not_Propagated predicate and
35641         document.
35642
35643         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
35644         raise_after_setup, now that everything is handled internally within the
35645         setup/propagation engine.
35646
35647 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
35648
35649         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
35650         Add additional conditions for the case of an actual being a simple
35651         name or literal. Improve inlining by preventing the generation
35652         of temporaries with a short lifetime (one use).
35653
35654 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
35655
35656         PR ada/15587
35657         * einfo.ads: Minor comment updates for Has_Completion and
35658         E_Constant list of flags.
35659
35660         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
35661         and constant redeclarations now set the Has_Completion flag of their
35662         defining identifiers.
35663
35664         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
35665         Inspect_Deferred_Constant_Completion.
35666         Used to detect private deferred constants that have not been completed
35667         either by a constant redeclaration or pragma Import. Emits error message
35668         "constant declaration requires initialization expression".
35669
35670         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
35671         completes a deferred constant.
35672
35673 2004-06-11  Geert Bosch  <bosch@gnat.com>
35674
35675         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
35676
35677         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
35678         calculating exponent for scaling denormal numbers.
35679         (Leading_Part): Properly raise Constraint_Error for zero or negative
35680         Adjustment.
35681         (Remainder): Properly raise Constraint_Error for zero divisor.
35682
35683 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
35684
35685         * sem_util.adb: Minor reformatting.
35686
35687         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
35688         dereference when accessing the entry parameter record.
35689         (Check_Array_Type): Always check for possible implicit dereference.
35690         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
35691         Abort if a pointer is still present (denoting that an implicit
35692         dereference was left in the tree by the front-end).
35693
35694         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
35695         dereference when accessing the entry parameter record.
35696         (Check_Array_Type): Always check for possible implicit dereference.
35697         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
35698         Abort if a pointer is still present (denoting that an implicit
35699         dereference was left in the tree by the front-end).
35700
35701 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
35702
35703         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
35704         message, like the compiler itself does. Easier to parse the output.
35705
35706         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
35707
35708         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
35709         be base names, and not includes directories.
35710
35711 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
35712
35713         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
35714         so that dependencies are properly taken into account by make.
35715
35716 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
35717
35718         PR ada/15622
35719         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
35720         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
35721
35722 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
35723
35724         * Makefile.in (install-gnatlib): install target-specific run-time files.
35725
35726         * Make-lang.in: Remove obsolete targets.
35727
35728 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
35729
35730         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
35731         specification, to catch misuses of program unit names.
35732
35733         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
35734         superfluous conversions in an instance.
35735
35736 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
35737
35738         PR ada/15403
35739         * sem_ch12.adb (Save_References): If operator node has been folded to
35740         enumeration literal, associated_node must be discarded.
35741
35742 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
35743
35744         * s-stchop-vxworks.adb: Add required pragma Convention to
35745         Task_Descriptor because it is updated by a C function.
35746
35747 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
35748
35749         PR ada/15568
35750         * Makefile.in: Remove target specific SO_OPT on IRIX
35751
35752 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35753
35754         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
35755         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
35756         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
35757         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
35758         (STMT_STMT, USE_STMT): New statement codes.
35759         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
35760         * ada-tree.h: Reflect above changes.
35761         (struct tree_loop_id): Deleted.
35762         (union lang_tree_node, struct lang_decl, struct lang_type):
35763         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
35764         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
35765         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
35766         (IS_ADA_STMT): New macro.
35767         * decl.c (annotate_decl_with_node): New function.
35768         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
35769         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
35770         Call add_stmt_with_node to do needed assignments.
35771         Add call to update setjmp buffer directly, not via EXPR_STMT.
35772         (maybe_variable): Argment GNAT_NODE deleted.
35773         * gigi.h (maybe_variable): Likewise.
35774         (make_transform, add_stmt_with_node, set_block_for_group): New.
35775         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
35776         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
35777         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
35778         (set_lineno, set_lineno_from_sloc): Likewise.
35779         (record_code_position, insert_code_for): Likewise.
35780         (gnat_poplevel): Now returns void.
35781         (end_subprog_body): Now takes argument.
35782         * misc.c (cgraph.h, tree-inline.h): New includes.
35783         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
35784         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
35785         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
35786         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
35787         (gnat_parse_file): Don't set immediate_size_expand.
35788         Call cgraph functions.
35789         (gnat_expand_expr): Remove most cases.
35790         (record_code_position, insert_code_for): Remove from here.
35791         * trans.c (toplev.h, tree-gimple.h): Now included.
35792         (discard_file_names): Deleted.
35793         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
35794         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
35795         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
35796         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
35797         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
35798         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
35799         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
35800         (set_block_for_group, add_stmt_list): Likewise.
35801         (start_stmt_group): Renamed from start_block_stmt.
35802         (end_stmt_group): Likewise, from end_block_stmt.
35803         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
35804         (gigi): Don't set discard_file_names or call set_lineno.
35805         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
35806         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
35807         Numerous changes throughout to reflect new names and complete
35808         function-at-a-time implementation.
35809         (gnat_expand_stmt): Delete or comment out all cases.
35810         (process_inlined_subprograms): Use add_stmt.
35811         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
35812         call set_lineno; also remove unneeded block handling.
35813         (process_type): Remove unneeded block handling.
35814         (build_unit_elab): Remove calls to deleted functions.
35815         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
35816         (tree-dump.h): Likewise.
35817         (struct ada_binding_level): Add field jmpbuf_decl.
35818         (gnat_define_builtin, gnat_install_builtins): New.
35819         (gnat_gimplify_function, gnat_finalize): Likewise.
35820         (gnat_poplevel): No longer return BLOCK, set it instead.
35821         Remove code dealing with nested functions.
35822         (gnat_init_decl_processing): Also set size_type_node.
35823         Call gnat_install_builtins.
35824         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
35825         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
35826         Remove special-case for "main".
35827         (end_subprog_body): Add arg and rework for tree-ssa.
35828         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
35829         Add case for BOOLEAN_TYPE.
35830         * utils2.c (rtl.h): Now include.
35831         (build_call_raise): Test Debug_Flag_NN directly.
35832         (build_call_alloc_dealloc): Don't use local stack allocation for now.
35833         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
35834         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
35835
35836 2004-06-07  Robert Dewar  <dewar@gnat.com>
35837
35838         * a-direct.ads, einfo.ads: Minor comment updates
35839
35840         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
35841         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
35842         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
35843         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
35844         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
35845
35846         * s-interr-sigaction.adb: Remove unreferenced variable
35847         (Attached_Interrupts).  Minor reformatting.
35848         Avoid use of variable I (replace by J).
35849
35850         * par-ch10.adb: Fix text of one error message
35851
35852         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
35853         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
35854         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
35855         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
35856         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
35857         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
35858         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
35859         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
35860         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
35861         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
35862         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
35863         2005 support.
35864
35865 2004-06-07  Doug Rupp  <rupp@gnat.com>
35866
35867         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
35868
35869         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
35870
35871         * mlib-tgt-vms-ia64.adb: New file.
35872
35873         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
35874         Add mlib-tgt-vms-ia64.adb
35875         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
35876         Move to alpha specific ifeq section.
35877         Add VMS specific versions of symbols.adb
35878         Renaming of 5q vms files.
35879
35880         * 5qsystem.ads renamed to system-vms_64.ads.
35881
35882 2004-06-07  Vincent Celier  <celier@gnat.com>
35883
35884         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
35885         explain that when a time of day corresponding to the non existing hour
35886         on the day switching to DST is specified, Split may return a different
35887         value for Seconds.
35888
35889         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
35890         to GNAT PRETTY.
35891
35892         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
35893         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
35894
35895         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
35896         to False.
35897         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
35898         the linking options.
35899         (Build_Library.Check_Libs): On VMS, if there is a dependency on
35900         g-trasym.ads, set Gtrasymobj_Needed to True.
35901
35902         * prj-attr.adb: Add new package Metrics for gnatmetric
35903
35904         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
35905         canonical case to take into account files with upper case characters on
35906         Windows.
35907         (Ada_Check): Load the reference symbol file name in the name buffer to
35908         check it, not the symbol file name.
35909
35910         * snames.ads, snames.adb: Add standard name Metrics (name of project
35911         file package for gnatmetric).
35912
35913         * vms_conv.ads: Add Metric to Comment_Type
35914
35915         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
35916
35917         * vms_data.ads: Add qualifiers for GNAT METRIC
35918
35919         * makegpr.adb (Link_Executables): Take into account the switches
35920         specified in package Linker of the main project.
35921
35922 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
35923
35924         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
35925         the index of the last element is Units.Last, not Units.Table'Last
35926         (which is usually not a valid index within the actually allocated
35927         storage for the table).
35928
35929         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
35930         determines whether to generate a call to a checked storage pool
35931         Dereference action.
35932         Generate such a call only for a dereference that either comes from
35933         source, or is the result of rewriting a dereference that comes from
35934         source.
35935
35936 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
35937
35938         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
35939
35940 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
35941
35942         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
35943         file level, elaborate the stride for inner dimensions in alignment
35944         units, not bytes.
35945
35946         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
35947         in a comment.
35948
35949 2004-06-07  Javier Miranda  <miranda@gnat.com>
35950
35951         * exp_ch6.adb: Correct wrong modification in previous patch
35952
35953 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
35954
35955         * g-trasym.ads: Corrected comment to properly reflect level of support
35956         on VMS.
35957
35958 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
35959
35960         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
35961         includes case of a variable referenced on the left hand side of an
35962         assignment, therefore remove redundant code. Variables and prefixes of
35963         indexed or selected components are now marked as referenced on left
35964         hand side. Warnings are now properly emitted when variables or prefixes
35965         are assigned but not read.
35966
35967         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
35968         left hand side referenced variables. Private access types do not
35969         produce the warning "variable ... is assigned but never read".
35970         Add also additional checks to left hand side referenced variables.
35971         Aliased, renamed objects and access types do not produce the warning
35972         "variable ... is assigned but never read" since other entities may read
35973         the memory location.
35974
35975 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
35976
35977         * Makefile.in: In the powerpc/vxworks-specific section, restore
35978         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
35979         by mistake).
35980
35981 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
35982
35983         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
35984         predefined operators.
35985         Removes spurious type errors from g-trasym-vms.adb.
35986
35987         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
35988         distinct from the operator appearing in the source, call appropriate
35989         routine to insert conversions when needed, and complete resolution of
35990         node.
35991         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
35992         interpretations for rewritten right operand.
35993         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
35994         the other operand is overloaded and the context is a type conversion.
35995
35996 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35997
35998         * ada-tree.def (BLOCK_STMT): Now has two operands.
35999         (BREAK_STMT): New.
36000
36001         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
36002
36003         * gigi.h: (gnat_poplevel): Now returns a tree.
36004
36005         * trans.c (end_block_stmt): Add arg; all callers changed.
36006         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
36007         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
36008         (add_stmt): Set TREE_TYPE.
36009         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
36010         (gnat_expand_stmt, case BREAK_STMT): New case.
36011
36012         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
36013
36014 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
36015
36016         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
36017         procedure Set_Stack_Size that is not needed.
36018
36019 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
36020
36021         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
36022         used for gnatpp input file and for the files upon which it depends
36023
36024 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
36025
36026         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
36027
36028 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
36029
36030         * gnatvsn.ads: Bump version numbers appropriately.
36031         Add new build type.
36032
36033 2004-06-07  Pascal Obry  <obry@gnat.com>
36034
36035         * gnat_ugn.texi: Improve comments about imported names and link names
36036         on Windows. Add a note about the requirement to use -k gnatdll's option
36037         when working with a DLL which has stripped stdcall symbols (no @nn
36038         suffix).
36039
36040 2004-05-27  Vincent Celier  <celier@gnat.com>
36041
36042         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
36043         COMMENTS_LAYOUT=UNTOUCHED
36044
36045         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
36046         symbols-vms-alpha.adb
36047
36048 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
36049
36050         * sem.ads: Clarify documentation on checks suppression.
36051
36052         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
36053
36054 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
36055
36056         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
36057         the case of multiple derivations.
36058         (Is_Object_Reference): For a selected component, verify that the prefix
36059         is itself an object and not a value.
36060
36061         * sem_ch12.adb (Same_Instantiated_Constant): New name for
36062         Same_Instantiated_Entity.
36063         (Same_Instantiated_Variable): Subsidiary to
36064         Check_Formal_Package_Instance, to recognize actuals for in-out generic
36065         formals that are obtained from a previous formal package.
36066         (Instantiate_Subprogram_Body): Emit proper error when
36067         generating code and the proper body of a stub is missing.
36068
36069         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
36070         has a universal interpretation, do the disambiguation here.
36071
36072         * exp_ch4.adb (Expand_N_Type_Conversion,
36073         Expand_N_Unchecked_Type_Conversion): Special handling when target type
36074         is Address, to avoid typing anomalies when Address is a visible integer
36075         type.
36076
36077         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
36078         to determine whether a subprogram should not be marked Pure, even when
36079         declared in a pure package.
36080
36081 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
36082
36083         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
36084
36085         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
36086         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
36087         Update the documentation about the Ravenscar profile, following the
36088         definition found in AI-249.
36089
36090         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
36091         setting the Profile (Ravenscar). This must be done in addition to
36092         setting the required restrictions.
36093
36094         * rtsfind.ads: Add the set of operations defined in package
36095         Ada.Interrupts.
36096
36097         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
36098         restriction.
36099
36100 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
36101
36102         lang-specs.h: Always require -c or -S and always redirect to /dev/null
36103         if -gnatc or -gnats is passed.
36104
36105 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
36106
36107         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
36108         a significant reference. Warnings are now properly emitted when a
36109         discriminated type is not referenced.
36110
36111         * lib-xref.adb (Generate_Reference): A deferred constant completion,
36112         record representation clause or record type discriminant does not
36113         produce a reference to its corresponding entity. Warnings are now
36114         properly emitted when deferred constants and record types are not
36115         referenced.
36116
36117 2004-05-27  Geert Bosch  <bosch@gnat.com>
36118
36119         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
36120         Fixes ACATS Annex G tests.
36121
36122 2004-05-27  Robert Dewar  <dewar@gnat.com>
36123
36124         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
36125         handling WITH
36126
36127 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
36128
36129         * s-interr.adb (Server_Task): Take into account case of early return
36130         from sigwait under e.g. linux.
36131
36132 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
36133
36134         * gnat_ugn.texi: Add description for the new gnatpp options:
36135          -rnb - replace the original source without creating its backup copy
36136          -c0 - do not format comments
36137
36138 2004-05-24  Geert Bosch  <bosch@gnat.com>
36139
36140         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
36141         with 192 bits of precision, sufficient to reduce a double-extended
36142         arguments X with a maximum relative error of T'Machine_Epsilon, for X
36143         in -2.0**32 .. 2.0**32.
36144         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
36145         reduction by the processor, which only uses a 68-bit approximation of
36146         Pi.
36147         (Tan): Always reduce arguments and compute function either using
36148         the processor's fptan instruction, or by dividing sin and cos as needed.
36149
36150 2004-05-24  Doug Rupp  <rupp@gnat.com>
36151
36152         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
36153         gcc error on 32/64 bit VMS.
36154
36155 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
36156
36157         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
36158         since this is what we get for stack overflows although not documented
36159         as such.
36160         Document the issues which may require adjustments to our signal
36161         handlers.
36162
36163 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
36164
36165         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
36166         enclosing dynamic scope if the instantiation is within a generic unit.
36167
36168 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
36169
36170         * exp_dbug.ads: Fix typo.
36171
36172         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
36173         Rename it to its proper name: system-linux-ia64.ads
36174         (stamp-gnatlib1): Remove extra target specific run time files when
36175         setting up the rts directory.
36176
36177 2004-05-24  Javier Miranda  <miranda@gnat.com>
36178
36179         * einfo.ads, einfo.adb (Limited_Views): Removed.
36180         (Limited_View): New attribute that replaces the previous one. It is
36181         now a bona fide package with the limited-view list through the
36182         first_entity and first_private attributes.
36183
36184         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
36185         limited-private-with clause.
36186         (Install_Limited_Withed_Unit): Install the private declarations of a
36187         limited-private-withed package. Update the installation of the shadow
36188         entities according to the new structure (see Build_Limited_Views)
36189         (Build_Limited_Views): Replace the previous implementation of the
36190         limited view by a package entity that references the first shadow
36191         entity plus the first shadow private entity (required for limited-
36192         private-with clause)
36193         (New_Internal_Shadow_Entity): Code cleanup.
36194         (Remove_Limited_With_Clause): Update the implementation to undo the
36195         new work carried out by Build_Limited_Views.
36196         (Build_Chain): Complete documentation.
36197         Replace Ada0Y by Ada 0Y in comments
36198         Minor reformating
36199
36200         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
36201         types the level of accessibility depends on the enclosing type
36202         declaration.
36203
36204         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
36205         entities. Complete documentation of previous change.
36206
36207 2004-05-24  Robert Dewar  <dewar@gnat.com>
36208
36209         * namet.adb: Minor reformatting
36210         Avoid use of name I (replace by J)
36211         Minor code restructuring
36212
36213         * sem_ch6.adb: Minor reformatting
36214
36215         * lib-writ.adb: Do not set restriction as active if this is a
36216         Restriction_Warning case.
36217
36218         * sem_prag.adb: Reset restriction warning flag if real pragma
36219         restriction encountered.
36220
36221         * s-htable.adb: Minor reformatting
36222         Change rotate count to 3 in Hash (improves hash for small strings)
36223
36224         * 5qsystem.ads: Add comments for type Address (no literals allowed).
36225
36226         * gnat_ugn.texi: Add new section of documentation "Code Generation
36227         Control", which describes the use of -m switches.
36228
36229 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
36230
36231         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
36232         through the DECL_INITIAL for renamed variables.
36233
36234 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
36235
36236         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
36237
36238 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
36239
36240         * exp_dbug.ads: Correct comments concerning handling of overloading,
36241         since we no longer use $ anymore.
36242
36243 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
36244
36245         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
36246         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
36247         with illegal subunits.
36248
36249 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
36250
36251         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
36252         body with front-end inlining enabled, check whether an inline pragma
36253         appears immediately after the body and applies to it.
36254
36255         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
36256         enabled and the pragma appears after the body of the subprogram.
36257
36258 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36259
36260         Part of function-at-a-time conversion
36261
36262         * misc.c (adjust_decl_rtl): Deleted.
36263         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
36264         Define.
36265
36266         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
36267         (add_decl_stmt, add_stmt, block_has_vars): New functions.
36268         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
36269
36270         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
36271         when making a decl.
36272         (gnat_to_gnu_entity): Likewise.
36273         Use add_stmt to update setjmp buffer.
36274         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
36275         flush_addressof.
36276         No longer call adjust_decl_rtl.
36277         (DECL_INIT_BY_ASSIGN_P): New macro.
36278         (DECL_STMT_VAR): Likewise.
36279
36280         * trans.c (gigi): Call start_block_stmt to make the outermost
36281         BLOCK_STMT.
36282         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
36283         Call start_block_stmt and end_block_stmt temporarily.
36284         Use gnat_expand_stmt instead of expand_expr_stmt.
36285         (add_decl_stmt): New function.
36286         (tree_transform): Call it.
36287         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
36288         (end_block_stmt): Set type and NULL_STMT.
36289         (gnat_expand_stmt): Make recursize call instead of calling
36290         expand_expr_stmt.
36291         (gnat_expand_stmt, case DECL_STMT): New case.
36292         (set_lineno_from_sloc): Do nothing if global.
36293         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
36294         (start_block_stmt, add_stmt, end_block_stmt): New functions.
36295         (build_block_stmt): Call them.
36296         (gnat_to_code): Don't expand NULL_STMT.
36297         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
36298         args.
36299         (tree_transform): Likewise.
36300         (tree_transform, case N_Null_Statement): Return NULL_STMT.
36301         (gnat_expand_stmt, case NULL_STMT): New case.
36302         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
36303         IF_STMT_TRUE.
36304
36305         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
36306         TREE_ADDRESSABLE.
36307
36308         * utils.c (create_var_decl): Do not call expand_decl or
36309         expand_decl_init.
36310         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
36311         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
36312         here.
36313         (struct e_stack): Add chain_next to GTY.
36314         (struct binding_level): Deleted.
36315         (struct ada_binding_level): New struct.
36316         (free_block_chain): New.
36317         (global_binding_level, clear_binding_level): Deleted.
36318         (global_bindings_p): Rework to see if no chain.
36319         (kept_level_p, set_block): Deleted.
36320         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
36321         new data structure and work directly on BLOCK node.
36322         (gnat_poplevel): Similarly.
36323         (get_decls): Look at BLOCK_VARS.
36324         (insert_block): Work directly on BLOCK node.
36325         (block_has_var): New function.
36326         (pushdecl): Rework for new binding structures.
36327         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
36328         poplevel.
36329         (build_subprog_body): Likewise.
36330         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
36331
36332         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
36333
36334         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
36335         (DECL_STMT_VAR): Likewise.
36336
36337 2004-05-17  Robert Dewar  <dewar@gnat.com>
36338
36339         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
36340         procedure
36341
36342         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
36343         of restriction synonyums by using
36344         Restrict.Process_Restriction_Synonyms.
36345
36346         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
36347
36348         * s-restri.ads (Tasking_Allowed): Correct missing comment
36349
36350         * s-rident.ads: Add entries for restriction synonyms
36351
36352         * ali.adb: Fix some problems with badly formatted ALI files that can
36353         result in infinite loops.
36354
36355         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
36356         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
36357         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36358         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
36359         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
36360         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
36361         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
36362         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
36363         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
36364         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
36365         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
36366         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
36367         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
36368         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
36369         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36370         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36371         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36372         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36373         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
36374         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
36375         to Task_Id (minor cleanup).
36376
36377 2004-05-17  Vincent Celier  <celier@gnat.com>
36378
36379         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
36380         directory separator.
36381
36382         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
36383         project being extended, if Languages is not declared in extending
36384         project.
36385
36386 2004-05-17  Javier Miranda  <miranda@gnat.com>
36387
36388         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
36389         limited view of a visible sibling.
36390
36391 2004-05-14  Robert Dewar  <dewar@gnat.com>
36392
36393         * gnat_ugn.texi: Minor change to -gnatS documentation
36394
36395         * sprint.adb: Remove some instances of Assert (False) and for this
36396         purpose replace them by output of a ??? string.
36397
36398         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
36399         Assert (False).
36400
36401         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
36402         flag processing. This was suppressing required dependencies in
36403         No_Run_Time mode and is not needed since the binder does not generate
36404         references for things in libgnat anyway.
36405
36406         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
36407         warning.
36408
36409 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
36410
36411         * gnat_ugn.texi: Document AIX-specific issue with initialization of
36412         resolver library.
36413
36414         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
36415         action for the case of an actual parameter in an init proc call.
36416
36417 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
36418
36419         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
36420         subtype, check visible entities in base type.
36421
36422         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
36423         actions if the object is a renaming.
36424
36425         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
36426         Check_Formal_Package_Instance, to determine more precisely when the
36427         formal and the actual denote the same entity.
36428
36429 2004-05-14  Javier Miranda  <miranda@gnat.com>
36430
36431         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
36432
36433         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
36434         corresponding to a private_with must be removed from visibility; it
36435         will be made visible later, just before we analyze the private part of
36436         the package.
36437         (Check_Private_Child_Unit): Allow private_with clauses in public
36438         siblings.
36439         (Install_Siblings): Make visible the private entities of private-withed
36440         siblings.
36441         (Install_Withed_Unit): Do not install the private withed unit if we
36442         are compiling a package declaration and the Private_With_OK flag was
36443         not set by the caller. These declarations will be installed later,
36444         just before we analyze the private part of the package.
36445
36446         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
36447         during the evaluation of the expression that initializes the object,
36448         decorate it with the expected type to avoid cascade errors.
36449         Code cleanup.
36450
36451         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
36452         subprogram we have to install the private_with clauses after its
36453         specification has been analyzed (as documented in AI-262.TXT).
36454
36455         * sem_ch8.adb (Has_Private_With): New function. Determines if the
36456         current compilation unit has a private with on a given entity.
36457         (Find_Direct_Name): Detect the Beaujolais problem described in
36458         AI-262.TXT
36459
36460         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
36461         provides the functionality of the function Is_Ancestor that was
36462         previously available in sem_ch10. It has been renamed to avoid
36463         overloading.
36464
36465         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
36466
36467 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36468
36469         * utils.c (build_vms_descriptor): Use SImode pointers.
36470
36471 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
36472
36473         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
36474
36475 2004-05-14  GNAT Script  <nobody@gnat.com>
36476
36477         * Make-lang.in: Makefile automatically updated
36478
36479 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
36480
36481         Renaming of target specific files for clarity
36482
36483         * Makefile.in: Rename GNAT target specific files.
36484
36485         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
36486         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
36487         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
36488         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
36489         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
36490         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
36491         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
36492         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
36493         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
36494         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
36495         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
36496         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
36497         51osinte.adb, 51osinte.ads, 51system.ads,
36498         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36499         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
36500         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
36501         56tpopsp.adb, 57system.ads, 58system.ads,
36502         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
36503         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36504         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
36505         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
36506         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
36507         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36508         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
36509         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
36510         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
36511         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
36512         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
36513         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
36514         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
36515         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
36516         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
36517         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36518         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36519         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36520         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
36521         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
36522         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
36523         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
36524         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
36525         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36526         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
36527         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
36528         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36529         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
36530         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36531         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
36532         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
36533         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
36534         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
36535         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
36536         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
36537         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
36538         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
36539         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
36540         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
36541         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
36542
36543         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
36544         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
36545         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
36546         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
36547         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
36548         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
36549         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
36550         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
36551         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
36552         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
36553         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
36554         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
36555         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
36556         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
36557         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
36558         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
36559         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
36560         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
36561         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
36562         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
36563         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
36564         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
36565         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
36566         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
36567         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
36568         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
36569         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
36570         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
36571         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
36572         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
36573         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
36574         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
36575         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
36576         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
36577         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
36578         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
36579         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
36580         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
36581         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
36582         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
36583         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
36584         s-osinte-vms.ads, s-osinte-vxworks.adb,
36585         s-osinte-vxworks.ads, s-osprim-mingw.adb,
36586         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
36587         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
36588         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
36589         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
36590         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
36591         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
36592         s-stchop-vxworks.adb, s-taprop-dummy.adb,
36593         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
36594         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
36595         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
36596         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
36597         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
36598         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
36599         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
36600         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
36601         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
36602         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
36603         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
36604         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
36605         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
36606         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
36607         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
36608         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
36609         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
36610         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
36611         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
36612         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
36613         system-irix-o32.ads, system-linux-x86_64.ads,
36614         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
36615         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
36616         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
36617         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
36618         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
36619         system-vxworks-mips.ads, system-vxworks-ppc.ads,
36620         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
36621         above.
36622
36623 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
36624
36625         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
36626
36627 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
36628
36629         Merge from tree-ssa-20020619-branch.
36630
36631         * config-lang.in (boot_language, build_by_default): Set
36632         to no.
36633         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
36634         (max_size): Add static chain op for call_expr.
36635
36636 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
36637
36638         PR target/15331
36639         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
36640
36641 2004-05-11  Roger Sayle  <roger@eyesopen.com>
36642
36643         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
36644         COND_EXPR.
36645
36646 2004-05-10  Doug Rupp  <rupp@gnat.com>
36647
36648         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
36649         system.aux_dec.
36650
36651         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
36652
36653         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
36654
36655         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
36656         Fixes undefined symbols in IA64 gnatlib.
36657
36658         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
36659
36660         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
36661         Short_Address). This will be moved to system.auxdec.
36662
36663 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
36664
36665         * sem_util.adb: Replace test for presence of a node that is always
36666         present with a call to Discard_Node.
36667
36668         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
36669         Analyze on the library unit node after generation of distribution stub
36670         constructs.  The call was a no-op because Unit_Node has already been
36671         Analyzed, and the tree fragments for the distribution stubs are
36672         analyzed as they are inserted in Exp_Dist.
36673         Update comment regarding to distribution stubs to reflect that we
36674         do not generate stub in separate files anymore.
36675
36676         * einfo.ads: Clarify the fact that a tagged private type has the
36677         E_Record_Type_With_Private Ekind.
36678
36679         * erroutc.adb: Minor reformatting
36680
36681         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
36682         values if line length is increased using -gnatyM (noticed during code
36683         reading).
36684
36685         * eval_fat.adb: Minor reformatting
36686         Put spaces around exponentiation operator
36687
36688 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
36689
36690         PR ada/15005
36691         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
36692         has been rewritten as an explicit dereference, retrieve type of
36693         original node to check for possibly unconstrained record type.
36694
36695 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
36696
36697         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
36698         overriding, use the operation of the parent unconditionally.
36699
36700         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
36701         operation when either operand is a literal, to avoid further
36702         ambiguities.
36703
36704         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
36705         overridden by a previous explicit declaration, mark the previous entity
36706         as overriding.
36707
36708         * sem_disp.adb (Check_Dispatching_Operation): New predicate
36709         Is_Visibly_Controlled, to determine whether a declaration of a
36710         primitive control operation for a derived type overrides an inherited
36711         one. Add warning if the explicit declaration does not override.
36712
36713 2004-05-10  Vincent Celier  <celier@gnat.com>
36714
36715         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
36716         some cases when the sources are no longer present.
36717
36718         * make.adb (Collect_Arguments): Fail if an external source, not part
36719         of any project need to be compiled, when switch -x has not been
36720         specified.
36721
36722         * makeusg.adb: Document new switch -x
36723
36724         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
36725         defaulted to False.
36726
36727         * switch-m.adb (Scan_Make_Switches): New switch -x
36728
36729         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
36730         gnatmake switch -x.
36731
36732         * gnat_ugn.texi: Document new gnatmake switch -x
36733
36734 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
36735
36736         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
36737
36738         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
36739         (process_attributes): Likewise.
36740
36741 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
36742
36743         * s-inmaop.ads: Fix spelling mistake in one of the comments.
36744
36745 2004-05-10  Robert Dewar  <dewar@gnat.com>
36746
36747         * gnat_ugn.texi: Document that for config pragma files, the maximum
36748         line length is always 32767.
36749
36750         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
36751         literals is now allowed.
36752
36753         * gnat-style.texi: Remove statement about splitting long lines before
36754         an operator rather than after, since we do not follow this rule at all.
36755         Clarify rule (really lack of rule) for spaces around exponentiation
36756
36757         * sem_elim.adb: Allow concatenation of string literals as well as a
36758         single string literal for pragma arguments.
36759
36760         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
36761
36762         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
36763         written for append case.
36764
36765         * frontend.adb: Changes to avoid checking max line length in config
36766         pragma files.
36767
36768         * g-os_lib.ads: Minor reformatting
36769
36770         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
36771         wrong in any case. Instead use standard value. Noticed during code
36772         reading.
36773
36774         * opt.ads (Max_Line_Length): New field, used to implement removal of
36775         limitation on length of lines when scanning config pragma files.
36776
36777         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
36778         makeutl.ads, makeutl.adb: Minor reformatting
36779
36780         * scn.adb: Do not check line length while scanning config pragma files
36781         Do not check line length while scanning out license information
36782
36783         * scng.adb: Changes to avoid line length checks while parsing config
36784         pragma files.
36785
36786 2004-05-10  GNAT Script  <nobody@gnat.com>
36787
36788         * Make-lang.in: Makefile automatically updated
36789
36790 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
36791
36792         * osint.adb (Find_Program_Name): Fix handling of VMS version
36793         number.
36794
36795 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
36796
36797         * g-os_lib.ads (Invalid_Time): New constant
36798
36799         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
36800         return OS_Time instead of time_t to match what is imported by Ada.
36801         Now return -1 if the file doesn't exist, instead of a random value
36802
36803 2004-05-05  Robert Dewar  <dewar@gnat.com>
36804
36805         * usage.adb: Add line for -gnatR?s switch
36806
36807         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
36808
36809         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
36810         and for Match (Data_First, Data_last)
36811
36812         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
36813         written when we are dealing with multi-unit files.
36814
36815 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
36816
36817         * Makefile.in: Remove unused targets and variables.
36818
36819 2004-05-05  Vincent Celier  <celier@gnat.com>
36820
36821         * switch-m.adb: New gnatmake switch -eI
36822
36823         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
36824         of new gnatmake switch -eInnn.
36825
36826         * makegpr.adb: Take into account new parameters Index and Src_Index in
36827         Prj.Util.
36828
36829         * clean.adb: Implement support for multi-unit sources, including new
36830         switch -i.
36831
36832         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
36833         Src_Index.
36834
36835         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
36836         (Extract_From_Q): New out parameter Index
36837         (Mark, Is_Marked): Subprograms moved to Makeutl
36838         (Switches_Of): New parameter Source_Index
36839         (Add_Switch): New parameter Index
36840         (Check): New parameter Source_Index
36841         (Collect_Arguments): New parameter Source_Index
36842         (Collect_Arguments_And_Compile): New parameter Source_Index
36843         (Compile): New parameter Source_Index
36844         Put subprograms in alphabetical order
36845         Add support for multi-source sources, including in project files.
36846
36847         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
36848         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
36849         Make.
36850
36851         * makeusg.adb: New gnatmake switch -eInnn
36852
36853         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
36854         Prj.Util.Value_Of.
36855
36856         * opt.ads (Main_Index): New variable, defaulted to 0.
36857
36858         * osint.ads, osinte.adb (Add_File): New parameter Index
36859         (Current_Source_Index): New function
36860
36861         * prj.adb: Take into account new components Index and Src_Index
36862
36863         * prj.ads (String_Element): New component Index
36864         (Variable_Value): New component Index
36865         (Array_Element): New component Src_Index
36866
36867         * prj-attr.adb: Indicate that optional index may be specified for
36868         attributes Main, Executable, Spec, Body and some of Switches.
36869
36870         * prj-attr.ads (Attribute_Kind): New values for optional indexes
36871         (Attribute_Record): New component Optional_Index
36872
36873         * prj-com.ads (File_Name_Data): New component Index
36874
36875         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
36876
36877         * prj-env.adb (Put): Output optional index
36878
36879         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
36880         attributes Spec and Body.
36881
36882         * prj-nmsc.adb: Process optional indexes
36883
36884         * prj-pp.adb: Ouput "at" for optional indexes
36885
36886         * prj-proc.adb: Take into account optional indexes
36887
36888         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
36889         Optional_Index. For string literal,
36890         process optional index when Optional_Index is True.
36891         (Parse_Expresion): New Boolean parameter Optional_Index
36892
36893         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
36894         (Set_Source_Index_Of): New procedure
36895
36896         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
36897         index.
36898
36899         * prj-util.ads (Executable_Of): New parameter Index
36900         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
36901         New parameter Src_Index, defaulted to 0.
36902
36903 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
36904
36905         PR ada/15257
36906         * sem_ch3.adb (Access_Definition): If this is an access parameter
36907         whose designated type is imported through a limited_with clause, do
36908         not add the enclosing subprogram to the list of private dependents of
36909         the type.
36910
36911 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
36912
36913         PR ada/15258
36914         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
36915         a limited_with clause, and the other is its non-limited view.
36916
36917 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
36918
36919         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
36920
36921         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
36922         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
36923         Stand.Boolean_Literals to produce references to entities
36924         Standard_False and Standard_True from compile-time computed boolean
36925         values.
36926
36927         * stand.ads (Boolean_Literals): New variable, provides the entity
36928         values for False and True, for use by the expander.
36929
36930 2004-05-05  Doug Rupp  <rupp@gnat.com>
36931
36932         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
36933         5vinmaop.adb: Unchecked convert Short_Address vice Address
36934
36935         * adaint.c, raise.c: Caste CRTL function return value
36936         to avoid gcc error on 32/64 bit IVMS.
36937
36938         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
36939         target = IA64/VMS.
36940
36941         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
36942
36943         * 5qsystem.ads (Address): Declare as Long_Integer
36944         (Short_Address): Declare as 32 bit subtype of Address
36945         Declare  abstract address operations to avoid gratuitous ambiguities.
36946
36947 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
36948
36949         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
36950         instead of the old Boolean_Entry_Barriers.
36951         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
36952
36953 2004-05-05  GNAT Script  <nobody@gnat.com>
36954
36955         * Make-lang.in: Makefile automatically updated
36956
36957 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
36958
36959         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
36960
36961 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
36962
36963         PR ada/15152
36964         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
36965         alone. Replacing object references by literals is inappropriate in a
36966         so low level context.
36967
36968 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
36969
36970         * a-exexpr.adb: Add comments
36971
36972 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
36973
36974         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
36975         declare the Ancestor_Tags array in Type_Specific_Data with a small size
36976         without risking a bounds check error when accessing one of its
36977         components.
36978         (Type_Specific_Data): Define Ancestor_Tags as a small array.
36979         This prevents us from hitting a limitation during the debug info
36980         generation when using stabs.
36981
36982         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
36983         small array.
36984         This prevents us from hitting a limitation during the debug info
36985         generation when using stabs.
36986
36987 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
36988
36989         lang-specs.h: Remove -gnatz* from specs.
36990
36991 2004-05-03  Vincent Celier  <celier@gnat.com>
36992
36993         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
36994
36995         * Make-lang.in, Makefile.in: Add gprmake
36996
36997 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
36998
36999         * sem_aggr.adb: Fix typo in comment.
37000
37001 2004-05-03  Robert Dewar  <dewar@gnat.com>
37002
37003         * make.adb: Minor reformatting
37004
37005         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
37006
37007         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
37008         so that it works when address is not a private type.
37009
37010         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
37011         properly with rewritten unchecked conversions. This prevents
37012         order-of-elaboration issues that can otherwise arise.
37013         (Minimum_Size): Don't check size of access types under VMS
37014
37015         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
37016         interpretations of integer literals as type System.Address.
37017
37018         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
37019         (Is_Descendent_Of): New function
37020
37021 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
37022
37023         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37024         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
37025         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
37026
37027         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
37028         of the old Max_Entry_Queue_Depth.
37029
37030         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37031         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
37032         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
37033
37034         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
37035         New entry for proper handling of Max_Entry_Queue_Depth.
37036         New entry for proper handling of No_Dynamic_Interrupts.
37037
37038         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
37039         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37040         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
37041         the GNAT specific restriction Max_Entry_Queue_Depth.
37042         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
37043         the GNAT specific restriction No_Dynamic_Interrupts.
37044
37045         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
37046         instead of the old Boolean_Entry_Barriers.
37047         Use the new restriction No_Dynamic_Attachment instead of the old
37048         No_Dynamic_Interrupts.
37049
37050         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
37051         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37052
37053         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
37054         of the old Max_Entry_Queue_Depth.
37055
37056 2004-05-03  GNAT Script  <nobody@gnat.com>
37057
37058         * Make-lang.in: Makefile automatically updated
37059
37060 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
37061
37062         * checks.adb (Enable_Range_Check): If the prefix of an index component
37063         is an access to an unconstrained array, perform check unconditionally.
37064
37065 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37066
37067         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
37068         Component_Clause.
37069
37070 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
37071
37072         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
37073         alternate stack setting. There was no support for the tasking cases
37074         and the changes eventually caused a number of side-effect failures in
37075         the non-tasking case too.
37076
37077 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
37078
37079         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
37080         -gnats is passed.
37081
37082 2004-04-29  Vincent Celier  <celier@gnat.com>
37083
37084         * make.adb (Gnatmake): Increase max size of argument array for
37085         gnatbind for the potential addition of -F.
37086         If there are Stand-Alone Library projects, invoke gnatbind with -F to
37087         be sure that elaboration flags will be checked.
37088
37089         * switch-c.adb: Correct call to Scan_Pos for -gnateI
37090
37091 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
37092
37093         * sem_warn.adb (Check_References): Move '<access-variable> may be
37094         null' warning out of under Warn_On_No_Value_Assigned.
37095
37096 2004-04-29  Ed Falis  <falis@gnat.com>
37097
37098         * gnat_ugn.texi: Fixed texi error
37099
37100 2004-04-29  Robert Dewar  <dewar@gnat.com>
37101
37102         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
37103         abstract operations if they come from predefined files.
37104
37105         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
37106         Dynamic, not RM).
37107
37108         * s-addope.adb: Correct obvious error in mod function
37109
37110 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
37111
37112         * Makefile.in: Add target pairs for powerpc darwin*
37113         tasking support.
37114
37115         * a-intnam-darwin.ads, s-osinte-darwin.adb,
37116         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
37117
37118 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
37119
37120         * Makefile.in: Add target macro definitions for s390*-linux*.
37121         * system-linux-s390.ads: New file.
37122         * system-linux-s390x.ads: New file.
37123
37124 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
37125
37126         * gnat_ugn.texi: Correct argument to @setfilename.
37127
37128 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
37129
37130         * a-exexpr.adb (Unwind_Word): New data type.
37131         (Unwind_Exception): Use it as type of Private1 and Private2.
37132
37133         * raise.c (db_action_for): Fix debug printf.
37134
37135 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
37136
37137         * a-wtmoio.ads: Formal type must be a modular type, not a signed
37138         integer type.
37139
37140 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37141
37142         * decl.c (gnat_to_gnu_entity, case object): Call
37143         __builtin_update_setjmp_buf.
37144
37145         * gigi.h (update_setjmp_buf): Deleted.
37146         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
37147
37148         * misc.c: (update_setjmp_buf): Deleted.
37149
37150         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
37151         around block of RTL.
37152
37153         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
37154
37155 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
37156
37157         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
37158         subprogram for which no pragma All_Calls_Remote applies, store the
37159         address of the real subprogram in the underlying record type, so local
37160         dereferences do not go through the PCS.
37161
37162 2004-04-26  Robert Dewar  <dewar@gnat.com>
37163
37164         * i-c.ads: Add some type qualifications to avoid ambiguities when
37165         compiling with s-auxdec.ads and a non-private address type.
37166
37167 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
37168
37169         * Makefile.rtl: Fix error in previous check-in:
37170         Add s-addope.o to non tasking object list (rather than tasking object
37171         list).
37172
37173 2004-04-26  Javier Miranda  <miranda@gnat.com>
37174
37175         * sem_aggr.adb: Fix typo in comments
37176         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
37177         Required to check the null-exclusion attribute.
37178
37179         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
37180         case of anonymous access types in record and array components. For a
37181         component definition the level is the same of the enclosing composite
37182         type.
37183
37184         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
37185         that are anonymous access types the level of accessibility depends on
37186         the enclosing type declaration. In order to have this information, set
37187         the scope of the anonymous access type to the enclosing record type
37188         declaration.
37189         (Array_Type_Declaration): In case of components that are anonymous
37190         access types the level of accessibility depends on the enclosing type
37191         declaration. In order to have this information, set the scope of the
37192         anonymous access type to the enclosing array type declaration.
37193
37194         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
37195         access type.
37196
37197         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
37198         renaming of anonymous access-to-constant types allowed if and only if
37199         the renamed object is access-to-constant.
37200
37201         * sem_util.adb (Type_Access_Level): In case of anonymous access types
37202         that are component_definition or discriminants of a nonlimited type,
37203         the level is the same as that of the enclosing component type.
37204
37205 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
37206
37207         * sem_elim.adb: Some minor code reorganization from code reading. Fix
37208         misprint in the function name (File_Name_Match).
37209
37210 2004-04-23  Laurent Guerby  <laurent@guerby.net>
37211
37212         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
37213         install.
37214
37215 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37216
37217         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
37218
37219 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
37220
37221         * adaint.c (__gnat_try_lock): No longer requires that the parent
37222         directory be writable, the directory itself is enough.
37223         (gnat_is_absolute_path): Change profile, so that the call from
37224         GNAT.OS_Lib can be made more efficient.
37225
37226         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
37227         from GNAT.OS_Lib can be made more efficient.
37228
37229         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
37230         one copy of the file name. Found by code reading.
37231
37232 2004-04-23  Vincent Celier  <celier@gnat.com>
37233
37234         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
37235         Correct documentation on gnatmake switches transmitted to the compiler
37236
37237         * ali.ads: Minor comment fix
37238
37239 2004-04-23  Javier Miranda  <miranda@gnat.com>
37240
37241         * sem_ch6.adb: (Confirming Types): Code cleanup
37242
37243         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
37244         subprogram types: E_Anonymous_Access_Subprogram_Type and
37245         E_Anonymous_Access_Protected_Subprogram_Type.
37246
37247 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
37248
37249         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37250         whether a pragma All_Calls_Remote applies to the subprogram on which
37251         'Access is taken.
37252         No functional change is introduced by this revision; the new parameter
37253         will be used to allow calls to local RCI subprograms to be optimized
37254         to not use the PCS in the case where no pragma All_Calls_Remote applies,
37255         as is already done in the PolyORB implementation of the DSA.
37256
37257         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37258         whether a pragma All_Calls_Remote applies to the subprogram on which
37259         'Access is taken.
37260         No functional change is introduced by this revision; the new parameter
37261         will be used to allow calls to local RCI subprograms to be optimized
37262         to not use the PCS in the case where no pragma All_Calls_Remote applies,
37263         as is already done in the PolyORB implementation of the DSA.
37264
37265 2004-04-23  Robert Dewar  <dewar@gnat.com>
37266
37267         * Makefile.rtl: Add entry for s-addope.o in run time library list
37268         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
37269         * s-addope.ads, s-addope.adb: New files.
37270
37271         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
37272         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
37273         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
37274         System.Address to be non-private and signed.
37275
37276         * sem_elim.adb: Minor reformatting (fairly extensive)
37277         Some minor code reorganization from code reading
37278         Add a couple of ??? comments
37279
37280 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37281
37282         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
37283         (tree_transform, case N_If_Statement): Remove non-determinism.
37284
37285         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
37286
37287 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
37288
37289         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
37290         Eliminate' section.
37291
37292         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
37293         no longer used as a parameter name for Eliminate pragma).
37294
37295 2004-04-22  Laurent Guerby  <laurent@guerby.net>
37296
37297         PR optimization/14984
37298         PR optimization/14985
37299         * trans.c (gigi): Fix non determinism leading to bootstrap
37300         comparison failures.
37301
37302 2004-04-21  Pascal Obry  <obry@gnat.com>
37303
37304         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
37305         passed to spawnvp() to properly handle program pathname with spaces on
37306         Win32.
37307
37308 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
37309
37310         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
37311         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
37312         unlocked in case of exceptions.
37313
37314 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
37315
37316         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
37317         This function does not exist anymore.
37318
37319 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
37320
37321         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
37322
37323         * link.c: Move variables to the __gnat name space.
37324
37325         * Makefile.in: list link.o explicitly when needed.
37326
37327         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
37328
37329 2004-04-21  Javier Miranda  <miranda@gnat.com>
37330
37331         * einfo.adb (Original_Access_Type): New subprogram
37332         (Set_Original_Access_Type): New subprogram
37333         (Write_Field21_Name): Write the name of the new field
37334
37335         * einfo.ads (Original_Access_Type): New field present in access to
37336         subprogram types.
37337         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
37338         E_Anonymous_Access_Protected_Subprogram_Type.
37339
37340         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
37341         subprogram types.
37342
37343         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
37344         to anonymous access to subprogram types.
37345
37346         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
37347         to subprogram types.
37348
37349         * sem_ch3.adb (Access_Definition): Complete decoration of entities
37350         corresponding to anonymous access to subprogram types.
37351         (Analyze_Component_Declaration): Add new actual to the call to
37352         subprogram replace_anonymous_access_to_protected_subprogram.
37353         (Array_Type_Declaration): Add new actual to the call to subprogram
37354         replace_anonymous_access_to_protected_subprogram.
37355         (Process_Discriminants): Add new actual to the call to subprogram
37356         replace_anonymous_access_to_protected_subprogram.
37357         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
37358
37359         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37360         formal.
37361
37362         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
37363         access to subprogram types.
37364
37365         * sem_util.adb (Has_Declarations): Addition of package_specification
37366         nodes.
37367
37368 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
37369
37370         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
37371         inlined flags to renamed entity only if in current unit.
37372
37373 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
37374
37375         * s-parint.ads: Add DSA implementation marker.
37376
37377         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
37378         value of System.Partition_Interface.DSA_Implementation to determine
37379         what version of the distributed systems annex is available (no
37380         implementation, GLADE, or PolyORB).
37381
37382 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
37383
37384         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
37385
37386 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37387
37388         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
37389         with new type if alias sets differ.
37390         Fixes ACATS c41103b.
37391
37392 2004-04-21  Vincent Celier  <celier@gnat.com>
37393
37394         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
37395         Add array Lang_Args for the language specific compiling argument
37396         switches.
37397
37398         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
37399
37400 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
37401
37402         * gnat_rm.texi: Update the descripton of the Eliminate pragma
37403         according to the recent changes in the format of the parameters of the
37404         pragma (replacing Homonym_Number with Source_Location).
37405
37406 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
37407
37408         * 5isystem.ads: Removed, unused.
37409
37410         * gnat_rm.texi: Redo 1.13 change.
37411
37412 2004-04-19  Robert Dewar  <dewar@gnat.com>
37413
37414         * s-stoele.ads: Clean up definition of Storage_Offset (the new
37415         definition is cleaner, avoids the kludge of explicit Standard operator
37416         references, and also is consistent with a visible System.Address with
37417         no visible operations.
37418
37419         * s-geveop.adb: Add declarations to avoid assumption of visible
37420         operations on type System.Address (since these might not be available
37421         if Address is a non-private type for which the operations
37422         are made abstract).
37423
37424         * sem_eval.adb: Minor reformatting
37425
37426         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
37427         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
37428         reformatting (new function spec format).
37429
37430         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
37431         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
37432         s-caun64.adb: Add declarations to avoid assumption of visible
37433         operations on type System.Address (since these might not be available
37434         if Address is a non-private type for which the operations are made
37435         abstract).
37436
37437         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
37438
37439         * exp_intr.adb: Minor comment update
37440
37441         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
37442
37443         * 5omastop.adb: Add declarations to avoid assumption of visible
37444         operations on type System.Address (since these might not be available
37445         if Address is a non-private type for which the operations
37446         are made abstract).
37447
37448 2004-04-19  Vincent Celier  <celier@gnat.com>
37449
37450         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
37451
37452         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
37453         defaulted to Ada.
37454
37455         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
37456         defaulted to Ada.
37457         Call Check with Process_Languages.
37458         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
37459         with Process_Languages.
37460         (Recursive_Check): New Boolean parameter Process_Languages. Call
37461         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
37462         Process_Languages.
37463
37464         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
37465
37466         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
37467         parameter Ada_Main, defaulted to True.
37468         Check for Ada specific characteristics only when Ada_Main is True.
37469
37470         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
37471
37472         * prj.adb: (Project_Empty): Add new Project_Data components.
37473
37474         * prj.ads: New types and tables for non Ada languages.
37475         (Project_Data): New components Languages, Impl_Suffixes,
37476         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
37477         Include_Path, Include_Data_Set.
37478
37479         * prj-env.ads, prj-env.adb: Minor reformatting
37480
37481         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
37482         Put subprograms in alphabetical order
37483
37484         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
37485         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
37486         Opt.Follow_Links.
37487
37488         * mlib-prj.adb: Back out modification in last version, as they are
37489         incorrect.
37490         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
37491
37492         * make.adb: (Mains): Moved to package Makeutl
37493         (Linker_Opts): Moved to package Makeutl
37494         (Is_External_Assignment): Moved to package Makeutl
37495         (Test_If_Relative_Path): Moved to package Makeutl
37496         (Gnatmake): Move sorting of linker options to function
37497         Makeutl.Linker_Options_Switches.
37498
37499         * makeutl.ads, makeutl.adb: New files.
37500
37501         * Makefile.in: Add makeutl.o to the object files for gnatmake
37502
37503         * makeusg.adb: Add line for new switch -eL.
37504
37505         * gnatls.adb (Image): New function.
37506         (Output_Unit): If in verbose mode, output the list of restrictions
37507         specified by pragmas Restrictions.
37508
37509         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
37510         Text_IO.
37511
37512         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
37513         needed, to put it in the range 1970 (included) - 2026 (excluded).
37514         (Time_Of): Do not shift Unix_Min_Year (1970).
37515         Shift the date by multiple of 56 years, if needed, to put it in the
37516         range 1970 (included) - 2026 (excluded).
37517
37518         * adaint.h, adaint.c (__gnat_set_executable): New function.
37519
37520 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37521
37522         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
37523         and pop GC context.
37524         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
37525         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
37526         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
37527         (tree_transform, case N_Code_Statement): Likewise.
37528         (gnat_expand_stmt, case LABEL_STMT): Don't look at
37529         LABEL_STMT_FIRST_IN_EH.
37530         (gnat_expand_stmt, case ASM_STMT): New case.
37531
37532         * utils2.c (build_unary_op): Properly set TREE_READONLY of
37533         UNCONSTRAINED_ARRAY_REF.
37534
37535         * utils.c (poplevel): Temporarily push/pop GC context around inline
37536         function expansion.
37537
37538         * decl.c (maybe_variable): Properly set TREE_READONLY of
37539         UNCONSTRAINED_ARRAY_REF.
37540         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
37541
37542         * ada-tree.def: (ASM_STMT): New.
37543
37544         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
37545         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
37546         ASM_STMT_INPUT): New.
37547         (ASM_STMT_CLOBBER): Likewise.
37548
37549 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
37550
37551         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
37552         general rcheck mechanism to raise Program_Error for E.4(18), instead
37553         of a custom raiser in System.Partition_Interface.
37554         Part of general cleanup work before PolyORB integration.
37555
37556         * snames.ads, snames.adb: Add new runtime library entities and names
37557         for PolyORB DSA.
37558
37559         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37560         exp_dist.
37561         (Build_Subprogram_Id): New subprogram provided by exp_dist
37562         Code reorganisation in preparation for PolyORB integration.
37563
37564         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37565         exp_dist.
37566         (Build_Subprogram_Id): New subprogram provided by exp_dist
37567
37568         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
37569         actual parameter types for call to dereference of an
37570         access-to-subprogram type.
37571
37572         * rtsfind.ads: Add new runtime library entities and names for PolyORB
37573         DSA.
37574
37575         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
37576         instead, which has the same behaviour here since we never pass it a
37577         NULL pointer.
37578
37579         * link.c (run_path_option, Solaris case): Use -Wl, as for other
37580         platforms.
37581
37582         * Makefile.in: adjust object file lists for gnatlink and gnatmake
37583         to account for new dependency upon Interfaces.C.Strings + link.o
37584         For x86 FreeBSD, use 86numaux.
37585
37586         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
37587         from Mlib.Tgt to Mlib.
37588
37589         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
37590         target-independent.
37591
37592         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
37593         target-specific versions of this subprogram, now implemented as a
37594         target-independent function in Mlib.
37595
37596         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
37597         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
37598         (Linker_Library_Path_Option): Remove target-specific versions of this
37599         subprogram, now implemented as a target-independent function in Mlib.
37600
37601         * atree.adb: (Allocate_Initialize_Node): New subprogram.
37602         Factors out node table slots allocation.
37603         (Fix_Parents): New subprogram.
37604         Encapsulate the pattern of fixing up parent pointers for syntactic
37605         children of a rewritten node.
37606         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
37607         (Rewrite): Use New_Copy when creating saved copy of original node.
37608         (Replace): Use Copy_Node to copy nodes.
37609
37610 2004-04-19  Javier Miranda  <miranda@gnat.com>
37611
37612         * sprint.adb (Sprint_Node_Actual): Give support to the new
37613         Access_To_Subprogram node available in Access_Definition nodes. In
37614         addition, give support to the AI-231 node fields: null-exclusion,
37615         all-present, constant-present.
37616
37617         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
37618
37619         * sinfo.ads, sinfo.adb:
37620         New field Access_To_Subprogram_Definition in Access_Definition nodes
37621
37622         * sem_ch6.adb (Process_Formals): Move here the code that creates and
37623         decorates internal subtype declaration corresponding to the
37624         null-excluding formal. This code was previously in Set_Actual_Subtypes.
37625         In addition, carry out some code cleanup on this code. In case of
37626         access to protected subprogram call
37627         Replace_Anonymous_Access_To_Protected_Subprogram.
37628         (Set_Actual_Subtypes): Code cleanup.
37629
37630         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
37631         Find_Type in case of anonymous access renamings. Add warning in case of
37632         null-excluding attribute used in anonymous access renaming.
37633
37634         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37635         subprogram
37636
37637         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
37638         subprogram.
37639         (Access_Definition): In case of anonymous access to subprograms call
37640         the corresponding semantic routine to decorate the node.
37641         (Access_Subprogram_Declaration): Addition of some comments indicating
37642         some code that probably should be added here. Detected by comparison
37643         with the access_definition subprogram.
37644         (Analyze_Component_Declaration): In case of access to protected
37645         subprogram call Replace_Anonymous_Access_To_Protected.
37646         (Array_Type_Declaration): In case of access to protected subprogram call
37647         Replace_Anonymous_Access_To_Protected_Subprogram.
37648         (Process_Discriminants): In case of access to protected subprogram call
37649         Replace_Anonymous_Access_To_Protected_Subprogram.
37650
37651         * par.adb (P_Access_Definition): New formal that indicates if the
37652         null-exclusion part was present.
37653         (P_Access_Type_Definition): New formal that indicates if the caller has
37654         already parsed the null-excluding part.
37655
37656         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
37657         (P_Identifier_Declarations): Code cleanup and give support to renamings
37658         of anonymous access to subprogram types.
37659         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
37660         (P_Array_Type_Definition): Give support to AI-254.
37661         (P_Component_Items): Give support to AI-254.
37662         (P_Access_Definition): New formal that indicates if the header was
37663         already parsed by the caller.
37664         (P_Access_Type_Definition): New formal that indicates if the caller has
37665         already parsed the null-excluding part.
37666
37667         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
37668         call to P_Access_Definition.
37669
37670 2004-04-19  Geert Bosch  <bosch@gnat.com>
37671
37672         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
37673         the delicate semantics of floating-point to integer conversion.
37674         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
37675
37676         * eval_fat.adb (Machine_Mantissa): Moved to spec.
37677         (Machine_Radix): New function.
37678
37679         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
37680         conversion checks.
37681         (Machine_Radix): New function also for use in conversion checks.
37682
37683 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
37684
37685         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
37686
37687         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
37688         to decorate the access-to-protected subprogram and the equivalent type.
37689
37690         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
37691         to anonymous access to subprogram types.
37692
37693         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
37694         constant-folding, for legality checks in contexts that require an RM
37695         static expression.
37696
37697         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
37698         temporary but stack checking is not enabled, increment serial number
37699         to so that symbol generation is consistent with and without stack
37700         checking.
37701
37702         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
37703         independent on whether stack checking is enabled, caller must check
37704         the corresponding flag.
37705
37706         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
37707         range checks.
37708         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
37709         parent if it has discriminants.
37710         (Build_Derived_Private_Type): Constructed full view does
37711         not come from source.
37712         (Process_Discriminants): Default discriminants on a tagged type are
37713         legal if this is the internal completion of a private untagged
37714         derivation.
37715
37716         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
37717         no constraint checks, because it corresponds to an existing object.
37718
37719         * sem_prag.adb (Process_Convention): Pragma applies
37720         only to subprograms in the same declarative part, i.e. the same unit,
37721         not the same scope.
37722
37723         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
37724         ignore type mismatch on a numeric conversion if expression comes from
37725         expansion.
37726
37727 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
37728
37729         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
37730         Homonym_Number parameter, add processing for Source_Location parameter
37731         corresponding.
37732         (Check_Eliminated): Remove the check for homonym numbers, add the check
37733         for source location traces.
37734
37735         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
37736         with Arg_Source_Location corresponding to the changes in the format of
37737         the pragma.
37738
37739         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
37740         Eliminate pragma corresponding to the changes in the format of the
37741         pragma: Homonym_Number is replaced with Source_Location, two ways of
37742         distinguishing homonyms are mutially-exclusive.
37743
37744 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
37745
37746         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
37747
37748         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
37749         No_Dollar_In_Label, no longer necessary, as it is always True.
37750         (Strip_Suffixes): Likewise.
37751
37752 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
37753
37754         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
37755         modulus for compatibility with size clause on targets with 16-bit
37756         Integer.
37757
37758         * layout.adb (Discrimify): In the case of private types, set Vtyp to
37759         full type to fix type mismatches on calls to size functions for
37760         discriminant-dependent array components.
37761
37762 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
37763
37764         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
37765         lib.
37766
37767 2004-04-19  Pascal Obry  <obry@gnat.com>
37768
37769         * mdll-utl.adb (Locate): New version is idempotent.
37770
37771 2004-04-17  Laurent Guerby  <laurent@guerby.net>
37772
37773         PR ada/14988 (partial)
37774         * impunit.adb: Fix typo.
37775
37776 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
37777
37778         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
37779         and install-rts-cert targets.  Remove all gnatlib and gnattools
37780         targets and all other rts-* targets (moved to libada).  Remove (now)
37781         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
37782         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
37783
37784 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37785
37786         * trans.c (tree_transform): Shortcut returning error_mark_node for
37787         statements in annotate_only_mode.
37788         (tree_transform, case N_Label, case N_Return_Statement,
37789         N_Goto_Statement): Make statement tree instead of generating code.
37790         (tree_transform, case N_Assignment_Statement): No longer check
37791         type_annotate_only.
37792         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
37793         RETURN_STMT): New.
37794         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
37795         New fcns.
37796         (gnat_to_gnu): Collect any RTL generated and deal with it.
37797         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
37798         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
37799         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
37800
37801         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
37802
37803         * ada-tree.def (EXPR_STMT): Fix typo in name.
37804         (BLOCK_STMT, IF_STMT): New nodes.
37805
37806         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
37807         LABEL_STMT_FIRST_IN_EH): New macros.
37808         (RETURN_STMT_EXPR): Likewise.
37809
37810         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
37811         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
37812
37813 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
37814
37815         * atree.ads: Correct documentation on extended nodes.
37816
37817         * link.c: Set run_path_option for FreeBSD.
37818
37819 2004-04-08  Vincent Celier  <celier@gnat.com>
37820
37821         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
37822         one of the ALI file, do not link with DEC lib.
37823
37824         * par.adb Remove the last two characters ("%s" or "%b") when checking
37825         if a language defined unit may be recompiled.
37826
37827 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
37828
37829         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
37830         removal of abstract operation leaves no possible interpretation for
37831         expression.
37832
37833         * sem_eval.adb (Eval_Qualified_Expression): Use
37834         Set_Raises_Constraint_Error on node when needed, so that it does not
37835         get optimized away by subsequent optimizations.
37836
37837         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
37838         operands even when they are not wrapped in a type conversion.
37839
37840 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
37841
37842         * sem_prag.adb (Set_Exported): Warn about making static as result of
37843         export only when the export is coming from source. This may be not
37844         be true e.g. on VMS where we expand export pragmas for exception codes
37845         together with imported or exported exceptions, and we don't want the
37846         user to be warned about something he didn't write.
37847
37848 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
37849
37850         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
37851         duplication between normal entities and those declared as renamings.
37852         No functional change.
37853
37854         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
37855         inline functions returning an unconstrained result.
37856
37857 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
37858
37859         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
37860         conform to what other front-ends do.
37861
37862 2004-04-08  Doug Rupp  <rupp@gnat.com>
37863
37864         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
37865         libraries.
37866
37867 2004-04-06  Pascal Obry  <obry@gnat.com>
37868
37869         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
37870
37871         * osint.adb (Program_Name): Do not look past a directory separator.
37872
37873 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
37874
37875         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
37876
37877         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
37878         requirement for preserving a copy of the original assignment node.
37879
37880         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
37881
37882 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
37883
37884         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
37885         when supported.
37886
37887 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
37888
37889         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
37890         operator calls in functional notation, and apply
37891         Universal_Interpretation to operands, not to their type.
37892
37893 2004-04-06  Robert Dewar  <dewar@gnat.com>
37894
37895         * 5wdirval.adb: Minor reformatting
37896
37897 2004-04-06  Ed Falis  <falis@gnat.com>
37898
37899         * gnat_rm.texi: Improve a reference to the GCC manual
37900
37901 2004-04-05  Vincent Celier  <celier@gnat.com>
37902
37903         * adaint.h, adaint.c: Add function __gnat_named_file_length
37904
37905         * impunit.adb: Add Ada.Directories to the list
37906
37907         * Makefile.in: Add VMS and Windows versions of
37908         Ada.Directories.Validity package body.
37909
37910         * Makefile.rtl: Add a-direct and a-dirval
37911
37912         * mlib-tgt.ads: Minor comment update.
37913
37914         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
37915         a-direct.ads, a-direct.adb: New files.
37916
37917 2004-04-05  Vincent Celier  <celier@gnat.com>
37918
37919         PR ada/13620
37920         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
37921         just to the compiler.
37922
37923 2004-04-05  Robert Dewar  <dewar@gnat.com>
37924
37925         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
37926         returned string is 1.
37927
37928         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
37929
37930         * eval_fat.ads: Minor reformatting
37931
37932         * g-curexc.ads: Document that lower bound of returned string values
37933         is always one.
37934
37935         * gnatlink.adb: Add ??? comment for previous change
37936         (need to document why this is VMS specific)
37937
37938         * s-stoele.ads: Minor reformatting
37939
37940         * tbuild.ads: Minor reformatting throughout (new function specs)
37941
37942         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
37943         after WITH.
37944
37945         * scng.adb: Minor reformatting
37946
37947 2004-04-05  Geert Bosch  <bosch@gnat.com>
37948
37949         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
37950         (Leading_Part): Still perform truncation to machine number if the
37951         specified radix_digits is greater or equal to machine_mantissa.
37952
37953 2004-04-05  Javier Miranda  <miranda@gnat.com>
37954
37955         * par-ch3.adb: Complete documentation of previous change
37956         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
37957         (aliased must appear before constant).
37958
37959         * par-ch4.adb: Complete documentation of previous change.
37960
37961         * par-ch6.adb: Complete documentation of previous change.
37962
37963         * sinfo.ads: Fix typo in commment.
37964
37965 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
37966
37967         * sem_ch3.adb (Inherit_Components): If derived type is private and has
37968         stored discriminants, use its discriminants to constrain parent type,
37969         as is done for non-private derived record types.
37970
37971         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
37972         Ada 2005 AI-310: an abstract non-dispatching operation is not a
37973         candidate interpretation in an overloaded call.
37974
37975         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
37976         expression is Null and target type is not an access type (e.g. a
37977         non-private address type).
37978
37979 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
37980
37981         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
37982         statement whose right-hand side is an inlined call, save a copy of the
37983         original assignment subtree to preserve enough consistency for
37984         Analyze_Assignment to proceed.
37985
37986         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
37987         complete assignment subtree which is now unnecessary, as the expansion
37988         of inlined call has been improved to preserve a consistent assignment
37989         tree.  Note_Possible_Modification must be called only
37990         after checks have been applied, or else unnecessary checks will
37991         be generated.
37992
37993         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
37994         of explicit dereferences that do not Come_From_Source:
37995          - be selective on cases where we must go back to the dereferenced
37996            pointer (an assignment to an implicit dereference must not be
37997            recorded as modifying the pointer);
37998          - do not rely on Original_Node being present (Analyze_Assignment
37999            calls Note_Possible_Modification on a copied tree).
38000
38001         * sem_warn.adb (Check_References): When an unset reference to a pointer
38002         that is never assigned is encountered, prefer '<pointer> may be null'
38003         warning over '<pointer> is never assigned a value'.
38004
38005 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
38006
38007         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
38008         the ABI.
38009
38010 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
38011
38012         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
38013         libexc. We currently don't reference anything in this library and
38014         linking it in triggers linker warnings we don't want to see.
38015
38016         * init.c: Update comments.
38017
38018 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38019
38020         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
38021         * utils.c (create_field_decl): Likewise.
38022         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
38023
38024 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
38025
38026         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
38027         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
38028         Add info directory entry and category.
38029
38030 2004-04-02  Jan Hubicka  <jh@suse.cz>
38031
38032         * utils.c: Include function.h
38033         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
38034
38035 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
38036
38037         PR ada/14150
38038         * Make-lang.in: Clean up generation of documentation
38039
38040         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
38041
38042         * xgnatug.adb: Removed, replaced by xgnatugn.adb
38043
38044         * xgnatugn.adb: Replaces xgnatug.adb
38045
38046         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
38047
38048         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
38049
38050         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38051         gnat_ug_wnt.texi: Removed.
38052
38053 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
38054
38055         * utils2.c: Update copyright notice.
38056
38057 2004-04-01  Robert Dewar  <dewar@gnat.com>
38058
38059         * checks.adb: Minor reformatting throughout
38060         Note that prev checkin added RM reference to alignment warning
38061
38062 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
38063
38064         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
38065         non-static when building aggregate for bit-packed array.
38066
38067         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
38068         function call that is itself the actual in a procedure call, build
38069         temporary for it.
38070
38071         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
38072         a string literal, create a temporary for it, constant folding only
38073         handles scalars here.
38074
38075 2004-04-01  Vincent Celier  <celier@gnat.com>
38076
38077         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
38078         Error_Msg_SP): New empty procedures to instantiate the Scanner.
38079         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
38080         tokens.
38081         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
38082         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
38083         and get the checksum.
38084
38085         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
38086         already in the Q.
38087         Increase the Marking_Label at the end of the Multiple_Main_Loop,
38088         instead of at the beginning.
38089
38090         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
38091         directly.
38092         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
38093         on VMS.
38094
38095         * osint.ads (Multi_Unit_Index_Character): New Character global variable
38096
38097         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
38098         not '~' directly.
38099
38100         * par.adb: Remove test on file name to detect language defined units.
38101         Add test on unit name, after parsing, to detect language defined units
38102         that are not compiled with -gnatg (except System.RPC and its children)
38103
38104         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
38105         following units without style checking.
38106
38107         * switch-c.adb: Change -gnatC to -gnateI
38108
38109         * usage.adb: Document new switch -gnateInnn
38110
38111         * scng.adb (Accumulate_Token_Checksum): New procedure
38112         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
38113         word or literal number.
38114         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
38115         numbers.
38116
38117 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
38118
38119         * a-tasatt.adb,
38120         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
38121         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
38122         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
38123         5vtpopde.adb: Add missing 'constant' keywords.
38124
38125 2004-04-01  Javier Miranda  <miranda@gnat.com>
38126
38127         * par-ch4.adb: (P_Allocator): Code cleanup
38128
38129         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
38130         attribute.
38131
38132         * sinfo.ads: Complete documentation of previous change
38133
38134 2004-04-01  Pascal Obry  <obry@gnat.com>
38135
38136         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
38137         only on VMS.  This special handling was done because an old GNU/ld bug
38138         on Windows which has been fixed.
38139
38140 2004-04-01  GNAT Script  <nobody@gnat.com>
38141
38142         * Make-lang.in: Makefile automatically updated
38143
38144 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38145
38146         * decl.c (gnat_to_gnu_entity, make_type_from_size):
38147         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
38148         * trans.c (tree_transform, convert_with_check): Likewise.
38149         * utils.c (gnat_signed_or_unsigned_type): Likewise.
38150         (build_vms_descriptor, unchecked_convert): Likewise.
38151         * utils2.c (nonbinary_modular_operation): Likewise.
38152
38153 2004-03-29  Javier Miranda  <miranda@gnat.com>
38154
38155         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
38156         (Install_Null_Excluding_Check): Local subprogram that determines whether
38157         an access node requires a runtime access check and if so inserts the
38158         appropriate run-time check.
38159         (Apply_Access_Check): Call Install_Null_Excluding check if required
38160         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
38161
38162         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
38163
38164         * einfo.ads: Fix typo in comment
38165
38166         * exp_ch3.adb (Build_Assignment): Generate conversion to the
38167         null-excluding type to force the corresponding run-time check.
38168         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
38169         type to force the corresponding run-time check.
38170
38171         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
38172         the null-excluding type to force the corresponding run-time check.
38173
38174         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
38175         case of access types unless they have the null-excluding attribute.
38176
38177         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
38178         part.
38179
38180         * exp_util.ads: Fix typo in comment
38181
38182         * par.adb (P_Null_Exclusion): New subprogram
38183         (P_Subtype_Indication): New formal that indicates if the null-excluding
38184         part has been scanned-out and it was present
38185
38186         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
38187
38188         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
38189         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
38190         type to force the corresponding run-time check
38191         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
38192         components
38193         (Resolve_Array_Aggregate): Carry out some static checks
38194         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
38195
38196         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
38197         attribute must be set only if specified by means of the null-excluding
38198         part. In addition, we must also propagate the access-constant attribute
38199         if present.
38200         (Access_Subprogram_Declaration, Access_Type_Declaration,
38201         Analyze_Component_Declaration, Analyze_Object_Declaration,
38202         Array_Type_Declaration, Process_Discriminants,
38203         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
38204         and carry out some static checks.
38205         (Build_Derived_Access_Type): Set the null-excluding attribute
38206         (Derived_Type_Declaration, Process_Subtype): Carry out some static
38207         checks.
38208
38209         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
38210
38211         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
38212
38213         * sem_ch6.adb (Process_Formals): Carry out some static checks.
38214         (Set_Actual_Subtypes): Generate null-excluding subtype if the
38215         null-excluding part was present; it is not required to be done here in
38216         case of anonymous access types.
38217         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
38218         value.
38219
38220         * sem_res.adb (Resolve_Actuals): Carry out some static check
38221         (Resolve_Null): Allow null in anonymous access
38222
38223         * sinfo.adb: New subprogram Null_Exclusion_Present
38224         All_Present and Constant_Present available on access_definition nodes
38225
38226         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
38227         object_declaration, derived_type_definition, component_definition,
38228         discriminant_specification, access_to_object_definition,
38229         access_function_definition, allocator, access_procedure_definition,
38230         access_definition, parameter_specification, All_Present and
38231         Constant_Present flags available on access_definition nodes.
38232
38233 2004-03-29  Robert Dewar  <dewar@gnat.com>
38234
38235         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
38236         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
38237         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
38238         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
38239         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
38240         sem_prag.adb: Updates to handle multiple units/file
38241
38242         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
38243
38244         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
38245         sem_util.adb: Minor reformatting
38246
38247         * sem_ch12.adb: Add comment for previous change
38248
38249 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
38250
38251         * osint.adb (Executable_Prefix): Set Exec_Name to the current
38252         executable name when not initialized. Otherwise, use its current value.
38253
38254         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
38255         initialize it to another executable name than the current one. This
38256         allows to configure paths for an executable name (gnatmake) different
38257         from the current one (gnatdist).
38258
38259 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
38260
38261         * exp_ch6.adb (Expand_Call): A call to a function declared in the
38262         current unit cannot be inlined if it appears in the body of a withed
38263         unit, to avoid order of elaboration problems in gigi.
38264
38265         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
38266         information for protected (wrapper) operation as well, to simplify gdb
38267         use.
38268
38269         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
38270         protected body, indicate that the entity for the generated spec comes
38271         from source, to ensure that references are properly generated for it.
38272         (Build_Body_To_Inline): Do not inline a function that returns a
38273         controlled type.
38274
38275         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
38276         apply convention to homonyms that are declared explicitly.
38277
38278         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
38279         that renames an equality operator and the operands are overloaded,
38280         resolve them with the declared formal types, before rewriting as an
38281         operator.
38282
38283 2004-03-29  GNAT Script  <nobody@gnat.com>
38284
38285         * Make-lang.in: Makefile automatically updated
38286
38287 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
38288
38289         * memtrack.adb: Log realloc calls, which are treated as free followed
38290         by alloc.
38291
38292 2004-03-25  Vincent Celier  <celier@gnat.com>
38293
38294         * prj-makr.adb (Process_Directories): Detect when a file contains
38295         several units. Do not include such files in the config pragmas or
38296         in the naming scheme.
38297
38298         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
38299         Resolve links only when not in Trusted_Mode.
38300         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
38301         Do not resolve links for the display names.
38302
38303         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
38304         resolve links when computing the display names.
38305
38306 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
38307
38308         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
38309         attribute reference does not denote a subtype, it can be any
38310         expression that has a classwide type, potentially after an implicit
38311         dereference.  In particular, the prefix can be a view conversion for
38312         a classwide type (for which Is_Object_Reference holds), but it can
38313         also be a value conversion for an access-to-classwide type. In the
38314         latter case, there is an implicit dereference, and the original node
38315         for the prefix does not verify Is_Object_Reference.
38316
38317         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
38318         conversion of a discriminant-dependent component of a mutable object
38319         is one itself.
38320
38321 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
38322
38323         * freeze.adb (Freeze_Entity): When an inherited subprogram is
38324         inherited, has convention C, and has unconstrained array parameters,
38325         place the corresponding warning on the derived type declaration rather
38326         than the original subprogram.
38327
38328         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
38329         indication on renaming declaration, if formal has a box and actual
38330         is absent.
38331
38332         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
38333         determine whether to generate an implicit or explicit reference to
38334         the renamed entity.
38335
38336         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
38337         subprogram renaming comes from a defaulted formal subprogram in an
38338         instance.
38339
38340 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
38341
38342         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
38343         value expressions to ensure that calls within a component definition
38344         will be checked (since those are evaluated during the record type's
38345         elaboration).
38346
38347 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
38348
38349         * s-tpobop.adb: Code clean up:
38350         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
38351         code.
38352         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
38353
38354 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
38355
38356         * Makefile.in: Clean up in the ravenscar run time.
38357
38358 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38359
38360         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
38361         of No_Strict_Aliasing to build_pointer_type_for_mode.
38362         * utils.c (update_pointer_to): Walk pointer and ref chains.
38363
38364 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
38365
38366         * ali.ads: Fix Comment about Dynamic_Elab.
38367
38368         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
38369         Has_RACW, Is_Generic, etc.)
38370         (Output_Object, Gnatls): Take into account ALI files not attached to
38371         an object.
38372
38373 2004-03-22  Vincent Celier  <celier@gnat.com>
38374
38375         * gprep.adb: Change all String_Access to Name_Id
38376         (Is_ASCII_Letter): new function
38377         (Double_File_Name_Buffer): New procedure
38378         (Preprocess_Infile_Name): New procedure
38379         (Process_Files): New procedure
38380         (Gnatprep): Check if output and input are existing directories.
38381         Call Process_Files to do the real job.
38382
38383 2004-03-22  Robert Dewar  <dewar@gnat.com>
38384
38385         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
38386         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
38387
38388 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
38389
38390         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
38391         case when the source contains only comments.
38392
38393 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
38394
38395         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
38396         declaration for a child subprogram body that acts as a spec, indicate
38397         that the entity in the declaration needs debugging information.
38398
38399         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
38400         full view if the subtype is created for a constrained record component;
38401         gigi has enough information to construct the record, and there is no
38402         place in the tree for the declaration.
38403
38404         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
38405         serial number for the dummy body that is built for analysis, to avoid
38406         inconsistencies in the generation of internal names when compiling
38407         with -gnatN.
38408
38409 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
38410
38411         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
38412         object.
38413
38414 2004-03-22  GNAT Script  <nobody@gnat.com>
38415
38416         * Make-lang.in: Makefile automatically updated
38417
38418 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38419
38420         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38421         * trans.c (tree_transform, emit_index_check): Likewise.
38422         * utils.c (build_template): Likewise.
38423         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
38424         (maybe_unconstrained_array, unchecked_convert): Likewise.
38425         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
38426         (build_unary_op): Likewise.
38427         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38428         (fill_vms_descriptor): Likewise.
38429         (build_call_alloc_dealloc): Likewise.
38430         ALIGN is unsigned.
38431         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
38432
38433 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
38434
38435         PR other/14630
38436         * gnat_ug.texi: Add info directory category and entry.
38437         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38438         gnat_ug_wnt.texi: Regenerate.
38439
38440 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
38441
38442         * ada-tree.h: Update copyright notice.
38443         Minor reformatting.
38444
38445 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
38446
38447         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
38448         as regular exception objects and not as mere integers representing the
38449         condition code.  The latter approach required some dynamics to mask off
38450         severity bits, which did not fit well into the GCC table based model.
38451         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
38452         exception data objects. We don't it and it would conflict with the other
38453         external symbol we have to generate for such exceptions.
38454
38455         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
38456         the special code for VMS exceptions, since these are now represented
38457         as regular exceptions objects.
38458
38459 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38460
38461         * decl.c (debug_no_type_hash): Remove.
38462         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
38463         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
38464
38465 2004-03-19  Laurent Guerby  <laurent@guerby.net>
38466
38467         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
38468         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
38469
38470 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38471
38472         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
38473         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
38474         (TYPE_RM_SIZE_INT): Directly use type.values.
38475         (TREE_LOOP_ID): Clean up check.
38476         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
38477         TYPE_VALUES, not TYPE_FIELDS.
38478         * trans.c (convert_with_check): Delay access of bounds of basetype
38479         until sure is numeric.
38480
38481 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
38482
38483         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
38484
38485         Code clean up:
38486         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
38487         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
38488         Specific.Set instead of direct call to e.g pthread_setspecific.
38489
38490 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
38491
38492         * adaint.c: Update comments.
38493
38494         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
38495         GNATLIB_SHARED for FreeBSD.
38496
38497 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
38498
38499         * init.c [VxWorks]: Do not fix the stack size for the environment task.
38500         When needed (stack checking) the stack size is retrieved
38501         from the VxWorks kernel.
38502
38503         * Makefile.in: Flag -nostdinc is required when building the run time
38504         for avoiding looking for files in the base compiler.
38505         Add the VxWorks specific version of the package body for
38506         System.Stack_checking.Operations (5zstchop.adb).
38507
38508         * Make-lang.in: Add the object file for
38509         System.Stack_Checking.Operations.
38510
38511         * Makefile.rtl: Add object file for the package
38512         System.Stack_Checking.Operations.
38513
38514         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
38515
38516         * s-stache.ads, s-stache.adb: Move the operations related to stack
38517         checking from this package to package System.Stack_Checking.Operations.
38518         This way, stack checking operations are only linked in the final
38519         executable when using the -fstack-check flag.
38520
38521 2004-03-18  Doug Rupp  <rupp@gnat.com>
38522
38523         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
38524         Reorganize ifeq's.
38525
38526         * 5qsystem.ads, 5xcrtl.ads: New files.
38527
38528 2004-03-18  Vincent Celier  <celier@gnat.com>
38529
38530         * prj.adb (Reset): Reset hash table Files_Htable
38531
38532         * prj-env.adb (Source_Paths, Object_Paths): New tables.
38533         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
38534         the procedures Add_To_Path_File.
38535         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
38536         making sure that each directory is present only once and, for object
38537         dirs, when a directory already present is added, the duplicate is
38538         removed and the directory is always put as the last in the table.
38539         Write the path files at the end of these accumulations.
38540
38541         * prj-nmsc.adb (Record_Source): Add source file name in hash table
38542         Files_Htable for all sources.
38543
38544         * prj-proc.adb (Process): Remove restrictions between not directly
38545         related extending projects.
38546
38547 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
38548
38549         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
38550         (Find_Sources): Minor speed optimization.
38551
38552         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
38553         parameter Trusted_Mode.
38554
38555 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
38556
38557         * scn.adb (Determine_License): Take into account a degenerated case
38558         when the source contains only comments.
38559
38560 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
38561
38562         * sem_warn.adb (Check_References): For a warning on a selected
38563         component that does not come from source, locate an uninitialized
38564         component of the record type to produce a more precise error message.
38565
38566 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
38567
38568         * 3zsoccon.ads: Fix multicast options.
38569
38570         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
38571         in the spec.
38572
38573 2004-03-15  Robert Dewar  <dewar@gnat.com>
38574
38575         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
38576         pragma used for a private type.
38577
38578         * lib-xref.adb (Generate_Reference): Do not generate warning if
38579         reference is in a different unit from the pragma Unreferenced.
38580
38581         * 5vtpopde.adb: Minor reformatting
38582         Fix casing of To_Task_ID
38583
38584         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
38585         flag if we have an unchecked conversion to an access type in the same
38586         unit.
38587
38588 2004-03-15  Geert Bosch  <bosch@gnat.com>
38589
38590         * a-ngcoty.adb (Modulus): In alternate formula for large real or
38591         imaginary parts, use Double precision throughout.
38592
38593         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
38594         we want to be able to compile run-time with -gnata for testing, but
38595         this may also be instantiated in user code that is compiled with -gnata.
38596
38597 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
38598
38599         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
38600         codes. Having a separate type for this is useful to enforce consistency
38601         throughout the various run-time units.
38602         (Exception_Data): Use Exception_Code for Import_Code.
38603
38604         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
38605         Natural and Integer in various places.
38606         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
38607         with the severity bits masked off.
38608         (Register_VMS_Exception): Handle the additional exception data pointer
38609         argument.
38610
38611         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
38612         component, now reflected by an exported accessor.
38613         (is_handled_by): New routine to compute whether the propagated
38614         occurrence matches some handler choice specification. Extracted out of
38615         get_action_description_for, and expanded to take care of the VMS
38616         specifities.
38617         (get_action_description_for): Use is_handled_by instead of an explicit
38618         complex condition to decide if the current choice at hand catches the
38619         propagated occurrence.
38620
38621         * raise.h (Exception_Code): New type for C.
38622
38623         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
38624         System.Standard_Library.Exception_Code, to allow references from the
38625         pragma import/export expander.
38626
38627         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
38628         New accessors to allow easy access to GNAT exception data
38629         characteristics.
38630         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
38631         redundant Handled_By_Others component, helper for the personality
38632         routine which will now be able to call the appropriate exception data
38633         accessor instead.
38634
38635         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
38636         component of Standard_Exception_Type to be the closest possible to
38637         Exception_Code in System.Standard_Library, that we cannot get at this
38638         point. Expand a ??? comment to notify that this type node should
38639         probably be rewritten later on.
38640
38641         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
38642         registration call to include a pointer to the exception object in the
38643         arguments.
38644
38645         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
38646         instead of int and explicit bitmasks.
38647
38648 2004-03-15  Vincent Celier  <celier@gnat.com>
38649
38650         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
38651         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
38652
38653         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
38654         longer needed now that it is in the spec of
38655         System.Tasking.Task_Attributes.
38656
38657         * adaint.h, adaint.c: (__gnat_create_output_file): New function
38658
38659         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
38660
38661         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
38662
38663         * make.adb (Gnatmake): Do not check the executable suffix; it is being
38664         taken care of in Scan_Make_Arg.
38665         (Scan_Make_Arg): Add the executable suffix only if the argument
38666         following -o, in canonical case, does not end with the executable
38667         suffix.  When in verbose mode and executable file name does not end
38668         with executable suffix, output the executable name, in canonical case.
38669
38670         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
38671         to avoid warnings when instantiating Ada.Task_Attributes.
38672         Minor reformating.
38673
38674         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
38675         in the correct order.
38676
38677         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
38678         redirect standard output and error to a file for the invocation of the
38679         compiler, then read the file.
38680
38681         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
38682         directory, instead of the Value.
38683         (Find_Source_Dirs): Remove useless code & comments.
38684
38685 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
38686
38687         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
38688         tagged type is inherited, and the parent operation is not frozen yet,
38689         force generation of a freeze node for the inherited operation, so the
38690         corresponding dispatch entry is properly initialized.
38691         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
38692         when looking for user-defined equality operation.
38693
38694         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
38695         boolean when locating primitive equality of tagged component.
38696
38697         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
38698         bit-aligned field and the right-hand side a string literal, introduce
38699         a temporary before expanding assignment into a loop.
38700
38701         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
38702         priority in full, to ensure that any expanded subepxressions of it are
38703         elaborated in the scope of the init_proc.
38704
38705         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
38706         after object declaration, skipping over code that may have been
38707         generated for validity checks.
38708
38709         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
38710         discriminants, ignore the known discriminants of its full view, if
38711         any, to check legality.
38712
38713         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
38714         component if type has unknown discriminants.
38715         (Analyze_Private_Extension_Declaration): Discriminant constraint is
38716         null if type has unknown discriminants.
38717
38718         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
38719         for end label when present.
38720
38721         * s-fileio.adb (Open): When called with a C_Stream, use given name for
38722         temporary file, rather than an empty string.
38723
38724 2004-03-15  Ed Falis  <falis@gnat.com>
38725
38726         * s-thread.adb: Removed, no longer used.
38727
38728 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38729
38730         * decl.c (target.h): Now include.
38731         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
38732         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
38733         (validate_size): For POINTER_TYPE, get smallest size permitted on
38734         machine.
38735
38736         * fe.h: Sort Einfo decls and add Set_Mechanism.
38737
38738         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
38739         (ada/decl.o): Depends on target.h.
38740
38741         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
38742         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
38743
38744 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
38745
38746         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
38747
38748         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
38749         Insert_Dereference_Action when rewriting an implicit dereference into
38750         an explicit one, this will be taken care of during expansion of the
38751         explicit dereference.
38752         (Expand_N_Slice): Same. Always do the rewriting, even for the case
38753         of non-packed slices, since the dereference action generated by
38754         expansion of the explicit dereference is needed in any case.
38755         (Expand_N_Selected_Component): When rewriting an implicit dereference,
38756         analyze and resolve the rewritten explicit dereference so it is seen
38757         by the expander.
38758         (Insert_Dereference_Action): This procedure is now called only for the
38759         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
38760         dereferences that do not come from source (including explicit
38761         dereferences resulting from rewriting implicit ones), but do not
38762         recursively insert a check for the dereference nodes contained within
38763         the check.
38764         (Insert_Dereference_Action): Clarify and correct comment.
38765
38766 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
38767
38768         PR ada/14131
38769         Move language detection to the top level.
38770         * config-lang.in: Build by default.
38771
38772 2004-03-05  Robert Dewar  <dewar@gnat.com>
38773
38774         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
38775
38776         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
38777         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
38778         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
38779         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
38780         unchecked conversion to spec to avoid warnings.
38781
38782         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
38783         to Task_ID
38784
38785         * 7stpopsp.adb: Correct casing in To_Task_ID call
38786
38787         * a-strsea.ads, a-strsea.adb: Minor reformatting
38788
38789         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
38790
38791         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
38792         Adjust Max_Msg_Length to be clearly large enough.
38793
38794         * fe.h: Define In_Same_Source_Unit
38795
38796         * osint.adb: Add pragma Warnings Off to suppress warnings
38797         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
38798         aliasing warnings.
38799
38800         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
38801
38802         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
38803
38804         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
38805
38806         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
38807
38808         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
38809
38810         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
38811         node. We now do generate them for gcc back end.
38812
38813         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
38814         warning.
38815
38816         * sinput-c.adb: Fix bad name in header.
38817         Add pragma Warnings Off to suppress aliasing warning.
38818
38819         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
38820
38821         * snames.h, snames.ads, snames.adb: Add entry for pragma
38822         No_Strict_Aliasing.
38823
38824 2004-03-05  Vincent Celier  <celier@gnat.com>
38825
38826         * prj-com.ads: Add hash table Files_Htable to check when a file name
38827         is already a source of another project.
38828
38829         * prj-nmsc.adb (Record_Source): Before recording a new source, check
38830         if its file name is not already a source of another project. Report an
38831         error if it is.
38832
38833         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
38834         source file name, call gnatpp with all the sources of the main project.
38835
38836         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
38837         of file names.
38838
38839         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
38840         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
38841         /RUNTIME_SYSTEM=, converted to --RTS=
38842         /NOTABS, converted to -notabs
38843
38844 2004-03-05  Pascal Obry  <obry@gnat.com>
38845
38846         * make.adb: Minor reformatting.
38847
38848 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
38849
38850         Part of implemention of AI-262.
38851         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
38852
38853         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
38854         procedure.
38855
38856         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
38857         when component type is a partially constrained class-wide subtype.
38858         (Constrain_Discriminated_Type): If parent type has unknown
38859         discriminants, a constraint is illegal, even if full view has
38860         discriminants.
38861         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
38862         with unknown discriminants whose full view is a discriminated record.
38863
38864         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
38865         flag, to handle properly derivations of tagged types with unknown
38866         discriminants.
38867         (Analyze_Package_Spec, Analyze_Package_Body): Install
38868         Private_With_Clauses before analyzing private part or body.
38869
38870         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
38871         Has_Discriminants can be true for a given type (documentation).
38872
38873 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
38874
38875         * s-restri.ads: Fix license (GPL->GMGPL).
38876
38877         * s-tassta.adb: Minor reformatting.
38878
38879         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
38880         by calls to Exit_One_ATC_Level, since additional clean up is performed
38881         by this function.
38882
38883         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
38884         by calls to Exit_One_ATC_Level, since additional clean up is performed
38885         by this function.
38886
38887 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38888
38889         * trans.c: Reflect GCC changes to fix bootstrap problem.
38890         Add warning for suspicious aliasing unchecked conversion.
38891
38892 2004-03-05  GNAT Script  <nobody@gnat.com>
38893
38894         * Make-lang.in: Makefile automatically updated
38895
38896 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
38897
38898         * ali.adb (Read_Instantiation_Instance): Do not modify the
38899         current_file_num when reading information about instantiations, since
38900         this corrupts files in later references.
38901
38902 2004-03-02  Vincent Celier  <celier@gnat.com>
38903
38904         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
38905         before checking if it is read-only.
38906
38907         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
38908         of SRC_DIRS and eliminate duplicates.
38909
38910         * gprcmd.adb: Replace command "path" with command "path_sep" to return
38911         the path separator.
38912         (Usage): Document path_sep
38913
38914         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
38915         C++ compiler. No need for a script.
38916         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
38917         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
38918         subst.
38919
38920         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
38921         where there are Ada sources.
38922         (Set_Ada_Paths): Only add to the include path the source dirs of project
38923         with Ada sources.
38924         (Add_To_Path): Add the Display_Values of the directories, not their
38925         Values.
38926
38927         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
38928         data.
38929
38930         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
38931         is not No_Name.
38932         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
38933         Value is canonicalized.
38934         (Language_Independent_Check): Do not copy Value to Display_Value when
38935         canonicalizing Value.
38936
38937         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
38938         path to find limited with cycles.
38939         (Parse_Single_Project): Use canonical cased path to find the end of a
38940         with cycle.
38941
38942 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
38943
38944         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
38945         and not a child unit.
38946
38947         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
38948         appear in a with_clause.
38949
38950         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
38951         only happen in type_annotate mode, do not try to elaborate it.
38952
38953         * exp_util.adb (Force_Evaluation): If expression is a selected
38954         component on the left of an assignment, use a renaming rather than a
38955         temporary to remove side effects.
38956
38957         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
38958         inlined instance body, which is analyzed before the end of the
38959         enclosing scope.
38960
38961 2004-03-02  Robert Dewar  <dewar@gnat.com>
38962
38963         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
38964         sem_ch4.adb: Use new feature for substitution of keywords in VMS
38965
38966         * errout.ads, errout.adb: Implement new circuit for substitution of
38967         keywords in VMS.
38968
38969         * sem_case.adb (Analyze_Choices): Place message properly when case is
38970         a subtype reference rather than an explicit range.
38971
38972         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
38973
38974 2004-03-02  Doug Rupp  <rupp@gnat.com>
38975
38976         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
38977
38978 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
38979
38980         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
38981
38982 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38983
38984         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
38985         BLKmode bitfield.
38986
38987 2004-02-25  Robert Dewar  <dewar@gnat.com>
38988
38989         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
38990         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
38991         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
38992         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
38993         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
38994         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
38995         the defining instance of the type to avoid aliasing problems.
38996         Fix copyright header.  Fix bad comments in package header.
38997
38998         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
38999
39000 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
39001
39002         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
39003         rewritten as references when aliased through an address clause.
39004
39005         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
39006         whether call can be interpreted as an indirect call to the result of a
39007         parameterless function call returning an access subprogram.
39008
39009 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
39010
39011         Code clean up:
39012         * exp_ch7.adb (Make_Clean): Remove generation of calls to
39013         Unlock[_Entries], since this is now done by Service_Entries directly.
39014
39015         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
39016
39017         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
39018         Requeue_Call for better code readability. Change spec and update calls:
39019         PO_Service_Entries now unlock the PO on exit.
39020         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
39021         PO_Service_Entries.
39022
39023         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
39024
39025         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
39026
39027 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
39028
39029         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
39030         protected subprogram call and analyzing the result of such expanding
39031         in case when the called protected subprogram is eliminated.
39032
39033         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
39034         names.
39035
39036 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
39037
39038         * Makefile.in: Clean ups.
39039
39040 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
39041
39042         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
39043         protected operations if original subprogram is flagged as eliminated.
39044         (Expand_N_Subprogram_Body): For a protected operation, create
39045         discriminals for next operation before checking whether the operation
39046         is eliminated.
39047
39048         * exp_ch9.adb (Expand_N_Protected_Body,
39049         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
39050         for internal protected operations if the original subprogram is
39051         eliminated.
39052
39053         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
39054         declared in a single protected object.
39055
39056 2004-02-23  Vincent Celier  <celier@gnat.com>
39057
39058         * prj-attr.adb: Make attribute Builder'Executable an associative array,
39059         case insensitive if file names are case insensitive, instead of a
39060         standard associative array.
39061
39062         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
39063         them as case insensitive on platforms where the file names are case
39064         sensitive.
39065
39066         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
39067         project file has already been parsed that canonical path are compared.
39068
39069 2004-02-23  Robert Dewar  <dewar@gnat.com>
39070
39071         * sinput-c.ads: Correct bad unit title in header
39072
39073         * freeze.adb: Minor reformatting
39074
39075 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39076
39077         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
39078         nonaddressable COMPONENT_REF that is removing padding that we are
39079         taking the address of, take the address of the padded record instead
39080         if item is variable size.
39081
39082 2004-02-20  Robert Dewar  <dewar@gnat.com>
39083
39084         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
39085
39086 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
39087
39088         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
39089         itype references for the constrained designated type of a component
39090         whose base type is already frozen.
39091
39092 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
39093
39094         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
39095         avoid GCC warnings.
39096
39097 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
39098
39099         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
39100         identifier for a phantom package that rewrites the formal package
39101         declaration with a box. The Add semantic decorations for the defining
39102         identifier from the original node (that represents the formal package).
39103
39104 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
39105
39106         * Make-lang.in (ada/stamp-sdefault): Use the top level
39107         move-if-change.
39108
39109 2004-02-19  Richard Henderson  <rth@redhat.com>
39110
39111         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
39112
39113 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
39114
39115         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
39116         Scan_ALI can be used for multiple ALI files without reinitializing
39117         between calls.
39118
39119 2004-02-18  Robert Dewar  <dewar@gnat.com>
39120
39121         * debug.adb: Minor reformatting.
39122
39123 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39124
39125         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
39126         to zero if there is an address clause.
39127
39128 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
39129
39130         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
39131
39132 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
39133
39134         * layout.adb (Layout_Component_List): Revise generation of call to
39135         discriminant-checking function to pass selections of all of the type's
39136         discriminants rather than just the variant-controlling discriminant.
39137
39138 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
39139
39140         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
39141         fail in the current setup and triggers spurious system error messages.
39142         Pretend it occurred and failed instead.
39143
39144 2004-02-18  Vincent Celier  <celier@gnat.com>
39145
39146         * bld.adb: Mark FLDFLAGS as saved
39147         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
39148         it is not the root project.  Put each directory to be
39149         extended between double quotes to prevent it to be expanded on Windows.
39150         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
39151         the project file. Set them back to their initial values if they have not
39152         been set in the project file.
39153
39154         * gprcmd.adb: (Gprdebug, Debug): New global variables
39155         (Display_Command): New procedure
39156         (Usage): Document new command "linkopts"
39157         Call Display_Command when env var GPRDEBUG has the value "TRUE"
39158         Implement new command "linkopts"
39159         Remove quotes that may be around arguments for "extend"
39160         Always call Normalize_Pathname with arguments formatted for the platform
39161
39162         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
39163         Change @echo to @$(display) in target clean to be able to clean silently
39164
39165         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
39166
39167         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
39168         canonical case.
39169
39170         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
39171         = Extending_All when current project is an extending all project.
39172
39173         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
39174         set to True only for LINK command, after Unix switch -o.
39175         (Process_Arguments): Set Output_File_Expected to True for LINK command
39176         after Unix switch -o. When Output_File_Expected is True, never add an
39177         extension to a file name.
39178
39179         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
39180         option file name, only to the --for-linker= switch.
39181         (Option_File_Name): If option file name do not end with ".opt", append
39182         "/OPTIONS".
39183
39184 2004-02-18  GNAT Script  <nobody@gnat.com>
39185
39186         * Make-lang.in: Makefile automatically updated
39187
39188 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
39189
39190         * Make-lang.in (stamp-sdefault): Do not depend on
39191         move-if-change.
39192
39193 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
39194
39195         * config-lang.in: Disable Ada by default until probe logic for
39196         a bootstrap Ada compiler can be moved to the top level configure
39197         script.
39198
39199 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
39200
39201         * decl.c (components_to_record): Don't claim that the internal fields
39202         we make to hold the variant parts are semantically addressable, because
39203         they are not.
39204
39205         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
39206         adjust the comment describing the modular type form when we can use it.
39207         (Install_PAT): Account for the Esiz renaming.
39208
39209         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
39210         sc_onstack context indication before raising the exception to which
39211         the signal is mapped. Allows better handling of later signals possibly
39212         triggered by the resumed user code if the exception is handled.
39213
39214 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
39215
39216         * 5zinit.adb: Removed, no longer used.
39217
39218 2004-02-12  Robert Dewar  <dewar@gnat.com>
39219
39220         * ali.adb: Remove separating space between parameters on R line. Makes
39221         format consistent with format used by the binder for Set_Globals call.
39222
39223         * atree.ads, atree.adb: Minor reformatting (new function header format)
39224
39225         * bindgen.adb: Add Run-Time Globals documentation section containing
39226         detailed documentation of the globals passed from the binder file to
39227         the run time.
39228
39229         * gnatls.adb: Minor reformatting
39230
39231         * init.c (__gnat_set_globals): Add note pointing to documentation in
39232         bindgen.
39233
39234         * lib-writ.ads, lib-writ.adb: Remove separating space between
39235         parameters on R line.
39236         Makes format consistent with format used by the binder for Set_Globals
39237         call.
39238
39239         * osint.ads: Add 2004 to copyright notice
39240         Minor reformatting
39241
39242         * snames.ads: Correct capitalization of FIFO_Within_Priorities
39243         Noticed during code reading, documentation issue only
39244
39245         * usage.adb: Remove junk line for obsolete C switch
39246         Noticed during code reading
39247
39248 2004-02-12  Vincent Celier  <celier@gnat.com>
39249
39250         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
39251         extend for each directory, so that multiple /** directories are
39252         extended individually.
39253         (Recursive_Process): Set the default for LANGUAGES to ada
39254
39255         * gprcmd.adb: Define new command "ignore", to do nothing.
39256         Implement new comment "path".
39257
39258         * Makefile.generic: Suppress output when SILENT is set
39259         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
39260         used, so that the correct compiler is invoked.
39261         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
39262         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
39263
39264 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
39265
39266         * Makefile.in: Clean ups and remove obsolete targets.
39267
39268 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
39269
39270         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
39271         predicate declared in exp_util.
39272
39273         * exp_util.adb: Add comments.
39274
39275         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
39276         visibility before compiling context of the subunit.
39277
39278         * sem_res.adb (Check_Parameterless_Call): If the context expects a
39279         value but the name is a procedure, do not attempt to analyze as a call,
39280         in order to obtain more telling diagnostics.
39281
39282         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
39283         'Access on parameterless function calls.
39284         (Normalize_Actuals): For a parameterless function call with missing
39285         actuals, defer diagnostic until resolution of enclosing call.
39286
39287         * sem_util.adb (Wrong_Type): If the context type is an access to
39288         subprogram and the expression is a procedure name, suggest a missing
39289         'attribute.
39290
39291 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
39292             Nathanael Nerode  <neroden@gcc.gnu.org>
39293
39294         PR ada/6637
39295         PR ada/5911
39296         Merge with libada-branch:
39297         * config-lang.in: Build libada only when ada is built.
39298
39299 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
39300
39301         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
39302         for a tagged type, verify that both formals have the same type.
39303
39304         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
39305         temporary when the formal is an in-parameter and the actual a possibly
39306         unaligned slice.
39307
39308         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
39309         when expansion is disabled, to ensure proper name capture with
39310         overloaded literals.  Condition can be of any boolean type, resolve
39311         accordingly.
39312
39313         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
39314         renaming is for a formal subprogram with a default operator name, and
39315         there is a usable operator that is visible at the point of
39316         instantiation.
39317
39318 2004-02-09  Robert Dewar  <dewar@gnat.com>
39319
39320         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
39321         rewrite to ignore errors in ali files, intended to allow tools downward
39322         compatibility with new versions of ali files.
39323
39324         * ali.ads: Add new parameter Ignore_Errors
39325
39326         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
39327         duplicating the error message giving the file with restrictions.
39328
39329         * debug.adb: Add debug flag I for gnatbind
39330
39331         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
39332         operators for the case where the operator is a defining operator.
39333
39334         * exp_ch3.adb: Minor reformatting (new function spec format).
39335
39336         * exp_ch4.adb: Add comment for previous change, and make minor
39337         adjustment to loop to always check for improper loop termination.
39338         Minor reformatting throughout (new function spec format).
39339
39340         * gnatbind.adb: Implement -di debug flag for gnatbind
39341
39342         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
39343
39344         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
39345
39346         * lib-load.adb: Fix bad assertion.
39347         Found by testing and code reading.
39348         Minor reformatting.
39349
39350         * lib-load.ads: Minor reformatting.
39351
39352         * lib-writ.adb: There is only one R line now.
39353
39354         * lib-writ.ads: Add documentation on making downward compatible changes
39355         to ali files so old tools work with new ali files.
39356         There is only one R line now.
39357         Add documentation on format incompatibilities (with special GPS note)
39358
39359         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
39360
39361         * par-load.adb: Minor reformatting
39362
39363         * sem_ch8.adb: Fix to error message from last update
39364         Minor reformatting and restructuring of code from last update
39365
39366         * par-prag.adb, snames.adb, snames.ads, snames.h,
39367         sem_prag.adb: Implement pragma Profile.
39368
39369         * stylesw.adb: Implement -gnatyN switch to turn off all style check
39370         options.
39371
39372         * usage.adb: Add line for -gnatyN switch
39373
39374         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
39375
39376 2004-02-09  Albert Lee  <lee@gnat.com>
39377
39378         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
39379
39380 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
39381
39382         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
39383         slices.
39384
39385         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
39386         is nested in an instance that is not frozen yet, to avoid
39387         order-of-elaboration problems in gigi.
39388
39389         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
39390         body the attribute is legal.
39391
39392 2004-02-09  Robert Dewar  <dewar@gnat.com>
39393
39394         * s-rident.ads: Minor comment correction
39395
39396         * targparm.adb: Remove dependence on uintp completely. There was
39397         always a bug in Make in that it called Targparm before initializing
39398         the Uint package. The old code appeared to get away with this, but
39399         the new code did not! This caused an assertion error in gnatmake.
39400
39401         * targparm.ads: Fix bad comment, restriction pragmas with parameters
39402         are indeed fully supported.
39403
39404 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
39405
39406         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
39407
39408 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
39409
39410         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
39411         with targetm.calls.promote_prototypes.
39412
39413 2004-02-04  Robert Dewar  <dewar@gnat.com>
39414
39415         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
39416         ali.ads, gprcmd.adb: Minor reformatting
39417
39418         * bindgen.adb: Output restrictions string for new style restrictions
39419         handling
39420
39421         * impunit.adb: Add s-rident.ads (System.Rident) and
39422         s-restri (System.Restrictions)
39423
39424         * lib-writ.adb: Fix bug in writing restrictions string (last few
39425         entries wrong)
39426
39427         * s-restri.ads, s-restri.adb: Change name Restrictions to
39428         Run_Time_Restrictions to avoid conflict with package name.
39429         Add circuit to read and acquire run time restrictions.
39430
39431 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
39432
39433         * restrict.ads, restrict.adb: Use the new restriction
39434         No_Task_Attributes_Package instead of the old No_Task_Attributes.
39435
39436         * sem_prag.adb: No_Task_Attributes is a synonym of
39437         No_Task_Attributes_Package.
39438
39439         * snames.ads, snames.adb: New entry for proper handling of
39440         No_Task_Attributes.
39441
39442         * s-rident.ads: Adding restriction No_Task_Attributes_Package
39443         (AI-00249) that supersedes the GNAT specific restriction
39444         No_Task_Attributes.
39445
39446 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
39447
39448         * sem_prag.adb:
39449         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
39450          body, an identifier may be wrapped in an unchecked conversion.
39451
39452 2004-02-04  Vincent Celier  <celier@gnat.com>
39453
39454         * lib-writ.ads: Comment update for the W lines
39455
39456         * bld.adb: (Expression): An empty string list is static
39457
39458         * fname-uf.adb: Minor comment update
39459
39460         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
39461
39462         * gnatbind.adb: Initialize Cumulative_Restrictions with the
39463         restrictions on the target.
39464
39465 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
39466
39467         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
39468         gen_rtx.
39469
39470 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
39471
39472         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
39473
39474 2004-02-02  Vincent Celier  <celier@gnat.com>
39475
39476         * gprcmd.adb (Check_Args): If condition is false, print the invoked
39477         comment before the usage.
39478         Gprcmd: Fail when command is not recognized.
39479         (Usage): Document command "prefix"
39480
39481         * g-md5.adb (Digest): Process last block.
39482         (Update): Do not process last block. Store remaining characters and
39483         length in Context.
39484
39485         * g-md5.ads (Update): Document that several call to update are
39486         equivalent to one call with the concatenated string.
39487         (Context): Add fields to allow new Update behaviour.
39488
39489         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
39490         defaulted to False.
39491         When May_Fail is True and no existing file can be found, return No_File.
39492
39493         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
39494         functions.
39495
39496         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
39497         spec file name instead on the W line.
39498
39499 2004-02-02  Robert Dewar  <dewar@gnat.com>
39500
39501         * ali.adb: Read and acquire info from new format restrictions lines
39502
39503         * bcheck.adb: Add circuits for checking restrictions with parameters
39504
39505         * bindgen.adb: Output dummy restrictions data
39506         To be changed later
39507
39508         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39509         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
39510         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
39511         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
39512         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
39513
39514         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
39515         the warning message on access to possibly uninitialized variable S)
39516         Minor changes for new restrictions handling.
39517
39518         * gnatbind.adb: Minor reformatting
39519         Minor changes for new restrictions handling
39520         Move circuit for -r processing here from bcheck (cleaner)
39521
39522         * gnatcmd.adb, gnatlink.adb: Minor reformatting
39523
39524         * lib-writ.adb: Output new format restrictions lines
39525
39526         * lib-writ.ads: Document new R format lines for new restrictions
39527         handling.
39528
39529         * s-restri.ads/adb: New files
39530
39531         * Makefile.rtl: Add entry for s-restri.ads/adb
39532
39533         * par-ch3.adb: Fix bad error messages starting with upper case letter
39534         Minor reformatting
39535
39536         * restrict.adb: Major rewrite throughout for new restrictions handling
39537         Major point is to handle restrictions with parameters
39538
39539         * restrict.ads: Major changes in interface to handle restrictions with
39540         parameters. Also generally simplifies setting of restrictions.
39541
39542         * snames.ads/adb: New entry for proper handling of No_Requeue
39543
39544         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
39545         restriction counting.
39546         Other minor changes for new restrictions handling
39547
39548         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
39549         Restriction_Warnings now allows full parameter notation
39550         Major rewrite of Restrictions for new restrictions handling
39551
39552 2004-02-02  Javier Miranda  <miranda@gnat.com>
39553
39554         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
39555         syntax rule for object renaming declarations.
39556         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
39557         component definitions.
39558
39559         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
39560         components.
39561         (Array_Type_Declaration): Give support to access components. In addition
39562         it was also modified to reflect the name of the object in anonymous
39563         array types. The old code did not take into account that it is possible
39564         to have an unconstrained anonymous array with an initial value.
39565         (Check_Or_Process_Discriminants): Allow access discriminant in
39566         non-limited types.
39567         (Process_Discriminants): Allow access discriminant in non-limited types
39568         Initialize the new Access_Definition field in N_Object_Renaming_Decl
39569         node.  Change Ada0Y to Ada 0Y in comments
39570
39571         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
39572         equality operators.
39573         Change Ada0Y to Ada 0Y in comments
39574
39575         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
39576         renamings Change Ada0Y to Ada 0Y in comments
39577
39578         * sem_type.adb (Find_Unique_Type): Give support to the equality
39579         operators for universal access types
39580         Change Ada0Y to Ada 0Y in comments
39581
39582         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
39583
39584         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
39585         field.
39586         (N_Object_Renaming_Declaration): Addition of Access_Definition field
39587         Change Ada0Y to Ada 0Y in comments
39588
39589         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
39590         component definition and object renaming nodes
39591         Change Ada0Y to Ada 0Y in comments
39592
39593 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
39594
39595         * restrict.adb: Use the new restriction identifier
39596         No_Requeue_Statements instead of the old No_Requeue for defining the
39597         restricted profile.
39598
39599         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
39600         No_Requeue_Statements.
39601
39602         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
39603         that supersedes the GNAT specific restriction No_Requeue. The later is
39604         kept for backward compatibility.
39605
39606 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
39607
39608         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
39609         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
39610         pragma and fix incorrect ones.
39611
39612         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
39613         warning if the pragma is redundant.
39614
39615 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
39616
39617         * 5staprop.adb: Add missing 'constant' keywords.
39618
39619         * Makefile.in: use consistent value for SYMLIB on
39620         platforms where libaddr2line is supported.
39621
39622 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39623
39624         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
39625         annotating types.
39626
39627 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
39628
39629         * init.c (__gnat_install_handler): Setup an alternate stack for signal
39630         handlers in the environment thread. This allows proper propagation of
39631         an exception on stack overflows in this thread even when the builtin
39632         ABI stack-checking scheme is used without support for a stack reserve
39633         region.
39634
39635         * utils.c (create_field_decl): Augment the head comment about bitfield
39636         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
39637         here, because the former is not accurate enough at this point.
39638         Let finish_record_type decide instead.
39639         Don't make a bitfield if the field is to be addressable.
39640         Always set a size for the field if the record is packed, to ensure the
39641         checks for bitfield creation are triggered.
39642         (finish_record_type): During last pass over the fields, clear
39643         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
39644         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
39645         from DECL_BIT_FIELD.
39646
39647 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
39648
39649         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
39650         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
39651         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
39652
39653 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39654
39655         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
39656
39657         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
39658         (ZCX_By_Default): Likewise.
39659         (Front_End_ZCX_Support): Likewise.
39660
39661         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
39662         (Initialize_Lock): Mark Level unreferenced.
39663         (Sleep): Mark Reason unreferenced.
39664         (Timed_Sleep): Likewise.
39665         (Wakeup): Likewise.
39666         (Exit_Task): Use Result.
39667         (Check_No_Locks): Mark Self_ID unreferenced.
39668
39669         * 5gtasinf.adb (New_Sproc): Make Attr constant.
39670         (Bound_Thread_Attributes): Make Sproc constant.
39671         (New_Bound_Thread_Attributes): Likewise.
39672
39673 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
39674
39675         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
39676         one-dimensional array an slice assignments, when component type is
39677         controlled.
39678
39679         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
39680         component type is controlled, and control_actions are in effect, use
39681         TSS procedure rather than generating inline code.
39682
39683         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
39684         arrays with controlled components.
39685
39686 2004-01-26  Vincent Celier  <celier@gnat.com>
39687
39688         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
39689         command line for the non VMS case.
39690
39691         * gnatlink.adb (Process_Binder_File): When building object file, if
39692         GNU linker is used, put all object paths between quotes, to prevent ld
39693         error when there are unusual characters (such as '!') in the paths.
39694
39695         * Makefile.generic: When there are sources in Ada and the main is in
39696         C/C++, invoke gnatmake with -B, instead of -z.
39697
39698         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
39699         from VMS_Conversion.
39700         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
39701         specification of argument file on the command line.
39702
39703 2004-01-26  Bernard Banner  <banner@gnat.com>
39704
39705         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
39706
39707 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
39708
39709         * snames.adb: Update copyright notice.
39710         Add info on slice assignment for controlled arrays.
39711
39712 2004-01-23  Robert Dewar  <dewar@gnat.com>
39713
39714         * exp_aggr.adb: Minor reformatting
39715
39716         * exp_ch9.adb: Minor code clean up
39717         Minor reformatting
39718         Fix bad character in comment
39719
39720         PR ada/13471
39721         * targparm.adb (Get_Target_Parameters): Give clean abort error on
39722         unexpected end of file, along with more detailed message.
39723
39724 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39725
39726         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
39727         PAT.
39728
39729         * decl.c (copy_alias_set): New function.
39730         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
39731
39732 2004-01-23  Doug Rupp  <rupp@gnat.com>
39733
39734         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
39735         lib$${file} in case subsequent character is not a separator.
39736
39737 2004-01-23  Vincent Celier  <celier@gnat.com>
39738
39739         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
39740         when the GCC version is at least 3.
39741
39742         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
39743         Remove all "Opt.", to prepare for opt split
39744
39745         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
39746         Extends_All. Set to True when the project parsed is an extending all
39747         project. Fails for importing an extending all project only when the
39748         imported project is an extending all project.
39749         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
39750         depending on the value of Extends_All returned.
39751
39752         * prj-proc.adb (Process): Check that no project shares its object
39753         directory with a project that extends it, directly or indirectly,
39754         including a virtual project.
39755         Check that no project extended by another project shares its object
39756         directory with another also extended project.
39757
39758         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
39759         Kind = N_With_Clause
39760
39761         * prj-tree.ads: Minor reformatting
39762         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
39763
39764 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
39765
39766         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
39767         applies to a type with an incomplete view, use full view in Name of
39768         clause, for consistency with uses of Get_Attribute_Definition_Clause.
39769
39770 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
39771
39772         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
39773         SCHED_RR, since other values are not supported by this policy.
39774         (Initialize): Move initialization of mutex attribute to package
39775         elaboration, to prevent early access to this variable.
39776
39777         * Makefile.in: Remove mention of Makefile.adalib, unused.
39778
39779         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39780         1ssecsta.ads: Removed, unused.
39781
39782 2004-01-21  Javier Miranda  <miranda@gnat.com>
39783
39784         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
39785         entity if already built in the current scope.
39786
39787         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
39788         reminder in internal scopes. Required for nested limited aggregates.
39789
39790 2004-01-21  Doug Rupp  <rupp@gnat.com>
39791
39792         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
39793         VMS. Replace all occurences of libgnat- and libgnarl- with
39794         libgnat$(hyphen) and libgnarl$(hyphen).
39795         Fixed shared library build problem on VMS.
39796
39797 2004-01-21  Robert Dewar  <dewar@gnat.com>
39798
39799         * mlib-prj.adb: Minor reformatting
39800
39801 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
39802
39803         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
39804         'constant' keywords for declaration of pointers that are not modified.
39805
39806         * exp_pakd.adb: Fix English in comment.
39807
39808 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
39809
39810         PR ada/10889
39811         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
39812         copy all attributes of the parent, including the foreign language
39813         convention.
39814
39815 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
39816
39817         PR ada/10565
39818         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
39819         for 'delay until' statement.
39820
39821 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
39822
39823         * Make-lang.in: Replace $(docdir) with doc.
39824         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
39825         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
39826         to use consistent MAKEINFO rule.
39827         (ada.man, ada.srcman): Dummy entry.
39828         (ADA_INFOFILES): Define.
39829         (ada.info, ada.srcinfo): New rules.
39830
39831 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
39832
39833         * utils.c: Update copyright notice, missed in previous change.
39834
39835 2004-01-19  Vincent Celier  <celier@gnat.com>
39836
39837         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
39838         args if Bind is True. Set First_ALI, if not already done.
39839         (Build_Library): For Stand Alone Libraries, extract from one ALI file
39840         an eventual --RTS switch, for gnatbind, and all backend switches +
39841         --RTS, for linking.
39842
39843 2004-01-19  Robert Dewar  <dewar@gnat.com>
39844
39845         * sem_attr.adb, memtrack.adb: Minor reformatting
39846
39847 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
39848
39849         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
39850         that rename enumeration literals. This is properly done in sem_eval.
39851
39852         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
39853         to functions that rename enumeration literals.
39854
39855         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
39856         functions that rename enumeration literals.
39857
39858 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
39859
39860         * Make-lang.in (utils.o): Depend on target.h.
39861         * utils.c: Include target.h.
39862         (process_attributes): Use targetm.have_named_sections instead
39863         of ASM_OUTPUT_SECTION_NAME.
39864
39865 2004-01-16  Andreas Jaeger  <aj@suse.de>
39866
39867         * Makefile.in: Add $(DESTDIR).
39868
39869 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
39870
39871         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
39872         also when not defining if a Size clause applies. That information is
39873         not to be ignored.
39874
39875 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
39876
39877         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
39878         symbolic links for the shared gnat run time when needed.
39879
39880 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
39881
39882         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
39883         for writing, and terminate with an error message if not.
39884
39885 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
39886
39887         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
39888         warning on an access to subprogram in an instance, when the target
39889         type is declared in the same generic unit.
39890         (Eval_Attribute): If 'access is known to fail accessibility check,
39891         rewrite as a raise statement.
39892
39893 2004-01-15  GNAT Script  <nobody@gnat.com>
39894
39895         * Make-lang.in: Makefile automatically updated
39896
39897 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
39898
39899         * Make-lang.in (ada.srcextra): Dummy entry.
39900
39901 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
39902
39903         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
39904
39905 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
39906
39907         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
39908         components that are initialized with aggregates.
39909
39910 2004-01-13  Vincent Celier  <celier@gnat.com>
39911
39912         * gnatlink.adb (Process_Binder_File): To find directory of shared
39913         libgcc, if "gcc-lib" is not a subdirectory, look for the last
39914         subdirectory "lib" in the path of the shared libgnat or libgnarl.
39915
39916         * make.adb (Gnatmake): If GCC version is at least 3, link with
39917         -shared-libgcc, when there is at least one shared library project.
39918
39919         * opt.ads (GCC_Version): New integer constant.
39920
39921         * adaint.c (get_gcc_version): New function.
39922
39923 2004-01-13  Robert Dewar  <dewar@gnat.com>
39924
39925         * sem_dist.adb, sem_res.adb, sem_util.adb,
39926         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
39927         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
39928
39929 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
39930
39931         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
39932         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
39933         declarations.
39934
39935 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
39936
39937         * misc.c: Remove trailing spaces.
39938         Update copyright notice missed in previous change.
39939
39940         PR ada/13572
39941         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
39942         prefix/share/make
39943
39944         * Makefile.generic: Update copyright.
39945         Add license notice.
39946
39947         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
39948         of prefix/share/make.
39949
39950         * Makefile.prolog: Update copyright.
39951         Add license notice.
39952
39953 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
39954
39955         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
39956         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
39957         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
39958         instead of String.
39959
39960         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
39961         signature.
39962
39963 2004-01-12  Javier Miranda  <miranda@gnat.com>
39964
39965         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
39966         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
39967         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
39968         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
39969         Component_Definition node.
39970
39971 2004-01-12  Ed Falis  <falis@gnat.com>
39972
39973         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
39974
39975 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
39976
39977         * link.c: Change default libgnat kind to STATIC for FreeBSD.
39978
39979 2004-01-12  Bernard Banner  <banner@gnat.com>
39980
39981         * Makefile.in: map 86numaux to a-numaux for x86_64
39982
39983 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
39984
39985         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
39986         generated to rename a generic actual, go to the actual itself, the
39987         subtype is not a user-visible entity.
39988
39989         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
39990         part is a private subtype, reset the visibility of its full view, if
39991         any, to be consistent.
39992
39993         PR ada/13417
39994         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
39995         to use a generic package G as a formal package for another generic
39996         declared within G.
39997
39998 2004-01-12  Robert Dewar  <dewar@gnat.com>
39999
40000         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
40001
40002         * usage.adb: Remove mention of obsolete -gnatwb switch
40003         Noticed during code reading
40004
40005 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
40006
40007         * 1ssecsta.adb: Minor changes for -gnatwa warnings
40008
40009 2004-01-12  GNAT Script  <nobody@gnat.com>
40010
40011         * Make-lang.in: Makefile automatically updated
40012
40013 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
40014
40015         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
40016
40017 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40018
40019         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
40020
40021 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
40022
40023         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
40024         Update comment and copyright date.
40025         * stamp-xgnatug: Delete.
40026
40027 2004-01-05  Robert Dewar  <dewar@gnat.com>
40028
40029         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
40030         be modified by the binder generated main program if the -D switch is
40031         used.
40032
40033         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
40034         imported functions (since now we expect this to be done for imported
40035         functions)
40036
40037         * 5vtaprop.adb: Add several ??? for sections requiring more comments
40038         Minor reformatting throughout
40039
40040         * 5zinit.adb: Minor reformatting
40041         Add 2004 to copyright date
40042         Minor changes to avoid -gnatwa warnings
40043         Correct some instances of using OR instead of OR ELSE (noted while
40044         doing reformatting)
40045
40046         * sprint.adb: Minor updates to avoid -gnatwa warnings
40047
40048         * s-secsta.ads, s-secsta.adb:
40049         (SS_Get_Max): New function to obtain high water mark for ss stack
40050         Default_Secondary_Stack is not a constant since it may be modified by
40051         the binder generated main program if the -D switch is used.
40052
40053         * switch-b.adb: New -Dnnn switch for binder
40054
40055         * switch-c.adb:
40056         Make -gnatg imply all warnings currently in -gnatwa
40057
40058         * vms_conv.adb: Minor reformatting
40059         Add 2004 to copyright notice
40060         Add 2004 to printed copyright notice
40061
40062         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
40063         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
40064         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
40065         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
40066         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
40067         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
40068         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
40069         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
40070         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
40071         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
40072         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
40073         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
40074         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
40075         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
40076         checks.adb, clean.adb, cstand.adb, einfo.ads,
40077         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
40078         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
40079         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
40080         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
40081         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
40082         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
40083         Minor reformatting and code clean ups.
40084         Minor changes to prevent -gnatwa warnings
40085
40086         * ali.adb: Minor reformatting and cleanup of code
40087         Acquire new SS indication of secondary stack use from ali files
40088
40089         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
40090         (since now we expect this to be done for imported functions)
40091
40092         * bindgen.adb: Generate call to modify default secondary stack size if
40093         -Dnnn switch given
40094
40095         * bindusg.adb: Add line for new -D switch
40096
40097         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
40098         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
40099         Add circuitry for both records and arrays to avoid gigi
40100         processing if the type involved has non-bit-aligned components
40101
40102         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
40103         N_String_Literal node always references an E_String_Literal_Subtype
40104         entity. This may not be true in the future.
40105         (Possible_Bit_Aligned_Component): Move processing of
40106         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
40107
40108         * exp_ch6.adb (Expand_Thread_Body): Pick up
40109         Default_Secondary_Stack_Size as variable so that we get value modified
40110         by possible -Dnnn binder parameter.
40111
40112         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
40113         (Type_May_Have_Bit_Aligned_Components): New function.
40114
40115         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
40116         (Type_May_Have_Bit_Aligned_Components): New function.
40117
40118         * fe.h: (Set_Identifier_Casing): Fix prototype.
40119         Add declaration for Sem_Elim.Eliminate_Error_Msg.
40120         Minor reformatting.
40121
40122         * freeze.adb (Freeze_Entity): Add RM reference to error message about
40123         importing constant atomic/volatile objects.
40124         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
40125         unless explicit Pure_Function pragma given, to avoid insidious bug of
40126         call to non-pure imported function getting eliminated.
40127
40128         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
40129         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
40130         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
40131         Add 2004 to printed copyright notice
40132
40133         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
40134         stack used.
40135
40136         * Makefile.rtl: Add entry for g-sestin.o
40137         g-sestin.ads: New file.
40138
40139         * mdll.adb: Minor changes to avoid -gnatwa warnings
40140
40141         * mlib-tgt.adb: Minor reformatting
40142
40143         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
40144         New switch Sec_Stack_Used (GNAT, GNATBIND)
40145         Make Default_Secondary_Stack_Size a variable instead of a constant,
40146         so that it can be modified by the new -Dnnn bind switch.
40147
40148         * rtsfind.adb (Load_Fail): Give full error message in configurable
40149         run-time mode if all_errors mode is set. This was not done in the case
40150         of a file not found, which was an oversight.
40151         Note if secondary stack unit is used by compiler.
40152
40153         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
40154         ineffective elaborate all pragmas on non-visible packages (this
40155         happened when a renamed subprogram was called). Now the elaborate all
40156         always goes on the package containing the renaming rather than the one
40157         containing the renamed subprogram.
40158
40159         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
40160         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
40161
40162         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
40163         has an Etype that references an E_String_Literal.
40164         (Eval_String_Literal): Avoid assumption that N_String_Literal node
40165         always references an E_String_Literal_Subtype entity. This may not
40166         be true in the future.
40167
40168         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
40169         pragma location.
40170
40171         * sem_res.adb (Resolve): Specialize msg for function name used in proc
40172         call.
40173
40174 2004-01-05  Ed Falis  <falis@gnat.com>
40175
40176         * g-debuti.adb: Replaced direct boolean operator with short-circuit
40177         form.
40178
40179 2004-01-05  Vincent Celier  <celier@gnat.com>
40180
40181         * bld.adb: Minor comment updates
40182         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
40183         of Item_Name).
40184
40185         * make.adb (Gnatmake): Special process for files to compile/check when
40186         -B is specified. Fail when there are only foreign mains in attribute
40187         Main of the project file and -B is not specified. Do not skip bind/link
40188         steps when -B is specified.
40189
40190         * makeusg.adb: Document new switch -B
40191
40192         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
40193
40194         * switch-m.adb: (Scan_Make_Switches): Process -B switch
40195
40196         * vms_data.ads: Add new GNAT PRETTY qualifier
40197         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
40198
40199 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40200
40201         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
40202         case.
40203
40204         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
40205         Set_Identifier_Casing.
40206
40207         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
40208         has size that overflows.
40209
40210 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
40211
40212         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
40213         -gnatwa warning on static condition.
40214
40215 2004-01-05  Doug Rupp  <rupp@gnat.com>
40216
40217         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
40218
40219 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
40220
40221         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
40222         all attributes, including read-only attribute.
40223
40224 2004-01-05  Pascal Obry  <obry@gnat.com>
40225
40226         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
40227         library naming scheme.
40228
40229         * mlib-prj.adb (Build_Library): Generate different names for the static
40230         or dynamic version of the GNAT runtime. This is needed to support the
40231         new shared library naming scheme.
40232         (Process_Binder_File): Add detection of shared library in binder file
40233         based on the new naming scheme.
40234
40235         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
40236         scheme for the shared runtime libraries.
40237
40238         * Makefile.in:
40239         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
40240         scheme.
40241         (install-gnatlib): Do not create symlinks for shared libraries.
40242         (gnatlib-shared-default): Idem.
40243         (gnatlib-shared-dual-win32): New target. Not used for now as the
40244         auto-import feature does not support arrays/records.
40245         (gnatlib-shared-win32): Do not create copy for the shared libraries.
40246         (gnatlib-shared-vms): Fix shared runtime libraries names.
40247
40248         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
40249         dependent runtime shared library name.
40250
40251 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
40252
40253         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
40254         than the object.
40255
40256 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
40257
40258         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
40259         protected objects when allocator has a subtype indication, not a
40260         qualified expression. Note that qualified expressions may have to be
40261         checked when limited aggregates are implemented.
40262
40263         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
40264         pure, emit warning.
40265         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
40266         subprogram is imported, remove warning.
40267
40268 2004-01-05  Geert Bosch  <bosch@gnat.com>
40269
40270         * s-poosiz.adb: Update copyright notice.
40271         (Allocate): Use Task_Lock to protect against concurrent access.
40272         (Deallocate): Likewise.
40273
40274 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
40275
40276         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
40277         comment.
40278
40279 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
40280
40281         * gnat_ug.texi: Force a CVS commit by updating copyright.
40282         * gnat_ug_vxw.texi: Regenerate.
40283         * gnat_ug_wnt.texi: Regenerate.
40284         * gnat_ug_vms.texi: Regenerate.
40285         * gnat_ug_unx.texi: Regenerate.
40286
40287 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
40288
40289         * trans.c: Remove uses of "register" specifier in
40290         declarations of local variables.
40291
40292 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
40293
40294         * stamp-xgnatug: New stamp file.
40295         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
40296         (ada/doctools/xgnatug): Add $(build_exeext).
40297         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
40298         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
40299
40300 2003-12-17  Ed Falis  <falis@gnat.com>
40301
40302         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
40303         eliminate warning.
40304
40305         * a-exextr.adb: Add context clause for
40306         Ada.Exceptions.Last_Chance_Handler.
40307
40308 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
40309
40310         * cstand.adb (Create_Standard): Change the way how the declaration of
40311         the Duration type is created (making it the same way as it is for all
40312         the other standard types).
40313
40314 2003-12-17  Robert Dewar  <dewar@gnat.com>
40315
40316         * s-crtl.ads: Fix header format
40317         Change Pure to Preelaborate
40318
40319 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
40320
40321         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
40322         the expression type only if it is declared in the current unit.
40323
40324         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
40325         are universal and already analyzed, as can occur in constrained
40326         subcomponents that depend on discriminants, when one constraint is a
40327         subtype mark.
40328
40329         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
40330         type Any_Fixed is legal as the argument of a conversion, if only one
40331         fixed-point type is in context.
40332
40333 2003-12-17  GNAT Script  <nobody@gnat.com>
40334
40335         * Make-lang.in: Makefile automatically updated
40336
40337 2003-12-15  Robert Dewar  <dewar@gnat.com>
40338
40339         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
40340         sec stack size.
40341
40342 2003-12-15  Vincent Celier  <celier@gnat.com>
40343
40344         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
40345         (Gnatchop): Do not set failure status when reporting the number of
40346         warnings.
40347
40348 2003-12-15  Doug Rupp  <rupp@gnat.com>
40349
40350         * s-ctrl.ads: New file.
40351
40352         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
40353
40354         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
40355         (GNATBIND_OBJS): Add ada/s-crtl.o.
40356
40357         * Makefile.in [VMS]: Clean up ifeq rules.
40358
40359         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
40360         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
40361         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
40362         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
40363         s-tasdeb.adb: Update copyright.
40364         Import System.CRTL.
40365         Make minor modifications to use System.CRTL declared functions instead
40366         of importing locally.
40367
40368 2003-12-15  GNAT Script  <nobody@gnat.com>
40369
40370         * Make-lang.in: Makefile automatically updated
40371
40372 2003-12-11  Ed Falis  <falis@gnat.com>
40373
40374         * 5zinit.adb: Clean up.
40375
40376         * 5zintman.adb (Notify_Exception): replaced case statement with a call
40377         to __gnat_map_signal, imported from init.c to support
40378         signal -> exception mappings that depend on the vxWorks version.
40379
40380         * init.c:
40381         Created and exported __gnat_map_signal to support signal -> exception
40382         mapping that is dependent on the VxWorks version.
40383         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
40384
40385 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
40386
40387         * 5wosinte.ads: Link with -mthreads switch.
40388
40389 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
40390
40391         * init.c (__gnat_install_handler [NetBSD]): Set
40392         __gnat_handler_installed, as done on all other platforms.
40393         Remove duplicated code.
40394
40395 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
40396
40397         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
40398
40399 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
40400
40401         * sinfo.ads: Fix inconsistent example code in comment.
40402
40403 2003-12-11  Robert Dewar  <dewar@gnat.com>
40404
40405         * a-tiinau.adb: Add a couple of comments
40406
40407         * sem_ch3.adb: Minor reformatting
40408
40409         * sem_prag.adb:
40410         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
40411         Minor reformatting throughout
40412
40413 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
40414
40415         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
40416         bounds of a loop, create a separate block in order to generate proper
40417         cleanup actions to prevent memory leaks.
40418
40419         * sem_res.adb (Resolve_Call): After a call to
40420         Establish_Transient_Scope, the call may be rewritten and relocated, in
40421         which case no further processing is needed.
40422
40423         * sem_util.adb: (Wrong_Type): Refine previous fix.
40424          Fixes ACATS regressions.
40425
40426         PR ada/13353
40427         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
40428         be inlined.
40429
40430 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
40431
40432         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
40433         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
40434         obsolete files.
40435
40436         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
40437         (rts-zfp): Ditto.
40438
40439 2003-12-08  Robert Dewar  <dewar@gnat.com>
40440
40441         * 7sintman.adb: Minor reformatting
40442
40443         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
40444         standard linker options to get standard libraries linked. We now plan
40445         to provide dummy versions of these libraries to match the appropriate
40446         configurable run-time (e.g. if a library is not needed at all, provide
40447         a dummy empty library).
40448
40449         * targparm.ads: Configurable_Run_Time mode no longer affects linker
40450         options (-L parameters and standard libraries). What we plan to do is
40451         to provide dummy libraries where the libraries are not required.
40452
40453         * gnatbind.adb: Minor comment improvement
40454
40455 2003-12-08  Javier Miranda  <miranda@gnat.com>
40456
40457         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
40458         aggregate in the parent. Otherwise constants with limited aggregates
40459         are not supported. Add new formal to pass the component type (Ctype).
40460         It is required to call the corresponding IP subprogram in case of
40461         default initialized components.
40462         (Gen_Assign): In case of default-initialized component, generate a
40463         call to the IP subprogram associated with the component.
40464         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
40465         of aggregate with default initialized components.
40466         (Has_Default_Init_Comps): Improve implementation to recursively check
40467         all the present expressions.
40468
40469         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
40470         to indicate that the initialization call corresponds to a
40471         default-initialized component of an aggregate.
40472         In case of default initialized aggregate with tasks this parameter is
40473         used to generate a null string (this is just a workaround that must be
40474         improved later). In case of discriminants, this parameter is used to
40475         generate a selected component node that gives access to the discriminant
40476         value.
40477
40478         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
40479         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
40480         allocated aggregates with default-initialized components.
40481
40482         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
40483         the box notation is used in positional aggregates.
40484
40485 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
40486
40487         * lib.ads: Fix typo in comment
40488
40489 2003-12-08  Vincent Celier  <celier@gnat.com>
40490
40491         * prj.adb (Project_Empty): New component Unkept_Comments
40492         (Scan): Remove procedure; moved to Prj.Err.
40493
40494         * prj.ads (Project_Data): New Boolean component Unkept_Comments
40495         (Scan): Remove procedure; moved to Prj.Err.
40496
40497         * prj-dect.adb: Manage comments for the different declarations.
40498
40499         * prj-part.adb (With_Record): New component Node
40500         (Parse): New Boolean parameter Store_Comments, defaulted to False.
40501         Set the scanner to return ends of line and comments as tokens, if
40502         Store_Comments is True.
40503         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
40504         comments are associated with these nodes. Store the node IDs in the
40505         With_Records.
40506         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
40507         With_Records.
40508         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
40509         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
40510         current project. Call Tree.Restore afterwards. Set the various nodes
40511         for comment storage (Next_End, End_Of_Line, Previous_Line,
40512         Previous_End).
40513
40514         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
40515         defaulted to False.
40516
40517         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
40518         to False. When Truncated is True, truncate the string, never go to the
40519         next line.
40520         (Write_End_Of_Line_Comment): New procedure
40521         (Print): Process comments for nodes N_With_Clause,
40522         N_Package_Declaration, N_String_Type_Declaration,
40523         N_Attribute_Declaration, N_Typed_Variable_Declaration,
40524         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
40525         Process nodes N_Comment.
40526
40527         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
40528         without comments and there are some comments, set the flag
40529         Unkept_Comments to True.
40530         (Scan): If there are comments, set the flag Unkept_Comments to True and
40531         clear the comments.
40532         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
40533         (Next_End_Nodes: New table
40534         (Comment_Zones_Of): New function
40535         (Scan): New procedure; moved from Prj. Accumulate comments in the
40536         Comments table and set end of line comments, comments after, after end
40537         and before end.
40538         (Add_Comments): New procedure
40539         (Save, Restore, Seset_State): New procedures
40540         (There_Are_Unkept_Comments): New function
40541         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
40542         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
40543         procedures.
40544         (First_Comment_After, First_Comment_After_End): New functions
40545         (First_Comment_Before, First_Comment_Before_End): New functions
40546         (Next_Comment): New function
40547         (End_Of_Line_Comment, Follows_Empty_Line,
40548         Is_Followed_By_Empty_Line): New functions
40549         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
40550         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
40551         (Set_Next_Comment): New procedure
40552         (Default_Project_Node): Associate comment before if the node can store
40553         comments.
40554
40555         * scans.ads (Token_Type): New enumeration value Tok_Comment
40556         (Comment_Id): New global variable
40557
40558         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
40559         defaulted to False.
40560         (Scan): Store position of start of comment. If comments are tokens, set
40561         Comment_Id and set Token to Tok_Comment when scanning a comment.
40562         (Set_Comment_As_Token): New procedure
40563
40564         * sinput-p.adb: Update Copyright notice
40565         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
40566         that no longer exists.
40567
40568 2003-12-08  Javier Miranda  <miranda@gnat.com>
40569
40570         * sem_aggr.adb: Add dependence on Exp_Tss package
40571         Correct typo in comment
40572         (Resolve_Aggregate): In case of array aggregates set the estimated
40573         type of the aggregate before calling resolve. This is needed to know
40574         the name of the corresponding IP in case of limited array aggregates.
40575         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
40576         in case of default initialized array components.
40577
40578         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
40579         types. Required to give support to limited aggregates in generic
40580         formals.
40581
40582 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
40583
40584         * sem_ch3.adb (Check_Initialization): For legality purposes, an
40585         inlined body functions like an instantiation.
40586         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
40587         until bounds are analyzed, to diagnose premature use of type.
40588
40589         * sem_util.adb (Wrong_Type): Improve error message when the type of
40590         the expression is used prematurely.
40591
40592 2003-12-08  GNAT Script  <nobody@gnat.com>
40593
40594         * Make-lang.in: Makefile automatically updated
40595
40596 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
40597
40598         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
40599         they are automatically generated by Make-lang.in and cause nothing but
40600         maintenance troubles.
40601
40602 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
40603
40604         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
40605         version of this unit).
40606
40607 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
40608
40609         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
40610         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
40611         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
40612         the body of System.Interrupt_Management common to several targets.
40613         Update copyright notice when appropriate.
40614
40615         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
40616         constant.
40617
40618         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
40619         to ensure that the kernel fills in the interrupted context structure
40620         before calling a signal handler, which is necessary to be able to
40621         unwind past it. Update the copyright notice.
40622
40623 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
40624
40625         * a-elchha.ads: New file.
40626
40627         * a-elchha.adb: New default last chance handler. Contents taken from
40628         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
40629
40630         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
40631         is moved to a-elchha.adb to provide a target-independent default last
40632         chance handler.
40633
40634         * Makefile.rtl: Add a-elchha.o
40635
40636         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
40637
40638 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
40639
40640         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
40641         declared in an instance, do not inline the call if the instance is not
40642         frozen yet, to prevent order of elaboration problems.
40643
40644         * sem_prag.adb: Add comments for previous fix.
40645
40646 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
40647
40648         * g-table.adb: Use the right variable in Set_Item.
40649         Update copyright notice.
40650
40651 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
40652
40653         * Makefile.in: Remove unused rules.
40654
40655 2003-12-05  Vincent Celier  <celier@gnat.com>
40656
40657         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
40658         -nostdlib. Not needed here after all.
40659
40660 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
40661
40662         PR ada/11724
40663         * adaint.h, adaint.c, g-os_lib.ads:
40664         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
40665         on some platforms (including FreeBSD), it is a 64 bit value.
40666         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
40667
40668 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
40669
40670         * gnatvsn.ads (Library_Version): Now contain only the relevant
40671         version info.
40672         (Verbose_Library_Version): New constant.
40673
40674         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
40675         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
40676         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
40677
40678         * gnatlbr.adb: Clean up: replace Library_Version by
40679         Verbose_Library_Version.
40680
40681         * make.adb, lib-writ.adb, exp_attr.adb:
40682         Clean up: replace Library_Version by Verbose_Library_Version.
40683
40684         * 5lintman.adb: Removed.
40685
40686         * Makefile.in:
40687         Update and simplify computation of LIBRARY_VERSION.
40688         Fix computation of GSMATCH_VERSION.
40689         5lintman.adb is no longer used: replaced by 7sintman.adb.
40690
40691 2003-12-03  Robert Dewar  <dewar@gnat.com>
40692
40693         * exp_ch5.adb:
40694         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
40695         name. Modified to consider small non-bit-packed arrays as troublesome
40696         and in need of component-by-component assigment expansion.
40697
40698 2003-12-03  Vincent Celier  <celier@gnat.com>
40699
40700         * lang-specs.h: Process nostdlib as nostdinc
40701
40702         * back_end.adb: Update Copyright notice
40703         (Scan_Compiler_Arguments): Process -nostdlib directly.
40704
40705 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
40706
40707         * Makefile.in:
40708         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
40709         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
40710         included in HIE_NONE_TARGET_PAIRS.
40711
40712 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
40713
40714         * sem_attr.adb:
40715         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
40716         is legal in an instance, because legality is cheched in the template.
40717
40718         * sem_prag.adb:
40719         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
40720         appplied to an unchecked conversion of a formal parameter.
40721
40722         * sem_warn.adb:
40723         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
40724         variables.
40725
40726 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
40727
40728         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
40729         routines. The second one is new functionality to deal with backtracing
40730         through signal handlers.
40731         (unwind): Split into the two separate subroutines above.
40732         Update the documentation, and deal properly with sizeof (REG) different
40733         from sizeof (void*).
40734
40735 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
40736
40737         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
40738         so that the debugger can reliably access the value of the parameter,
40739         and therefore is able to display the exception name when an exception
40740         breakpoint is reached.
40741
40742 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
40743
40744         * fmap.adb: Fix typo in warning message.
40745
40746         * g-socket.ads, g-socket.adb: Make Free a visible instance of
40747         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
40748
40749 2003-12-01  Vincent Celier  <celier@gnat.com>
40750
40751         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
40752         ther is no Afile.
40753         (Build_Library): Get the switches only if Default_Switches is declared
40754         in package Binder.
40755
40756 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
40757
40758         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
40759         actuals that are indexed components, reanalyze actual to ensure that
40760         packed array references are properly expanded.
40761
40762         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
40763         attempted assignment to a discriminant.
40764
40765 2003-12-01  Robert Dewar  <dewar@gnat.com>
40766
40767         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
40768         reformatting.
40769
40770         * switch-c.adb: Minor reformatting of comments
40771
40772 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
40773
40774         * Makefile.in: Clean ups.
40775
40776 2003-12-01  GNAT Script  <nobody@gnat.com>
40777
40778         * Make-lang.in: Makefile automatically updated
40779
40780 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
40781
40782         * 5wsystem.ads: Disable zero cost exception, not ready yet.
40783
40784 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
40785
40786         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
40787         to force serialization.
40788
40789 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
40790
40791         * g-socket.ads, g-socket.adb:
40792         Clarify documentation of function Stream. Introduce a Free procedure
40793         to release the returned Stream once it becomes unused.
40794
40795         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
40796
40797 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
40798
40799         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
40800         since NT 4 cannot handle timeout values that are too large,
40801         e.g. DWORD'Last - 1.
40802
40803 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
40804
40805         * exp_ch4.adb:
40806         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
40807         in procedure calls and whose expansion must be deferred.
40808
40809         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
40810         is in exp_ch4.
40811
40812         * sem_ch3.adb:
40813         (Build_Derived_Array_Type): Create operator for unconstrained type
40814         if ancestor is unconstrained.
40815
40816 2003-11-26  Vincent Celier  <celier@gnat.com>
40817
40818         * make.adb (Project_Object_Directory): New global variable
40819         (Change_To_Object_Directory): New procedure
40820         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
40821         of Change_Dir directly. Do not change working directory to object
40822         directory of main project after each compilation.
40823         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
40824         directly.
40825         Change to object directory of main project before binding step.
40826         (Initialize): Initialize Project_Object_Directory to No_Project
40827
40828         * mlib-prj.adb:
40829         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
40830         binding a Stand-Alone Library.
40831
40832         * output.adb: Update Copyright notice
40833         (Write_Char): Output buffer when full
40834
40835 2003-11-26  Robert Dewar  <dewar@gnat.com>
40836
40837         * sem_ch13.adb: (Check_Size): Reset size if size is too small
40838
40839         * sem_ch13.ads:
40840         (Check_Size): Fix documentation to include bit-packed array case
40841
40842         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
40843
40844         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
40845
40846         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
40847
40848 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
40849
40850         PR ada/13142
40851         * utils.c (init_gigi_decls): Change name of built-in setjmp to
40852         __builtin_setjmp, since this is apparently needed by recent
40853         non Ada changes.
40854
40855 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40856
40857         * adadecode.c: Only include ctype.h if not IN_GCC.
40858         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
40859
40860 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
40861
40862         * Makefile.in:
40863         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
40864         signals and interrupts.
40865
40866         * 5zintman.ads: New File.
40867
40868         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
40869         add exception signals to the set of unmasked signals.
40870
40871         * 5ztaprop.adb:
40872         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
40873         between signals and interrupts.
40874         Add to Unblocked_Signal_Mask the set of signals that are in
40875         Keep_Unmasked.
40876
40877         * 7sinmaop.adb:
40878         Adding a check to see whether the Interrupt_ID we want to unmask is in
40879         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
40880         reason is that the index type of the Keep_Unmasked array is not always
40881         Interrupt_ID; it may be a subtype of Interrupt_ID.
40882
40883 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
40884
40885         * exp_util.adb:
40886         (Remove_Side_Effects): Condition constantness of object created for a
40887          an unchecked type conversion on the constantness of the expression
40888          to ensure the correct value for 'Constrained when passing components
40889          of view-converted class-wide objects.
40890
40891 2003-11-24  Robert Dewar  <dewar@gnat.com>
40892
40893         * par-load.adb (Load): Improve handling of misspelled and missing units
40894         Removes several cases of compilation abandoned messages
40895
40896         * lib.adb: (Remove_Unit): New procedure
40897
40898         * lib.ads: (Remove_Unit): New procedure
40899
40900         * lib-load.adb: Minor reformatting
40901
40902 2003-11-24  Vincent Celier  <celier@gnat.com>
40903
40904         * make.adb:
40905         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
40906         (Marking_Label): Label to mark processed source files. Incremented for
40907         each executable.
40908         (Gnatmake): Increase Marking_Labet for each executable
40909         (Is_Marked): Compare against marking label
40910         (Mark): Mark with marking label
40911
40912 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
40913
40914         * s-thread.ads:
40915         Move the declaration of the TSD for System.Threads to System.Soft_Links.
40916         Add some comments.
40917
40918         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
40919         (rts-cert): build a single relocatable object for the run-time lib.
40920         Fix perms.
40921
40922 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
40923
40924         * Make-lang.in:
40925         Use gnatls rather than gcc to obtain the location of GNAT RTL for
40926         crosstools build.
40927
40928 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
40929
40930         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
40931         can not use it as before (that is, as a variable) when dumping it into
40932         the tree file. Add a local variable to store the result of this
40933         function and to be used as the string to be written into the tree.
40934
40935         * scn.adb (Initialize_Scanner): Add comments explaining the recent
40936         changes.
40937
40938         * sinput.adb (Source_First, Source_Last): In case of
40939         Internal_Source_File, replace returning attributes of
40940         Internal_Source_Ptr (which is wrong) with returning attributes of
40941         Internal_Source.
40942
40943 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
40944
40945         * sem_ch3.adb:
40946         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
40947         used for implicit concatenation operators.
40948         Code cleanup.
40949
40950         * sem_elab.adb:
40951         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
40952         task bodies that are in the scope of a Suppress pragma.
40953         (Check_A Call): Use the flag to prevent spurious elaboration checks.
40954
40955         * sinfo.ads, sinfo.adb:
40956         New flag No_Elaboration_Check on function/procedure calls, to properly
40957         suppress checks on calls in task bodies that are within a local suppress
40958         pragma.
40959
40960         * exp_ch4.adb:
40961         (Expand_Concatenate_Other): Use the proper integer type for the
40962         expression for the upper bound, to avoid universal_integer computations
40963         when possible.
40964
40965 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
40966
40967         * .cvsignore: Delete.
40968
40969 2003-11-21  Andreas Schwab  <schwab@suse.de>
40970
40971         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
40972
40973 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
40974
40975         * 5wsystem.ads: Enable zero cost exception.
40976
40977 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
40978
40979         * 5ztiitho.adb: Remove an unreferenced variable.
40980
40981 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
40982
40983         * adaint.c: For FreeBSD, use mkstemp.
40984
40985 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
40986
40987         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
40988
40989 2003-11-21  Robert Dewar  <dewar@gnat.com>
40990
40991         * bld.adb: Remove useless USE of gnatvsn
40992
40993         * gnatchop.adb: Minor reformatting
40994         Clean up version handling to be more consistent
40995
40996         * gnatxref.adb: Minor reformatting
40997
40998         * gprcmd.adb: Minor reformatting
40999         Fix output of copyright to be more consistent with other tools
41000
41001 2003-11-21  Vincent Celier  <celier@gnat.com>
41002
41003         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
41004
41005 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
41006
41007         * atree.adb (Initialize): Add initializations for global variables
41008         used in New_Copy_Tree.
41009
41010         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
41011         Internal_Source_File as the actual).
41012         Put the set of statements creating Any_Character before the set of
41013         statements creating Any_Array to have Any_Character fully initialized
41014         when it is used in creating Any_Array.
41015
41016         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
41017         not call Scan in case if the actual is Internal_Source_File
41018         Add 2003 to copyright note.
41019
41020         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
41021         processing Internal_Source_File.
41022
41023         * types.ads: Add the constant Internal_Source_File representing the
41024         source buffer for artificial source-code-like strings created within
41025         the compiler (the definition of Source_File_Index is changed).
41026
41027 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
41028
41029         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
41030         56system.ads: New file, FreeBSD version.
41031
41032 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
41033
41034         * Make-lang.in (ada.extraclean): Delete.
41035
41036 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
41037
41038         * gnatmem.adb: Clean up verbose output.
41039
41040         * gprcmd.adb: Change copyright to FSF.
41041
41042 2003-11-19  Vincent Celier  <celier@gnat.com>
41043
41044         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
41045         and Version (ignored).
41046
41047         * symbols.ads: (Policy): New type
41048         (Initialize): New parameter Reference, Symbol_Policy and
41049         Library_Version.
41050         Remove parameter Force.
41051         Minor reformatting.
41052
41053         * snames.ads, snames.adbadb: New standard names
41054         Library_Reference_Symbol_File and Library_Symbol_Policy
41055
41056         * mlib-prj.adb:
41057         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
41058         project.
41059
41060         * mlib-tgt.adb:
41061         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
41062
41063         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
41064
41065         * prj.adb: (Project_Empty): New component Symbol_Data
41066
41067         * prj.ads: (Policy, Symbol_Record): New types
41068         (Project_Data): New component Symbol_Data
41069
41070         * prj-attr.adb:
41071         New attributes Library_Symbol_File, Library_Symbol_Policy and
41072         Library_Reference_Symbol_File.
41073
41074         * prj-nmsc.adb:
41075         (Ada_Check): When project is a Stand-Alone library project, process
41076         attribute Library_Symbol_File, Library_Symbol_Policy and
41077         Library_Reference_Symbol_File.
41078
41079         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
41080         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
41081         5sml-tgt.adb (Build_Dynamic_Library): New parameter
41082         Symbol_Data (ignored).
41083
41084         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
41085         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
41086         functions Option_File_Name and Version_String. Set new options of
41087         gnatsym related to symbol file, symbol policy and reference symbol
41088         file.
41089
41090         * 5vsymbol.adb:
41091         Extensive modifications to take into account the reference symbol file,
41092         the symbol policy, the library version and to put in the symbol file the
41093         minor and major IDs.
41094
41095         * bld.adb (Process_Declarative_Items): Put second argument of
41096         gprcmd to_absolute between single quotes, to avoid problems with
41097         Windows.
41098
41099         * bld-io.adb: Update Copyright notice.
41100         (Flush): Remove last character of a line, if it is a back slash, to
41101         avoid make problems.
41102
41103         * gnatsym.adb:
41104         Implement new scheme with reference symbol file and symbol policy.
41105
41106         * g-os_lib.ads: (Is_Directory): Clarify comment
41107
41108 2003-11-19  Robert Dewar  <dewar@gnat.com>
41109
41110         * atree.adb: Move New_Copy_Tree global variables to head of package
41111
41112         * errout.adb: Minor reformatting
41113
41114 2003-11-19  Javier Miranda  <miranda@gnat.com>
41115
41116         * sem_ch4.adb: (Diagnose_Call): Improve error message.
41117         Add reference to Ada0Y (AI-50217)
41118
41119         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
41120         sem_util.adb: Add reference to AI-50217
41121
41122         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
41123
41124         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
41125
41126         * sem_aggr.adb: Complete documentation of AI-287 changes
41127
41128         * par-ch4.adb: Document previous changes.
41129
41130         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
41131         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
41132         Ada0Y (AI-50217)
41133
41134         * exp_aggr.adb: Add references to AI-287 in previous changes
41135
41136 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
41137
41138         * exp_ch6.adb:
41139         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
41140         in the rewriting is the result of an inlined call.
41141
41142         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
41143         parameter is a type conversion, use original node to construct the
41144         post-call assignment, because expression may have been rewritten, e.g.
41145         if it is a packed array.
41146
41147         * sem_attr.adb:
41148         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
41149         body, just as it is in an instance.
41150         Categorization routines
41151
41152         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
41153         Instantiate_Object): Set proper sloc reference for message on missing
41154         actual.
41155
41156 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
41157
41158         * Makefile.in: Add FreeBSD libgnat pairs.
41159
41160         * usage.adb: Fix typo in usage message.
41161
41162 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
41163
41164         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
41165         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
41166         pragma Thread_Body.
41167         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
41168
41169         * s-thread.adb: This file is now a dummy implementation of
41170         System.Thread.
41171
41172 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
41173
41174         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
41175
41176 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
41177
41178         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41179         instanciation references in the parent type description.
41180
41181 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41182
41183         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
41184
41185         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
41186         TYPE_PRECISION directly from esize.
41187
41188 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
41189
41190         * cstreams.c:
41191         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
41192
41193         * init.c: Initialization routines for FreeBSD
41194
41195         * link.c: Link info for FreeBSD
41196
41197         * sysdep.c: Add the case of FreeBSD
41198
41199 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
41200
41201         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
41202         already called in System.Threads.
41203
41204         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
41205         environment task, as it has been moved to System.Threads.Initialization.
41206
41207 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
41208
41209         * adaint.c (__gnatlib_install_locks): Only reference
41210         __gnat_install_locks on VMS, since other platforms can avoid using
41211         --enable-threads=gnat
41212
41213 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41214
41215         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
41216
41217         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
41218         TYPE_PACKED_ARRAY_TYPE_P.
41219         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
41220
41221         Part of PR ada/12806
41222         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
41223         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
41224
41225 2003-11-17  Vincent Celier  <celier@gnat.com>
41226
41227         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
41228         to False.
41229         Do not set exit status to Failure when Warning is True.
41230         (Gnatchop): Make errors "no compilation units found" and
41231         "no source files written" warnings only.
41232
41233         * make.adb (Gnatmake): When using a project file, set
41234         Look_In_Primary_Dir to False.
41235         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
41236         and Local_Configuration_Pragmas in the project where they are declared
41237         not an extending project which might have inherited them.
41238
41239         * osint.adb (Locate_File): If Name is already an absolute path, do not
41240         look for a directory.
41241
41242         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
41243         -gnats (Check_Syntax) is used, issue only a warning, not an error.
41244
41245         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
41246         in objects of type Variable_Value.
41247
41248         * prj.ads: (Variable_Value): New component Project
41249
41250         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
41251         is in a project extended by Project.
41252
41253         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
41254         Project of Variable_Values to this new parameter value.
41255         (Expression): Set component Project of Variable_Values.
41256         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
41257         Set the component Project in array elements.
41258
41259 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
41260
41261         * errout.adb: (Initialize): Add initialization for error nodes.
41262
41263         * sem_ch12.adb (Initialize): Add missing initializations for
41264         Exchanged_Views and Hidden_Entities.
41265
41266 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
41267
41268         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
41269         already instantiated tree for use in subsequent inlining.
41270         (Analyze_Associations, Instantiate_Formal_Subprogram,
41271         Instantiate_Object): improve error message for mismatch in
41272         instantiations.
41273
41274         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
41275         instantiations of subprograms declared in instances.
41276
41277 2003-11-17  Javier Miranda  <miranda@gnat.com>
41278
41279         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
41280         executed only under the Extensions_Allowed flag.
41281
41282 2003-11-17  Robert Dewar  <dewar@gnat.com>
41283
41284         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
41285         zeroes suppressed.
41286         (Address_Image): Fix bug of returning 0x instead of 0x0
41287         Minor reformatting (function specs).
41288
41289         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
41290         (missed case of 33-63)
41291
41292         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
41293
41294         * s-thread.adb: Add comments for pragma Restriction
41295
41296         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
41297         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
41298
41299 2003-11-17  Ed Falis  <falis@gnat.com>
41300
41301         * s-thread.adb: Added No_Tasking restriction for this implementation.
41302
41303 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
41304
41305         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41306         instanciation references in the parent type description.
41307
41308 2003-11-17  GNAT Script  <nobody@gnat.com>
41309
41310         * Make-lang.in: Makefile automatically updated
41311
41312 2003-11-16  Jason Merrill  <jason@redhat.com>
41313
41314         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
41315         and TAGS files that include them for each front end.
41316
41317 2003-11-14  Andreas Jaeger  <aj@suse.de>
41318
41319         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
41320         is the canonical version.
41321         * misc.c (gnat_handle_option): Likewise.
41322
41323         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
41324
41325         * 5nsystem.ads: New file for x86_64-linux-gnu.
41326
41327 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
41328
41329         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
41330
41331         * comperr.adb: Fix logic in previous change.
41332
41333 2003-11-13  Vincent Celier  <celier@gnat.com>
41334
41335         * 5bml-tgt.adb (Build_Dynamic_Library): Use
41336         Osint.Include_Dir_Default_Prefix instead of
41337         Sdefault.Include_Dir_Default_Name.
41338
41339         * gnatlbr.adb: Update Copyright notice
41340         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
41341         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
41342         instead of Sdefault.Object_Dir_Default_Name
41343
41344         * gnatlink.adb:
41345         (Process_Binder_File): Never suppress the option following -Xlinker
41346
41347         * mdll-utl.adb:
41348         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
41349         Sdefault.Object_Dir_Default_Name.
41350
41351         * osint.ads, osint.adb:
41352         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
41353         Minor reformatting.
41354
41355         * vms_conv.ads: Minor reformating
41356         Remove GNAT STANDARD and GNAT PSTA
41357
41358         * vms_conv.adb:
41359         Allow GNAT MAKE to have several files on the command line.
41360         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
41361         Sdefault.Object_Dir_Default_Name.
41362         Minor Reformating
41363         Remove data for GNAT STANDARD
41364
41365         * vms_data.ads:
41366         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
41367         Remove data for GNAT STANDARD
41368         Remove options and documentation for -gnatwb/-gnatwB: these warning
41369         options no longer exist.
41370
41371 2003-11-13  Ed Falis  <falis@gnat.com>
41372
41373         * 5zthrini.adb: (Init_RTS): Made visible
41374
41375         * 5zthrini.adb:
41376         (Register): Removed unnecessary call to taskVarGet that checked whether
41377          an ATSD was already set as a task var for the argument thread.
41378
41379         * s-thread.adb:
41380         Updated comment to reflect that this is a VxWorks version
41381         Added context clause for System.Threads.Initialization
41382         Added call to System.Threads.Initialization.Init_RTS
41383
41384 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
41385
41386         * 5zthrini.adb:
41387         (Init_RTS): New procedure, for the initialization of the run-time lib.
41388
41389         * s-thread.adb:
41390         Remove dependancy on System.Init, so that this file can be used in the
41391         AE653 sequential run-time lib.
41392
41393 2003-11-13  Robert Dewar  <dewar@gnat.com>
41394
41395         * bindgen.adb: Minor reformatting
41396
41397 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
41398
41399         * checks.adb:
41400         (Apply_Discriminant_Check): Do no apply check if target type is derived
41401         from source type with no applicable constraint.
41402
41403         * lib-writ.adb:
41404         (Ensure_System_Dependency): Do not apply the style checks that may have
41405         been specified for the main unit.
41406
41407         * sem_ch8.adb:
41408         (Find_Selected_Component): Further improvement in error message, with
41409         RM reference.
41410
41411         * sem_res.adb:
41412         (Resolve): Handle properly the case of an illegal overloaded protected
41413         procedure.
41414
41415 2003-11-13  Javier Miranda  <miranda@gnat.com>
41416
41417         * exp_aggr.adb:
41418         (Has_Default_Init_Comps): New function to check the presence of
41419         default initialization in an aggregate.
41420         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
41421         extension aggregate of a limited record. In addition, a new formal
41422         was added to do not initialize the record controller (if any) during
41423         this recursive expansion of ancestors.
41424         (Init_Controller): Add support for limited record components.
41425         (Expand_Record_Aggregate): In case of default initialized components
41426         convert the aggregate into a set of assignments.
41427
41428         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
41429         describing the new syntax.
41430         Nothing else needed to be done because this subprogram delegates part of
41431         its work to P_Precord_Or_Array_Component_Association.
41432         (P_Record_Or_Array_Component_Association): Give support to the new
41433         syntax for default initialization of components.
41434
41435         * sem_aggr.adb:
41436         (Resolve_Aggregate): Relax the strictness of the frontend in case of
41437         limited aggregates.
41438         (Resolve_Record_Aggregate): Give support to default initialized
41439         components.
41440         (Get_Value): In case of default initialized components, duplicate
41441         the corresponding default expression (from the record type
41442         declaration). In case of default initialization in the *others*
41443         choice, do not check that all components have the same type.
41444         (Resolve_Extension_Aggregate): Give support to limited extension
41445         aggregates.
41446
41447         * sem_ch3.adb:
41448         (Check_Initialization): Relax the strictness of the front-end in case
41449         of aggregate and extension aggregates. This test is now done in
41450         Get_Value in a per-component manner.
41451
41452         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
41453         expression corresponds to a limited aggregate. This test is now done
41454         in Get_Value.
41455
41456         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
41457         Box_Present flag.
41458
41459         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
41460         present in an N_Component_Association node
41461
41462 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
41463
41464         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
41465         type-conformant entry only if they are homographs.
41466
41467 2003-11-13  GNAT Script  <nobody@gnat.com>
41468
41469         * Make-lang.in: Makefile automatically updated
41470
41471 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41472
41473         * adadecode.c: Use <> form of include for ctype.h.
41474         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
41475
41476 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41477
41478         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
41479         Works around PR middle-end/6552.
41480
41481 2003-11-10  Ed Falis  <falis@gnat.com>
41482
41483         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
41484
41485         * 5zinit.adb: (Install_Handler): Moved back to spec
41486         (Install_Signal_Handlers): Deleted
41487
41488         * 5zthrini.adb: Added context clause for System.Storage_Elements
41489         (Register): Only handles creation of taskVar; initialization moved to
41490         Thread_Body_Enter.
41491         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
41492         Added declaration of environment task secondary stack and
41493         initialization.
41494
41495         * s-thread.adb: Implement bodies for thread body processing
41496
41497         * s-thread.ads:
41498         Added comment identifying supported targets for pragma Thread_Body.
41499
41500 2003-11-10  Pascal Obry  <obry@gnat.com>
41501
41502         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
41503         GNAT_MAX_PATH_LEN.
41504
41505         * s-fileio.adb:
41506         (Open): Properly check for string length before copying into the buffer.
41507         Raises Name_Error if buffer is too small. Note that this was a potential
41508         buffer overflow.
41509
41510 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
41511
41512         * bindgen.adb, comperr.adb: Code clean ups.
41513         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
41514
41515 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
41516
41517         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
41518
41519 2003-11-10  Vincent Celier  <celier@gnat.com>
41520
41521         * gprcmd.adb:
41522         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
41523         installation.
41524
41525         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
41526
41527         * prj.adb: (Project_Empty): Add new boolean component Virtual
41528
41529         * prj.ads: (Virtual_Prefix): New constant string
41530         (Project_Data): New boolean component Virtual
41531
41532         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
41533         a library project is extended by a virtual extending project.
41534
41535         * prj-part.adb:
41536         Modifications throughout to implement extending-all project, including:
41537         (Virtual_Hash, Processed_Hash): New hash tables
41538         (Create_Virtual_Extending_Project): New procedure
41539         (Look_For_Virtual_Projects_For): New procedure
41540
41541         * prj-proc.adb:
41542         (Process): After checking the projects, if main project is an
41543         extending-all project, set the object directory of all virtual extending
41544         project to the object directory of the main project.
41545         Adjust error message when a virtual extending project has the same
41546         object directory as an project being extended.
41547         (Recursive_Process): If name starts with the virtual prefix, set Virtual
41548         to True in the project data.
41549
41550         * prj-tree.adb:
41551         (Default_Project_Node): Add new boolean component Extending_All
41552         (Is_Extending_All): New function
41553         (Set_Is_Extending_All): New procedure
41554
41555         * prj-tree.ads: (Is_Extending_All): New function
41556         (Set_Is_Extending_All): New procedure
41557         (Project_Node_Record): New boolean component Extending_All
41558
41559         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
41560
41561         * vms_data.ads:
41562         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
41563
41564         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
41565         "gprcmd prefix" to define it.
41566
41567 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
41568
41569         * einfo.ads: Fix a typo and remove an extraneous word in comments.
41570
41571         * lib-load.adb:
41572         (Create_Dummy_Package_Unit): Set the scope of the entity for the
41573         created dummy package to Standard_Standard, not to itself, to
41574         defend other parts of the front-end against encoutering a cycle in
41575         the scope chain.
41576
41577         * sem_ch10.adb:
41578         (Analyze_With_Clause): When setting the entities for the successive
41579         N_Expanded_Names that constitute the name of a child unit, do not
41580         attempt to go further than Standard_Standard in the chain of scopes.
41581         This case arises from the placeholder units created by
41582         Create_Dummy_Package_Unit in the case of a with_clause for a
41583         nonexistent child unit.
41584
41585 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
41586
41587         * exp_ch6.adb:
41588         (Expand_Thread_Body): Place subprogram on scope stack, so that new
41589         declarations are given the proper scope.
41590
41591         * sem_ch13.adb:
41592         (Check_Expr_Constants): Reject an expression that contains a constant
41593         created during expansion, and that appears after the object to which
41594         the address clause applies.
41595
41596         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
41597         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
41598         that uses 'Range of a function call with controlled components, so
41599         that the function result can be finalized before starting the loop.
41600
41601         * sem_ch8.adb:
41602         (Find_Selected_Component): Improve error message when prefix is
41603         an implicit dereference of an incomplete type.
41604
41605 2003-11-10  Robert Dewar  <dewar@gnat.com>
41606
41607         * opt.ads: New Print_Standard flag for -gnatS switch
41608
41609         * sem_ch13.adb: Remove some additional checks for unaligned arrays
41610
41611         * cstand.adb (Create_Standard): Print out package standard if -gnatS
41612         switch set
41613
41614         * debug.adb: Update doc for -gnatds to discuss relationship with new
41615         -gnatS flag
41616
41617         * sinfo.adb: Add new field Entity_Or_Associated_Node
41618
41619         * sinfo.ads: Add new field Entity_Or_Associated_Node
41620         Update documentation for Associated_Node and Entity fields to clarify
41621         relationship and usage.
41622
41623         * sprint.adb:
41624         (Write_Id): Properly process Associated_Node field in generic template
41625
41626         * switch-c.adb:
41627         Recognize new -gnatS switch for printing package Standard
41628         This replaces gnatpsta
41629
41630         * usage.adb:
41631         Add line for  new -gnatS switch for printing package Standard
41632         This replaces gnatpsta
41633
41634 2003-11-10  Andreas Jaeger  <aj@suse.de>
41635
41636         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
41637         integer.
41638
41639 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
41640
41641         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
41642         by gnat1.
41643
41644 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
41645
41646         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
41647         no longer needed.
41648
41649         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
41650
41651         * sysdep.c: Add handling of cygwin.
41652
41653 2003-11-10  GNAT Script  <nobody@gnat.com>
41654
41655         * Make-lang.in: Makefile automatically updated
41656
41657 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
41658
41659         PR 12950
41660         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
41661         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
41662         Replace GNAT_ROOT by GCC_ROOT.
41663
41664         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
41665
41666 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
41667
41668         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
41669         and update for changed meaning of GET_MODE_BITSIZE.
41670
41671 2003-11-04  Doug Rupp  <rupp@gnat.com>
41672
41673         * sysdep.c: Problem discovered during IA64 VMS port.
41674         [VMS] #include <unixio.h> to get proper prototypes.
41675
41676         * adaint.c:
41677         Issues discovered/problems fixed during IA64 VMS port.
41678         [VMS] #define _POSIX_EXIT for proper semantics.
41679         [VMS] #include <unixio.h> for proper prototypes.
41680         [VMS] (fork): #define IA64 version.
41681         (__gnat_os_exit): Remove unnecessary VMS specific code.
41682
41683 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41684
41685         Part of PR ada/12806
41686         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
41687         tree, not integer.
41688
41689         * decl.c:
41690         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
41691         not integer.
41692
41693         * targtyps.c, decl.c, misc.c,
41694         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
41695         routines to work around change in FP sizing semantics in GCC.
41696
41697         * utils.c:
41698         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
41699
41700         * gigi.h: (enumerate_modes): New function.
41701
41702         * Make-lang.in: (ada/misc.o): Add real.h.
41703
41704         * misc.c: (enumerate_modes): New function.
41705
41706 2003-11-04  Robert Dewar  <dewar@gnat.com>
41707
41708         * 3vtrasym.adb: Minor reformatting
41709         Use terminology encoded/decoded name, rather than C++ specific notion
41710         of mangling (this is the terminology used throughout GNAT).
41711
41712         * einfo.h: Regenerated
41713
41714         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
41715
41716         * exp_ch6.adb:
41717         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
41718
41719         * par-prag.adb: Add dummy entry for Thread_Body pragma
41720
41721         * rtsfind.ads:
41722         Add entries for System.Threads entities for thread body processing
41723
41724         * sem_attr.adb:
41725         (Analyze_Pragma, Access attributes): Check these are not applied to a
41726         thread body, since this is not permitted
41727
41728         * sem_prag.adb: Add processing for Thread_Body pragma.
41729         Minor comment fix.
41730
41731         * sem_res.adb:
41732         (Resolve_Call): Check for incorrect attempt to call a thread body
41733          procedure with a direct call.
41734
41735         * snames.ads, snames.adb: Add entry for Thread_Body pragma
41736         Add names associated with thread body expansion
41737
41738         * snames.h: Add entry for Thread_Body pragma
41739
41740         * s-thread.adb: Add entries for thread body processing
41741         These are dummy bodies so far
41742
41743         * s-thread.ads: Add documentation on thread body handling.
41744         Add entries for thread body processing.
41745
41746 2003-11-04  Javier Miranda  <miranda@gnat.com>
41747
41748         * sem_ch10.adb:
41749         (Build_Limited_Views): Return after posting an error in case of limited
41750         with_clause on subprograms, generics, instances or generic renamings
41751         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
41752         on subprograms, generics, instances or generic renamings
41753
41754 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
41755
41756         * raise.c (setup_to_install): Correct mistake in last revision; two
41757         arguments out of order.
41758
41759         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
41760         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
41761         notice, missed in previous change.
41762         Remove trailing blanks and other style errors introduced in previous
41763         change.
41764
41765 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
41766
41767         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
41768         rid of the wrapper for a LJM type, ensuring we don't do that if the
41769         field is addressable.  This avoids potential low level type view
41770         mismatches later on, for instance in a by-reference argument passing
41771         process.
41772
41773 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41774
41775         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
41776         aligned at byte boundary.
41777
41778 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
41779
41780         * decl.c (components_to_record): Do not delete the empty variants from
41781         the end of the union type.
41782
41783 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
41784
41785         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
41786         operation for a derived type, an explicit declaration may use a local
41787         subtype of Boolean.
41788
41789 2003-11-04  Vincent Celier  <celier@gnat.com>
41790
41791         * make.adb (Gnatmake): Allow main sources on the command line with a
41792         library project when it is only for compilation (no binding or
41793         linking).
41794
41795 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41796
41797         * Makefile.in: Remove many duplicate variables.
41798
41799 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
41800
41801         * Make-lang.in (dvi): Move targets to $(docobjdir).
41802         (gnat_ug_vms.dvi): Simplify rule and adjust target.
41803         (gnat_ug_wnt.dvi): Likewise.
41804         (gnat_ug_unx.dvi): Likewise.
41805         (gnat_ug_vxw.dvi): Likewise.
41806         (gnat_rm.dvi): Likewise.
41807         (gnat-style.dvi): Likewise.
41808
41809 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
41810
41811         * gigi.h: Missed commit from update for C90.
41812
41813 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
41814
41815         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
41816
41817 2003-10-31  Andreas Schwab  <schwab@suse.de>
41818
41819         * raise.c (get_action_description_for): Fix typo in last change.
41820
41821 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
41822
41823         PR ada/12761
41824         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
41825         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
41826
41827 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
41828
41829         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
41830         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
41831         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
41832         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
41833         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
41834
41835 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
41836
41837         * 3vtrasym.adb:
41838         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
41839         numbers when symbol name is too long.
41840
41841 2003-10-30  Ed Falis  <falis@gnat.com>
41842
41843         * g-signal.ads, g-signal.adb: New files
41844
41845         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
41846
41847         * Makefile.rtl: Introduce GNAT.Signals
41848
41849 2003-10-30  Robert Dewar  <dewar@gnat.com>
41850
41851         * freeze.adb: Minor reformatting
41852
41853         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
41854
41855         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
41856         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
41857         New handling of Id_Check parameter to improve recognition of keywords
41858         used as identifiers.
41859         Update copyright notice to include 2003
41860
41861 2003-10-29  Robert Dewar  <dewar@gnat.com>
41862
41863         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
41864         sem_ch10.adb: Minor reformatting
41865
41866         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
41867         (Expand_Assign_Record): Test right hand side for bit unaligned as well
41868
41869 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
41870
41871         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
41872         Support for TBK$SYMBOLIZE-based symbolic traceback.
41873
41874 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
41875
41876         * exp_disp.adb:
41877         Revert previous change, that did not work well when pragma No_Run_Time
41878         was used in conjunction with a run-time other than ZFP.
41879
41880 2003-10-29  Vincent Celier  <celier@gnat.com>
41881
41882         * make.adb:
41883         (Gnatmake): When there are no Ada mains in attribute Main, disable the
41884          bind and link steps only is switch -z is not used.
41885
41886 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
41887
41888         * Makefile.generic: Remove duplicated setting of CC.
41889
41890         * Makefile.prolog: Set CC to gcc by default, to override make's
41891         default (cc).
41892
41893         * einfo.h: Regenerated.
41894
41895 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
41896
41897         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
41898         current body, after compiling subunit.
41899
41900         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
41901         when in deleted code, because gigi needs properly ordered freeze
41902         actions to annotate types.
41903
41904         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
41905         prevent the premature freezing of record type that contains
41906         subcomponents with a private type that does not yet have a completion.
41907
41908 2003-10-29  Javier Miranda  <miranda@gnat.com>
41909
41910         * sem_ch12.adb:
41911         (Analyze_Package_Instantiation): Check that instances can not be used in
41912         limited with_clauses.
41913
41914         * sem_ch8.adb:
41915         (Analyze_Package_Renaming): Check that limited withed packages cannot
41916         be renamed. Improve text on error messages related to limited
41917         with_clauses.
41918
41919         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
41920
41921         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
41922         Update copyright notice.
41923
41924         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
41925         (Install_Limited_Context_Clauses): New subprogram that isolates all the
41926         checks required for limited context_clauses and installs the limited
41927         view.
41928         (Install_Limited_Withed_Unit): Complete its documentation.
41929         (Analyze_Context): Check that limited with_clauses are only allowed in
41930         package specs.
41931         (Install_Context): Call Install_Limited_Context_Clauses after the
41932         parents have been installed.
41933         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
41934         package as 'From_With_Type'; this mark indicates that the limited view
41935         is installed. Used to check bad usages of limited with_clauses.
41936         (Build_Limited_Views): Do not add shadow entities to the scope's list
41937         of entities. Do not add real entities to the Non_Limited_Views chain.
41938         Improve error notification.
41939         (Remove_Context_Clauses): Remove context clauses in two phases:
41940         limited views first and regular views later (to maintain the
41941         stack model).
41942         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
41943         its visible entities.
41944
41945 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
41946
41947         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
41948         with any type that Is_Fixed_Point_Type.
41949
41950         * sinfo.ads: Fix documentation for Associated_Node attribute.
41951
41952 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
41953
41954         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
41955         both '-gnatc' and '-gnatt' are specified.
41956
41957         * atree.adb (Initialize): Add initialization for Node_Count (set to
41958         zero).
41959
41960 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41961
41962         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
41963         do not consider as Pure.
41964
41965         Part of implementation of function-at-a-time:
41966
41967         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
41968         (tree_transform): Add new argument to build_component_ref.
41969         (tree_transform, case N_Assignment_Statement): Make and return an
41970         EXPR_STMT.
41971         (tree_transform): If result IS_STMT, set flags and return it.
41972         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
41973
41974         * utils2.c (build_simple_component_ref, build_component_ref): Add new
41975         arg, NO_FOLD_P.
41976         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
41977         (build_allocator): Likewise.
41978
41979         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
41980         Add new arg to build_component_ref.
41981         (maybe_unconstrained_array, unchecked_convert): Likewise.
41982
41983         * ada-tree.def (EXPR_STMT): New code.
41984
41985         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
41986
41987         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
41988         build_component_ref calls.
41989
41990         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
41991
41992         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
41993         (build_component_ref): Add new argument, NO_FOLD_P.
41994
41995 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
41996
41997         * Makefile.generic: Add missing substitution on object_deps handling.
41998
41999         PR ada/5909
42000         * Make-lang.in (check-ada): Enable ACATS test suite.
42001
42002 2003-10-27  Robert Dewar  <dewar@gnat.com>
42003
42004         * exp_ch3.adb:
42005         (Freeze_Array_Type): We do not need an initialization routine for types
42006         derived from String or Wide_String. They should be treated the same
42007         as String and Wide_String themselves. This caused problems with the
42008         use of Initialize_Scalars.
42009
42010         * exp_ch5.adb:
42011         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
42012         composites. This allows use of component clauses that are not byte
42013         aligned.
42014
42015         * sem_prag.adb:
42016         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
42017         is an attempt to pack an array of atomic objects.
42018
42019         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
42020
42021 2003-10-27  Pascal Obry  <obry@gnat.com>
42022
42023         * g-dirope.adb:
42024         (Basename): Check for drive letters in a pathname only on DOS based OS.
42025
42026 2003-10-27  Vincent Celier  <celier@gnat.com>
42027
42028         * make.adb:
42029         (Gnatmake): When unable to change dir to the object dir, display the
42030         content of the parent dir of the obj dir, to try to understand why this
42031         happens.
42032
42033 2003-10-27  GNAT Script  <nobody@gnat.com>
42034
42035         * Make-lang.in: Makefile automatically updated
42036
42037 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
42038
42039         * sem_ch12.adb:
42040         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
42041         should not be done in Save/Restore_Scope_Stack, because it is performed
42042         locally.
42043
42044         * sem_ch8.adb:
42045         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42046         whether use clauses should be removed/restored.
42047
42048         * sem_ch8.ads:
42049         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42050         whether use clauses should be removed/restored.
42051
42052 2003-10-26  Andreas Jaeger  <aj@suse.de>
42053
42054         * Makefile.in: Remove duplicated lines.
42055
42056 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
42057
42058         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
42059         minimize the differences with ACT tree.
42060
42061         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
42062         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
42063         Gnatvsn.Gnat_Static_Version_String to reduce differences between
42064         ACT and FSF trees.
42065
42066 2003-10-24  Pascal Obry  <obry@gnat.com>
42067
42068         PR ada/12014
42069         * adadecode.c (ostrcpy): New function.
42070         (__gnat_decode): Use ostrcpy of strcpy.
42071         (has_prefix): Set first parameter a const.
42072         (has_suffix): Set first parameter a const.
42073         Update copyright notice. Fix source name in header.
42074         Removes a trailing space.
42075
42076 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
42077
42078         * exp_disp.adb:
42079         Remove the test against being in No_Run_Time_Mode before generating a
42080         call to Register_Tag. It is redundant with the test against the
42081         availability of the function Register_Tag.
42082
42083 2003-10-24  Vincent Celier  <celier@gnat.com>
42084
42085         * g-catiio.adb: (Month_Name): Correct spelling of February
42086
42087         * make.adb: (Mains): New package
42088         (Initialize): Call Mains.Delete
42089         (Gnatmake): Check that each main on the command line is a source of a
42090         project file and, if there are several mains, each of them is a source
42091         of the same project file.
42092         (Gnatmake): When a foreign language is specified in attribute Languages,
42093         no main is specified on the command line and attribute Mains is not
42094         empty, only build the Ada main. If there is no Ada main, just compile
42095         the Ada sources and their closure.
42096         (Gnatmake): If a main is specified on the command line with directory
42097         information, check that the source exists and, if it does, that the path
42098         is the actual path of a source of a project.
42099
42100         * prj-env.adb:
42101         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
42102         Full_Path is True, return the full path instead of the simple file name.
42103         (Project_Of): New function
42104
42105         * prj-env.ads:
42106         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
42107         defaulted to False.
42108         (Project_Of): New function
42109
42110 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
42111
42112         * Makefile.generic:
42113         Ensure objects of main project are always checked and rebuilt if needed.
42114         Set CC to gcc by default.
42115         Prepare new handling of link by creating a global archive (not activated
42116         yet).
42117
42118         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42119         stringt.h: Update copyright notice. Remove trailing blanks.
42120         Fix source name in header.
42121
42122 2003-10-24  Robert Dewar  <dewar@gnat.com>
42123
42124         * sem_ch12.adb: Minor reformatting
42125
42126         * sem_ch3.adb:
42127         Minor reformatting (including new function return style throughout)
42128
42129         * sem_ch3.ads:
42130         Minor reformatting (including new function return style throughout)
42131
42132 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
42133
42134         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42135         stringt.h: Update copyright notice. Remove trailing blanks.
42136         Fix source name in header.
42137
42138 2003-10-24  GNAT Script  <nobody@gnat.com>
42139
42140         * Make-lang.in: Makefile automatically updated
42141
42142 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
42143
42144         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
42145         stringt.h: Convert to ISO C90 declarations and definitions.
42146
42147 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
42148
42149         PR ada/11978
42150         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
42151         External_Tag attribute definition clauses.
42152
42153 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
42154
42155         PR ada/7613
42156         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
42157         child unit, generate a fully qualified name to avoid spurious errors
42158         when the context contains renamings of different child units with
42159         the same simple name.
42160
42161         * exp_dbug.ads: Add documentation on name qualification for renamings
42162         of child units.
42163
42164 2003-10-23  Robert Dewar  <dewar@gnat.com>
42165
42166         * g-regpat.ads, g-regpat.adb: Minor reformatting
42167
42168 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
42169
42170         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
42171
42172 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
42173
42174         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
42175         Machine call.
42176
42177         * urealp.h: (Machine): Update to proper definition.
42178
42179 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
42180
42181         * init.c, adaint.c: Minor reformatting.
42182
42183 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
42184
42185         * adaint.c (w32_epoch_offset): Define static const at file level.
42186         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
42187         rather than t_create, t_access in call to GetFileTime. Use union
42188         to convert between FILETIME and  unsigned long long.
42189         (__gnat_file_time_name): Test for invalid file handle.
42190         (__gnat_set_filetime_name): Support win32 targets using
42191         w32api SetFileTime.
42192
42193 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
42194
42195         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
42196
42197         * ctrl_c.c (__gnat_int_handler): Remove declaration.
42198
42199         * decl.c (creat_concat_name):  Const-ify prefix.
42200
42201         * adaint.c: Include ctype.h if __MINGW32__.
42202         (__gnat_readlink): Mark arguments as possibly unused.
42203         (__gnat_symlink): Likewise.
42204         (__gnat_is_symbolic_link): Likewise.
42205         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
42206         declaration
42207         (__gnat_file_time_name): Don't declare struct stat statbuf when
42208         not needed.
42209         (__gnat_is_absolute_path): Add parenthesis around condition of
42210         'if' statement to avoid warning.
42211         (__gnat_plist_init): Specify void as parameter.
42212         (plist_enter): Likewise.
42213         (plist_leave): Likewise.
42214         (remove_handle): Make static. Initialize prev.
42215
42216 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
42217
42218         PR ada/10110
42219         * Makefile.in: Disable build of gnatpsta.
42220         * cstreams.c (__gnat_full_name): Minor improvements and clean up
42221         of previous change.
42222
42223 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
42224
42225         * tracebak.c (MAX): Avoid redefinition warning.
42226
42227         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
42228         Change msg to const char *.
42229         (__gnat_install_handler): Remove ss, unused.
42230         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
42231         to const char *.
42232         * cstreams.c (__gnat_full_name): Declare p only when used.
42233         (__gnat_full_name) [sgi] Return buffer.
42234
42235 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
42236
42237         * mingw32.h: New file.
42238         * gnat_wrapper.adb: New file.
42239
42240 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
42241
42242         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
42243         string match a pre compiled regular expression (the corresponding
42244         version of the function working on a raw regular expression)
42245         Fix typos in various comments
42246         Update copyright notice in spec
42247
42248 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
42249
42250         * exp_ch3.adb:
42251         (Component_Needs_Simple_Initialization): Return False when the type is a
42252         packed bit array. Revise spec comments to document this case.
42253
42254         * exp_prag.adb:
42255         (Expand_Pragma_Import): Set any expression on the imported object to
42256         empty to avoid initializing imported objects (in particular this
42257         covers the case of zero-initialization of bit arrays).
42258         Update copyright notice.
42259
42260 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
42261
42262         * sem_ch12.adb:
42263         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
42264         a subunit is missing.
42265         (Instantiate_Subprogram_Body): If body of function is missing, set type
42266         of return expression explicitly in dummy body, to prevent cascaded
42267         errors when a subunit is missing.
42268         Fixes PR 5677.
42269
42270         * sem_ch3.adb:
42271         (Access_Subprogram_Declaration): Verify that return type is valid.
42272         Fixes PR 8693.
42273
42274         * sem_elab.adb:
42275         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
42276         generic.
42277         Fixes PR 12318.
42278
42279         * sem_util.adb:
42280         (Corresponding_Discriminant): If the scope of the discriminant is a
42281         private type without discriminant, use its full view.
42282         Fixes PR 8247.
42283
42284 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
42285
42286         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
42287         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
42288         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
42289         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
42290         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
42291         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
42292         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
42293         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
42294         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
42295         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
42296         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
42297         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
42298         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
42299         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
42300         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
42301         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
42302         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
42303         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
42304         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
42305         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
42306         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
42307         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
42308         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
42309         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
42310         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
42311         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
42312         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
42313         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
42314         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
42315         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
42316         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
42317         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
42318         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
42319         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
42320         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
42321         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
42322         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
42323         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
42324         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
42325         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
42326         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
42327         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
42328         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
42329         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
42330         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
42331         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
42332         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
42333         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
42334         vms_conv.ads, vms_conv.adb, vms_data.ads,
42335         vxaddr2line.adb: Files added. Merge with ACT tree.
42336
42337         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
42338         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
42339         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
42340         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
42341         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
42342         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
42343         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
42344         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
42345         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
42346         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
42347
42348         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42349         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42350         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42351         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42352         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
42353         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
42354         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42355         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
42356         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
42357         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
42358         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
42359         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
42360         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
42361         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
42362         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
42363         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
42364         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
42365         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42366         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
42367         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
42368         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
42369         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
42370         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
42371         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
42372         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
42373         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
42374         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
42375         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
42376         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
42377         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
42378         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
42379         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
42380         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
42381         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
42382         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
42383         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
42384         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
42385         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
42386         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
42387         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
42388         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
42389         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
42390         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
42391         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
42392         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
42393         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
42394         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
42395         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
42396         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
42397         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
42398         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
42399         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
42400         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
42401         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
42402         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
42403         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
42404         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
42405         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
42406         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
42407         checks.adb, checks.ads, cio.c, comperr.adb,
42408         comperr.ads, csets.adb, cstand.adb, cstreams.c,
42409         debug_a.adb, debug_a.ads, debug.adb, decl.c,
42410         einfo.adb, einfo.ads, errout.adb, errout.ads,
42411         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
42412         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
42413         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
42414         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
42415         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
42416         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
42417         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
42418         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
42419         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
42420         fe.h, fmap.adb, fmap.ads, fname.adb,
42421         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
42422         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
42423         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
42424         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
42425         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
42426         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
42427         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
42428         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
42429         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
42430         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
42431         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
42432         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
42433         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
42434         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
42435         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
42436         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
42437         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
42438         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
42439         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
42440         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
42441         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
42442         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
42443         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
42444         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
42445         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
42446         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
42447         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
42448         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
42449         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
42450         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
42451         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
42452         layout.adb, lib.adb, lib.ads, lib-list.adb,
42453         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
42454         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42455         link.c, live.adb, make.adb, make.ads,
42456         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
42457         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
42458         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
42459         misc.c, mkdir.c, mlib.adb, mlib.ads,
42460         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
42461         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
42462         namet.adb, namet.ads, namet.h, nlists.ads,
42463         nlists.h, nmake.adt, opt.adb, opt.ads,
42464         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
42465         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
42466         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42467         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
42468         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
42469         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
42470         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
42471         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
42472         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
42473         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
42474         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
42475         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
42476         prj-util.adb, prj-util.ads, raise.c, raise.h,
42477         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
42478         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
42479         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
42480         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
42481         scans.ads, scn.adb, scn.ads, s-crc32.adb,
42482         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
42483         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42484         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
42485         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
42486         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
42487         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
42488         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
42489         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
42490         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
42491         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
42492         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
42493         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
42494         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
42495         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
42496         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
42497         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
42498         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
42499         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
42500         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
42501         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
42502         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
42503         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
42504         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
42505         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
42506         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
42507         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
42508         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
42509         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
42510         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
42511         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
42512         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
42513         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
42514         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
42515         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
42516         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
42517         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
42518         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
42519         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
42520         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
42521         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
42522         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42523         stringt.adb, stringt.ads, stringt.h, style.ads,
42524         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
42525         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
42526         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
42527         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
42528         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
42529         table.adb, table.ads, targparm.adb, targparm.ads,
42530         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
42531         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
42532         ttypes.ads, types.ads, types.h, uintp.adb,
42533         uintp.ads, uintp.h, uname.adb, urealp.adb,
42534         urealp.ads, urealp.h, usage.adb, utils2.c,
42535         utils.c, validsw.adb, validsw.ads, widechar.adb,
42536         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
42537         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
42538         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
42539         gnatvsn.ads: Merge with ACT tree.
42540
42541         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
42542
42543 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
42544
42545         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
42546         (gnat_ug_vmx.info): Likewise.
42547         (gnat_ug_vxw.info): Likewise.
42548         (gnat_ug_wnt.info): Likewise.
42549         (gnat_rm.info): Likewise.
42550         (gnat-style.info): Likewise.
42551
42552         * Make-lang.in (ada.install-info): Remove target.
42553         (info): New target.
42554         (install-info): Likewise.
42555         (gnat_ug_unx.info): Simplify rule.
42556         (gnat_ug_vmx.info): Likewise.
42557         (gnat_ug_vxw.info): Likewise.
42558         (gnat_ug_wnt.info): Likewise.
42559         (gnat_rm.info): Likewise.
42560         (gnat-style.info): Likewise.
42561
42562 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
42563
42564         * Make-lang.in: Replace uses of $(target_alias) with
42565         $(target_noncanonical).
42566         * ada/Makefile.in: Remove unused mention of $(target_alias).
42567
42568 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
42569
42570         * Make-lang.in (ada.info): Replace with ...
42571         (info): ... this.
42572         (ada.dvi): Replace with ...
42573         (dvi): ... this.
42574
42575 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
42576
42577         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
42578         initialize dconstp5 and dconstmp5.
42579
42580 2003-09-28  Richard Henderson  <rth@redhat.com>
42581
42582         * trans.c (tree_transform): Update call to expand_asm_operands.
42583
42584 2003-09-21  Richard Henderson  <rth@redhat.com>
42585
42586         * trans.c, utils.c: Revert.
42587
42588 2003-09-21  Richard Henderson  <rth@redhat.com>
42589
42590         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
42591         change to const.
42592
42593 2003-09-04  Michael Matz  <matz@suse.de>
42594
42595         * misc.c: Include "target.h".
42596         * Make-lang.in (misc.o): Add dependency on target.h.
42597
42598 2003-09-03  DJ Delorie  <dj@redhat.com>
42599
42600         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
42601         hook.
42602
42603 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
42604
42605         * Makefile.in: Update substitutions to match changes to
42606         configure.  Use include directives instead of @-insertions
42607         to read in host and target fragments.  Add a rule to
42608         regenerate ada/Makefile.
42609
42610 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
42611
42612         * lang-options.h: Remove.
42613         * lang.opt: Add help text.
42614
42615 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
42616
42617         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
42618         calls.
42619
42620 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
42621
42622         * misc.c (gnat_handle_option): Don't handle filenames.
42623
42624 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
42625
42626         * Make-lang.in: Replace PWD with PWD_COMMAND.
42627         * Makefile.adalib: Likewise.
42628         * Makefile.in: Likewise.
42629
42630 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
42631
42632         * misc.c (gnat_argv): Revert last change.
42633         (gnat_handle_option, gnat_init_options): Copy arguments.
42634
42635 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
42636
42637         * misc.c (gnat_argv): Make const.
42638
42639 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
42640
42641         * misc.c (save_argc, save_argv): Keep non-static!
42642
42643 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
42644
42645         * misc.c (save_argc, save_argv): Make static.
42646         (gnat_init_options): New prototype.
42647         (gnat_init_options): Update.
42648
42649 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
42650
42651         * gnat_ug.texi: Remove unlikely characters from @vars.
42652         * gnat_ug_vms.texi: Regenerate.
42653
42654 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
42655
42656         * misc.c (record_code_position): Adjust emit_note call.
42657
42658 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
42659
42660         * misc.c (gnat_handle_option): Don't check for missing arguments.
42661
42662 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
42663
42664         * utils.c (end_subprog_body): Adjust expand_function_end call.
42665
42666 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
42667
42668         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
42669         Bind_Main_Program.
42670
42671 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
42672
42673         * lang.opt: Declare Ada.
42674         * misc.c (gnat_init_options): Update.
42675
42676 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
42677
42678         * utils.c (begin_subprog_body): Adjust init_function_start call.
42679
42680 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
42681
42682         * Make-lang.in: Update to use options.c and options.h.
42683         * misc.c: Include options.h not aoptions.h.
42684         (gnat_handle_option): Abort on unrecognized switch.
42685         (gnat_init_options): Request Ada switches.
42686
42687 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
42688
42689         * lang.opt: Add -Wall.
42690         * misc.c (gnat_handle_option): Handle it.
42691
42692 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
42693
42694         * misc.c (gnat_handle_option): Fix warnings.
42695
42696 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
42697
42698         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
42699
42700 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
42701
42702         * Make-lang.in: Update to handle command-line options.
42703         * lang.opt: New file.
42704         * misc.c: Include aoptions.h.
42705         (cl_options_count, cl_options): Remove.
42706         (gnat_handle_option): New.
42707         (gnat_decode_option): Remove.
42708         (LANG_HOOKS_DECODE_OPTION): Remove.
42709         (LANG_HOOKS_HANDLE_OPTION): Override.
42710
42711 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
42712
42713         * init.c, misc.c, trans.c, utils.c: Remove dead code.
42714
42715 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
42716
42717         * Makefile.in: Replace "host_canonical" with "host" for autoconf
42718         substitution.
42719
42720 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
42721
42722         * Make-lang.in: Update.
42723         * misc.c: Include opts.h. Define cl_options_count and cl_options.
42724
42725 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
42726
42727         * misc.c (gnat_init_options): Update.
42728
42729 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
42730
42731         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
42732         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
42733         __attribute__ ((__unused__)).
42734
42735 2003-06-05  Jan Hubicka  <jh@suse.cz>
42736
42737         * Make-lang.in:  Add support for stageprofile and stagefeedback
42738
42739 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
42740
42741         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
42742         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
42743
42744 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
42745
42746         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
42747         Remove non-VMS directive.
42748         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
42749         alternatives.
42750         (Examples of gnatls Usage): Remove VMS alternative.
42751
42752 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
42753
42754         PR ada/9953
42755         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
42756         and turn ZCX_By_Default back to False since the underlying support
42757         is not quite there yet.
42758
42759 2003-06-01  Andreas Jaeger  <aj@suse.de>
42760
42761         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
42762         and ROUND_TYPE_SIZE_UNIT.
42763
42764 2003-05-22   Geert Bosch  <bosch@gnat.com>
42765
42766         * gnat_rm.texi : Remove reference to Ada Core Technologies.
42767
42768 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
42769
42770         * trans.c (tree_transform): Use location_t and input_location
42771         directly.
42772         (build_unit_elab): Likewise.
42773         * utils.c (create_label_decl): Likewise.
42774
42775 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
42776
42777         * trans.c (tree_transform, build_unit_elab,
42778         set_lineno): Rename lineno to input_line.
42779         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
42780         end_subprog_body): Likewise.
42781         * utils2.c (build_call_raise): Likewise.
42782
42783 2003-05-01  Laurent Guerby  <guerby@acm.org>
42784
42785         PR ada/10546
42786         * 5iosinte.ads: Increase pthread_cond_t size to match recent
42787         LinuxThread and NPTL version, merge from ACT.
42788
42789 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
42790
42791         * utils.c (convert): No need to clear TREE_CST_RTL.
42792
42793 2003-04-23   Geert Bosch  <bosch@gnat.com>
42794
42795         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
42796         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42797         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42798         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42799         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42800         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
42801         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
42802         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
42803         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42804         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
42805         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
42806         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
42807         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
42808         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
42809         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
42810         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
42811         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
42812         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
42813         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
42814         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
42815         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
42816         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
42817         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42818         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
42819         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
42820         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
42821         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
42822         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
42823         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
42824         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
42825         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
42826         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
42827         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
42828         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
42829         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
42830         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
42831         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
42832         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
42833         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
42834         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
42835         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
42836         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
42837         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
42838         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
42839         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
42840         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
42841         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
42842         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
42843         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
42844         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
42845         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
42846         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
42847         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
42848         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
42849         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
42850         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
42851         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
42852         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
42853         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
42854         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
42855         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
42856         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
42857         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
42858         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
42859         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
42860         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
42861         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
42862         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
42863         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
42864         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
42865         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
42866         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
42867         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
42868         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
42869         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
42870         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
42871         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
42872         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
42873         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
42874         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
42875         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
42876         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
42877         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
42878         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
42879         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
42880         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
42881         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
42882         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
42883         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
42884         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
42885         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
42886         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
42887         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
42888         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
42889         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
42890         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
42891         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
42892         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
42893         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
42894         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
42895         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
42896         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
42897         ali.adb, ali.ads, alloc.ads, argv.c,
42898         atree.adb, atree.ads, atree.h, aux-io.c,
42899         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
42900         binde.adb, binde.ads, binderr.adb, binderr.ads,
42901         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
42902         butil.adb, butil.ads, cal.c, calendar.ads,
42903         casing.adb, casing.ads, ceinfo.adb, checks.adb,
42904         checks.ads, cio.c, comperr.adb, comperr.ads,
42905         config-lang.in, csets.adb, csets.ads, csinfo.adb,
42906         cstand.adb, cstand.ads, cuintp.c, debug.adb,
42907         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
42908         dec-io.ads, dec.ads, deftarg.c, directio.ads,
42909         einfo.adb, einfo.ads, elists.adb, elists.ads,
42910         elists.h, errno.c, errout.adb, errout.ads,
42911         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
42912         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
42913         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
42914         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
42915         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
42916         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
42917         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
42918         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
42919         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
42920         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
42921         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
42922         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
42923         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
42924         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
42925         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
42926         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
42927         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
42928         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
42929         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
42930         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
42931         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
42932         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
42933         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
42934         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
42935         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
42936         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
42937         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
42938         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
42939         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
42940         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
42941         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
42942         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
42943         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
42944         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
42945         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
42946         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
42947         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
42948         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
42949         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
42950         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
42951         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
42952         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
42953         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
42954         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
42955         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
42956         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
42957         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
42958         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
42959         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
42960         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
42961         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
42962         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
42963         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
42964         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
42965         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
42966         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
42967         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
42968         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
42969         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
42970         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42971         lib.adb, lib.ads, live.adb, live.ads,
42972         machcode.ads, make.adb, make.ads, makeusg.adb,
42973         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
42974         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
42975         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
42976         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
42977         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
42978         mlib.ads, namet.adb, namet.ads, nlists.adb,
42979         nlists.ads, opt.adb, opt.ads, osint-b.adb,
42980         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
42981         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
42982         osint.ads, output.adb, output.ads, par-ch10.adb,
42983         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
42984         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42985         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
42986         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
42987         par-tchk.adb, par-util.adb, par.adb, par.ads,
42988         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
42989         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
42990         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
42991         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
42992         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
42993         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
42994         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
42995         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
42996         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
42997         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
42998         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
42999         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
43000         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
43001         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
43002         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
43003         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
43004         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
43005         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43006         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
43007         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
43008         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
43009         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
43010         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43011         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
43012         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
43013         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
43014         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
43015         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
43016         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
43017         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
43018         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
43019         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
43020         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
43021         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
43022         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
43023         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
43024         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
43025         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
43026         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
43027         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
43028         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
43029         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
43030         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
43031         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
43032         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
43033         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
43034         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
43035         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
43036         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
43037         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
43038         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
43039         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
43040         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
43041         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
43042         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
43043         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
43044         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
43045         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
43046         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
43047         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
43048         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
43049         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
43050         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
43051         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
43052         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
43053         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
43054         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
43055         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
43056         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
43057         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
43058         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
43059         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
43060         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
43061         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
43062         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
43063         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
43064         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
43065         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
43066         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
43067         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
43068         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
43069         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
43070         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
43071         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
43072         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
43073         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
43074         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
43075         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
43076         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
43077         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
43078         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
43079         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
43080         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
43081         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
43082         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
43083         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
43084         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
43085         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
43086         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
43087         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
43088         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
43089         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
43090         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
43091         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
43092         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
43093         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
43094         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
43095         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
43096         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
43097         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
43098         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43099         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43100         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
43101         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
43102         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
43103         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
43104         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
43105         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
43106         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
43107         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
43108         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
43109         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
43110         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
43111         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
43112         snames.ads, sprint.adb, sprint.ads, stand.adb,
43113         stand.ads, stringt.adb, stringt.ads, style.adb,
43114         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
43115         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
43116         switch-m.ads, switch.adb, switch.ads, system.ads,
43117         table.adb, table.ads, targparm.adb, targparm.ads,
43118         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
43119         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
43120         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
43121         ttypef.ads, ttypes.ads, types.adb, types.ads,
43122         uintp.adb, uintp.ads, uname.adb, uname.ads,
43123         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
43124         usage.adb, usage.ads, validsw.adb, validsw.ads,
43125         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
43126         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
43127         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
43128         formatting and other trivial changes from ACT.
43129
43130 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
43131
43132         * gigi.h, utils2.c (build_constructor):
43133         Rename gnat_build_constructor. Use build_constructor.
43134         * decl.c (gnat_to_gnu_entity)
43135         * trans.c (tree_transform, pos_to_constructor, extract_values)
43136         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
43137         (unchecked_convert)
43138         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
43139         (fill_vms_descriptor):
43140         Update to match.
43141
43142 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
43143
43144         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
43145         * misc.c (gnat_tree_size): New function.
43146         (LANG_HOOKS_TREE_SIZE): Override.
43147
43148 2003-04-03  Jason Merrill  <jason@redhat.com>
43149
43150         * misc.c (gnat_adjust_rli): #if 0.
43151
43152 2003-03-31   Geert Bosch  <bosch@gnat.com>
43153
43154         PR ada/10020
43155         * link.c : Fix misspelled "const" keyword
43156
43157 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
43158
43159         PR c++/7086
43160         * utils2.c: Adjust calls to put_var_into_stack.
43161
43162 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
43163
43164         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
43165
43166 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
43167
43168         * misc.c (gnat_init): Update for new prototype.
43169
43170 2003-03-05  Olivier Hainque  <hainque@gnat.com>
43171
43172         ada/9961
43173         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
43174         warning, and fix return type for the IN_RTS && !SJLJ case.
43175
43176 2003-03-04  Tom Tromey  <tromey@redhat.com>
43177
43178         * Make-lang.in (ada.tags): New target.
43179
43180 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
43181
43182         ada/9911
43183         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
43184         wrapper, which name remains constant whatever underlying GCC
43185         scheme.
43186
43187         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
43188         the stable interface needed for a-except.
43189
43190 2003-03-02  Andreas Jaeger  <aj@suse.de>
43191
43192         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43193         gnat_ug_wnt.texi: Regenerate.
43194
43195 2003-03-02  Laurent Guerby  <guerby@acm.org>
43196
43197         * Makefile.in (install-gnatlib): Match previous change there
43198         so it works.
43199
43200 2003-02-28  Andreas Schwab  <schwab@suse.de>
43201
43202         * Make-lang.in (install-gnatlib): Change to ada directory before
43203         running make instead of using ada/Makefile directly.
43204
43205 2003-02-18  Ben Elliston  <bje@redhat.com>
43206
43207         Part of PR ada/9406
43208         * gnat_ug.texi (Binder output file): Grammar fix.
43209
43210 2003-02-18  Ben Elliston  <bje@redhat.com>
43211
43212         PR other/7350
43213         * 5qtaprop.adb (Sleep): Fix typo in comment.
43214
43215 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
43216
43217         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
43218         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43219         gnat_ug_wnt.texi: Regenerate.
43220
43221 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
43222
43223         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
43224         be created if necessary.
43225         (ada.install-common): Let $(DESTDIR)$(bindir) be created
43226         if necessary.  Remove erroneous and redundant gnatchop
43227         installation commands.  Test for gnatdll before attempting
43228         to install it.
43229         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
43230         and gnatdll from all plausible locations.
43231
43232 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
43233
43234         * utils2.c (build_unary_op): Don't check flag_volatile.
43235         * gnat_ug.texi: Remove -fvolatile from example.
43236         * gnat_ug_vxw.texi: Likewise.
43237
43238 2003-01-29  Laurent Guerby  <guerby@acm.org>
43239
43240         PR ada/8344
43241         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
43242         * Makefile.in: match previous change.
43243         * Make-lang.in: match previous change.
43244
43245 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
43246
43247         * 5rosinte.ads: Add SIGXCPU.
43248         * 5rtpopsp.adb: New file.
43249         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
43250         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
43251         specific file 5rtpopsp.adb.
43252         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
43253         is likely needed for all newlib targets.
43254         * init.c: Add RTEMS specific version of __gnat_initialize().
43255
43256 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43257
43258         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
43259
43260 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43261
43262         * init.c (__gnat_error_handler): Make msg const.
43263
43264         * gmem.c (convert_addresses): Move declaration ...
43265         * adaint.h: ... here.
43266         * adaint.c (convert_addresses): Adapt addrs type to match
43267         prototype.
43268
43269         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
43270
43271 2003-01-24  Andreas Schwab  <schwab@suse.de>
43272
43273         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
43274         size_t to avoid warning.
43275
43276 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
43277
43278         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
43279
43280 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
43281
43282         * gnat_rm.texi: Remove RCS version number.
43283
43284         * ada-tree.h (union lang_tree_node): Add chain_next option.
43285
43286 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
43287
43288         * Make-lang.in (ada.install-info, ada.install-common,
43289         ada.uninstall): Prepend $(DESTDIR) to the destination
43290         directory in all (un)installation commands.
43291         * Makefile.in (install-gnatlib, install-rts): Ditto.
43292
43293 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
43294
43295         * gnat_rm.texi, gnat_ug.texi: Use @copying.
43296         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43297         gnat_ug_wnt.texi: Regenerate.
43298
43299 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
43300
43301         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
43302         only.
43303         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
43304         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
43305         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
43306         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
43307         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
43308         $(srcdir)/doc/include/gcc-common.texi.
43309
43310 2002-12-15   Geert Bosch  <bosch@gnat.com>
43311
43312         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
43313
43314 2002-12-14   Geert Bosch  <bosch@gnat.com>
43315
43316         PR ada/5690
43317         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
43318         case of a body created for a Renaming_As_Body, on which
43319         conformance checks are not performed.
43320
43321 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
43322
43323         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
43324         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
43325         not already included.
43326         * Make-lang.in: Update dependencies.
43327
43328 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
43329         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
43330         solution to buffer overflow bug on GNU/Linux.
43331
43332 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
43333
43334         PR ada/5856
43335         PR ada/6919
43336         * bindgen.adb: Remove all references to Public_Version.
43337         * comperr.adb: Remove all references to Public_Version and
43338         GNATPRO_Version; correct bug reporting instructions.
43339         * comperr.ads: Change to match bug box.
43340         * gnatvsn.ads: Remove all references to Public version and
43341         GNATPRO version.
43342
43343 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
43344
43345         PR ada/6919
43346         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
43347         GNU/Linux.
43348
43349         PR ada/6558
43350         * config-lang.in: Remove diff_excludes.
43351
43352 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
43353
43354         PR ada/8358
43355         * trans.c (gnu_pending_elaboration_lists): New GC root.
43356         (build_unit_elab): Use..
43357
43358 2002-10-30   Geert Bosch  <bosch@gnat.com>
43359
43360         PR ada/6558
43361         * misc.c : Include optabs.h
43362
43363         * Make-lang.in (misc.o): Add dependency on optabs.h
43364
43365 2002-10-29   Geert Bosch  <bosch@gnat.com>
43366
43367         PR ada/6558
43368         * Make-lang.in (gnatbind): Depend on CONFIG_H
43369
43370 2002-10-29  Geert bosch  <bosch@gnat.com>
43371
43372         PR ada/6558
43373         * misc.c: Unrevert misc.c (1.13)
43374
43375 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
43376
43377         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
43378         maintainership comments.
43379
43380 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
43381
43382         PR ada/5904
43383         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
43384         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
43385         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
43386         7staprop.adb: Correct statements in comments about
43387         maintainership of GNAT.
43388
43389         PR ada/5904
43390         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
43391         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
43392         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
43393         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
43394         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
43395         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
43396         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
43397         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
43398         comments about maintainership of GNAT.
43399
43400         PR ada/6919 (forward port of patch for PR ada/5904)
43401         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
43402         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
43403         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
43404         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
43405         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
43406         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
43407         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
43408         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
43409         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
43410         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
43411         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
43412         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
43413         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
43414         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
43415         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
43416         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
43417         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
43418         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
43419         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
43420         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
43421         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
43422         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
43423         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
43424         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
43425         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
43426         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
43427         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
43428         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
43429         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
43430         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
43431         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
43432         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
43433         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
43434         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
43435         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
43436         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
43437         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
43438         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
43439         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
43440         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
43441         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
43442         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
43443         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
43444         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
43445         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
43446         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
43447         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
43448         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
43449         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
43450         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
43451         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
43452         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
43453         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
43454         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
43455         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
43456         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
43457         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
43458         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
43459         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
43460         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
43461         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
43462         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
43463         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
43464         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
43465         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
43466         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
43467         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
43468         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
43469         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
43470         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
43471         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
43472         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
43473         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
43474         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
43475         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
43476         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
43477         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
43478         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
43479         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
43480         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
43481         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
43482         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
43483         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
43484         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
43485         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
43486         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
43487         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
43488         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
43489         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
43490         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
43491         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
43492         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
43493         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
43494         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
43495         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
43496         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
43497         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
43498         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
43499         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
43500         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
43501         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
43502         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
43503         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
43504         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
43505         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
43506         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
43507         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
43508         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
43509         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
43510         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
43511         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
43512         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
43513         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
43514         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
43515         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
43516         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
43517         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
43518         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
43519         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
43520         par-endh.adb par-labl.adb par-load.adb par-prag.adb
43521         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
43522         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
43523         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
43524         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
43525         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
43526         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
43527         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
43528         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
43529         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
43530         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
43531         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
43532         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
43533         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
43534         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
43535         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
43536         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
43537         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
43538         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
43539         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
43540         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
43541         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
43542         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
43543         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
43544         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
43545         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
43546         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
43547         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
43548         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
43549         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
43550         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
43551         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
43552         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
43553         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
43554         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
43555         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
43556         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
43557         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
43558         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
43559         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
43560         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
43561         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
43562         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
43563         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
43564         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
43565         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
43566         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
43567         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
43568         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
43569         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
43570         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
43571         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
43572         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
43573         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
43574         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
43575         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
43576         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
43577         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
43578         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
43579         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
43580         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
43581         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
43582         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
43583         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
43584         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
43585         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
43586         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
43587         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
43588         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
43589         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
43590         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
43591         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
43592         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
43593         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
43594         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
43595         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
43596         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
43597         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
43598         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
43599         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
43600         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
43601         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
43602         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
43603         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
43604         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
43605         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
43606         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
43607         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
43608         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
43609         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
43610         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
43611         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
43612         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
43613         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
43614         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
43615         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
43616         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
43617         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
43618         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
43619         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
43620         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
43621         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
43622         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
43623         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
43624         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
43625         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
43626         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
43627         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
43628         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
43629         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
43630         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
43631         stringt.ads stringt.h style.adb style.ads stylesw.adb
43632         stylesw.ads switch.adb switch.ads sysdep.c system.ads
43633         table.adb table.ads targparm.adb targparm.ads targtyps.c
43634         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
43635         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
43636         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
43637         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
43638         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
43639         usage.ads utils.c utils2.c validsw.adb validsw.ads
43640         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
43641         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
43642         xtreeprs.adb: Correct statements in comments about maintainership
43643         of GNAT.
43644
43645 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
43646
43647         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
43648         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
43649         * gnatvsn.ads: Gnat_Version_String is now a function.
43650         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
43651         copy the C version_string into a String and return it.
43652         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
43653         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
43654         Remove pragma Ident (Gnat_Version_String).  If this was the
43655         sole use of package Gnatvsn, remove the with statement too.
43656         * gnat1drv.adb: Tweak -gnatv output.
43657
43658 2002-09-17  Richard Henderson  <rth@redhat.com>
43659
43660         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
43661         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
43662         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
43663         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
43664         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
43665         and real_2expN instead of a loop.
43666         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
43667         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
43668
43669 2002-08-25  Andre Leis  <a.leis@gmx.net>
43670             David Billinghurst  <David.Billinghurst@riotinto.com>
43671
43672         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
43673
43674 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43675
43676         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
43677         Remove $(CONFIG_H) dependency.
43678
43679 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
43680
43681         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
43682
43683 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
43684
43685         * adadecode.c (ada_demangle): Use xstrdup in lieu of
43686         xmalloc/strcpy.
43687         * misc.c (gnat_decode_option): Likewise.
43688
43689 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
43690
43691         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
43692         function approach did not work well because of a side effect (the
43693         function call could reallocate the table which was being indexed
43694         using its result). Fixes ada/4851. [RESURRECTED]
43695
43696 2002-07-01  Roger Sayle  <roger@eyesopen.com>
43697
43698         * ada/utils.c (builtin_function): Accept an additional parameter.
43699
43700 2002-06-28  Andreas Jaeger  <aj@suse.de>
43701
43702         PR ada/7144
43703         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
43704         <adi@thur.de>.
43705
43706 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
43707
43708         * Makefile.in (SHELL): Set to @SHELL@.
43709
43710 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
43711
43712         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
43713         array size calculation.
43714
43715 2002-06-04  Andreas Jaeger  <aj@suse.de>
43716
43717         * Make-lang.in (gnatbind): Readd rule that has been lost in last
43718         patch.
43719
43720 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
43721
43722         Merge from pch-branch:
43723
43724         * config-lang.in (gtfiles): Add ada-tree.h.
43725         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
43726         (SET_TYPE_MODULUS): New.
43727         (SET_TYPE_INDEX): New.
43728         (SET_TYPE_DIGITS_VALUE): New.
43729         (SET_TYPE_RM_SIZE): New.
43730         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
43731         (SET_TYPE_ADA_SIZE): New.
43732         (SET_TYPE_ACTUAL_BOUNDS): New.
43733         (SET_DECL_CONST_CORRESPONDING_VAR): New.
43734         (SET_DECL_ORIGINAL_FIELD): New.
43735         (TREE_LOOP_ID): Correct typo.
43736         * decl.c: Use new macros.
43737         * utils.c: Include debug.h, use new macros.
43738         * utils2.c: Use new macros.
43739
43740         * ada-tree.h: Update all macros for new tree description.
43741         (struct tree_loop_id): New.
43742         (union lang_tree_node): New.
43743         (struct lang_decl): New.
43744         (struct lang_type): New.
43745         * misc.c (gnat_mark_tree): Delete.
43746         (LANG_HOOKS_MARK_TREE): Delete.
43747         * trans.c (tree_transform): No longer any need to cast
43748         for TREE_LOOP_ID.
43749
43750         * utils.c (struct language_function): New dummy structure.
43751
43752         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
43753         (misc.o): Likewise.
43754         (utils.o): Likewise; also gtype-ada.h.
43755         * Make-lang.in (gnat1): Add dependency on s-gtype.
43756         (gnatbind): Add dependency on $(CONFIG_H).
43757         * utils.c: Correct last #include.
43758         (stuct e_stack): Remove unnecessary 'static'.
43759         (mark_e_stack): Remove unused prototype.
43760
43761         * scn-nlit.adb: Remove whitespace after version number to
43762         keep lines under 80 chars.
43763         * snames.adb: Likewise.
43764         * treepr.ads: Likewise.
43765
43766         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
43767         (misc.o): Likewise.
43768         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
43769         * config-lang.in (gtfiles): New.
43770         * decl.c: Use gengtype for roots.
43771         * gigi.h: Use gengtype for roots.
43772         * trans.c: Use gengtype for roots.
43773         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
43774
43775 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
43776
43777         * misc.c (gnat_init): Adjust setting of internal_error_function.
43778
43779 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
43780
43781         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
43782         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43783         gnat_ug_wnt.texi: Regenerate.
43784
43785 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
43786
43787         * 5ntaprop.adb (with System.OS_Primitives): Remove.
43788
43789         * cstreams.c (max_path_len): Move from here ...
43790         * adaint.c (__gnat_max_path_len): ... to here.
43791         * adaint.c (__gnat_max_path_len): Declare.
43792         * g-dirope.adb (Max_Path): Adjust.
43793         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
43794         * i-cstrea.ads (max_path_len): Adjust.
43795         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
43796         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
43797
43798         * Makefile.in, Make-lang.in: Documentation is now built in
43799         Make-lang.in.  Store Info and generated Texinfo files in the
43800         source directory.
43801         * gnat_ug.texi: Remove CVS keywords, correct version number.
43802         Set file name correctly.
43803
43804         * gnat_ug_*.texi: Add.
43805         * .cvsignore: Ignore generated Texinfo files.
43806
43807 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
43808
43809         * ada.h: Add MI guard macro.
43810         (SUBTYPE): Define constants with an anonymous enum, not static
43811         const variables.
43812         (IN): Cast constants to appropriate type before use.
43813
43814 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
43815
43816         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
43817         (experimental)".
43818
43819 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43820
43821         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
43822         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
43823         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
43824         (ALL_ADA_CFLAGS): Likewise.
43825         (ADA_INCLUDES): Likewise.
43826         Adapt for new working dir.
43827         (GNATBIND): Use Makefile.in version.
43828         (.SUFFIXES): Copy from Makefile.in.
43829         (ada-warn): Define.
43830         (.adb.o, .ads.o): Copy from Makefile.in.
43831         Added $(OUTPUT_OPTION).
43832         (GNAT1_C_OBJS): Moved from Makefile.in.
43833         Prefix with ada subdir.
43834         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
43835         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
43836         Adapt for new working dir.
43837         (EXTRA_GNATBIND_OBJS): Likewise.
43838         (ADA_BACKEND): Moved from Makefile.in.
43839         Renamed to avoid conflict with global BACKEND.
43840         Use that one.
43841         (TARGET_ADA_SRCS): Moved from Makefile.in.
43842         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
43843         Use ADA_BACKEND.
43844         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
43845         (ada_extra_files): Moved from Makefile.in.
43846         Prefix with ada subdir.
43847         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
43848         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
43849         (ada/nmake.ads): Likewise.
43850         (update-sources): Moved from Makefile.in.
43851         Prefix with ada subdir.
43852         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
43853         (ADA_TREE_H): Likewise.
43854         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
43855         (ada/memtrack.o): Likewise.
43856         (ada/adadecode.o): Likewise.
43857         Update dependencies.
43858         (ada/adaint.o): New.
43859         (ada/argv.o): Moved from Makefile.in.
43860         Prefix with ada subdir.
43861         Update dependencies.
43862         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
43863         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
43864         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
43865         Prefix with ada subdir.
43866         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
43867         (GNAT DEPENDENCIES): Regenerate.
43868         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
43869         toplevel Makefile.in.
43870         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
43871         (TARGET_ADA_SRCS): Removed.
43872         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
43873         (GNATBIND_OBJS): Likewise.
43874         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
43875         (BACKEND): Removed.
43876         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
43877         (TREE_H): Likewise.
43878         (ada_extra_files): Likewise.
43879         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
43880         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
43881         (update-sources): Likewise.
43882         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
43883         (ADA_TREE_H): Likewise.
43884         (adadecoce.o): Likewise.
43885         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
43886         (GNAT DEPENDENCIES): Likewise.
43887
43888 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43889
43890         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
43891         * Makefile.in: Likewise.
43892
43893 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
43894
43895         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
43896         Restore $(CONFIG_H) and prefix.o dependencies.
43897         (ada.stage[1-4]): Depend on stage?-start.
43898
43899         * Makefile.in (b_gnatb.c): Depend on interfac.o.
43900
43901 2002-05-02  Jim Wilson  <wilson@redhat.com>
43902
43903         * utils.c (finish_record_type): Change record_size to record_type.
43904
43905 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
43906
43907         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
43908         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
43909         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
43910
43911 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
43912
43913         * misc.c (gnat_parse_file): Update.
43914
43915 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
43916
43917         * misc.c (gnat_init): Don't set lang_attribute_common.
43918
43919 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
43920
43921         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
43922
43923 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
43924
43925         * gnat_ug.texi: New file.
43926
43927         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
43928         instead of gfdl.texi
43929
43930         * xgnatug.adb, ug_words: New files.
43931
43932         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
43933         gnat_rm and gnat-style manuals.
43934
43935 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
43936
43937         * gigi.h (incomplete_type_error): Remove.
43938         * utils.c (incomplete_type_error): Remove.
43939
43940 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
43941
43942         * trans.c (tree_transform): Add has_scope argument to
43943         expand_start_stmt_expr.
43944
43945 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
43946
43947         * gigi.h (truthvalue_conversion): Rename.
43948         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
43949         * trans.c (tree_transform): Update.
43950         * utils2.c (truthvalue_conversion): Rename, update.
43951         (build_binary_op, build_unary_op): Update.
43952
43953 2002-04-04  Laurent Guerby  <guerby@acm.org>
43954
43955         * make.adb: Implement -margs, remove restriction about file name placement.
43956         * makeusg.adb: Documentation update.
43957         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
43958         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
43959
43960 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
43961
43962         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
43963         (builtin_function): Similarly.
43964
43965 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
43966
43967         * decl.c (gnat_to_gnu_entity): Update.
43968         * gigi.h (mark_addressable): Rename.
43969         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
43970         * trans.c (tree_transform): Update.
43971         * utils.c (create_var_decl): Update.
43972         * util2.c (build_binary_op, build_unary_op,
43973         fill_vms_descriptor): Update.
43974         (mark_addressable): Rename, update.
43975
43976 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
43977
43978         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
43979         Rename.
43980         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
43981         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
43982         * trans.c (tree_transform, convert_with_check): Update.
43983         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
43984         Rename.
43985
43986 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
43987
43988         * gigi.h (finish_incomplete_decl): Rename.
43989         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
43990         * utils.c (gnat_init_decl_processing): Don't set hook.
43991         (finish_incomplete_decl): Rename.
43992
43993 2002-03-29  Andreas Schwab  <schwab@suse.de>
43994
43995         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
43996         directory.
43997
43998 2001-03-28  Robert Dewar  <dewar@gnat.com>
43999
44000         * checks.ads:
44001         (Remove_Checks): New procedure
44002
44003         * checks.adb:
44004         (Remove_Checks): New procedure
44005
44006         * exp_util.adb:
44007         Use new Duplicate_Subexpr functions
44008         (Duplicate_Subexpr_No_Checks): New procedure
44009         (Duplicate_Subexpr_No_Checks_Orig): New procedure
44010         (Duplicate_Subexpr): Restore original form (checks duplicated)
44011         (Duplicate_Subexpr): Call Remove_Checks
44012
44013         * exp_util.ads:
44014         (Duplicate_Subexpr_No_Checks): New procedure
44015         (Duplicate_Subexpr_No_Checks_Orig): New procedure
44016         Add 2002 to copyright notice
44017
44018         * sem_util.adb: Use new Duplicate_Subexpr functions
44019
44020         * sem_eval.adb:
44021         (Eval_Indexed_Component): This is the place to call
44022         Constant_Array_Ref and to replace the value. We simply merge
44023         the code of this function in here, since it is now no longer
44024         used elsewhere. This fixes the problem of the back end not
44025         realizing we were clever enough to see that this was
44026         constant.
44027         (Expr_Val): Remove call to Constant_Array_Ref
44028         (Expr_Rep_Val): Remove call to Constant_Array_Ref
44029         Minor reformatting
44030         (Constant_Array_Ref): Deal with string literals (patch
44031         suggested by Zack Weinberg on the gcc list)
44032
44033 2001-03-28  Ed Schonberg  <schonber@gnat.com>
44034
44035         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
44036         Duplicate_Subexpr_Move_Checks.
44037
44038         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
44039         Duplicate_Subexpr_Move_Checks.
44040
44041         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
44042         value of array exists before retrieving it (it may a private
44043         protected component in a function).
44044
44045 2002-03-28   Geert Bosch  <bosch@gnat.com>
44046
44047         * prj-pp.adb : New file.
44048
44049         * prj-pp.ads : New file.
44050
44051 2002-03-28  Andreas Jaeger  <aj@suse.de>
44052
44053         * Makefile.in (stamp-sdefault): Fix path for Makefile.
44054
44055 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
44056
44057         * misc.c (gnat_expand_expr): Move prototype.
44058
44059 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
44060
44061         * misc.c (insert_default_attributes): Remove.
44062
44063 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
44064
44065         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
44066         (gnat_init): Don't set hook.
44067         (gnat_expand_expr): Fix prototype.
44068
44069 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
44070
44071         * misc.c (ggc_p): Remove.
44072
44073 2002-03-27  Geert Bosch  <bosch@gnat.com>
44074
44075         * prj-makr.ads, prj-makr.adb : New files.
44076
44077 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
44078
44079         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
44080         (lang_mark_tree): Make static, rename.
44081
44082 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
44083
44084         * misc.c (maybe_build_cleanup): Remove.
44085
44086 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
44087
44088         * gigi.h (yyparse): Remove.
44089
44090 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
44091
44092         From Ben Brosgol  <brosgol@gnat.com>
44093         * gnat_rm.texi: Sync with ACT version.
44094
44095 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
44096
44097         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
44098         (gnat_init): Remove old hook.
44099
44100 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
44101
44102         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
44103         (yyparse): Rename gnat_parse_file.
44104
44105 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
44106
44107         Delete all lines containing "$Revision:".
44108         * xeinfo.adb: Don't look for revision numbers.
44109         * xnmake.adb: Likewise.
44110         * xsinfo.adb: Likewise.
44111         * xsnames.adb: Likewise.
44112         * xtreeprs.adb: Likewise.
44113
44114 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44115
44116         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
44117         gnat_tree_code_name): Delete.
44118         (tree_code_type, tree_code_length, tree_code_name): Define.
44119         (gnat_init): Don't try to copy into the various tree_code
44120         arrays.
44121
44122 2002-03-11  Richard Henderson  <rth@redhat.com>
44123
44124         * Makefile.in (.NOTPARALLEL): Add fake tag.
44125
44126 2002-03-07  Geert Bosch  <bosch@gnat.com>
44127
44128         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
44129         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
44130         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
44131         switch-m.adb, switch-m.ads : New files.
44132
44133 2002-03-07  Geert Bosch  <bosch@gnat.com>
44134
44135         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
44136         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
44137         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
44138         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
44139         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
44140         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
44141         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
44142         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
44143         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
44144         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
44145         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
44146         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
44147         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
44148         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
44149         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
44150         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
44151         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
44152         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
44153         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
44154         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
44155         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
44156         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
44157         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
44158         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
44159         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
44160         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
44161         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
44162         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
44163         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
44164         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
44165         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
44166         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
44167         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
44168         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
44169         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
44170         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
44171         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
44172         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
44173         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
44174         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
44175         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
44176         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
44177         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
44178         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
44179         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
44180         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
44181         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
44182         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
44183         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
44184         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
44185         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
44186         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
44187         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
44188         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
44189         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
44190         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
44191         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
44192         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
44193         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
44194         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
44195         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
44196         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
44197         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
44198         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
44199         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
44200         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
44201         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
44202         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
44203         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
44204         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
44205         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
44206         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
44207         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
44208         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
44209         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
44210         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
44211         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
44212         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
44213         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
44214         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
44215         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
44216         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
44217         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
44218         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
44219         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
44220         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
44221         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
44222         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
44223         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
44224         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
44225         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
44226         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
44227         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
44228         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
44229         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
44230         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
44231         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
44232
44233         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
44234         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
44235         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
44236         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
44237
44238         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
44239         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
44240
44241         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
44242         to mdll-fil.ad[bs] and mdll-util.ad[bs]
44243
44244         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
44245         from mdllfile.ad[bs] and mdlltool.ad[bs]
44246
44247 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44248
44249         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
44250         lieu of explicit sizeof/sizeof.
44251
44252 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
44253
44254         * misc.c (copy_lang_decl): Remove.
44255
44256 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
44257
44258         * misc.c: Delete traditional-mode-related code copied from the
44259         C front end but not used, or used only to permit the compiler
44260         to link.
44261
44262 2002-02-07  Richard Henderson  <rth@redhat.com>
44263
44264         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
44265         * adaint.h (__gnat_to_gm_time): Update prototype.
44266
44267 2002-01-30  Richard Henderson  <rth@redhat.com>
44268
44269         * trans.c (tree_transform) [N_Loop_Statement]: Use
44270         expand_exit_loop_top_cond.
44271
44272 2001-12-23  Richard Henderson  <rth@redhat.com>
44273
44274         * utils.c (end_subprog_body): Push GC context around
44275         rest_of_compilation for nested functions.
44276
44277 2001-12-23  Richard Henderson  <rth@redhat.com>
44278
44279         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
44280
44281 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
44282
44283         * gnat-style.texi (Declarations and Types): Remove ancient style
44284         rule which was mandated by code generation issues.
44285
44286         * gnat-style.texi (header): Add @dircategory, @direntry.
44287         (title page): Remove date.
44288         (general) Add @./@: where approriate, and two spaces after the
44289         full stop at the end of a sentence.  Use @samp markup when
44290         referring concrete lexical entities (keywords, attribute names
44291         etc.), and @syntax for ARM grammar elements. Use @r for English
44292         text in comments.  Use @emph for emphasis.  Change "if-statements"
44293         etc. to "if statements" (without @samp). Break long lines.  Make
44294         casing of section names consistent.
44295         (Identifiers): Use @samp markup for variable names.
44296         (Comments): Use @samp markup for comment characters. Line-end
44297         comments may follow any Ada code, not just statements.  Fix
44298         misspelling of "Integer" as "integer".
44299         (Loop statements): Do not use variable name "I", use "J".
44300         (Subprogram Declarations): Document alignment.
44301         (Subprogram Bodies, Block statements): Document empty line before
44302         "begin".
44303
44304 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
44305
44306         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
44307         function approach did not work well because of a side effect (the
44308         function call could reallocate the table which was being indexed
44309         using its result). Fixes ada/4851.
44310
44311 2001-12-19  Robert Dewar  <dewar@gnat.com>
44312
44313         * bindgen.adb: Minor reformatting
44314
44315         * cstand.adb: Minor reformatting
44316
44317         * fmap.adb: Minor reformatting
44318         Change name from Add for Add_To_File_Map (Add is much too generic)
44319         Change Path_Name_Of to Mapped_Path_Name
44320         Change File_Name_Of to Mapped_File_Name
44321         Fix copyright dates in header
44322
44323         * fmap.ads:
44324         Change name from Add for Add_To_File_Map (Add is much too generic)
44325         Change Path_Name_Of to Mapped_Path_Name
44326         Change File_Name_Of to Mapped_File_Name
44327         Fix copyright dates in header
44328
44329         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
44330         Add use clause for Fmap.
44331
44332         * make.adb: Minor reformatting
44333
44334         * osint.adb: Minor reformatting.  Change of names in Fmap.
44335         Add use clause for Fmap.
44336
44337         * prj-env.adb: Minor reformatting
44338
44339         * prj-env.ads: Minor reformatting
44340
44341         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
44342         error found (there were odd exceptions to this general rule in
44343         -gnatec/-gnatem processing)
44344
44345 2001-12-19  Olivier Hainque  <hainque@gnat.com>
44346
44347         * raise.c (__gnat_eh_personality): Exception handling personality
44348         routine for Ada.  Still in rough state, inspired from the C++ version
44349         and still containing a bunch of debugging artifacts.
44350         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
44351         inspired from the C++ library.
44352
44353         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
44354         exception handling integration.
44355
44356 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
44357
44358         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
44359         (HIE_SOURCES): Add s-secsta.ad{s,b}.
44360         (HIE_OBJS): Add s-fat*.o
44361         (RAVEN_SOURCES): Remove files that are no longer required. Add
44362         interrupt handling files.
44363         (RAVEN_MOD): Removed, no longer needed.
44364
44365 2001-12-19  Robert Dewar  <dewar@gnat.com>
44366
44367         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
44368         Add 2001 to copyright date
44369
44370         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
44371         need to force universal inlining for these cases.
44372
44373 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
44374
44375         * s-taprob.adb: Minor clean ups so that this unit can be used in
44376         Ravenscar HI.
44377
44378         * exp_ch7.adb: Allow use of secondary stack in HI mode.
44379         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
44380
44381 2001-12-19  Vincent Celier  <celier@gnat.com>
44382
44383         * prj-tree.ads (Project_Node_Record): Add comments for components
44384         Pkg_Id and Case_Insensitive.
44385
44386 2001-12-19  Pascal Obry  <obry@gnat.com>
44387
44388         * g-socket.adb: Minor reformatting. Found while reading code.
44389
44390 2001-12-19  Robert Dewar  <dewar@gnat.com>
44391
44392         * prj-tree.ads: Minor reformatting
44393
44394 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
44395
44396         * config-lang.in (diff_excludes): Remove.
44397
44398 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44399
44400         * sem_res.adb (Resolve_Selected_Component): do not generate a
44401         discriminant check if the selected component is a component of
44402         the argument of an initialization procedure.
44403
44404         * trans.c (tree_transform, case of arithmetic operators): If result
44405         type is private, the gnu_type is the base type of the full view,
44406         given that the full view itself may be a subtype.
44407
44408 2001-12-17  Robert Dewar  <dewar@gnat.com>
44409
44410         * sem_res.adb: Minor reformatting
44411
44412         * trans.c (tree_transform, case N_Real_Literal): Add missing third
44413         parameter in call to Machine (unknown horrible effects from this
44414         omission).
44415
44416         * urealp.h: Add definition of Round_Even for call to Machine
44417         Add third parameter for Machine
44418
44419 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44420
44421         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
44422         predefined units in No_Run_Time mode.
44423
44424 2001-12-17  Richard Kenner  <kenner@gnat.com>
44425
44426         * misc.c (insn-codes.h): Now include.
44427
44428 2001-12-17  Olivier Hainque  <hainque@gnat.com>
44429
44430         * a-except.adb: Preparation work for future integration of the GCC 3
44431         exception handling mechanism
44432         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
44433         to factorize previous code sequences and make them externally callable,
44434         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
44435         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
44436         Use the new notification routines.
44437
44438 2001-12-17  Emmanuel Briot  <briot@gnat.com>
44439
44440         * prj-tree.ads (First_Choice_Of): Document the when others case
44441
44442 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44443
44444         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
44445         HI-E mode, in order to support Ravenscar profile properly.
44446
44447         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
44448         mode on 32 bits targets.
44449
44450 2001-12-17  Vincent Celier  <celier@gnat.com>
44451
44452         * fmap.adb: Initial version.
44453
44454         * fmap.ads: Initial version.
44455
44456         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
44457         If search is successfully done, add to mapping.
44458
44459         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
44460
44461         * make.adb:
44462         (Gnatmake): Add new local variable Mapping_File_Name.
44463          Create mapping file when using project file(s).
44464          Delete mapping file before exiting.
44465
44466         * opt.ads (Mapping_File_Name): New variable
44467
44468         * osint.adb (Find_File): Use path name found in mapping, if any.
44469
44470         * prj-env.adb (Create_Mapping_File): New procedure
44471
44472         * prj-env.ads (Create_Mapping_File): New procedure.
44473
44474         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
44475         (Mapping_File)
44476
44477         * usage.adb: Add entry for new switch -gnatem.
44478
44479         * Makefile.in: Add dependencies for fmap.o.
44480
44481 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44482
44483         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
44484         is a package instantiation rewritten as a package body.
44485         (Install_Withed_Unit): Undo previous change, now redundant.
44486
44487 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
44488
44489         * layout.adb:
44490         (Compute_Length): Move conversion to Unsigned to callers.
44491         (Get_Max_Size): Convert Len expression to Unsigned after calls to
44492         Compute_Length and Determine_Range.
44493         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
44494         Compute_Length and Determine_Range.
44495         Above changes fix problem with length computation for supernull arrays
44496         where Max (Len, 0) wasn't getting applied due to the Unsigned
44497         conversion used by Compute_Length.
44498
44499 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44500
44501         * rtsfind.ads:
44502         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
44503          System.Secondary_Stack.
44504         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
44505          in HI-E mode.
44506         Remove unused entity RE_Exception_Data.
44507
44508         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
44509
44510         * rident.ads (No_Secondary_Stack): New restriction.
44511
44512 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
44513
44514         * gnat_rm.texi: Fix minor typos. Found while reading the section
44515         regarding "Bit_Order Clauses" that was sent to a customer.
44516         Very interesting documentation!
44517
44518 2001-12-17  Robert Dewar  <dewar@gnat.com>
44519
44520         * sem_case.adb (Choice_Image): Avoid creating improper character
44521         literal names by using the routine Set_Character_Literal_Name. This
44522         fixes bombs in certain error message cases.
44523
44524 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44525
44526         * a-reatim.adb: Minor reformatting.
44527
44528 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44529
44530         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
44531         case where the formal is an extension of another formal in the current
44532         unit or in a parent generic unit.
44533
44534 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
44535
44536         * s-tposen.adb: Update comments.  Minor reformatting.
44537         Minor code clean up.
44538
44539         * s-tarest.adb: Update comments.  Minor code reorganization.
44540
44541 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
44542
44543         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
44544         when Java_VM.
44545
44546 2001-12-17  Robert Dewa  <dewar@gnat.com>
44547
44548         * exp_attr.adb: Minor reformatting
44549
44550 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44551
44552         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
44553         derivations nested within a child unit: verify that the parent
44554         type is declared in an outer scope.
44555
44556 2001-12-17  Robert Dewar  <dewar@gnat.com>
44557
44558         * sem_ch12.adb: Minor reformatting
44559
44560 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44561
44562         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
44563         warning if current unit is a predefined one, from which bodies may
44564         have been deleted.
44565
44566 2001-12-17  Robert Dewar  <dewar@gnat.com>
44567
44568         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
44569         Fix header format. Add 2001 to copyright date.
44570
44571         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
44572         which caused CE during compilation if checks were enabled.
44573
44574 2001-12-17  Vincent Celier  <celier@gnat.com>
44575
44576         * make.adb:
44577         (Switches_Of): New function
44578         (Test_If_Relative_Path): New procedure
44579         (Add_Switches): Use new function Switches_Of
44580         (Collect_Arguments_And_Compile): Use new function Switches_Of.
44581         When using a project file, test if there are any relative
44582         search path. Fail if there are any.
44583         (Gnatmake): Only add switches for the primary directory when not using
44584         a project file. When using a project file, change directory to the
44585         object directory of the main project file. When using a project file,
44586         test if there are any relative search path. Fail if there are any.
44587         When using a project file, fail if specified executable is relative
44588         path with directory information, and prepend executable, if not
44589         specified as an absolute path, with the exec directory.  Make sure
44590         that only one -o switch is transmitted to the linker.
44591
44592         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
44593
44594         * prj-nmsc.adb:
44595         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
44596         when using a non standard naming scheme.
44597         (Check_Ada_Naming_Scheme): Make sure that error messages
44598         do not raise exceptions.
44599         (Is_Illegal_Append): Return True if there is no dot in the suffix.
44600         (Language_Independent_Check): Check the exec directory.
44601
44602         * prj.adb (Project_Empty): Add new component Exec_Directory
44603
44604         * prj.ads:
44605         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
44606         (Project_Data): Add component Exec_Directory
44607
44608         * snames.adb: Updated to match snames.ads revision 1.215
44609
44610         * snames.ads: Added Exec_Dir
44611
44612 2001-12-17  Robert Dewar  <dewar@gnat.com>
44613
44614         * make.adb: Minor reformatting
44615
44616         * prj-nmsc.adb: Minor reformatting
44617
44618         * snames.adb: Updated to match snames.ads
44619
44620         * snames.ads: Alphebetize entries for project file
44621
44622 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44623
44624         * trans.c (process_freeze_entity): Do nothing if the entity is a
44625         subprogram that was already elaborated.
44626
44627 2001-12-17  Richard Kenner  <kenner@gnat.com>
44628
44629         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
44630         and Esize if object is referenced via pointer.
44631
44632 2001-12-17  Ed Schonberg  <schonber@gnat.com>
44633
44634         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
44635         is discrete before analyzing choices.
44636
44637 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
44638
44639         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
44640         containing the name of the Ada Main Program. This string is mainly
44641         intended for the debugger.
44642         (Gen_Output_File_C): Do the equivalent change when generating a C file.
44643
44644 2001-12-17  Robert Dewar  <dewar@gnat.com>
44645
44646         * ali.adb: Set new Dummy_Entry field in dependency entry
44647
44648         * ali.ads: Add Dummy_Entry field to source dependency table
44649
44650         * bcheck.adb (Check_Consistency): Ignore dummy D lines
44651
44652         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
44653
44654         * lib-writ.ads: Document dummy D lines for missing files.
44655
44656         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
44657
44658 2001-12-17  Robert Dewar  <dewar@gnat.com>
44659
44660         * ali.adb: Type reference does not reset current file.
44661
44662         * ali.adb: Recognize and scan renaming reference
44663
44664         * ali.ads: Add spec for storing renaming references.
44665
44666         * lib-xref.ads: Add documentation for handling of renaming references
44667
44668         * lib-xref.adb: Implement output of renaming reference.
44669
44670         * checks.adb:
44671         (Determine_Range): Document local variables
44672         (Determine_Range): Make sure Hbound is initialized. It looks as though
44673          there could be a real problem here with an uninitialized reference
44674          to Hbound, but no actual example of failure has been found.
44675
44676 2001-12-17  Laurent Pautet  <pautet@gnat.com>
44677
44678         * g-socket.ads:
44679         Fix comment of Shutdown_Socket and Close_Socket. These functions
44680         should not fail silently because if they are called twice, this
44681         probably means that there is a race condition in the user program.
44682         Anyway, this behaviour is consistent with the rest of this unit.
44683         When an error occurs, an exception is raised with the error message
44684         as exception message.
44685
44686 2001-12-17  Robert Dewar  <dewar@gnat.com>
44687
44688         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
44689         that it happens before modification of Sloc values for -gnatD.
44690
44691         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
44692         so that it happens before modification of Sloc values for -gnatD.
44693
44694         * switch.adb: Minor reformatting
44695
44696 2001-12-15  Richard Henderson  <rth@redhat.com>
44697
44698         * sem_ch7.adb: Wrap comment.
44699
44700 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
44701
44702         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
44703         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
44704         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
44705         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
44706         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
44707         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
44708         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
44709         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
44710         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
44711         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
44712         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
44713         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
44714         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
44715         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
44716         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
44717         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
44718         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
44719         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
44720         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
44721         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
44722         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
44723         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
44724         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
44725         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
44726         spelling errors.
44727
44728 2001-12-14  Vincent Celier  <celier@gnat.com>
44729
44730         * osint.adb(Create_Debug_File): When an object file is specified,
44731         put the .dg file in the same directory as the object file.
44732
44733 2001-12-14  Robert Dewar  <dewar@gnat.com>
44734
44735         * osint.adb: Minor reformatting
44736
44737         * lib-xref.adb (Output_Instantiation): New procedure to generate
44738         instantiation references.
44739
44740         * lib-xref.ads: Add documentation of handling of generic references.
44741
44742         * ali.adb (Read_Instantiation_Ref): New procedure to read
44743         instantiation references
44744
44745         * ali.ads: Add spec for storing instantiation references
44746
44747         * bindusg.adb: Minor reformatting
44748
44749         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44750
44751         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44752
44753         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44754
44755         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44756
44757         * csets.ads:
44758         Fix header format
44759         Add 2001 to copyright date
44760         Add entry for Latin-5 (Cyrillic ISO-8859-5)
44761
44762 2001-12-14  Matt Gingell  <gingell@gnat.com>
44763
44764         * adaint.c: mktemp is a macro on Lynx and can not be used as an
44765         expression.
44766
44767 2001-12-14  Richard Kenner  <kenner@gnat.com>
44768
44769         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
44770         if operand is CONSTRUCTOR.
44771
44772 2001-12-14  Ed Schonberg  <schonber@gnat.com>
44773
44774         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
44775         before emiting check on right-hand side, so that exception information
44776         is correct.
44777
44778 2001-12-14  Richard Kenner  <kenner@gnat.com>
44779
44780         * utils.c (create_var_decl): Throw away initializing expression
44781         if just annotating types and non-constant.
44782
44783 2001-12-14  Vincent Celier  <celier@gnat.com>
44784
44785         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
44786         Default_Ada_...
44787
44788         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44789         Remove functions.
44790         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
44791
44792         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44793         Remove functions.
44794         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
44795
44796 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
44797
44798         * ChangeLog: Remove piece of diff output.
44799
44800 2001-12-14  Geert Bosch  <bosch@gnat.com>
44801
44802         * config-lang.in: Update copyright notice
44803
44804         * layout.adb: Remove commented out code.
44805
44806         * mdllfile.ads: Update copyright notice. Fix header format.
44807
44808         * sem_case.ads: Likewise.
44809
44810         * sem_ch3.adb: Minor reformatting.
44811
44812 2001-12-12  Geert Bosch  <bosch@gnat.com>
44813
44814         * freeze.ads: Update copyright date.
44815
44816         * g-comlin.ads: Minor reformatting.
44817
44818         * gnat-style.texi: Fix typo.
44819
44820 2001-12-12  Geert Bosch  <bosch@gnat.com>
44821
44822         *  einfo.h: Regenerate.
44823
44824 2001-12-12  Ed Schonberg  <schonber@gnat.com>
44825
44826         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
44827         on known node types, rather than untyped fields. Further cleanups.
44828
44829 2001-12-12  Robert Dewar  <dewar@gnat.com>
44830
44831         * sem_ch12.adb:
44832         (Save_Entity_Descendant): Minor comment update.
44833         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
44834          of an N_Attribute_Reference node. As per note below, this does not
44835         eliminate need for Associated_Node in attribute ref nodes.
44836         (Associated_Node): Documentation explicitly mentions attribute
44837         reference nodes, since this field is used in such nodes.
44838
44839         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
44840
44841 2001-12-12  Robert Dewar  <dewar@gnat.com>
44842
44843         * s-stalib.adb: Add more comments on with statements being needed
44844
44845         * par-ch12.adb: Minor reformatting
44846
44847         * prj-dect.ads: Fix copyright header
44848
44849         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
44850         inputs fit in 32 bits, but the result still overflows.
44851
44852         * s-fatgen.ads: Minor comment improvement
44853
44854 2001-12-12  Ed Schonberg  <schonber@gnat.com>
44855
44856         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
44857         formal derived type, look for an inherited component from the full
44858         view of the parent, if any.
44859
44860 2001-12-12  Robert Dewar  <dewar@gnat.com>
44861
44862         * checks.ads (Apply_Alignment_Check): New procedure.
44863
44864         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
44865         ensure that the alignment of objects with address clauses is
44866         appropriate, and raise PE if not.
44867
44868         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
44869         Exp_Pakd.Known_Aligned_Enough
44870
44871         * mdllfile.ads: Minor reformatting
44872
44873         * mlib-fil.ads: Minor reformatting
44874
44875 2001-12-12  Ed Schonberg  <schonber@gnat.com>
44876
44877         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
44878         fix to any component reference if enclosing record has non-standard
44879         representation.
44880
44881 2001-12-12  Vincent Celier  <celier@gnat.com>
44882
44883         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
44884         Iteration
44885
44886 2001-12-12  Ed Schonberg  <schonber@gnat.com>
44887
44888         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
44889         sem_attr.
44890
44891 2001-12-12  Robert Dewar  <dewar@gnat.com>
44892
44893         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
44894
44895 2001-12-12  Emmanuel Briot  <briot@gnat.com>
44896
44897         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
44898         and it adds dependencies to system.io.
44899
44900 2001-12-12  Pascal Obry  <obry@gnat.com>
44901
44902         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
44903         variable name.
44904
44905 2001-12-11  Ed Schonberg  <schonber@gnat.com>
44906
44907         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
44908         that is the parent of other generics, the instance body replaces the
44909         instance node.  Retrieve the instance of the spec, which is the one
44910         that is visible in clients and within the body.
44911
44912 2001-12-11  Vincent Celier  <celier@gnat.com>
44913
44914         * gnatmain.adb: Initial version.
44915
44916         * gnatmain.ads: Initial version.
44917
44918         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
44919
44920         * snames.adb: Updated to match snames.ads.
44921
44922         * snames.ads: Added Gnatstub.
44923
44924 2001-12-11  Vincent Celier  <celier@gnat.com>
44925
44926         * prj-attr.adb (Initialization_Data): Change name from
44927         Initialisation_Data.
44928
44929 2001-12-11  Emmanuel Briot  <briot@gnat.com>
44930
44931         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
44932         + and * applied to backslashed expressions like \r.
44933
44934 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
44935
44936         * g-os_lib.ads: String_List type added, Argument_List type is now
44937         subtype of String_List.
44938
44939 2001-12-11  Robert Dewar  <dewar@gnat.com>
44940
44941         * g-os_lib.ads: Change copyright to FSF
44942         Add comments for String_List type
44943
44944 2001-12-11  Vincent Celier  <celier@gnat.com>
44945
44946         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
44947         string to the buffer).
44948
44949 2001-12-11  Ed Schonberg  <schonber@gnat.com>
44950
44951         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
44952         sem_attr.
44953
44954         * sem_attr.adb: Simplify previous fix for Address.
44955         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
44956         to avoid anomalies where the bound of the type appears to raise
44957         constraint error.
44958
44959 2001-12-11  Robert Dewar  <dewar@gnat.com>
44960
44961         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
44962         handled.
44963
44964 2001-12-11  Ed Schonber   <schonber@gnat.com>
44965
44966         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
44967         renamed unit before checking for recursive instantiations.
44968
44969 2001-12-11  Emmanuel Briot  <briot@gnat.com>
44970
44971         * prj.ads: Add comments for some of the fields.
44972
44973 2001-12-11  Robert Dewar  <dewar@gnat.com>
44974
44975         * lib-xref.adb (Output_Refs): Don't output type references outside
44976         the main unit if they are not otherwise referenced.
44977
44978 2001-12-11  Ed Schonberg  <schonber@gnat.com>
44979
44980         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
44981         code and diagnose additional illegal uses
44982
44983         * sem_util.adb (Is_Object_Reference): An indexed component is an
44984         object only if the prefix is.
44985
44986 2001-12-11  Vincent Celier  <celier@gnat.com>
44987
44988         * g-diopit.adb: Initial version.
44989
44990         * g-diopit.ads: Initial version.
44991
44992         * g-dirope.adb:
44993         (Expand_Path): Avoid use of Unbounded_String
44994         (Find, Wildcard_Iterator): Moved to child package Iteration
44995
44996         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
44997
44998 2001-12-11  Robert Dewar  <dewar@gnat.com>
44999
45000         * sem_attr.adb: Minor reformatting
45001
45002 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45003
45004         * sem_ch3.adb: Clarify some ???.
45005
45006 2001-12-11  Robert Dewar  <dewar@gnat.com>
45007
45008         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
45009         Exp_Pakd.Known_Aligned_Enough
45010
45011         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
45012         version is moved to Exp_Ch13.
45013
45014 2001-12-11  Robert Dewar  <dewar@gnat.com>
45015
45016         * einfo.ads: Minor reformatting
45017
45018         * exp_ch5.adb: Add comment for previous.change
45019
45020         * ali.adb: New interface for extended typeref stuff.
45021
45022         * ali.ads: New interface for typeref stuff.
45023
45024         * checks.adb (Apply_Alignment_Check): New procedure.
45025
45026         * debug.adb: Add -gnatdM for modified ALI output
45027
45028         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
45029
45030         * lib-xref.adb: Extend generation of <..> notation to cover
45031         subtype/object types. Note that this is a complete rewrite,
45032         getting rid of the very nasty quadratic algorithm previously
45033         used for derived type output.
45034
45035         * lib-xref.ads: Extend description of <..> notation to cover
45036         subtype/object types. Uses {..} for these other cases.
45037         Also use (..) for pointer types.
45038
45039         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
45040
45041         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
45042         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
45043
45044 2001-12-11  Vincent Celier  <celier@gnat.com>
45045
45046         * gnatcmd.adb:
45047         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
45048         Changed /BIND_ONLY to /ACTIONS=BIND
45049         Changed /LINK_ONLY to /ACTIONS=LINK
45050
45051 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45052
45053         * sem_ch8.adb (Find_Selected_Component): improved search for a
45054         candidate package in case of error.
45055
45056         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
45057         chain back on scope stack before reinstalling use clauses.
45058
45059         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
45060         is enabled, do not kill the code for the condition, to preserve
45061         warning.
45062
45063 2001-12-11  Robert Dewar  <dewar@gnat.com>
45064
45065         * checks.adb (Insert_Valid_Check): Apply validity check to expression
45066         of conversion, not to result of conversion.
45067
45068 2001-12-11  Ed Schonberg  <schonber@gnat.com>
45069
45070         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
45071         before freezing parent. If the declarations are mutually recursive,
45072         an access to the current record type may be frozen before the
45073         derivation is complete.
45074
45075 2001-12-05  Vincent Celier  <celier@gnat.com>
45076
45077         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
45078         -c /COMPILE_ONLY, -l /LINK_ONLY
45079
45080         * opt.ads:
45081         (Bind_Only): New Flag
45082         (Link_Only): New flag
45083
45084         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
45085         and -l (Link_Only)
45086
45087         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
45088
45089         * make.adb:
45090         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
45091         (Gnatmake): Set the step flags. Only perform a step if the
45092         corresponding step flag is True.
45093         (Scan_Make_Arg): Reset the bind and link step flags when -u
45094         or -gnatc has been specified.
45095
45096 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45097
45098         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
45099         get bounds from right operand.
45100
45101         * sem_eval.adb: Minor reformatting
45102
45103         * exp_util.adb (Make_Literal_Range): use bound of literal rather
45104         than Index'First, its lower bound may be different from 1.
45105
45106         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
45107         and C48009J
45108
45109 2001-12-05  Vincent Celier  <celier@gnat.com>
45110
45111         * prj-nmsc.adb Minor reformatting
45112
45113         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
45114         set and libraries are not supported.
45115
45116 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45117
45118         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
45119         private view explicitly, so the back-end can treat as a global
45120         when appropriate.
45121
45122 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45123
45124         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
45125          unit, always replace instance node with new body, for ASIS use.
45126
45127 2001-12-05  Vincent Celier  <celier@gnat.com>
45128
45129         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
45130         libraries are not supported and both attributes Library_Name and
45131         Library_Dir are specified.
45132
45133         * prj-proc.adb (Expression): Set location of Result to location of
45134         first term.
45135
45136         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
45137         (prj-nmsc is now importing MLib.Tgt)
45138
45139         * prj-proc.adb: Put the change indicated above that was forgotten.
45140
45141 2001-12-05  Robert Dewar  <dewar@gnat.com>
45142
45143         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
45144
45145 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45146
45147         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
45148         constraint, introduce explicit subtype declaration and derive from it.
45149
45150         * sem_ch3.adb: Minor reformatting
45151
45152 2001-12-05  Robert Dewar  <dewar@gnat.com>
45153
45154         * checks.adb (Determine_Range): Increase cache size for checks.
45155         Minor reformatting
45156
45157         * exp_ch6.adb: Minor reformatting
45158         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
45159         a parameter whose root type is System.Address, since treating such
45160         subprograms as pure in the code generator is almost surely a mistake
45161         that will lead to unexpected results.
45162
45163         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
45164         change handling of conversions.
45165
45166         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
45167
45168 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45169
45170         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
45171         aggregate with static wrong size, attach generated Raise node to
45172         declaration.
45173
45174 2001-12-05  Robert Dewar  <dewar@gnat.com>
45175
45176         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
45177         Fixes compilation abandoned bomb in B24009B.
45178
45179 2001-12-05  Ed Schonberg  <schonber@gnat.com>
45180
45181         * sem_ch12.adb:
45182         Document use of Associated_Node on Selected_Components.
45183         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
45184         to clarify use of untyped descendant fields.
45185
45186 2001-12-05  Robert Dewar  <dewar@gnat.com>
45187
45188         * prj-dect.ads: Add ??? comment
45189         Add 2001 to copyright notice (was not done in after all)
45190
45191         * prj-part.adb: Minor reformatting. Reword one awkward error message.
45192
45193         * prj.ads: Minor reformatting throughout, and add some ??? comments
45194
45195         * snames.ads: Minor reformatting
45196
45197 2001-12-05  Geert Bosch  <bosch@gnat.com>
45198
45199         * snames.adb: Autoupdate
45200
45201 2001-12-05  Vincent Celier  <celier@gnat.com>
45202
45203         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
45204
45205         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
45206
45207         * prj-env.adb: Minor comment changes (modifying -> extends).
45208
45209         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
45210
45211         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
45212         Tok_Extends.
45213
45214         * prj.adb (Initialize): Change Modifying to Extends.
45215
45216         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
45217
45218         * prj.ads: Minor comment change (Modifying -> extending).
45219
45220         * snames.ads: Change modifying to extends.
45221
45222 2001-12-05  Robert Dewar  <dewar@gnat.com>
45223
45224         * sem_warn.adb: Remove stuff for conditionals, we are not going to
45225         do this after all.
45226
45227         * sem_warn.ads: Remove stuff for conditionals, we are not going to
45228         do this after all.  Add 2001 to copyright notice
45229
45230 2001-12-04  Geert Bosch  <bosch@gnat.com>
45231
45232         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
45233
45234 2001-12-04  Robert Dewar  <dewar@gnat.com>
45235
45236         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
45237         location if we already have errors. Stops some cases of cascaded
45238         errors.
45239
45240         * errout.adb: Improve comment.
45241
45242 2001-12-04  Robert Dewar  <dewar@gnat.com>
45243
45244         * sem_ch12.adb:
45245         (Analyze_Formal_Type_Definition): Defend against Error.
45246         (Analyze_Formal_Subprogram): Defend against Error.
45247
45248         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
45249         remove following semicolon if present. Removes cascaded error.
45250
45251 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
45252
45253         * bindgen.adb:
45254         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
45255          exceptions equals 0.
45256         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
45257         Fixes PIWG E tests (which have to be run with -gnatL).
45258
45259 2001-12-04  Robert Dewar  <dewar@gnat.com>
45260
45261         * einfo.ads: Minor reformatting
45262
45263 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45264
45265         * einfo.ads: Block_Node points to the identifier of the block, not to
45266         the block node itself, to preserve the link when the block is
45267         rewritten, e.g. within an if-statement with a static condition.
45268
45269         * inline.adb (Cleanup_Scopes): recover block statement from block
45270         entity using new meaning of Block_Node.
45271
45272         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
45273         identifier of block node, rather than to node itself.
45274
45275 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
45276
45277         * layout.adb:
45278         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
45279         (Discrimify): Go back to setting the Etypes of the selected component
45280         because the Vname component does not exist at this point and will
45281         fail name resolution. Also set Analyzed.
45282         Remove with and use of Sem_Res.
45283
45284 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
45285
45286         * Makefile.in: (HIE_SOURCES): add s-fat*.
45287
45288 2001-12-04  Robert Dewar  <dewar@gnat.com>
45289
45290         * sem_attr.adb:
45291         (Compile_Time_Known_Attribute): New procedure.
45292         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
45293          proper range check.
45294
45295 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45296
45297         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
45298         processing discriminants to diagnose illegal default values.
45299
45300 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45301
45302         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
45303         access discriminant within a type extension that constrains its
45304         parent discriminants.
45305
45306 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45307
45308         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
45309         is malformed, use instance of Any_Id to allow analysis to proceed.
45310
45311         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
45312         type definition is illegal.
45313         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
45314         misplaced.
45315
45316 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45317
45318         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
45319         constants.
45320
45321 2001-12-04  Robert Dewar  <dewar@gnat.com>
45322
45323         * errout.adb: Minor reformatting
45324
45325 2001-12-04  Robert Dewar  <dewar@gnat.com>
45326
45327         * exp_util.adb: Minor reformatting from last change
45328
45329         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
45330         which is a rewriting of an expression, traverse the original
45331         expression to remove warnings that may have been posted on it.
45332
45333 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45334
45335         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
45336         record that has other packed components.
45337
45338 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
45339
45340         * adaint.c: Minor cleanups.
45341
45342 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
45343
45344         * adaint.c: Do not use utime.h on vxworks.
45345
45346 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
45347
45348         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
45349         more confusion than it solves.
45350
45351 2001-12-04  Geert bosch  <bosch@gnat.com>
45352
45353         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
45354
45355 2001-12-04  Geert Bosch  <bosch@gnat.com>
45356
45357         * Makefile.in (update-sources): New target.
45358         For use by gcc_release script.
45359
45360 2001-12-04  Ed Schonberg  <schonber@gnat.com>
45361
45362         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
45363         a configuration pragma, it is now legal wherever a pragma can appear.
45364
45365 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
45366
45367         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
45368         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
45369         is now @CROSS@ -DIN_GCC; update comment.
45370
45371 2001-12-04  Robert Dewar  <dewar@gnat.com>
45372
45373         * einfo.adb (Has_Pragma_Pure_Function): New flag.
45374         Fix problem that stopped ceinfo from working
45375
45376         * einfo.ads (Has_Pragma_Pure_Function): New flag.
45377
45378         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
45379
45380 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
45381
45382         * gnatchop.adb:
45383         (File_Time_Stamp): New procedure.
45384         (Preserve_Mode): New boolean.
45385         (Write_Unit): Pass time stamp.
45386         Implement -p switch (preserve time stamps).
45387
45388         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
45389
45390         * gnatchop.adb: Do usage info for -p switch
45391
45392         * adaint.h (__gnat_set_file_time_name): New function
45393
45394         * adaint.c (__gnat_set_file_time_name): Implement
45395
45396         * adaint.h: Fix typo
45397
45398 2001-12-03  Robert Dewar  <dewar@gnat.com>
45399
45400         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
45401         have Associated_Node.
45402
45403 2001-12-03  Robert Dewar  <dewar@gnat.com>
45404
45405         * prj-proc.adb: Minor reformatting
45406
45407         * make.adb: Minor reformatting
45408
45409 2001-12-03  Geert Bosch  <bosch@gnat.com>
45410
45411         * make.adb: Minor reformatting.
45412
45413 2001-12-03 Robert Dewar  <dewar@gnat.com>
45414
45415         * sem_ch12.adb: Minor reformatting
45416
45417 2001-12-03  Ed Schonberg  <schonber@gnat.com>
45418
45419         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
45420         push Standard on the stack before analyzing the instance body,
45421         in order to have a clean visibility environment.
45422
45423         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
45424
45425 2001-12-03  Ed Schonberg  <schonber@gnat.com>
45426
45427         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
45428         instantiation of a body that contains an inlined body.
45429
45430 2001-12-03  Ed Schonberg  <schonber@gnat.com>
45431
45432         * sem_ch12.adb:
45433         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
45434         to prevent freezing within formal packages.
45435         (Freeze_Subprogram_Body): If body comes from another instance that
45436         appeared before its own body, place freeze node at end of current
45437         declarative part, to prevent a back-end crash.
45438         (Inline_Instance_Body): Handle properly a package instance within
45439         a subprogram instance that is a child unit.
45440
45441 2001-12-01  Graham Stott  <grahams@redhat.com>
45442
45443         * Makefile.in (misc.o): Add missing $(srcdir) prefix
45444         and add optabs.h dependency.
45445
45446         * misc.c: Include optabs.h
45447         (gnat_tree_code_type): Make static and const.
45448         (gnat_tree_code_length): Likewise.
45449         (gnat_tree_code_name): Likewise.
45450         (update_setjmp_buf): Obtain operands mode from insn_data.
45451
45452 2001-11-29  Richard Henderson  <rth@redhat.com>
45453
45454         * init.c: Remove obsolete dwarf2 frame.h section.
45455
45456 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
45457
45458         * Make-lang.in (ada.generated-manpages): New dummy target.
45459
45460 2001-11-29  Ed Schonberg  <schonber@gnat.com>
45461
45462         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
45463         into Command, an array conversion is illegal here. Uncovered by
45464         ACATS B460005.
45465
45466 2001-11-28  Geert Bosch  <bosch@gnat.com>
45467
45468         * init.c: Minor whitespace changes.
45469
45470 2001-11-28  Doug Rupp  <rupp@gnat.com>
45471
45472         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
45473         signal stack.
45474
45475 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
45476
45477         * misc.c (gnat_expand_constant): Move declaration above
45478         definition of lang_hooks.
45479         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
45480         (gnat_init): lang_expand_constant no longer exists.
45481
45482         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
45483         always have vprintf.
45484         (gnat_init): Always call set_internal_error_function.
45485
45486 2001-11-27  Andreas Jaeger  <aj@suse.de>
45487
45488         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
45489
45490 2001-11-27  Laurent Guerby  <guerby@acm.org>
45491
45492         * Makefile.in: Regenerate Ada dependencies.
45493
45494 2001-11-26  Richard Henderson  <rth@redhat.com>
45495
45496         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
45497         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
45498         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
45499
45500 2001-11-25  Laurent Guerby  <guerby@acm.org>
45501
45502         * sysdep.c (rts_get_*): Fix style.
45503
45504 2001-11-19  Laurent Guerby  <guerby@acm.org>
45505
45506         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
45507         since it is of no apparent use and cause warnings.
45508
45509 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
45510
45511         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
45512         static too.
45513         (gnat_init): Don't return NULL.
45514         (finish_parse): Remove.
45515
45516 2001-11-17  Laurent Guerby  <guerby@acm.org>
45517
45518         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
45519         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
45520         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
45521         * lang-spec.h: Add missing struct field to silence warnings.
45522         * sysdep.c (rts_get_*): Provide K&R prototype.
45523         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
45524         * traceback.c (Unlock_Task, Lock_Task): Likewise.
45525         * tracebak.c (__gnat_backtrace): Remove unused variable.
45526         * utils.c (end_subprog_body): Move to K&R style.
45527
45528 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
45529
45530         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
45531
45532 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
45533
45534         * misc.c (gnat_init): Change prototype.  Include the
45535         functionality of the old init_parse and init_decl_processing.
45536         (gnat_init_decl_processing): New prototype.
45537         (init_parse): Remove.
45538         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
45539
45540 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
45541
45542         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
45543         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
45544         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
45545         set_yydebug): Remove.
45546
45547 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
45548
45549         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
45550         (struct lang_hooks): Constify.
45551         (language_string, lang_identify): Remove.
45552         * utils.c (init_decl_processing): Update.
45553
45554 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
45555
45556         * misc.c: Include langhooks-def.h.
45557         * Makefile.in: Update.
45558
45559 2001-10-30  Robert Dewar  <dewar@gnat.com>
45560
45561         * style.adb:
45562         (Check_Identifier): Rewrite circuit to be compatible with use of letters
45563         in the upper half of ASCII.
45564         (Check_Identifier): Minor reformatting
45565
45566 2001-10-30  Geert Bosch  <bosch@gnat.com>
45567
45568         * (Associated_Node, Set_Associated_Node): Do not check for
45569         Freeze_Entity.
45570
45571 2001-10-30  Robert Dewar  <dewar@gnat.com>
45572
45573         * a-reatim.ads: Minor reformatting
45574
45575 2001-10-30  Robert Dewar  <dewar@gnat.com>
45576
45577         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
45578         undocumented declarations.
45579
45580 2001-10-30  Pascal Obry  <obry@gnat.com>
45581
45582         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
45583         to the binder and linker.
45584         Minor style fix.
45585
45586         * mdll.ads: Fix layout.  Update copyright notice.
45587
45588         * mdll.adb: Fix layout.  Update copyright notice.
45589
45590 2001-10-30  Robert Dewar  <dewar@gnat.com>
45591
45592         * usage.adb: Minor fix to output for -gnaty.
45593
45594 2001-10-30  Ed Schonberg  <schonber@gnat.com>
45595
45596         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
45597         to accommodate all its possible values.
45598
45599         * a-reatim.adb (Split): Special-case handling of Time_Span_First
45600         and of small absolute values of T.
45601
45602 2001-10-30  Richard Kenner  <kenner@gnat.com>
45603
45604         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
45605         set_mem_attributes since not needed and wrong if RESULT if a REG;
45606         fixes ACATS failures.
45607
45608 2001-10-30  Geert Bosch  <bosch@gnat.com>
45609
45610         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
45611         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
45612
45613 2001-10-30  Robert Dewar  <dewar@gnat.com>
45614
45615         * bindusg.adb: Undocument -f switch.
45616
45617         * gnatcmd.adb: Remove /FULL_ELABORATION.
45618
45619         * opt.ads (Force_RM_Elaboration_Order): Document that this is
45620         obsolescent.
45621
45622         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
45623
45624         * gnatbind.adb: Minor update of warning msg.
45625
45626 2001-10-30  Vincent Celier  <celier@gnat.com>
45627
45628         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
45629         for project file switches (-P (/PROJECT_FILE=),
45630          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
45631         or MEDIUM or HIGH)
45632
45633 2001-10-30  Geert Bosch  <bosch@gnat.com>
45634
45635         * decl.c: Minor whitespace fixes.
45636
45637 2001-10-30  Richard Kenner  <kenner@gnat.com>
45638
45639         * utils2.c (build_allocator): Test for SIZE overflow in array case too
45640
45641 2001-10-30  Geert Bosch  <bosch@gnat.com>
45642
45643         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
45644         Found due to GCC 3.0 warning of using uninitialized value.
45645
45646         * layout.adb:
45647         (Get_Max_Size): Use variant record for tracking value/expression.
45648          Makes logic clearer and prevents warnings for uninitialized variables.
45649         (Layout_Array_Type): Use variant record for tracking value/expression.
45650          Makes logic clearer and prevents warnings for uninitialized variables.
45651
45652 2001-10-30  Robert Dewar  <dewar@gnat.com>
45653
45654         * lib.adb: Minor reformatting
45655
45656         * s-taprop.ads: Minor reformatting
45657
45658 2001-10-29  Laurent Guerby  <guerby@acm.org>
45659
45660         * init.c:
45661         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
45662         const.
45663         (_gnat_error_handler): Make MSG const.
45664
45665 2001-10-29  Richard Kenner  <kenner@gnat.com>
45666
45667         * sysdep.c: Fix localtime_r problem on LynxOS.
45668         Also remove #elif to avoid warnings.
45669
45670         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45671         used by this.
45672
45673         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
45674
45675 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
45676
45677         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
45678         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
45679         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
45680         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
45681         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
45682         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
45683         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
45684         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
45685         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
45686         types.ads, urealp.adb: Fix spelling errors.
45687
45688 2001-10-27  Laurent Guerby  <guerby@acm.org>
45689
45690         * trans.c (gigi): Fix non determinism leading to bootstrap
45691         comparison failures for debugging information.
45692
45693 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
45694
45695         * gnat_rm.texi: Use @./@: where appropriate.
45696
45697 2001-10-26  Robert Dewar  <dewar@gnat.com>
45698
45699         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
45700
45701 2001-10-26  Richard Kenner  <kenner@gnat.com>
45702
45703         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
45704
45705 2001-10-26  Richard Kenner  <kenner@gnat.com>
45706
45707         * decl.c (validate_size): Modify message for bad size to avoid
45708         implication that compiler is modifying the size.
45709
45710 2001-10-26  Robert Dewar  <dewar@gnat.com>
45711
45712         * prj-util.adb: Minor reformatting. Fix bad header format.
45713
45714 2001-10-26  Robert Dewar  <dewar@gnat.com>
45715
45716         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
45717
45718         * sinfo.ads: Clarify use of Associated_Node (documentation only).
45719
45720         * sem_ch12.adb: Change Node4 to Associated_Node. Change
45721         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
45722         much more narrowly in places where needed. These are cleanups.
45723
45724 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
45725
45726         * 5zosinte.ads (null_pthread): new constant.
45727
45728         * 5ztaprop.adb:
45729         (Initialize_TCB): Initialize thread ID to null, to be able to verify
45730          later that this field has been set.
45731         (Finalize_TCB): ditto.
45732         (Suspend_Task): Verify that the thread ID is not null before using it.
45733         (Resume_Task): ditto.
45734
45735         * s-tasdeb.adb:
45736         (Resume_All_Tasks): Lock the tasks list before using it.
45737         (Suspend_All_Tasks): ditto.
45738
45739 2001-10-26  Richard Kenner  <kenner@gnat.com>
45740
45741         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
45742         Make constant variant of designated type for Is_Access_Constant.
45743         Call update_pointer_to with main variant.
45744
45745         * trans.c (process_freeze_entity, process_type):
45746         Call update_pointer_to on main variant.
45747
45748         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
45749         If main variant, update all other variants.
45750
45751         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
45752         TREE_STATIC.
45753
45754 2001-10-26  Robert Dewar  <dewar@gnat.com>
45755
45756         * prj-util.adb: Minor reformatting
45757
45758 2001-10-26  Robert Dewar  <dewar@gnat.com>
45759
45760         * prj-util.adb: Minor reformatting
45761
45762 2001-10-26  Robert Dewar  <dewar@gnat.com>
45763
45764         * prj-attr.adb: Minor reformatting throughout
45765
45766 2001-10-26  Robert Dewar  <dewar@gnat.com>
45767
45768         * prj-attr.ads: Minor reformatting
45769         Add ??? comment (this whole spec has almost no comments)
45770
45771 2001-10-26  Vincent Celier  <celier@gnat.com>
45772
45773         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
45774         ("//") that precede the drive letter on Interix.
45775
45776 2001-10-26  Geert Bosch  <bosch@gnat.com>
45777
45778         * gnat_rm.texi: Add GNAT Reference Manual.
45779
45780 2001-10-25  Robert Dewar  <dewar@gnat.com>
45781
45782         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
45783         is Error. Similar change for other renaming cases.
45784
45785 2001-10-25  Robert Dewar  <dewar@gnat.com>
45786
45787         * s-atacco.ads: Add pragma Inline_Always for functions.
45788         Fix header format. Add copyright 2001
45789
45790 2001-10-25  Ed Schonberg  <schonber@gnat.com>
45791
45792         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
45793         return Error rather than Empty so that analysis can proceed.
45794
45795 2001-10-25  Ed Schonberg  <schonber@gnat.com>
45796
45797         * sem_util.adb (Enter_Name): better handling of cascaded error
45798         messages when a unit appears in its own context.
45799
45800 2001-10-25  Ed Schonberg  <schonber@gnat.com>
45801
45802         * sem_util.adb (Defining_Entity): in case of error, attach created
45803         entity to specification, so that semantic analysis can proceed.
45804
45805 2001-10-25  Robert Dewar  <dewar@gnat.com>
45806
45807         * sem_util.adb
45808         (Defining_Entity): Deal with Error.
45809         (Process_End_Label): Deal with bad end label for.
45810
45811 2001-10-25  Ed Schonberg  <schonber@gnat.com>
45812
45813         * sem_elab.adb (Check_A_Call): refine message when call is in an
45814         instance but callee is not declared in the generic unit.
45815
45816 2001-10-25  Ed Schonberg  <schonber@gnat.com>
45817
45818         * sem_elab.adb (Check_A_Call): check for renaming before finding the
45819         enclosing unit, which may already be different from the calling unit.
45820
45821 2001-10-25  Geert Bosch  <bosch@gnat.com>
45822
45823         * 4gintnam.ads: fix header format.
45824
45825 2001-10-25  Ed Schonberg  <schonber@gnat.com>
45826
45827         * sem_res.adb (Resolve_Call): if the call is actually an indexing
45828         operation on the result of a parameterless call, perform elaboration
45829         check after the node has been properly rewritten.
45830
45831         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
45832         inlined within the generic tree, the defining identifier is not a
45833         compilation_unit.
45834
45835 2001-10-25  Ed Schonberg  <schonber@gnat.com>
45836
45837         * sem_res.adb (Resolve): special-case resolution of Null in an
45838          instance or an inlined body to avoid view conflicts.
45839
45840         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
45841          compatibility by retrieving the access type of the generic copy.
45842
45843 2001-10-25  Robert Dewar  <dewar@gnat.com>
45844
45845         * sem_ch3.adb:
45846         (Analyze_Number_Declaration): Handle error expression.
45847         (Signed_Integer_Type_Declaration): Handle error bound.
45848         (Analyze_Subtype_Indication): Handle error range.
45849
45850         * sem_util.adb (Get_Index_Bounds): Check for Error.
45851
45852 2001-10-25  Robert Dewar  <dewar@gnat.com>
45853
45854         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
45855         in no run time mode.
45856
45857 2001-10-25  Pascal Obry  <obry@gnat.com>
45858
45859         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
45860         mode case for ALLOC case.
45861
45862         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
45863         all platforms. Improvement of last change.
45864
45865 2001-10-25  Robert Dewar  <dewar@gnat.com>
45866
45867         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
45868
45869 2001-10-25  Geert Bosch  <bosch@gnat.com>
45870
45871         * osint.adb (Is_Relative): Remove duplicate.
45872
45873 2001-10-25  Pascal Obry  <obry@gnat.com>
45874
45875         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
45876         pathnames in UNIX and DOS style with drive letter.
45877         (Is_Relative): new routine.
45878
45879         * osint.adb: Minor reformatting
45880
45881         * osint.adb (Is_Relative): implementation using
45882         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
45883
45884 2001-10-25  Pascal Obry  <obry@gnat.com>
45885
45886         * g-dirope.adb (Basename): correctly compute offset between the
45887         original Path and the translated one.
45888
45889         * g-dirope.adb: (Base_Name): add some comments.
45890
45891 2001-10-25  Robert Dewar  <dewar@gnat.com>
45892
45893         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
45894         in HIE mode, avoids compilation abandoned message
45895
45896         * exp_imgv.adb: Correct typo in previous change
45897
45898         * exp_imgv.adb: Correct typo in previous change (not my day!)
45899
45900 2001-10-25  Robert Dewar  <dewar@gnat.com>
45901
45902         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
45903
45904 2001-10-25  Pascal Obry  <obry@gnat.com>
45905
45906         * g-awk.ads: Move all pragma inlines next to the routine
45907          declarations. This is more uniform with other GNAT spec.
45908
45909 2001-10-22  Geert Bosch  <bosch@gnat.com>
45910
45911         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
45912
45913 2001-10-19  Geert Bosch  <bosch@gnat.com>
45914
45915         * Makefile.in (tools, gnattools): Remove gnatmem.
45916
45917 2001-10-17  Richard Henderson  <rth@redhat.com>
45918
45919         * Makefile.in (misc.o): Depend on langhooks.h.
45920         * misc.c: Include it.
45921         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
45922         (LANG_HOOKS_DECODE_OPTION): New.
45923         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
45924
45925 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
45926
45927         * trans.c (tree_transform): Adjust to recent change in
45928         expand_asm_operands to implement named asm operands.
45929
45930 2001-10-11  Ed Schonberg  <schonber@gnat.com>
45931
45932         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
45933         renaming of discriminant for mutable record type.
45934
45935 2001-10-11  Robert Dewar  <dewar@gnat.com>
45936
45937         * validsw.adb: Properly save -gnatVn status.
45938
45939 2001-10-11  Robert Dewar  <dewar@gnat.com>
45940
45941         * usage.adb: Add lines for V switch.
45942
45943         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
45944         (/VALIDITY_CHECKING).
45945
45946 2001-10-11  Ed Schonberg  <schonber@gnat.com>
45947
45948         * sem_type.adb (Add_One_Interp): an operator for a type declared in
45949         an extension of System is known to be visible.
45950
45951 2001-10-11  Ed Schonberg  <schonber@gnat.com>
45952
45953         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
45954         properly. Fixes regression on ACATS C34005G.
45955
45956 2001-10-11  Robert Dewar  <dewar@gnat.com>
45957
45958         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
45959         loop in generic instance, since this is likely not very useful.
45960
45961 2001-10-11  Robert Dewar  <dewar@gnat.com>
45962
45963         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
45964         the error message for high integrity mode.
45965
45966         * rtsfind.adb (RTE): Give message if we try to find an entity that
45967         is not available in high integrity mode.
45968
45969         * rtsfind.ads:
45970         (OK_To_Use_In_HIE_Mode): New array.
45971         (RTE): May return Empty in high integrity mode.
45972
45973         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
45974         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
45975
45976         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
45977         unit if not inlined always and in no runtime mode. Fixes problem
45978         caused by new Rtsfind changes.
45979
45980         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
45981         body is deleted.
45982
45983         * rtsfind.adb (RTE): Make sure we do not try to load unit after
45984         giving message for entity not available in high integrity mode.
45985
45986 2001-10-11  Pascal Obry  <obry@gnat.com>
45987
45988         * impunit.adb: Add GNAT.CRC32.
45989
45990 2001-10-11  Ed Schonberg  <schonber@gnat.com>
45991
45992         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
45993         properly the case where one universal operand in a non-static
45994         exponentiation of a real literal.
45995
45996 2001-10-11  Ed Schonberg  <schonber@gnat.com>
45997
45998         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
45999         clause, return the gobal finalization list, for lack of anthing else.
46000
46001 2001-10-11  Ed Schonberg  <schonber@gnat.com>
46002
46003         * exp_ch7.adb (Make_Transient_Block): if statement is within
46004         exception handler, always use new transient scope to place Clean
46005         procedure.
46006
46007 2001-10-11  Pascal Obry  <obry@gnat.com>
46008
46009         * Makefile.in:
46010         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46011         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46012         (GNATLS_RTL_OBJS): add g-crc32.o
46013         (GNATMAKE_RTL_OBJS): add g-crc32.o
46014
46015         * ali-util.adb:
46016         (CRC_Match): new function.
46017         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
46018         instead of the previous simple checksum algorithm.
46019         (Time_Stamp_Mismatch): use CRC_Match for comparison.
46020         (Set_Source_Table): idem.
46021
46022         * ali-util.ads:
46023         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
46024         instead of simple checksum.
46025         (CRC_Match): new function.
46026         (CRC_Error): new constant.
46027
46028         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
46029         a CRC now and not a simple checksum. A CRC uses lower-case hex
46030         letters, fixes ambiguity in parsing.
46031
46032         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
46033         is what this variable will store.
46034
46035         * bcheck.adb: Change reference to chechsum in comments by CRC.
46036         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
46037         rename All_Checksum_Match to All_CRC_Match. Change due to API
46038         renaming since now GNAT does not use a simple checksum but a
46039         CRC using GNAT.CRC32.
46040
46041         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
46042         now and not anymore a simple checksum.
46043
46044         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
46045         places.
46046
46047         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
46048
46049         * scans.adb:
46050         (Restore_Scan_State): rename Checksum to CRC.
46051         (Save_Scan_State): idem.
46052
46053         * scans.ads:
46054         With GNAT.CRC32.
46055         (Checksum): rename to CRC.
46056         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
46057
46058         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
46059         GNAT.CRC32).  Update copyright notice.
46060
46061         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
46062         GNAT.CRC32).  Update copyright notice.
46063
46064         * scn.adb:
46065         (Accumulate_Checksum): removed.
46066         (Update): new procedure. Add a wide-character into the CRC.
46067
46068         * sinput-l.adb:
46069         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
46070         (Load_File): fix initialization of S (change Source_Checksum to
46071         Source_CRC)
46072
46073         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
46074         Source_CRC in S initialization.
46075
46076         * sinput.adb (Source_Checksum): renamed to Source_CRC.
46077
46078         * sinput.ads (Source_Checksum): renamed to Source_CRC.
46079         Update comments for the CRC.
46080
46081         * types.adb (Hex): Use lowercase for the letter part.
46082
46083         * types.ads (Get_Hex_String): Returns the hexadecimal representation
46084         for a word. This is currently used only for CRC. In previous version,
46085         the checksum was using a representation with all letter being
46086         upper-case. With the new implementation (using CRC) we do not remove
46087         the 32th bit of the CRC, so we can have an upper-case starting letter
46088         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
46089         It is ambigous since the CRC was optional and could be followed by
46090         options like EB, EE. So now this routines uses lower-case letter for
46091         the hexadecimal representation. Strange enough only lower case letters
46092         where checked in Scan_ALI (even if this was not a possible case).
46093
46094         * gnatvsn.ads (Library_Version): changed to 3.15a.
46095
46096         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
46097         for the compiler.
46098
46099         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
46100         for the compiler.
46101
46102         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
46103         Add 2001 to copyright notice
46104         (Accumulate_Checksum): Modify to use System.CRC32.
46105
46106         * ali-util.ads: Redo changes of previous revision to continue to use
46107         the word Checksum. Add 2001 to copyright notice.
46108
46109         * ali.adb: Undo some of previous changes, not needed.
46110         Keep the change for lower case letters in the checksum.
46111
46112         * ali.ads: Undo previous change not needed.
46113
46114         * bcheck.adb: Undo most of previous change, not needed.
46115         But do use Checksums_Match for checksum comparison.
46116
46117         * gnatls.adb: Undo most of previous change, not needed.
46118         But do use Checksums_Match for comparing checksums.
46119
46120         * lib-load.adb: Undo previous change, not needed.
46121
46122         * lib-writ.adb: Undo previous change, not needed.
46123
46124         * lib-writ.ads: Document that checksums use lower case,
46125         not upper case letters.
46126
46127         * scans.adb: Undo previous change, not needed
46128
46129         * scans.ads: Undo previous change, not needed.
46130
46131         * scn-nlit.adb: Undo previous changes, not needed.
46132
46133         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
46134
46135         * scn.adb:
46136         (Accumulate_Checksum): Use System.CRC32.
46137         (Initialize_Checksum): New procedure.
46138         Remove other changes of previous revision.
46139
46140         * sinput-p.adb: Undo previous change, not needed.
46141
46142         * sinput.adb: Undo previous change, not needed.
46143
46144         * sinput-l.adb: Undo previous change, not needed.
46145
46146         * sinput.ads: Undo previous change, not needed.  Keep only comment
46147         on new checksum algorithm
46148
46149         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
46150         Also remove a-tags and a-stream from GNAT sources.
46151
46152         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
46153
46154         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
46155
46156 2001-10-11  Geert Bosch  <bosch@gnat.com>
46157
46158         * einfo.h: Regenerate.
46159
46160         * nmake.ads: Regenerate.
46161
46162         * nmake.adb: Regenerate.
46163
46164         * sinfo.h: Regenerate.
46165
46166         * treeprs.adb: Regenerate.
46167
46168 2001-10-10  Geert Bosch  <bosch@gnat.com>
46169
46170         * gnat-style.texi: New file describing coding guidelines for Ada.
46171
46172 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46173
46174         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
46175         is Flag174.
46176
46177 2001-10-10  Geert Bosch  <bosch@gnat.com>
46178
46179         * snames.ads: Add new names for project facility.
46180
46181         * snames.adb: Update to reflect snames.ads changes.
46182
46183         * snames.h: Update to reflect snames.ads changes.
46184
46185 2001-10-10  Vincent Celier  <celier@gnat.com>
46186
46187         * make.adb:
46188         (Add_Switches): reflect the changes for the switches attributes
46189         Default_Switches indexed by the programming language,
46190         Switches indexed by the file name.
46191         (Collect_Arguments_And_Compile): Idem.
46192         Reflect the attribute name changes.
46193
46194         * prj-attr.adb:
46195         (Initialisation_Data): Change the names of some packages and
46196         attributes.
46197         (Initialize): process case insensitive associative arrays.
46198
46199         * prj-attr.ads:
46200         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
46201
46202         * prj-dect.adb:
46203         (Parse_Attribute_Declaration): For case insensitive associative
46204          arrays, set the index string to lower case.
46205
46206         * prj-env.adb:
46207         Reflect the changes of the project attributes.
46208
46209         * prj-nmsc.adb:
46210         Replace Check_Naming_Scheme by Ada_Check and
46211         Language_Independent_Check.
46212
46213         * prj-nmsc.ads:
46214         Replaced Check_Naming_Scheme by 2 procedures:
46215         Ada_Check and Language_Independent_Check.
46216
46217         * prj-proc.adb:
46218         (Process_Declarative_Items): For case-insensitive associative
46219         arrays, set the index string to lower case.
46220         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
46221         Prj.Nmsc.Check_Naming_Scheme.
46222
46223         * prj-tree.adb:
46224         (Case_Insensitive): New function
46225         (Set_Case_Insensitive): New procedure
46226
46227         * prj-tree.ads:
46228         (Case_Insensitive): New function
46229         (Set_Case_Insensitive): New procedure
46230         (Project_Node_Record): New flag Case_Insensitive.
46231
46232         * prj-util.adb:
46233         (Value_Of): new function to get the string value of a single
46234         string variable or attribute.
46235
46236         * prj-util.ads:
46237         (Value_Of): new function to get the string value of a single
46238         string variable or attribute.
46239
46240         * prj.adb:
46241         (Ada_Default_Spec_Suffix): New function
46242         (Ada_Default_Impl_Suffix): New function
46243         Change definitions of several constants to reflect
46244         new components of record types.
46245
46246         * prj.ads:
46247         (Naming_Data): Change several components to reflect new
46248         elements of naming schemes.
46249         (Project_Data): New flags Sources_Present and
46250         Language_Independent_Checked.
46251         (Ada_Default_Spec_Suffix): New function.
46252         (Ada_Default_Impl_Suffix): New function.
46253
46254         * snames.ads:
46255         Modification of predefined names for project manager: added
46256         Implementation, Specification_Exceptions, Implementation_Exceptions,
46257         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
46258         Default_Switches, _Languages, Builder, Cross_Reference,
46259         Finder. Removed Body_Part, Specification_Append, Body_Append,
46260         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
46261         Gnatlink.
46262
46263         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46264         Add comments.
46265
46266         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
46267         not that it is Nil_Variable_Value.
46268
46269         * prj.ads: Add ??? for uncommented declarations
46270
46271 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46272
46273         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
46274         constant, do not indicate possible modification, so that gigi can
46275         treat it as a bona fide constant.
46276
46277 2001-10-10  Robert Dewar  <dewar@gnat.com>
46278
46279         * sem_prag.adb: Add processing for pragma External.
46280
46281         * snames.ads: Add entry for pragma External.
46282
46283         * par-prag.adb: Add pragma External.
46284
46285         * snames.adb: Updated to match snames.ads.
46286
46287 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46288
46289         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
46290         a dynamic task if the allocator appears in an indexed assignment
46291         or selected component assignment.
46292
46293         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
46294         For a dynamic task in an assignment statement, use target of
46295         assignment to generate meaningful name.
46296
46297 2001-10-10  Ed Schonberg  <schonber@gnat.com>
46298
46299         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
46300         a generic package.
46301
46302         * einfo.ads: Body_Entity is also defined for generic package.
46303         Documentation change only
46304
46305         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
46306         others_choice for a discriminated component initialization,
46307         convert discriminant references into the corresponding discriminals.
46308
46309         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
46310         only if original type is private and expression has to be wrapped
46311         in a conversion.
46312
46313         * checks.adb:
46314         (Apply_Constraint_Check): Do not perform length check
46315         if expression is an aggregate with only an others_choice.
46316         (Length_N_Cond): two references to the same in_parameter
46317         (typically the discriminal in an init_proc) denote the same value.
46318         Two useful optimization uncovered by bugfixes above.
46319
46320 2001-10-10  Robert Dewar  <dewar@gnat.com>
46321
46322         * xeinfo.adb: Change int to char in translation of enumeration types.
46323         This fixes a problem in the C representation of component alignment.
46324         Add 2001 to copyright notice
46325
46326 2001-10-10  Richard Kenner  <kenner@gnat.com>
46327
46328         * decl.c: (validate_size): Do check size of object of integral type
46329         if it is a packed array type.
46330
46331 2001-10-10  Richard Kenner  <kenner@gnat.com>
46332
46333         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
46334         VAR_DECL for constant if not Is_Public but -O0.
46335
46336 2001-10-10  Richard Kenner  <kenner@gnat.com>
46337
46338         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
46339
46340 2001-10-10  Geert Bosch  <bosch@gnat.com>
46341
46342         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
46343         use '/' as switch character, allowing for absolute file names.
46344
46345 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
46346
46347         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
46348         FSF address.
46349
46350 2001-10-08  Geert Bosch  <bosch@gnat.com>
46351
46352         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
46353         Automatically build utilities when files need to be regenerated.
46354
46355 2001-10-08  Geert Bosch  <bosch@gnat.com>
46356
46357         * xsnames.adb: New utility for updating snames.ads and snames.adb
46358
46359 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
46360
46361         * Make-lang.in (ADAFLAGS): Add -W -Wall.
46362         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
46363         (gnat1): Also depend on attribs.o.
46364         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
46365         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
46366         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
46367         (ADAFLAGS): Add -W -Wall.
46368         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
46369         take out CFLAGS.
46370
46371         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
46372         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
46373         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
46374         Use $(ADAC), not $(CC), as compilation command.
46375
46376         (gnattools): Depend directly on tools to build, don't use
46377         recursive make.
46378         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
46379
46380         * einfo.h, sinfo.h: New files (autogenerated).
46381
46382 2001-10-08  Richard Henderson  <rth@redhat.com>
46383
46384         * comperr.adb (Abort_In_Progress): New.
46385         (Compiler_Abort): Use it to prevent recursion.
46386
46387 2001-10-08  Robert Dewar  <dewar@gnat.com>
46388
46389         * atree.adb: Set Error_Posted in Error node, helps error recovery.
46390
46391         * par-endh.adb (Output_End_Expected): We should also not test
46392         Error_Posted on the Error node, since now it is always set.
46393
46394         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
46395         to help error recovery. Part of general work on 9407-004.
46396
46397         * par.adb: Add ??? for misuse of error
46398
46399         * sem_res.adb:
46400         (Resolve): Defend against Error, fixes 9407-003.
46401         (Resolve_Discrete_Subtype_Indication): Defend against Error.
46402
46403         * sinfo.ads (N_Error): Now has Etype field (which will be set
46404         to Any_Type to help error recovery).
46405
46406 2001-10-08  Richard Kenner  <kenner@gnat.com>
46407
46408         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
46409         Consistently set MEM attributes from expression; fixes
46410         bootstrap failure on x86.
46411
46412 2001-10-08  Geert Bosch  <bosch@gnat.com>
46413
46414         * 5oosinte.adb: Add 2001 to copyright notice.
46415
46416 2001-10-08  Geert Bosch  <bosch@gnat.com>
46417
46418         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
46419
46420         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
46421
46422 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
46423
46424         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
46425
46426 2001-10-05  Geert Bosch  <bosch@gnat.com>
46427
46428         * adaint.h: Small formatting fix.
46429
46430 2001-10-04  Geert Bosch  <bosch@gnat.com>
46431
46432         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
46433         Arg is int, not FILE *, in dummy version of functions.
46434
46435         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
46436         Arg is int, not FILE *.
46437
46438 2001-10-04  Geert Bosch  <bosch@gnat.com>
46439
46440         * 3lsoccon.ads: Added file, missed with initial check ins.
46441
46442         * 4lintnam.ads: Fix header format.
46443         Change Linux to GNU/Linux.
46444
46445         * 5iosinte.adb: Change Linux to GNU/Linux.
46446
46447         * 5iosinte.ads: Change Linux to GNU/Linux.
46448
46449         * 5itaprop.adb: Change Linux to GNU/Linux.
46450
46451         * 5itaspri.ads: Change Linux to GNU/Linux.
46452         Update copyright notice.
46453
46454         * 5lintman.adb: Change Linux to GNU/Linux.
46455
46456         * 5lml-tgt.adb: Change Linux to GNU/Linux.
46457
46458         * 5losinte.ads: Change Linux to GNU/Linux.
46459
46460         * 5lsystem.ads: Change Linux to GNU/Linux.
46461
46462         * 5qosinte.adb: Change Linux to GNU/Linux.
46463
46464         * 5qosinte.ads: Change Linux to GNU/Linux.
46465
46466         * 5qparame.ads: Change Linux to GNU/Linux.
46467
46468         * 5qtaprop.adb: Change Linux to GNU/Linux.
46469
46470         * 5qtaspri.ads: Change Linux to GNU/Linux.
46471         Add 2001 to copyright notice.
46472
46473         * 5vintman.ads: Change Linux to GNU/Linux.
46474         Fix header format.  Add 2001 to copyright notice.
46475
46476         * g-soccon.ads: Change Linux to GNU/Linux.
46477
46478         * g-trasym.ads: Change Linux to GNU/Linux.
46479         Add 2001 to copyright notice.
46480
46481         * memtrack.adb: Change Linux to GNU/Linux.
46482
46483         * s-intman.ads: Change Linux to GNU/Linux.
46484         Add 2001 to copyright notice.  Fix header format.
46485
46486         * s-stache.adb: Change Linux to GNU/Linux.
46487
46488         * adaint.c: Change Linux to GNU/Linux.
46489
46490         * cio.c: Change Linux to GNU/Linux.
46491
46492         * cstreams.c: Change Linux to GNU/Linux.
46493
46494         * init.c: Change Linux to GNU/Linux.
46495
46496         * gmem.c: Change Linux to GNU/Linux.
46497
46498         * tracebak.c: Change Linux to GNU/Linux.
46499
46500
46501 2001-10-02  Geert Bosch  <bosch@gnat.com>
46502
46503         * misc.c (insert_default_attributes): Add dummy version.