OSDN Git Service

Fix long line.
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-08-13  Samuel Tardieu  <sam@rfc1149.net>
2
3         PR ada/36777
4         * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
5         * sem_attr.adb (Check_Type): The current instance of a protected
6         object is not a type name.
7         (Analyze_Access_Attribute): Accept instances of protected objects.
8         (Analyze_Attribute, Attribute_Address clause): Ditto.
9         * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
10         the prefix as being the current instance if needed.
11
12 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
13
14         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
15         Remove duplicate s-win32.o. Add s-winext.o.
16
17 2008-08-12  Danny Smith  <danyssmith@users.sourceforge.net>
18
19         * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
20         with SOSC.SOCK__STREAM.
21         * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
22         SOSC.MSG_OOB.
23
24 2008-08-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
25
26         * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
27         * gsocket.h, socket.c: Update to support RTEMS.
28         * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
29
30 2008-08-10  Samuel Tardieu  <sam@rfc1149.net>
31             Robert Dewar <dewar@adacore.com>
32
33         * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
34         left argument even when right argument is 0.
35         (Expand_N_Op_Mod): Ditto when right argument is 1.
36         (Expand_N_Op_Multiply): Ditto when any argument is 0.
37         (Expand_N_Op_Rem): Ditto when right argument is 1.
38
39 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
40
41         * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
42         by warn_unused.
43         
44 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
45
46         * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
47         from Freeze_Entity. Used to generate cross-reference information for
48         types declared in generic packages.
49
50 2008-08-08  Thomas Quinot  <quinot@adacore.com>
51
52         * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
53         compatibility shim.
54
55 2008-08-08  Thomas Quinot  <quinot@adacore.com>
56
57         * gsocket.h:
58         On Windows, include <errno.h> and redefine only selected errno values
59         from their <winsock2.h> definitions.
60
61         * s-osinte-freebsd.ads: Minor reformatting
62
63         * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
64
65         * g-soccon.ads: New file.
66
67         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
68         g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
69         g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
70         g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
71         unit, to allow building software that depends on this internal unit
72         with both older and newer compilers.
73
74 2008-08-08  Robert Dewar  <dewar@adacore.com>
75
76         * s-strxdr.adb: Minor reformatting
77
78 2008-08-08  Bob Duff  <duff@adacore.com>
79
80         * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
81         checking for integer operations (including division by zero)", which
82         is wrong -- divide by zero is not part of overflow checking.
83         Also added misc clarification about what check-suppression means.
84
85         * gnat_rm.texi: Clarify the meaning of pragma Suppress.
86
87 2008-08-08  Jerome Lambourg  <lambourg@adacore.com>
88
89         * g-comlin.adb (Add_Switch): Handle addition of switches at the
90         begining of the command line.
91         (Append, Add): Renaming of Append to Add as this now allows addition
92         at the begining of the list.
93         
94         * g-comlin.ads (Add_Switch): Handle addition of switches at the
95         begining of the command line.
96
97 2008-08-08  Thomas Quinot  <quinot@adacore.com>
98
99         * g-sercom.ads:
100         (Name): Document application scope (only legacy PC serial ports on
101         Linux and Windows).
102
103 2008-08-08  Thomas Quinot  <quinot@adacore.com>
104
105         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
106         previous change, not needed after all.
107
108 2008-08-08  Ed Schonberg  <schonberg@adacore.com>
109
110         * exp_ch4.adb (Expand_Allocator_Expression): add check if null
111         exclusion indicator is present
112
113 2008-08-08  Robert Dewar  <dewar@adacore.com>
114
115         * g-comlin.adb: Minor code reorganization
116         Minor reformatting
117
118         * g-comlin.ads: Minor reformatting
119
120         * s-fileio.adb: Minor reformatting
121
122         * sem_attr.adb: Minor code reorganization (use Nkind_In)
123         Minor reformatting
124
125 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
126
127         * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
128         with s-oscons-tmplt.i.
129
130 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
131
132         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
133
134 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
135
136         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
137         of incomplete type.
138
139         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
140         of a formal parameter of an incomplete type. Improve error message for
141         other improper uses of incomplete types.
142
143 2008-08-06  Robert Dewar  <dewar@adacore.com>
144
145         * gnat_ugn.texi: Clarify -gnato documentation
146
147 2008-08-06  Thomas Quinot  <quinot@adacore.com>
148
149         * gcc-interface/Makefile.in,
150         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
151         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
152         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
153         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
154         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
155         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
156         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
157         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
158         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
159         Remove GNAT.Sockets.Constants. This internal package is replaced by
160         System.OS_Constants.
161
162 2008-08-06  Thomas Quinot  <quinot@adacore.com>
163
164         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
165         Remove obsolete targets referencing gen-soccon
166         When generating s-oscons.ads, use a file name that includes the
167         THREAD_KIND, to ensure that the (potentially different) version from a
168         previous build with a different threads flavour does not get reused.
169
170 2008-08-06  Thomas Quinot  <quinot@adacore.com>
171
172         * sem_res.adb: Minor reformatting
173
174         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
175         only when the operating system reports a non-existing file or directory
176         (ENOENT), otherwise raise Name_Error.
177
178         * exp_ch11.adb: Minor reformatting
179
180 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
181
182         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
183         incomplete, add the access_to_subprogram type to the list of private
184         dependents only if the incomplete type will be completed in the current
185         scope.
186         (Build_Discriminant_Constraints): If the type of the discriminant is
187         access_to_variable, reject a constraint that is access_to_constant.
188
189 2008-08-06  Thomas Quinot  <quinot@adacore.com>
190
191         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
192         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
193         g-sttsne-dummy.ads: New files.
194
195         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
196         with pragma Unimplemented_Unit for sockets packages on Nucleus.
197
198 2008-08-06  Pascal Obry  <obry@adacore.com>
199
200         * adaint.c: Another fix for ACL support on Windows.
201
202 2008-08-06  Javier Miranda  <miranda@adacore.com>
203
204         * exp_disp (Expand_Interface_Actuals): Adds missing support for
205         expansion of calls to subprograms using selected components.
206
207 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
208
209         * sem_res.adb (Resolve_Call): Use base type to determine whether a
210         dereference is needed because a subtype of an access_to_subprogram is
211         simply an access-subtype
212
213 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
214
215         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
216         parameters, always specify the expected separator.
217
218 2008-08-06  Thomas Quinot  <quinot@adacore.com>
219
220         * xnmake.adb: Use new XUtil package for platform independent text
221         output.
222
223 2008-08-06  Vincent Celier  <celier@adacore.com>
224
225         * gnat_ugn.texi: Document compiler switch -gnateG
226
227 2008-08-06  Quentin Ochem  <ochem@adacore.com>
228
229         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
230         in the case of an empty pattern size.
231         (Compute_Result): Do not do any computation in the case of an empty
232         pattern size.
233         (Report_Result): Fixed computation of the overflow guard.
234
235 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
236
237         * g-awk.adb (Finalize): Do not use directly objects of the type in the
238         finalization routine to prevent elaboration order anomalies in new
239         finalization scheme.
240
241 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
242
243         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
244         declaration for the same type.
245
246 2008-08-06  Thomas Quinot  <quinot@adacore.com>
247
248         * sem.adb: Minor rewording (comment)
249
250 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
251
252         * g-comlin.adb (Define_Switch, Get_Switches): New.
253         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
254         ungrouping switches.
255         (For_Each_Simple_Switch): Allow more control over parameters handling.
256         This generic method now allows ungrouping of switches with parameters
257         and switches with more than one letter after the prefix.
258         (Set_Command_Line): Take care of switches that are prefixed with a
259         switch handling parameters without delimiter (-gnatya and -gnaty3 for
260         example).
261         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
262         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
263         the operation.
264         (Start, Alias_Switches, Group_Switches): Take care of parameters
265         possibly present inside a group.
266
267         * g-comlin.ads (Define_Switch): New method used to define a list of
268         expected switches, that are necessary for correctly ungrouping switches
269         with more that one character after the prefix.
270         (Get_Switches): Method that builds a getopt string from the list of
271         switches as set previously by Define_Switch.
272         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
273         status of the operation. Also allow the removal of switches with
274         parameters only.
275         (Command_Line_Configuration_Record): Maintain a list of expected
276         switches.
277
278 2008-08-06  Doug Rupp  <rupp@adacore.com>
279
280         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
281         TARGET_MALLOC64 clear.
282
283         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
284         if TARGET_MALLOC64 clear.
285
286         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
287         (TARGET_MALLC64): New macro. Default to clear.
288
289 2008-08-06  Doug Rupp  <rupp@adacore.com>
290
291         * gcc-interface/utils2.c (snames.h) Include
292         (TARGET_ABI_OPEN_VMS): Initialize.
293         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
294         for Convention C.
295
296 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
297
298         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
299         null exclusion in a discriminant declaration
300
301         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
302         indicators when type is not an access type.
303
304         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
305         indicators when type is not an access type.
306
307 2008-08-06  Javier Miranda  <miranda@adacore.com>
308
309         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
310         with the target interface before expanding the code of the interface
311         conversion.
312
313 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
314
315         * freeze.adb:
316         (Freeze_Entity): A deferred constant does not violate the restriction
317         No_Default_Initialization, 
318
319         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
320         can carry a null exclusion indicator, and on which an error may be
321         posted if the indicator is redundant.
322
323         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
324         does not apply to a subtype mark that already excludes null.
325
326         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
327         exclusion does not apply to a subtype mark that already excludes null.
328
329 2008-08-05  Thomas Quinot  <quinot@adacore.com>
330
331         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
332
333 2008-08-05  Doug Rupp  <rupp@adacore.com>
334
335         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
336
337 2008-08-05  Thomas Quinot  <quinot@adacore.com>
338
339         * gsocket.h: Make this file includable in a Nucleus environment, which
340         does not support sockets.
341
342         * socket.c: Remove Nucleus-specific hack.
343
344 2008-08-05  Pascal Obry  <obry@adacore.com>
345
346         * adaint.c: Remove support for readable attribute on vxworks and nucleus
347
348 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
349
350         * sem_attr.adb:
351         (Analyze_Attribute, case 'Result): handle properly the case where some
352         operand of the expression in a post-condition generates a transient
353         block.
354
355         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
356         right-hand side when it is an anonymous access_to_subprogram, to force
357         static accessibility check when needed.
358
359 2008-08-05  Sergey Rybin  <rybin@adacore.com>
360
361         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
362         rule according to the change in the rule option.
363         Add documentation for -gnatw.b/-gnatw.B
364
365 2008-08-05  Robert Dewar  <dewar@adacore.com>
366
367         * ug_words: Add entries for -gnatw.b/-gnatw.B
368
369         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
370
371 2008-08-05  Vincent Celier  <celier@adacore.com>
372
373         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
374         (File).
375         
376         * a-ztdeio.adb: Ditto.
377
378 2008-08-05  Pascal Obry  <obry@adacore.com>
379
380         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
381         readable attribute.
382
383 2008-08-05  Vincent Celier  <celier@adacore.com>
384
385         * s-wchwts.adb:
386         (Wide_String_To_String): Returns a String with the same 'First as its
387         parameter S.
388         (Wide_Wide_String_To_String): Ditto
389         
390         * s-wchwts.ads:
391         (Wide_String_To_String): Document that the lowest index of the returned
392         String is equal to S'First.
393
394 2008-08-05  Thomas Quinot  <quinot@adacore.com>
395
396         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
397
398         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
399         s-oscons.ads
400
401 2008-08-05  Robert Dewar  <dewar@adacore.com>
402
403         * opt.ads (Warn_On_Biased_Representation): New flag
404         
405         * sem_ch13.adb:
406         (Analyze_Attribute_Definition_Clause): Issue warning when biased
407         representation is required.
408         (Minimum_Size): Don't allow biasing if enum rep clause case
409         
410         * sem_warn.adb:
411         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
412         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
413         
414         * usage.adb: Add lines for -gnatw.b/B switches
415
416 2008-08-05  Pascal Obry  <obry@adacore.com>
417
418         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
419
420         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
421
422 2008-08-05  Thomas Quinot  <quinot@adacore.com>
423
424         * socket.c: Minor reformatting.
425
426 2008-08-05  Robert Dewar  <dewar@adacore.com>
427
428         * sem_ch3.adb: Minor reformatting
429
430         * prj-nmsc.adb: Minor reformatting
431
432 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
433
434         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
435         visibility check on the component type if the simple test fails.
436
437 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
438
439         * init.c (__gnat_install_handler for linux): If we are building the
440         Xenomai run time then we need to do two additional things: avoid
441         memory swapping and transform the Linux environment task into a native
442         Xenomai task.
443
444         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
445         time): Use interface to Xenomai native skin and avoid linux-specific
446         way of setting CPU affinity.
447         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
448
449 2008-08-05  Bob Duff  <duff@adacore.com>
450
451         * checks.ads: Minor comment fix
452
453 2008-08-05  Thomas Quinot  <quinot@adacore.com>
454
455         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
456         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
457         CS8.
458
459 2008-08-05  Robert Dewar  <dewar@adacore.com>
460
461         * mlib.adb: Minor code reorganization
462         Minor reformatting
463
464         * make.adb: Minor reformatting
465
466         * prj-attr.ads: Minor reformatting
467
468         * s-os_lib.adb: Minor reformatting
469
470         * s-fileio.adb: Minor code reorganization
471         Minor reformatting
472
473         * prj.ads: Minor reformatting
474
475 2008-08-05  Bob Duff  <duff@adacore.com>
476
477         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
478         unresolved initial value of "null", because it causes implicitly
479         generated "=" operators to be ambiguous, and because this type should
480         not be passed to gigi.
481
482 2008-08-05  Vincent Celier  <celier@adacore.com>
483
484         * mlib.adb: Update comments.
485
486         * make.adb (Switches_Of): Check for Switches (others), before checking
487         for Default_Switches ("Ada").
488         (Gnatmake): Use Builder'Switches (others) in preference to
489         Builder'Default_Switches ("Ada") if there are several mains.
490
491         * prj-attr-pm.adb:
492         (Add_Attribute): Add component Others_Allowed in Attribute_Record
493         aggregate.
494
495         * prj-attr.adb:
496         Add markers to indicates that attributes Switches allow others as index
497         (Others_Allowed_For): New Boolean function, returning True for
498         attributes with the mark.
499         (Initialize): Recognize optional letter 'O' as the marker for
500         associative array attributes where others is allowed as the index.
501
502         * prj-attr.ads:
503         (Others_Allowed_For): New Boolean function
504         (Attribute_Record): New Boolean component Others_Allowed
505         
506         * prj-dect.adb:
507         (Parse_Attribute_Declaration): For associative array attribute where
508         others is allowed as the index, allow others as an index.
509
510         * prj-nmsc.adb:
511         (Process_Binder): Skip associative array attributes with index others
512         (Process_Compiler): Ditto
513
514         * prj-util.adb:
515         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
516         index is All_Other_Names.
517
518         * prj.ads:
519         (All_Other_Names): New constant
520
521         * prj-proc.adb:
522         (Process_Declarative_Items): Skip associative array attribute when index
523         is reserved word "others".
524
525 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
526
527         * gen-oscons.c: Adapt for VMS where termios.h is not available.
528
529 2008-08-05  Thomas Quinot  <quinot@adacore.com>
530
531         * a-rttiev.adb: Minor reformatting (comments)
532
533         * gen-soccon.c: Rename to gen-oscons.c
534
535         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
536         GNAT.Sockets.Constants.
537         Add new constants for GNAT.Serial_Communications and System.File_IO.
538
539 2008-08-05  Javier Miranda  <miranda@adacore.com>
540
541         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
542         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
543         implementation of this routine has been simplified.
544
545 2008-08-05  Pascal Obry  <obry@adacore.com>
546
547         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
548         Set_Read_Only Win32 implementation.
549
550 2008-08-05  Thomas Quinot  <quinot@adacore.com>
551
552         * exp_strm.adb: Minor reformatting (comments)
553
554         * sem_ch12.adb: Minor reformatting.
555
556 2008-08-05  Robert Dewar  <dewar@adacore.com>
557
558         * sem_ch3.adb: Minor reformatting
559
560         * checks.adb: Minor reformatting
561
562 2008-08-05  Thomas Quinot  <quinot@adacore.com>
563
564         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
565         restriction on Prefix.
566
567 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
568
569         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
570         methods needed to handle switch sections when building a command line.
571         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
572         Current_Section): New public methods or methods modified to handle
573         building command lines with sections.
574         (Set_Command_Line): Take into account sections when analysing a switch
575         string.
576         (Start): Sort the switches by sections before iterating the command line
577         elements.
578         
579         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
580         Is_New_Section, Current_Section): New methods or methods modified to
581         handle building command lines with sections.
582
583 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
584
585         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
586         discriminants, indicate that the corresponding object declaration has
587         no initialization, to prevent spurious warnings when the access type is
588         null-excluding.
589
590 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
591
592         * sem_res.adb (Resolve_Call): If this is a call to the predefined
593         Abort_Task, warn if the call appears within a protected operation.
594
595 2008-08-04  Robert Dewar  <dewar@adacore.com>
596
597         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
598
599 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
600
601         * sem_ch3.adb:
602         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
603         anonymous access to protected subprogram that is the return type of the
604         specification of a subprogram body.
605
606         * sem_ch6.adb:
607         (Analyze_Subprogram_Body): if the return type is an anonymous access to
608         subprogram, freeze it now to prevent access anomalies in the back-end.
609
610         * exp_ch9.adb: Minor code cleanup.
611         Make sure that new declarations are inserted into the tree before
612         analysis (from code reading).
613
614 2008-08-04  Robert Dewar  <dewar@adacore.com>
615
616         * exp_ch5.adb:
617         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
618         at point of return.
619
620 2008-08-04  Thomas Quinot  <quinot@adacore.com>
621
622         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
623
624 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
625
626         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
627
628 2008-08-04  Javier Miranda  <miranda@adacore.com>
629
630         * sem_prag.adb (Process_Convention): Add missing support for
631          N_Private_Extension_Declaration nodes.
632
633 2008-08-04  Robert Dewar  <dewar@adacore.com>
634
635         * exp_ch4.adb: Minor reformatting
636
637 2008-08-04  Pascal Obry  <obry@adacore.com>
638
639         * adaint.h: Add missing prototype.
640
641         * adaint.c: Refine support for Windows file attributes.
642
643 2008-08-04  Robert Dewar  <dewar@adacore.com>
644
645         * sem_res.adb:
646         (Valid_Conversion): Catch case of designated types having different
647         sizes, even though they statically match.
648
649 2008-08-04  Javier Miranda  <miranda@adacore.com>
650
651         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
652         added in previous patch to handle access to subprograms.
653
654 2008-08-04  Robert Dewar  <dewar@adacore.com>
655
656         * freeze.adb:
657         (Freeze_Entity): Only check No_Default_Initialization restriction for
658         constructs that come from source
659
660 2008-08-04  Thomas Quinot  <quinot@adacore.com>
661
662         * exp_ch6.adb: Minor comment fix.
663
664         * sem_ch4.adb: Minor reformatting.
665
666 2008-08-04  Robert Dewar  <dewar@adacore.com>
667
668         * sem_res.adb: (Large_Storage_Type): Improve previous change.
669
670 2008-08-04  Pascal Obry  <obry@adacore.com>
671
672         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
673         file attributes.
674
675 2008-08-04  Javier Miranda  <miranda@adacore.com>
676
677         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
678         for N_Formal_Object_Declaration nodes. Adding kludge required by
679         First_Formal to provide its functionality with access to functions.
680         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
681         for anonymous access types returned by functions.
682
683         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
684         conversion of null-excluding access types (required only once to force
685         the generation of the required runtime check).
686
687         * sem_type.adb (Covers): minor reformating
688
689         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
690         with internally generated nodes. Avoid generating the error inside init
691         procs.
692
693         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
694         (Resolve_Null): Generate the null-excluding check in case of assignment
695         to a null-excluding object.
696         (Valid_Conversion): Add missing support for anonymous access to
697         subprograms.
698
699         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
700         anonymous access types whose designated type is an itype. This case
701         occurs with anonymous access to protected subprograms types.
702         (Analyze_Return_Type):  Add missing support for anonymous access to
703         protected subprogram.
704
705         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
706         subprograms addition of missing check on matching convention. Required
707         to properly handle access to protected subprogram types.
708
709         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
710         null excluding access types.
711
712 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
713
714         * sem_ch12.adb: Add comments
715
716         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
717         access type and the allocator is not initialized, warn rather than
718         reporting an error.
719
720 2008-08-04  Robert Dewar  <dewar@adacore.com>
721
722         * exp_ch4.adb: Minor reformatting
723
724         * exp_dist.adb: Minor reformatting
725
726         * g-comlin.adb: Minor reformatting
727
728 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
729
730         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
731         target to the type of the aggregate in the case where the target object
732         is class-wide.
733
734         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
735         result type is class-wide and inherently limited, and the expression
736         has a specific type, create a return object of the specific type, for
737         more efficient handling of returns of build-in-place aggregates (avoids
738         conversions of the class-wide return object to the specific type on
739         component assignments).
740
741         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
742         about a type mismatch for a class-wide function with a return object
743         having a specific type when the object declaration doesn't come from
744         source. Such an object can result from the expansion of a simple return.
745
746 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
747
748         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
749
750         * gcc-interface/Makefile.in: Use 64bit-specific system files when
751         compiling for 64bit windows.
752
753 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
754
755         * g-comlin.adb (Group_Switches): Preserve the switch order when
756         grouping and allow switch grouping of switches with more than one
757         character extension (e.g. gnatw.x).
758         (Args_From_Expanded): Remove this now obsolete method.
759
760 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
761
762         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
763         chain at once, to ensure that type is properly decorated for back-end,
764         when allocator appears within a loop.
765
766 2008-08-04  Kevin Pouget  <pouget@adacore.com>
767
768         * snames.h, snames.adb, snames.ads:
769         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
770
771         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
772         Build_To_Any_Call and Build_TypeCode_Call procedures.
773
774         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
775
776         * rtsfind.ads: Add corresponding names.
777
778         * tbuild.adb: Update prefix restrictions to allow '_' character.
779
780 2008-08-04  Doug Rupp  <rupp@adacore.com>
781
782         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
783         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
784         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
785         use it.  Calculate pointer range overflow using 64bit types.
786
787 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
788
789         * sem_ch3.adb (Access_Definition): A formal object declaration is a
790         legal context for an anonymous access to subprogram.
791
792         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
793         indirect call, report success to the caller to include possible
794         interpretation.
795
796         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
797         check when the type
798         of the extended return is an anonymous access_to_subprogram type.
799
800         * sem_res.adb:
801         (Resolve_Call): Insert a dereference if the type of the subprogram is an
802         access_to_subprogram and the context requires its return type, and a
803         dereference has not been introduced previously.
804
805 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
806
807         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
808         gnatcheck support in GPS.
809
810 2008-08-04  Vincent Celier  <celier@adacore.com>
811
812         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
813         requested
814
815 2008-08-04  Vincent Celier  <celier@adacore.com>
816
817         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
818         variable, but don't check the resulting value as it has no impact on
819         the processing.
820         
821         * opt.ads:
822         (Generate_Processed_File): New Boolean flag, set to True in the compiler
823         when switch -gnateG is used.
824         
825         * prep.adb:
826         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
827         when the source is modified by the preprocessor and there is no
828         preprocessing errors.
829         
830         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
831         
832         * sinput-l.adb:
833         (Load_File): Output the result of preprocessing if the source text was
834         modified.
835         
836         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
837         
838         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
839         
840         * ug_words: Add VMS equivalent for -gnateG
841         
842         * vms_data.ads:
843         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
844
845 2008-08-04  Doug Rupp  <rupp@adacore.com>
846
847         * gcc-interface/utils2.c:
848         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
849         in 32bit descriptor.
850
851 2008-08-04  Robert Dewar  <dewar@adacore.com>
852
853         * par-ch10.adb: Minor reformatting
854
855         * i-cobol.adb: Minor reformatting.
856
857 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
858
859         * sem_ch3.adb (Access_Definition): Create an itype reference for an
860         anonymous access return type of a regular function that is not a
861         compilation unit.
862
863 2008-08-04  Vincent Celier  <celier@adacore.com>
864
865         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
866         
867         * snames.adb: New standard name Global_Compilation_Switches
868         
869         * snames.ads: New standard name Global_Compilation_Switches
870
871         * make.adb: Correct spelling error in comment
872
873 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
874
875         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
876         target.
877
878 2008-08-04  Thomas Quinot  <quinot@adacore.com>
879
880         * sem_ch10.adb: Minor comment fix.
881
882 2008-08-04  Robert Dewar  <dewar@adacore.com>
883
884         * restrict.adb: Improved messages for restriction warnings
885
886         * restrict.ads: Improved messages for restriction messages
887
888         * s-rident.ads (Profile_Name): Add No_Profile
889
890 2008-08-04  Robert Dewar  <dewar@adacore.com>
891
892         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
893
894 2008-08-04  Robert Dewar  <dewar@adacore.com>
895
896         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
897
898 2008-08-04  Vincent Celier  <celier@adacore.com>
899
900         * prj-proc.adb:
901         (Copy_Package_Declarations): When inheriting package Naming from a
902         project being extended, do not inherit source exception names.
903
904 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
905
906         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
907         list of declaration to find previous subprogram, do not go to the
908         original node of a generic unit.
909
910 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
911
912         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
913         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
914
915 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
916
917         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
918         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
919         and adjust for above renaming.
920         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
921         gnu_expr_alt_type parameter.  Convert the expression to it instead
922         of changing its type in place.
923         (build_function_stub): Adjust call to above function.
924
925 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
926
927         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
928         code.  Do not get full definition of deferred constants with address
929         clause for a use.  Do not ignore deferred constant definitions with
930         address clause.  Ignore constant definitions already marked with the
931         error node.
932         <object>: Remove obsolete comment.  For a deferred constant with
933         address clause, get the initializer from the full view.
934         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
935         Rework and remove obsolete comment.
936         <N_Object_Declaration>: For a deferred constant with address clause,
937         mark the full view with the error node.
938         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
939         formatting nits.
940
941 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
942
943         * rtsfind.ads: Add block IO versions of stream routines for Strings.
944         
945         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
946         sem_prag.adb, snames.adb, snames.ads, snames.h,
947         par-prag.adb: Undo previous stream related changes.
948         
949         * s-rident.ads: Add new restriction No_Stream_Optimizations.
950         
951         * s-ststop.ads, s-ststop.adb: Comment reformatting.
952         Define enumeration type to designate different IO mechanisms.
953         Enchance generic package Stream_Ops_Internal to include an
954         implementation of Input and Output.
955
956         * exp_attr.adb (Find_Stream_Subprogram): If restriction
957         No_Stream_Optimization is active, choose the default byte IO
958         implementations of stream attributes for Strings.
959         Otherwise use the corresponding block IO version.
960
961 2008-08-01  Olivier Hainque  <hainque@adacore.com>
962         
963         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
964         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
965
966 2008-08-01  Robert Dewar  <dewar@adacore.com>
967
968         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
969         convert plain identifier into defining identifier.
970
971 2008-08-01  Robert Dewar  <dewar@adacore.com>
972
973         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
974         warnings
975
976         * lib-xref.adb: Add error defense.
977
978 2008-08-01  Bob Duff  <duff@adacore.com>
979
980         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
981
982 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
983
984         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
985         correct accessibility levels. In the "when others" case, retrieve the
986         access level of the Etype of Prev rather than Prev_Orig, because the
987         original exression has not always been analyzed.
988
989 2008-08-01  Robert Dewar  <dewar@adacore.com>
990
991         * prj-nmsc.adb: Minor reformatting
992
993         * sem_ch4.adb: Minor reformatting
994         Minor code reorganization
995
996         * prj.ads: Minor reformatting
997
998         * s-os_lib.adb: Minor reformatting
999
1000         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1001         half encodings
1002
1003         * scans.ads: Minor reformatting.
1004
1005         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1006         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1007
1008         * sem_res.adb:
1009         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1010
1011         * sem_ch12.adb: Minor comment reformatting
1012
1013         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1014         keyword
1015
1016 2008-08-01  Robert Dewar  <dewar@adacore.com>
1017
1018         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1019         generating code
1020
1021 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1022
1023         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1024         converted is a real literal and the target type has static bounds,
1025         perform the conversion exactly to prevent floating-point anomalies on
1026         some targets.
1027
1028 2008-08-01  Vincent Celier  <celier@adacore.com>
1029
1030         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1031         
1032         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1033         
1034         * prj.adb (Object_Exist_For): Use Object_Generated, not
1035         Objects_Generated that is removed and was never modified anyway.
1036
1037         * prj.ads:
1038         (Path_Syntax_Kind): New enumeration type
1039         (Language_Config): New component Path_Syntax, defaulted to Host.
1040         Components PIC_Option and Objects_Generated removed, as they are not
1041         used.
1042
1043         * snames.adb: New standard name Path_Syntax
1044         
1045         * snames.ads: New standard name Path_Syntax
1046
1047 2008-08-01  Vincent Celier  <celier@adacore.com>
1048
1049         * mlib-utl.adb:
1050         (Adalib_Path): New variable to store the path of the adalib directory
1051         when procedure Specify_Adalib_Dir is called.
1052         (Lib_Directory): If Adalib_Path is not null, return its value
1053         (Specify_Adalib_Dir): New procedure
1054         
1055         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1056
1057 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1058
1059         * sem_prag.adb:
1060         (Check_Precondition_Postcondition): If not generating code, analyze the
1061         expression in a postcondition that appears in a subprogram body, so that
1062         it is properly decorated for ASIS use.
1063
1064 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
1065
1066         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1067         Orig_Prev to Prev in the case where the actual is N_Function_Call or
1068         N_Identifier. This was interfering with other cases that are rewritten
1069         as N_Identifier, such as allocators, resulting in passing of the wrong
1070         accessibility level, and based on testing this code is apparently no
1071         longer needed at all.
1072
1073 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1074
1075         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1076         procedure call whose prefix
1077         is a parameterless function call that returns an access_to_procedure.
1078
1079 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1080
1081         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1082         for RTX. Adding a suffix that is incremented at each iteration.
1083
1084 2008-08-01  Robert Dewar  <dewar@adacore.com>
1085
1086         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1087         Raise_Exception
1088
1089 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
1090
1091         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1092         paths, which are authorized by Windows but can lead to errors when used
1093         elsewhere.
1094
1095 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1096
1097         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1098         a pending instantiation for the body of a subprogram that is to be
1099         inlined.
1100
1101         * sem_ch12.adb:
1102         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1103
1104         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1105         create a pending instance for its body, so that calls to the subprogram
1106         can be inlined by the back-end.
1107
1108 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1109
1110         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1111         rts-rtx-w32).
1112
1113 2008-08-01  Robert Dewar  <dewar@adacore.com>
1114
1115         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1116
1117 2008-08-01  Doug Rupp  <rupp@adacore.com>
1118
1119         * gnat_rm.texi: Document new mechanism Short_Descriptor.
1120         
1121         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1122         mechanism values.
1123
1124         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1125         mechanism and Short_Descriptor mechanism values.
1126
1127         * snames.adb (preset_names): Add short_descriptor entry.
1128
1129         * snames.ads: Add Name_Short_Descriptor.
1130
1131         * types.h: Add new By_Short_Descriptor mechanism values.
1132
1133         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1134         mechanism and Short_Descriptor mechanism values.
1135
1136         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1137         values.
1138         (Descriptor_Codes): Modify range for new mechanism values.
1139
1140         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1141         mechanism values.
1142
1143         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1144         (gnat_to_gnu_param): Handle By_Short_Descriptor.
1145
1146         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1147         (build_vms_descriptor32): New prototype.
1148         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1149
1150         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1151         argument in call fill_vms_descriptor.
1152
1153         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1154         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1155         (build_vms_descriptor): Renamed from build_vms_descriptor64. 
1156         (convert_vms_descriptor32): New function.
1157         (convert_vms_descriptor64): New function.
1158         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1159         descriptors.
1160
1161         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1162         no longer needed.
1163
1164 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1165
1166         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1167         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1168         name.
1169
1170 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1171
1172         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1173         current directory so only fully qualified names are allowed.
1174
1175 2008-08-01  Robert Dewar  <dewar@adacore.com>
1176
1177         * gnat_ugn.texi:
1178         Minor editing, remove uncomfortable use of semicolon
1179
1180         * s-ststop.adb: Add some ??? comments
1181
1182         * sem_ch10.adb: Minor reformatting
1183
1184         * snames.ads:
1185         Minor comment fixes, some pragmas were not properly
1186         categorized in the comments, documentation change only
1187
1188         * xref_lib.adb: Minor reformatting
1189
1190         * sinput.adb: Minor reformatting
1191
1192         * gnatchop.adb: Minor reformatting
1193
1194         * sem_util.ads: Minor reformatting.
1195
1196         * opt.ads: Minor documentation fix
1197
1198         * scng.adb: Minor reformatting
1199
1200         * prj-part.adb: Update comments
1201
1202 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1203
1204         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1205         tagged synchronized type, use corresponding record type.
1206
1207 2008-08-01  Doug Rupp  <rupp@adacore.com>
1208
1209         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1210         dummy transfer address for debugging.
1211         
1212         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1213
1214         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1215
1216 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1217
1218         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1219         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1220
1221 2008-07-31  Pascal Obry  <obry@adacore.com>
1222
1223         * prj-nmsc.adb: Keep Object and Exec directory casing.
1224
1225 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
1226
1227         * system-rtx-rtss.ads
1228         Change the default stack size. It is important to set the commit part.
1229         
1230         * s-taprop-rtx.adb
1231         (Initialize): Get the clock resolution.
1232         (RT_Resolution): Return the clock resolution that is indicated by the
1233         system.
1234
1235         * s-parame-vxworks.adb
1236         Document that this body is used for RTX in RTSS (kernel) mode.
1237
1238         * gcc-interface/Makefile.in
1239         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1240         s-parame-vxworks.adb body in order to have reasonable stack sizes in
1241         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1242         cannot ask for too big values.
1243
1244 2008-07-31  Robert Dewar  <dewar@adacore.com>
1245
1246         * exp_aggr.adb: Minor reformatting
1247
1248         * makeutl.adb: Minor reformatting
1249
1250         * prj-env.adb: Minor reformatting
1251
1252 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1253
1254         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1255         tagged type is completed by a concurrent type.
1256
1257 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1258
1259         * sem_aggr.adb:
1260         (Resolve_Record_Aggregate): Bypass error that a type without
1261         components must have a "null record" aggregate when compiling for Ada
1262         2005, since it's legal to give an aggregate of form (others => <>)
1263         for such a type.
1264
1265 2008-07-31  Javier Miranda  <miranda@adacore.com>
1266
1267         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1268         handle synchronized types. Required to handle well the object.operation
1269         notation applied to synchronized types.
1270
1271 2008-07-31  Quentin Ochem  <ochem@adacore.com>
1272
1273         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1274         anymore - just used internally.
1275         Added handling of very small tasks - when the theoretical size is
1276         already full at the point of the call.
1277         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1278         not need to be added to the result.
1279
1280 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1281
1282         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1283         corresponding spec is a primitive wrapper. Update comment.
1284
1285 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1286
1287         * bindgen.adb Comment reformatting. Update the list of run-time globals.
1288         (Gen_Adainit_Ada): Add the declaration, import and value set for
1289         configuration flag Canonical_Streams.
1290         (Gen_Adainit_C): Add the declaration and initial value of external
1291         symbol __gl_canonical_streams.
1292         
1293         * init.c: Update the list of global values computed by the binder.
1294         
1295         * opt.ads: Add flag Canonical_Streams.
1296         
1297         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
1298         semantically handled pragmas.
1299         
1300         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
1301         (Analyze_Pragma): Add case for pragma Canonical_Streams.
1302         
1303         * snames.adb: Add character value for name Canonical_Streams.
1304         
1305         * snames.ads:
1306         Add Name_Canonical_Streams to the list of configuration pragmas.
1307         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
1308         
1309         * snames.h: Add a definition for Pragma_Canonical_Streams.
1310         
1311         * s-ststop.adb:
1312         Add a flag and import to seize the value of external symbol
1313         __gl_canonical_streams. Update comment and initial value of constant
1314         Use_Block_IO.
1315         
1316         * gnat_rm.texi: Add section of pragma Canonical_Streams.
1317         
1318         * gnat_ugn.texi:
1319         Add pragma Canonical_Streams to the list of configuration pragmas.
1320
1321 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1322
1323         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
1324         has the form A.B.C and B is a unit renaming, analyze its compilation
1325         unit and add a with_clause on A.b to the context.
1326
1327 2008-07-31  Vincent Celier  <celier@adacore.com>
1328
1329         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
1330         return the empty string, instead of raising Constraint_Error.
1331
1332 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1333
1334         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
1335         
1336         * checks.adb (Apply_Accessibility_Check): Insert the check on
1337         Insert_Node.
1338         
1339         * exp_attr.adb:
1340         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
1341         to new parameter Insert_Node on call to Apply_Accessibility_Check.
1342         Necessary to distinguish the insertion node because the dereferenced
1343         formal may come from a rename, but the check must be inserted in
1344         front of the attribute.
1345         
1346         * exp_ch4.adb:
1347         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
1348         call to Apply_Accessibility_Check.
1349         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
1350         on call to Apply_Accessibility_Check.
1351         Minor reformatting
1352
1353 2008-07-31  Javier Miranda  <miranda@adacore.com>
1354
1355         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
1356         types when the candidate type is a synchronized type.
1357         
1358         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
1359         types, and complete management of synchronized types adding missing
1360         code to handle formal that is a synchronized type.
1361         
1362         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
1363         are not available and cause the compiler to blowup. Found compiling
1364         test with switch -gnatc
1365         
1366         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
1367         Has_Correct_Formal_Mode plus code cleanup.
1368
1369 2008-07-31  Bob Duff  <duff@adacore.com>
1370
1371         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
1372         recognized as two end-of-lines, but it should be just one.
1373
1374 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1375
1376         * exp_ch9.adb: Minor reformatting
1377
1378         * tbuild.ads: Fix several occurrences of incorrectly referring to
1379         Name_Find as Find_Name.
1380
1381 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1382
1383         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
1384         and the context is an object declaration with non-static bounds, treat
1385         the aggregate as non-static.
1386
1387 2008-07-31  Vincent Celier  <celier@adacore.com>
1388
1389         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
1390         Move back spec of Parse_Single_Project to body, as it is not called
1391         outside of package Prj.Part.
1392         (Project_Data): Remove components Linker_Name, Linker_Path and
1393         Minimum_Linker_Options as they are no longer set.
1394         Remove function There_Are_Ada_Sources from package Prj and move code
1395         in the only place it was used, in Prj.Env.Set_Ada_Paths.
1396
1397 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1398
1399         * mlib-utl.ads: Fix typo.
1400
1401 2008-07-31  Robert Dewar  <dewar@adacore.com>
1402
1403         * sem_ch12.adb: Minor reformatting
1404
1405 2008-07-31  Sergey Rybin  <rybin@adacore.com>
1406
1407         * gnat_ugn.texi: Change the description of the
1408         Overly_Nested_Control_Structures: now the rule always requires a
1409         positive parameter for '+R' option
1410
1411 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1412
1413         * g-pehage.adb: Minor reformatting
1414
1415 2008-07-31  Pascal Obry  <obry@adacore.com>
1416
1417         * s-finimp.ads: Minor reformatting.
1418
1419 2008-07-31  Vincent Celier  <celier@adacore.com>
1420
1421         * s-regexp.ads: Minor comment fix
1422
1423 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1424
1425         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
1426         so that we can compile this file successfully with -gnatc.
1427
1428 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1429
1430         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
1431         of the type when looking for stream subprograms for type String,
1432         Wide_String and Wide_Wide_String.
1433         
1434         * s-ststop.adb: Change the initialization expression of constant
1435         Use_Block_IO.
1436
1437 2008-07-31  Geert Bosch  <bosch@adacore.com>
1438
1439         * arit64.c:
1440         New file implementing __gnat_mulv64 signed integer multiplication with
1441         overflow checking
1442
1443         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
1444
1445         * gcc-interface/gigi.h:
1446         (standard_types): Add ADT_mulv64_decl
1447         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
1448
1449         * gcc-interface/utils.c:
1450         (init_gigi_decls): Add initialization of mulv64_decl
1451
1452         * gcc-interface/trans.c:
1453         (build_unary_op_trapv): New function
1454         (build_binary_op_trapv): New function
1455         (gnat_to_gnu): Use the above functions instead of
1456         build_{unary,binary}_op
1457
1458         * gcc-interface/Makefile.in
1459         (LIBGNAT_SRCS): Add arit64.c
1460         (LIBGNAT_OBJS): Add arit64.o
1461
1462 2008-07-31  Vincent Celier  <celier@adacore.com>
1463
1464         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
1465         Linker'Default_Switches are declared. Warn if they are declared.
1466
1467 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1468
1469         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
1470         Insert_Actions to place the pointer declaration in the code, rather
1471         than Insert_Before_And_Analyze, so that insertions of temporaries are
1472         kept in the proper order when transient scopes are present.
1473
1474
1475 2008-07-31  Robert Dewar  <dewar@adacore.com>
1476
1477         * einfo.adb (Spec_PPC): Now defined for generic subprograms
1478         
1479         * einfo.ads (Spec_PPC): Now defined for generic subprograms
1480         
1481         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
1482         subprogram case
1483
1484 2008-07-31  Vincent Celier  <celier@adacore.com>
1485
1486         * s-os_lib.adb: Minor comment fix
1487
1488 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1489
1490         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
1491         transfer pre/postconditions from generic copy to original tree, so that
1492         they will appear in each instance.
1493         (Process_PPCs): Do not transform postconditions into a procedure in a
1494         generic context, to prevent double expansion of check pragmas.
1495         
1496         * sem_attr.adb: In an instance, the prefix of the 'result attribute
1497         can be the renaming of the
1498         current instance, so check validity of the name accordingly.
1499
1500 2008-07-31  Robert Dewar  <dewar@adacore.com>
1501
1502         * mlib-utl.ads: Minor reformatting
1503
1504 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1505
1506         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
1507         from context. This attribute must be usable in Ada95 mode.
1508         The attribute can appear in the body of a function marked
1509         Inline_Always, but in this case the postocondition is not enforced.
1510         
1511         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
1512         of an inlined call pre- and postconditions are legal
1513
1514 2008-07-31  Vincent Celier  <celier@adacore.com>
1515
1516         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
1517         were for gprmake only
1518
1519 2008-07-31  Robert Dewar  <dewar@adacore.com>
1520
1521         * gnat_ugn.texi: Update -gnatN documentation.
1522
1523         * gnat_rm.texi: Add note about pre/postcondition
1524         pragmas not checked in conjunction with front-end inlining.
1525
1526 2008-07-31  Robert Dewar  <dewar@adacore.com>
1527
1528         * g-pehage.adb, g-pehage.ads: Minor reformatting
1529
1530 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1531
1532         * mlib-utl.ads, prj-makr.ads: Add comments.
1533
1534 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1535
1536         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) 
1537         [WINDOWS]: Add s-winext.o.
1538
1539 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
1540
1541         PR ada/36554
1542         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
1543         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
1544         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
1545         Set precision to 1 for subtype of BOOLEAN_TYPE.
1546         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
1547         (make_type_from_size): Deal with BOOLEAN_TYPE.
1548         * gcc-interface/misc.c (gnat_print_type): Likewise.
1549         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
1550         Set boolean_type_node as its translation in the table, as well
1551         as boolean_false_node for False and boolean_true_node for True.
1552         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
1553         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
1554         (create_param_decl): Deal with BOOLEAN_TYPE.
1555         (build_vms_descriptor): Likewise.
1556         (build_vms_descriptor64): Likewise.
1557         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
1558
1559 2008-07-30  Robert Dewar  <dewar@adacore.com>
1560
1561         * exp_ch9.adb: Minor reformatting
1562
1563         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
1564         if no primitive operation is found.
1565
1566         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
1567
1568         * sem_ch8.adb: Minor reformatting
1569
1570 2008-07-30  Laurent Pautet  <pautet@adacore.com>
1571
1572         * g-pehage.adb:
1573         Remove a limitation on the length of the words handled by the minimal
1574         perfect hash function generator.
1575
1576         * g-pehage.ads:
1577         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
1578         Fix some typos.
1579
1580 2008-07-30  Robert Dewar  <dewar@adacore.com>
1581
1582         * gnatlink.adb: Minor reformatting
1583
1584 2008-07-30  Thomas Quinot  <quinot@adacore.com>
1585
1586         * rtsfind.adb (Check_RPC): Check version consistency even when not
1587         generating RCI stubs. Provide more detailed error message in case of
1588         mismatch.
1589
1590 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
1591
1592         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
1593         as a actual in an instance, check for a missing attribute to prevent
1594         program_error on an illegal program.
1595         
1596         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
1597         error if primitive is not found, so that exception can be handled
1598         elsewhere on illegal programs.
1599
1600 2008-07-30  Robert Dewar  <dewar@adacore.com>
1601
1602         * uintp.adb (UI_GCD): Fix potential overflow
1603
1604 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
1605
1606         * einfo.adb: Flag245 is now used.
1607         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
1608         check to include functions.
1609         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1610         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
1611         include functions.
1612         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
1613         to the list of displayed flags.
1614
1615         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
1616         Wrapped_Entity. These two flags are now present in functions.
1617         New flag Is_Private_Primitive.
1618         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1619
1620         * exp_ch9.adb:
1621         (Build_Wrapper_Bodies): New subprogram.
1622         (Build_Wrapper_Body): The spec and body have been moved to in
1623         Build_Wrapper_ Bodies. Code cleanup.
1624         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
1625         Wrappers are now generated for primitives declared between the private
1626         and full view of a concurrent type that implements an interface.
1627         (Build_Wrapper_Specs): New subprogram.
1628         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
1629         creation mechanism with a call to Build_Wrapper_Bodies.
1630         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
1631         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
1632         (Expand_N_Task_Body): Replace the wrapper body creation
1633         mechanism with a call to Build_Wrapper_Bodies.
1634         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
1635         creation mechanism with a call to Build_Wrapper_Specs.
1636         (Is_Private_Primitive_Subprogram): New subprogram.
1637         (Overriding_Possible): Code cleanup.
1638         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
1639
1640         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
1641
1642         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
1643         (Process_Full_View): Build wrapper specs for all primitives
1644         that belong to a private view completed by a concurrent type
1645         implementing an interface.
1646         
1647         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
1648         is a primitive of a
1649         concurrent type with a private view that implements an interface, try to
1650         find the proper spec.
1651         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
1652         primitive if the type of its first parameter is a non-generic tagged
1653         private type.
1654         (Analyze_Subprogram_Specification): Code reformatting.
1655         (Disambiguate_Spec): New routine.
1656         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
1657         (Is_Private_Concurrent_Primitive): New routine.
1658
1659         * sem_ch6.ads:
1660         (Find_Corresponding_Spec): Add a formal to control the output of errors.
1661
1662 2008-07-30  Doug Rupp  <rupp@adacore.com>
1663
1664         * gigi.h (build_vms_descriptor64): New function prototype.
1665         (fill_vms_descriptor): Modified function prototype.
1666
1667         * utils.c (build_vms_descriptor64): New function.
1668
1669         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
1670
1671         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
1672         argument.
1673
1674         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
1675         64bit and 32bit descriptor and save the 64bit version as an alternate
1676         TREE_TYPE in the parameter.
1677         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
1678         thin pointer.
1679
1680         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
1681
1682 2008-07-30  Robert Dewar  <dewar@adacore.com>
1683
1684         * make.adb: Minor reformatting
1685
1686         * mlib-utl.adb: Minor reformatting
1687
1688         * osint.ads: Minor reformatting
1689
1690 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
1691
1692         * adaint.c
1693         (__gnat_file_exists): Do not use __gnat_stat for RTX.
1694         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
1695         avoid the use of this symbol from libgcc.a in RTX kernel mode.
1696
1697         * cio.c
1698         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
1699         the function RtPrintf for console output.
1700         
1701         * argv.c Do not use the environ variable for RTX.
1702         
1703         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
1704         been moved before the call to Osint.Add_Default_Search_Dirs in order
1705         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
1706         from the appropriate run time.
1707         
1708         * targparm.ads
1709         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
1710         target is a RTSS module for RTX.
1711         
1712         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
1713         RTX_RTSS_Kernel_Module
1714         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
1715
1716         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
1717         exception handling mechanism for Windows and RTX in Win32 mode, but
1718         not for RTX in kernel mode (RTSS).
1719         (LIBGNAT_SRCS): Remove ada.h
1720
1721 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
1722
1723         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
1724         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1725         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
1726         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
1727         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
1728         ALL_ADA_CFLAGS): Remove.
1729         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
1730         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1731         (GCC_CFLAGS): Remove X_CFLAGS.
1732         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
1733         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
1734         (ADA_CFLAGS): Substitute.
1735
1736 2008-07-30  Laurent Guerby  <laurent@guerby.net>
1737
1738         PR ada/5911
1739         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
1740         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
1741         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
1742         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
1743         by stamp-gnatlib2-rts.
1744         
1745 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1746
1747         PR documentation/15479
1748         * gnat-style.texi: Remove AdaCore copyright statement and GPL
1749         statement for GNAT.  Add @copying stanza, use it.  Update to
1750         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
1751         title as Front-Cover Text.
1752         * gnat_rm.texi: Likewise.
1753         * gnat_ugn.texi: Likewise.
1754
1755 2008-07-29  Jan Hubicka  <jh@suse.cz>
1756
1757         * trans.c (process_inlined_subprograms): Remove tree_really_inline
1758         check.
1759
1760 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
1761
1762         * gcc-interface: New directory.
1763
1764         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
1765         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
1766         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
1767         to gcc-interface subdirectory.
1768
1769 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1770
1771         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
1772
1773 2008-07-28  Jan Hubicka  <jh@suse.cz>
1774
1775         * misc.c (gnat_post_options): Do not set flag_no_inline.
1776
1777 2008-07-28  Richard Guenther  <rguenther@suse.de>
1778
1779         Merge from gimple-tuples-branch.
1780
1781         2008-07-22  Olivier Hainque  <hainque@adacore.com>
1782
1783         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
1784         this is called for an elab proc to be discarded if empty.
1785         * utils.c (end_subprog_body): Honor ELAB_P.
1786         (build_function_stub): Adjust call to end_subprog_body.
1787         * trans.c (Subprogram_Body_to_gnu): Likewise.
1788         (gigi): Reorganize processing of elab procs to prevent
1789         gimplifying twice, using the new end_subprog_body argument.
1790
1791         2008-07-19  Richard Guenther  <rguenther@suse.de>
1792
1793         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
1794         (utils.o): Likewise.
1795         * trans.c: Include tree-iterator.h.
1796         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
1797         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
1798         (set_expr_location_from_node): Likewise.
1799         (gigi): Tuplify.
1800         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
1801         of GENERIC_NEXT.
1802         * utils.c: Include tree-iterator.h.
1803         * gigi.h (gnat_gimplify_expr): Adjust prototype.
1804
1805         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
1806
1807         * trans.c: Include gimple.h instead of tree-gimple.h.
1808         * utils.c: Same.
1809
1810         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
1811
1812         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
1813
1814 2008-07-25  Jan Hubicka  <jh@suse.cz>
1815
1816         * utils.c (end_subprog_body): Remove inline trees check.
1817         * misc.c (gnat_post_options): Do not set flag_inline_trees.
1818
1819 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1820
1821         * raise-gcc.c: Move tsystem.h before tm.h.
1822
1823 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
1824
1825         * gnathtml.pl: New file.
1826
1827 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1828
1829         * targtyps.c (get_target_default_allocator_alignment): Use
1830         MALLOC_ABI_ALIGNMENT.
1831
1832 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1833
1834         * adaint.c (__MINGW32__ section): Include ctype.h and define
1835         a fallback ISALPHA if IN_RTS.
1836         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
1837
1838 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1839
1840         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
1841         argument, to apply to references in addition to definitions.  Prevent
1842         setting TREE_STATIC on externals.
1843         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1844
1845 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1846
1847         PR documentation/15479
1848         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1849         Replace backets around optional parameters with @ovar
1850         where possible, use @r{[}, @r{]} otherwise.
1851         Replace some @r, @i, and @emph with @var where appropriate.
1852
1853 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1854
1855         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1856
1857 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1858
1859         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1860         -Wc++-compat warnings.
1861         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1862         __gnat_locate_exec_on_path): Likewise.
1863         * decl.c (annotate_value): Likewise.
1864         * misc.c (gnat_handle_option): Likewise.
1865         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1866         post_error_ne_tree): Likewise.
1867
1868 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1869
1870         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1871         version of its type, attempt to first convert its elements.
1872
1873 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
1874
1875         * Makefile.in: Fix *86 kfreebsd target specific pairs.
1876
1877 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
1878
1879         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1880
1881 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1882
1883         * utils2.c (known_alignment): Derive the alignment from pointed-to
1884         types only if it is otherwise unknown.
1885         <INTEGER_CST>: Tidy.
1886         <MULT_EXPR>: Likewise.
1887         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1888         that of the base.
1889
1890 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1891
1892         PR ada/36573
1893         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1894
1895 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1896
1897         * gnat_rm.texi (Implementation Defined Characteristics)
1898         (Standard Library Routines): Use @smallexample for indented
1899         text.  Drop Indentation outside examples.
1900         * gnat_ugn.texi: Likewise.
1901
1902 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1903
1904         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1905         if undefined.
1906         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1907         realignment with force_align_arg_pointer attribute on foreign
1908         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1909         
1910 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1911
1912         * utils.c (rest_of_record_type_compilation): When computing
1913         encodings for the components of a variable size type, early
1914         strip conversions on the current position expression to make
1915         sure it's shape is visible.  Use remove_conversions for this
1916         purpose.
1917
1918 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1919
1920         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1921         constrained subtype of a discriminated type, discard the fields that
1922         are beyond its limits according to its size.
1923
1924 2008-06-10  Olivier Hainque  <hainque@adacore.com>
1925
1926         * utils.c (create_subprog_decl): If this is for the 'main' entry
1927         point according to the asm name, redirect main_identifier_node.
1928
1929 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1930
1931         * decl.c (components_to_record): Adjust the packedness for the
1932         qualified union as well.
1933
1934 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
1935
1936         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1937         checks non fatal.
1938
1939 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
1940
1941         * sem_res.adb (Large_Storage_Type): A type is large if it
1942         requires as many bits as Positive to store its values and its
1943         bounds are known at compile time.
1944         * sem_ch13.adb (Minimum_Size): Note that this function returns
1945         0 if the size is not known at compile time.
1946
1947 2008-06-06  Nicolas Setton  <setton@adacore.com>
1948             Olivier Hainque  <hainque@adacore.com>
1949
1950         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1951         attribute, parallel descriptive type attached to another
1952         type for debug info generation purposes.
1953         * utils.c (add_parallel_type): New function, register
1954         parallel type to be attached to a type.
1955         (get_parallel_type): New function, fetch a registered
1956         parallel type, if any.
1957         (rest_of_record_type_compilation): Register the parallel
1958         type we make for variable size records.
1959         * gigi.h (add_parallel_type, get_parallel_type): Declare.
1960         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1961         parallel debug types we make.
1962         * trans.c (extract_encoding, decode_name): New functions.
1963         (gigi): If the DWARF attribute extensions are available, setup
1964         to use them.
1965         * lang.opt: Register language specific processing request
1966         for -gdwarf+.
1967         * misc.c (gnat_dwarf_extensions): New global variable. How much
1968         do we want of our DWARF extensions. 0 by default.
1969         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1970         (gnat_post_options): Map gnat_dwarf_extensions to the
1971         commonuse_gnu_debug_info_extensions for later processing.
1972         
1973 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
1974
1975         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1976
1977 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1978
1979         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1980         * gnat_ugn.texi (Style Checking)
1981         (Adding the Results of Compiler Checks to gnatcheck Output)
1982         (Example of Binder Output File): Fix typos.
1983         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1984         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1985         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1986         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1987         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1988         sinfo.ads, utils.c: Fix typos in comments.
1989         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1990
1991 2008-05-29  Thomas Quinot  <quinot@adacore.com>
1992
1993         * sem_eval.adb: Minor reformatting
1994
1995 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
1996
1997         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1998         is abstract, do not apply abstractness check on subprogram if this is
1999         a renaming declaration.
2000
2001 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
2002
2003         PR ada/864
2004         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2005         allow recognition of program suffix in addition to prefix.
2006         
2007         * gnatchop.adb (Locate_Executable): Add support for prefix.
2008         
2009         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2010         mlib-utl.adb: Adjust calls to Program_Name.
2011
2012 2008-05-29  Robert Dewar  <dewar@adacore.com>
2013
2014         * sem_ch3.adb: Minor reformatting
2015         * sem_prag.adb: Minor reformatting
2016         * sem_res.adb: Minor reformatting
2017         * sinput-p.ads: Minor reformatting
2018
2019 2008-05-29  Javier Miranda  <miranda@adacore.com>
2020
2021         * sem_util.adb:
2022         (Abstract_Interface_List): Add missing support for full type-declaration
2023         associated with synchronized types.
2024
2025 2008-05-29  Robert Dewar  <dewar@adacore.com>
2026
2027         * sem_eval.adb (Is_Same_Value): Take care of several more cases
2028
2029 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2030
2031         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2032         access type, wrap the expression in a conversion to force an
2033         accessibility check.
2034
2035         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2036         accessibility checks even when expansion is disabled in order to
2037         generate messages in the presence of previous errors or in
2038         semantics-only mode.
2039
2040 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
2041
2042         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2043         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2044
2045 2008-05-28  Vincent Celier  <celier@adacore.com>
2046
2047         PR ada/34446
2048         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2049         preprocessing expressions
2050
2051 2008-05-28  Vincent Celier  <celier@adacore.com>
2052
2053         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2054         for preprocessing
2055         
2056         * sinput-p.ads: Minor comment update and reformatting
2057
2058 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2059
2060         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2061         type has a deeper level than any master only when it is the type of an
2062         access parameter.
2063
2064 2008-05-28  Javier Miranda  <miranda@adacore.com>
2065
2066         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2067
2068 2008-05-28  Javier Miranda  <miranda@adacore.com>
2069
2070         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2071         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2072         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2073         Add code that was previously located in
2074         Find_Overridden_Synchronized_Primitive because it is only used here.
2075
2076 2008-05-28  Sergey Rybin  <rybin@adacore.com>
2077
2078         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2079         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2080
2081 2008-05-28  Robert Dewar  <dewar@adacore.com>
2082
2083         * restrict.ads:
2084         Add missing restrictions, and properly label all GNAT defined ones
2085         
2086         * rtsfind.ads:
2087         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2088         Add entry for Ada.Task_Termination.Set_Specific_Handler
2089         Add entry for Ada.Task_Termination.Specific_Handler
2090         
2091         * s-rident.ads:
2092         Add missing restrictions and properly mark all gnat defined ones
2093         
2094         * sem_ch3.adb:
2095         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2096         
2097         * sem_res.adb:
2098         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2099
2100         * gnat_rm.texi: Add missing restrictions, and properly label all
2101         GNAT defined ones
2102
2103 2008-05-28  Robert Dewar  <dewar@adacore.com>
2104
2105         * restrict.adb:
2106         (Check_Restriction): violation of restriction No_Finalization is
2107         treated as a serious error to stop expansion
2108
2109 2008-05-28  Robert Dewar  <dewar@adacore.com>
2110
2111         * exp_util.adb: Minor reformatting
2112         * exp_util.ads: Minor reformatting.
2113
2114 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
2115
2116         * Make-lang.in: Remove gprmake.
2117
2118         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2119
2120 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
2121
2122         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2123         improper progenitor names, and avoid cascaded errors.
2124
2125 2008-05-28  Robert Dewar  <dewar@adacore.com>
2126
2127         * gnat_rm.texi: Add note on Old giving warning when applied to constant
2128
2129         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2130         a constant
2131
2132 2008-05-28  Robert Dewar  <dewar@adacore.com>
2133
2134         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2135         size
2136
2137 2008-05-28  Robert Dewar  <dewar@adacore.com>
2138
2139         * exp_ch5.adb:
2140         (Expand_Simple_Function_Return): Copy unaligned result into temporary
2141
2142 2008-05-28  Javier Miranda  <miranda@adacore.com>
2143
2144         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2145         for user-defined predefined primitives.
2146         
2147         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2148         (Find_Overridden_Synchronized_Primitive): Ditto.
2149
2150         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2151
2152 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2153
2154         * a-ststio.adb, s-direio.adb:
2155         Further code clean up of previous change.
2156         Update comments.
2157
2158 2008-05-27  Vincent Celier  <celier@adacore.com>
2159
2160         * prj-nmsc.adb: Minor reformatting
2161
2162 2008-05-27  Bob Duff  <duff@adacore.com>
2163
2164         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2165         untagged private type with a tagged full type, where the full type has
2166         a self reference, create the corresponding class-wide type early, in
2167         case the self reference is "access T'Class".
2168
2169 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2170
2171         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2172         tasks and context is an object declaration. create master entity before
2173         expansion.
2174
2175 2008-05-27  Robert Dewar  <dewar@adacore.com>
2176
2177         * mlib-prj.adb: Minor reformatting
2178
2179         * prj-part.adb: Minor reformatting
2180
2181         * prj.ads: Minor reformatting
2182
2183         * exp_ch3.adb: Minor reformatting.
2184
2185         * sem_ch3.ads: Minor reformatting
2186
2187         * sem_eval.adb: Minor reformatting
2188
2189 2008-05-27  Vincent Celier  <celier@adacore.com>
2190
2191         * gnatcmd.adb:
2192         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2193
2194 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2195
2196         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2197         tasks, create an activation chain now, before the expansion into
2198         assignments and build-in-place calls that require the presence of an
2199         activation chain.
2200         (Backend_Processing_Possible): If the component type is inherently
2201         limited, the aggregate must be expanded into individual built-in-place
2202         assignments.
2203
2204         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2205         determine whether an allocation extra parameter must be built, to
2206         handle case of a private type whose full type is a discriminated type
2207         with defaults.
2208
2209 2008-05-27  Bob Duff  <duff@adacore.com>
2210
2211         * gnat_rm.texi:
2212         Document the new behavior regarding trampolines.
2213
2214 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2215
2216         * a-direio.adb, a-sequio.adb: Replace address clause by
2217         unrestricted_access, simpler and compatible with .NET.
2218
2219 2008-05-27  Vincent Celier  <celier@adacore.com>
2220
2221         * prj-part.adb:
2222         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2223         a project file, so that symbolic links are not resolved.
2224
2225 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2226
2227         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2228         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2229         portable across GNAT targets, since this kind of address clause is not
2230         supported by VM back-ends (.NET/JGNAT).
2231
2232 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2233
2234         * bindgen.adb: Update comments.
2235         
2236         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2237
2238 2008-05-27  Vincent Celier  <celier@adacore.com>
2239
2240         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2241         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2242         mlib-tgt.adb, prj-env.adb, prj-env.ads:
2243         (Path_Information): New record type
2244         Use component of type Path_Information when there are two paths, one in
2245         canonical format and one in display format.
2246         Update the project manager to these new components.
2247
2248 2008-05-27  Robert Dewar  <dewar@adacore.com>
2249
2250         * makeutl.adb: Minor reformatting
2251         * prj-nmsc.adb: Minor reformatting
2252         * s-stausa.adb: Minor reformatting
2253         * s-stausa.ads: Minor reformatting
2254         * sem_ch6.adb: Minor reformatting
2255
2256 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2257
2258         * sem_res.adb: Minor comment fixes
2259
2260 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2261
2262         * makeutl.adb: Minor code reorganization
2263
2264         * exp_aggr.adb: Add ??? comment
2265         Fix typo
2266
2267         * exp_ch6.adb: Minor reformatting
2268
2269 2008-05-27  Quentin Ochem  <ochem@adacore.com>
2270
2271         * s-stausa.adb (Initialize): Updated result initialization, and
2272         initialization of environment stack.
2273         (Fill_Stack): Improved computation of the pattern zone, taking into
2274         account already filled at the calling point.
2275         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2276         Measure and Overflow_Guard.
2277         (Report_Result): Fixed computation of the result using new fields of
2278         Stack_Analyzer.
2279         
2280         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2281         params by more explicit Stack_Size / Max_Pattern_Size params.
2282         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2283         Added Stack_Used_When_Filling field.
2284         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2285         Min_Measure and Max_Measure fields.
2286         
2287         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
2288
2289 2008-05-27  Vincent Celier  <celier@adacore.com>
2290
2291         * prj-nmsc.adb:
2292         (Check_File): Make sure that a unit that replaces the same unit in a
2293          project being extended is properly processed.
2294
2295 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2296
2297         * sem_ch3.adb:
2298         (Get_Discr_Value): Remove obsolete code that failed to find the value
2299         of a discriminant for an inherited task component appearing in a type
2300         extension.
2301
2302 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2303
2304         (System.File_IO.{Close, Delete, Reset}):
2305         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2306         
2307         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
2308         Pass File parameter by reference.
2309
2310 2008-05-27  Vincent Celier  <celier@adacore.com>
2311
2312         * prj-nmsc.adb:
2313         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
2314         sources of the same project that have the same object file name.
2315         (Find_Explicit_Sources): Always remove a source exception that was not
2316         found.
2317
2318 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2319
2320         * sem_ch3.adb: Minor reformatting
2321
2322 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2323
2324         * sem_ch6.adb:
2325         (Is_Interface_Conformant): Handle properly a primitive operation that
2326         overrides an interface function with a controlling access result.
2327         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
2328         inherited and overriding operations, omit as well the conformance check
2329         on result types, to prevent spurious errors.
2330
2331 2008-05-27  Vincent Celier  <celier@adacore.com>
2332
2333         * makeutl.ads, makeutl.adb:
2334         (Set_Location): New procedure
2335         (Get_Location): New function
2336         (Update_Main): New procedure
2337
2338 2008-05-27  Vincent Celier  <celier@adacore.com>
2339
2340         * prj-nmsc.adb:
2341         (Check_Library): Allow standard project to be extended as a static
2342         library project.
2343         (Get_Mains): Do not inherit attribute Main in an extending library
2344         project.
2345
2346 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2347
2348         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2349         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
2350         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
2351         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
2352         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
2353         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
2354         * system-mingw.ads (Always_Compatible_Rep): Likewise.
2355         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
2356         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
2357         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
2358         
2359 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2360
2361         * sem_attr.adb: add guard to previous patch.
2362
2363 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2364
2365         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
2366         a synchronized tagged type, do not attempt to build dispatch table for
2367         full view. The table is built for the corresponding record type, which
2368         has its own declaration.
2369
2370 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
2371
2372         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
2373         to the known type entity E, rather than setting it to Any_Type. Fixes
2374         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
2375         for objects whose type had an illegal constraint.
2376
2377 2008-05-27  Vincent Celier  <celier@adacore.com>
2378
2379         * gnat_ugn.texi:
2380         Add succinct documentation for attribute Excluded_Source_List_File
2381
2382 2008-05-27  Vincent Celier  <celier@adacore.com>
2383
2384         * prj-attr.adb: Add new project level attribute Map_File_Option
2385         
2386         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
2387         
2388         * prj.ads: Minor reformatting and comment update
2389         (Project_Configuration): New component Map_File_Option
2390         
2391         * snames.adb: New standard name Map_File_Option
2392         
2393         * snames.ads: New standard name Map_File_Option
2394
2395 2008-05-27  Vincent Celier  <celier@adacore.com>
2396
2397         * xsnames.adb: Remove unused variable Oname
2398
2399 2008-05-27  Doug Rupp  <rupp@adacore.com>
2400
2401         * exp_ch6.adb:
2402         (Expand_N_Function_Call): Fix comments. Minor reformatting.
2403
2404         * exp_vfpt.ads:
2405         (Expand_Vax_Foreign_Return): Fix comments.
2406
2407 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2408
2409         * exp_dist.adb: Minor reformating
2410
2411 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
2412
2413         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
2414         No_Default_Initialization, which is now delayed until the freeze point
2415         of the object. Add a comment about deferral of the check.
2416         
2417         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
2418         on objects is moved here.
2419
2420 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2421
2422         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
2423         (Compare_Array_S16): Adjust for above change.
2424         * s-casi32.adb (Uword): Likewise.
2425         (Compare_Array_S32): Likewise.
2426         * s-casi64.adb (Uword): Likewise.
2427         (Compare_Array_S64): Likewise.
2428         * s-caun16.adb (Uhalf): Likewise.
2429         (Compare_Array_U16): Likewise.
2430         * s-caun32.adb (Uword): Likewise.
2431         (Compare_Array_U32): Likewise.
2432         * s-caun64.adb (Uword): Likewise.
2433         (Compare_Array_U64): Likewise.
2434         
2435 2008-05-26  Robert Dewar  <dewar@adacore.com>
2436
2437         * exp_ch6.adb: Add ??? comment for previous change
2438
2439         * exp_vfpt.adb: Minor reformatting
2440
2441         * exp_vfpt.ads: Add ??? comment for last change
2442
2443         * sem_attr.adb: Add some ??? comments for previous change
2444
2445         * s-vaflop.ads: Add comments for previous change
2446
2447 2008-05-26  Doug Rupp  <rupp@adacore.com>
2448
2449         * s-vaflop-vms-alpha.adb:
2450         Remove System.IO use clause, to prevent spurious ambiguities when
2451         package is access through rtsfind.
2452
2453 2008-05-26  Sergey Rybin  <rybin@adacore.com>
2454
2455         * tree_io.ads (ASIS_Version_Number): Update because of the changes
2456         made in front-end
2457
2458 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2459
2460         * sem_attr.adb:
2461         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
2462         converted to S (A)'address only if A .. B is known to be a non-null
2463         range.
2464
2465 2008-05-26  Doug Rupp  <rupp@adacore.com>
2466
2467         * s-vaflop.adb:
2468         (Return_D, Return_F, Return_G): New functions.
2469
2470         * s-vaflop.ads:
2471         (Return_D, Return_F, Return_G): New functions.
2472
2473         * exp_vfpt.adb:
2474         (Expand_Vax_Foreign_Return): New procedure
2475
2476         * exp_vfpt.ads:
2477         (Expand_Vax_Foreign_Return): New procedure
2478
2479         * rtsfind.ads:
2480         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
2481         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
2482
2483         * exp_ch6.adb:
2484         Import Exp_Vfpt
2485         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
2486
2487         * s-vaflop-vms-alpha.adb:
2488         (Return_D, Return_F, Return_G): New functions.
2489
2490 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
2491
2492         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
2493         init proc entity when there is actual default initialization associated
2494         with the component type, to avoid spurious errors on objects of scalar
2495         array types that are marked Is_Public when No_Default_Initialization
2496         applies.
2497
2498 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2499
2500         * rtsfind.ads, rtsfind.adb:
2501         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
2502         (Check_RPC): Support per-PCS-kind API versioning.
2503         
2504         exp_dist.ads, exp_dist.adb:
2505         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
2506         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
2507          library function Get_RACW.
2508         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
2509         library function Get_Reference.
2510         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
2511         through an intermediate Any.
2512         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
2513         going through an intermediate Any.
2514         
2515         * sem_dist.adb: Minor reformatting.
2516
2517 2008-05-26  Javier Miranda  <miranda@adacore.com>
2518
2519         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
2520         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2521         (Is_Internal): Adding documentation on internal entities that have
2522         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
2523
2524         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
2525         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2526         Added assertion to force entities with this attribute to have
2527         attribute Is_Internal set to True.
2528         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
2529
2530         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
2531         renamed as Derive_Progenitor_Subprograms. In addition, its code is
2532         a new implementation.
2533         (Add_Interface_Tag_Components): Remove special management of
2534         synchronized interfaces.
2535         (Analyze_Interface_Declaration): Minor reformating
2536         (Build_Derived_Record_Type): Minor reformating
2537         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
2538         predefined primitive inherited from interface type because the body of
2539         internally generated predefined primitives of tagged types are generated
2540         later by Freeze_Type
2541         (Derive_Subprogram): Avoid generating an internal name if the parent
2542         subprogram overrides an interface primitive.
2543         (Derive_Subprograms): New implementation that keeps separate the
2544         management of tagged types not implementing interfaces, from tagged
2545         types that implement interfaces.
2546         (Is_Progenitor): New implementation.
2547         (Process_Full_View): Add documentation
2548         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
2549         by call to Derive_Progenitor_Subprograms.
2550
2551         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
2552         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2553         Skip_Controlling_Formals.
2554
2555         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
2556         (Check_Conventions): New implementation. Remove local subprogram
2557         Skip_Check. Remove formal Search_From of routine Check_Convention.
2558         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2559         Skip_Controlling_Formals.
2560         (New_Overloaded_Entity): Enable addition of predefined dispatching
2561         operations.
2562
2563         * sem_disp.ads
2564         (Find_Primitive_Covering_Interface): New subprogram.
2565
2566         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
2567         the task body procedure as a primitive of the corresponding tagged
2568         type.
2569         (Check_Operation_From_Private_Type): Avoid adding twice an entity
2570         to the list of primitives.
2571         (Find_Primitive_Covering_Interface): New subprogram.
2572         (Override_Dispatching_Operation): Add documentation.
2573
2574         * sem_type.adb (Covers): Minor reformatings
2575
2576         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
2577         Collect_Interfaces.
2578         Rename formal.
2579         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
2580         (Implements_Interface): New subprogram.
2581         (Is_Parent): Removed.
2582         (Primitive_Names_Match): New subprogram.
2583         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2584         (Ultimate_Alias): New subprogram.
2585
2586         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
2587         Collect_Interfaces.
2588         Remove special management for synchronized types. Rename formal. Remove
2589         internal subprograms Interface_Present_In_Parent and Add_Interface.
2590         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
2591         on non-record types by code to return false in such case.
2592         (Implements_Interface): New subprogram.
2593         (Is_Parent): Removed. No special management is now required for
2594         synchronized types covering interfaces.
2595         (Primitive_Names_Match): New subprogram.
2596         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2597         (Ultimate_Alias): New subprogram.
2598
2599         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
2600         Add internal entities associated with secondary dispatch tables to
2601         the list of tagged type primitives that are not interfaces.
2602         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
2603         (Make_Predefined_Primitive_Specs): Code reorganization to improve
2604         the management of predefined equality operator. In addition, if
2605         the type has an equality function corresponding with a primitive
2606         defined in an interface type, the inherited equality is abstract
2607         as well, and no body can be created for it.
2608
2609         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
2610         exp_util to exp_disp.
2611         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
2612         an entity corresponds with one of the predefined primitives required
2613         to implement interfaces.
2614         Update copyright notice.
2615
2616         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
2617         final check on abstract subprograms all the primitives associated with
2618         interface primitives because they must be visible in the public and
2619         private part.
2620         (Write_DT): Use Find_Dispatching_Type to locate the name of the
2621         interface type. This allows the use of this routine, for debugging
2622         purposes, when the tagged type is not fully decorated.
2623         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
2624         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
2625         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
2626         entity corresponds with one of the predefined primitives required to
2627         implement interfaces.
2628
2629         * exp_util.adb (Find_Interface_ADT): New implementation
2630         (Find_Interface): Removed.
2631
2632         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
2633         list of interfaces associated with nodes
2634         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
2635
2636 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2637
2638         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
2639         condition for assignment to temporary.
2640
2641 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2642
2643         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
2644         checks on the upper bound if the index type is a modular type, to
2645         prevent wrap-around computations when size is close to upper bound of
2646         type.
2647
2648 2008-05-26  Robert Dewar  <dewar@adacore.com>
2649
2650         * sem_ch3.adb: Minor reformatting
2651
2652 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2653
2654         * sem_ch12.adb (Remove_Parent): Use specification of instance
2655         to retrieve generic parent,
2656         to handle properly the case where the instance is a child unit.
2657         Add guard to handle properly wrapper packages.
2658         Minor reformatting
2659
2660 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2661
2662         * sinfo.ads: Minor reformatting
2663
2664 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2665
2666         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
2667         Generate a tag check when the result subtype of a function, defined by
2668         an access definition, designates a specific tagged type.
2669         (Make_Tag_Check): New routine.
2670
2671 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
2672
2673         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
2674
2675 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2676
2677         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
2678         (builtin_decl_for): Likewise.
2679         * trans.c (gigi): Likewise.
2680         * utils.c (def_builtin_1): Fix formatting.
2681
2682 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2683
2684         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
2685         Create the statements which map a string name to protected or task
2686         entry indix.
2687
2688         * exp_ch9.adb: Add with and use clause for Stringt.
2689         Minor code reformatting.
2690         (Build_Entry_Names): New routine.
2691         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
2692         for flag Build_Entry_Names which controls the allocation of the data
2693         structure for the string names of entries.
2694
2695         * exp_ch9.ads (Build_Entry_Names): New subprogram.
2696
2697         * exp_util.adb (Entry_Names_OK): New function.
2698
2699         * exp_util.ads (Entry_Names_OK): New function.
2700
2701         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
2702         enumerations RE_Id and RE_Unit_Table.
2703
2704         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
2705         (Free_Entry_Names_Array): New routine.
2706
2707         * s-taskin.ads: Comment reformatting.
2708         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
2709         Add component Entry_Names to record Ada_Task_Control_Block.
2710         (Free_Entry_Names_Array): New routine.
2711
2712         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
2713         dynamically allocate an array
2714         of string pointers. This structure holds string entry names.
2715         (Free_Entry_Names): New routine.
2716         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
2717         (Set_Entry_Names): New routine.
2718
2719         * s-tassta.ads:
2720         (Create_Task): Add formal Build_Entry_Names. The flag is used to
2721         control the allocation of the data structure which stores entry names.
2722         (Set_Entry_Name): New routine.
2723
2724         * s-tpoben.adb:
2725         Add with and use clause for Ada.Unchecked_Conversion.
2726         (Finalize): Deallocate the entry names array.
2727         (Free_Entry_Names): New routine.
2728         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
2729         create an array of string pointers to hold the entry names.
2730         (Set_Entry_Name): New routine.
2731
2732         * s-tpoben.ads:
2733         Add field Entry_Names to record Protection_Entries.
2734         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
2735         (Set_Entry_Name): New routine.
2736
2737 2008-05-26  Vincent Celier  <celier@adacore.com>
2738
2739         * prj-nmsc.adb:
2740         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
2741
2742         * prj.ads:
2743         (Project_Configuration): New component Shared_Lib_Driver
2744
2745 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2746
2747         * inline.adb:
2748         (Cleanup_Scopes): For a protected operation, transfer finalization list
2749         to protected body subprogram, to force cleanup actions when needed.
2750
2751 2008-05-26  Robert Dewar  <dewar@adacore.com>
2752
2753         * sem_cat.adb: Minor reformatting
2754
2755         * gnatname.adb: Minor reformatting
2756
2757         * osint.ads: Minor reformatting
2758
2759         * s-carun8.ads: Minor reformatting
2760
2761         * g-heasor.ads: Minor comment fix (unit is now pure)
2762
2763 2008-05-26  Robert Dewar  <dewar@adacore.com>
2764
2765         * exp_ch2.adb:
2766         (Expand_Current_Value): Properly type generated integer literal
2767
2768 2008-05-26  Sergey Rybin  <rybin@adacore.com>
2769
2770         * gnat_ugn.texi: Add description for the new gnatcheck rule -
2771         Separate_Numeric_Error_Handlers.
2772
2773 2008-05-26  Pascal Obry  <obry@adacore.com>
2774
2775         * sem_aggr.adb: Minor reformatting.
2776
2777 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
2778
2779         * s-osinte-aix.adb:
2780         (To_Target_Priority): Setting the time slice value to 0 or greater sets
2781         the scheduling policy to FIFO within priorities or round-robin
2782         respectively.
2783         Hence, the priority must be set in this case to the one selected by the
2784         user.
2785         
2786 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2787
2788         * sem_ch12.adb:
2789         (Remove_Parent): If the enclosing scope is an instance whose generic
2790         parent is declared within some parent scope of the just completed
2791         instance, make full views of the entities in that parent visible, when
2792         applicable.
2793         
2794 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
2795
2796         * mingw32.h (STD_MINGW): Set to true for target w64.
2797
2798 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2799
2800         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
2801         instead of TREE_STATIC on the ADDR_EXPR.
2802
2803 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2804
2805         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
2806         (Sloc_to_locus): Do not overwrite known GCC locations when translating
2807         GNAT standard locations.
2808
2809 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2810
2811         * gigi.h (mark_visited): Declare.
2812         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
2813         only the topmost node of expressions.
2814         (elaborate_expression_1): Look deeper for read-only variables.
2815         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
2816         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
2817         (mark_visited_r): New function.
2818
2819 2008-05-23  Vincent Celier  <celier@adacore.com>
2820
2821         * snames.adb: New standard name Excluded_Source_List_File.
2822
2823         * snames.ads: New standard name Excluded_Source_List_File.
2824
2825         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
2826
2827         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
2828         Get excluded sources from
2829         file indicated by attribute Excluded_Source_List_File, when present and
2830         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
2831
2832 2008-05-23  Robert Dewar  <dewar@adacore.com>
2833
2834         * exp_dist.adb: Minor reformatting
2835
2836 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
2837
2838         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
2839         slice, convert it to an indexed component, which is equivalent, more
2840         efficient, and usable even if the slice itself is not addressable.
2841
2842 2008-05-23  Olivier Hainque  <hainque@adacore.com>
2843
2844         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2845         convention also allows access to named compiler built-in subprograms
2846         such as the GCC __builtin family.
2847
2848 2008-05-23  Vincent Celier  <celier@adacore.com>
2849
2850         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2851         sep. If there are several possibilities, choose the one with the
2852         longer prefix.
2853
2854 2008-05-23  Vincent Celier  <celier@adacore.com>
2855
2856         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2857         back end switches when executable specified with --GCC= is same as
2858         default, even if there are additional options.
2859
2860         * gnat_ugn.texi:
2861         Document when the back end switches from the ALI file are taken into
2862         account when gnatlink is invoked with --GCC=
2863
2864 2008-05-23  Thomas Quinot  <quinot@adacore.com>
2865
2866         * s-os_lib.adb:
2867         (copy_File): Do not open destination file if source file is unreadable.
2868
2869 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2870
2871         * utils.c (handle_type_generic_attribute): Adjust to accept
2872         fixed arguments before an elipsis.
2873
2874 2008-05-21  Thomas Quinot  <quinot@adacore.com>
2875
2876         * g-sothco.ads, g-sothco.adb: New files.
2877
2878 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2879
2880         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2881
2882         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2883         Add missing "with" of Ada.Unchecked_Conversion
2884
2885         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
2886         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
2887         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
2888         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
2889         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
2890         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
2891         Move common code out of GNAT.Sockets.Thin implementations and into
2892         Thin_Common.
2893         New constant SIZEOF_fd_set
2894         New flag Has_Sockaddr_Len
2895         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2896
2897         * g-stsifd-sockets.adb
2898         (Create): Remove call to Set_Length; use Set_Family to set the family
2899         and (on appropriate platforms) length fields in struct sockaddr.
2900
2901         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
2902         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
2903         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2904         Move common code out of GNAT.Sockets.Thin implementations and into
2905         Thin_Common.
2906
2907         * g-socket.ads, g-socket.adb: 
2908         Move common code out of GNAT.Sockets.Thin implementations and into
2909         Thin_Common.
2910         (Connect_Socket, Accept_Socket): Provide new versions of these two
2911         routines that operate with a user specified timeout.
2912         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2913         this is now handled automatically by Set_Family on platforms that
2914         require it.
2915
2916         * gen-soccon.c: 
2917         Move common code out of GNAT.Sockets.Thin implementations and into
2918         Thin_Common.
2919         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2920         this constant to 0 (not -1) because we use it to initialize an
2921         unsigned_char value.
2922         Align values for numeric constants only.
2923         Handle the case of systems that do not support AF_INET6.
2924         New constant SIZEOF_fd_set
2925         New flag Has_Sockaddr_Len
2926         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2927
2928         * gsocket.h: New flag Has_Sockaddr_Len
2929         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2930
2931 2008-05-20  Santiago Uruena  <uruena@adacore.com>
2932
2933         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2934
2935 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
2936
2937         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2938         the underlying issue with malloc/free has been fixed. Remove associated
2939         comments.
2940         Minor reformatting.
2941         Related to PR ada/24533
2942
2943 2008-05-20  Robert Dewar  <dewar@adacore.com>
2944
2945         * ali.adb: Correct casing of ASCII.NUL
2946
2947         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2948         properly.
2949
2950 2008-05-20  Robert Dewar  <dewar@adacore.com>
2951             Gary Dismukes  <dismukes@adacore.com>
2952
2953         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2954         overflow if result converted to wider integer type.
2955         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2956         discriminated types when discriminant checks are suppressed.
2957
2958 2008-05-20  Vincent Celier  <celier@adacore.com>
2959
2960         * cstand.adb (Print_Standard): Issue the correct Size clause for type
2961         Wide_Wide_Character.
2962
2963 2008-05-20  Tristan Gingold  <gingold@adacore.com>
2964
2965         * decl.c: Do not emit a variable for a object that has an address
2966         representation clause whose value is known at compile time.
2967         When a variable has an address clause whose value is known at compile
2968         time, refer to this variable by using directly the address instead of
2969         dereferencing a pointer.
2970
2971 2008-05-20  Robert Dewar  <dewar@adacore.com>
2972
2973         PR ada/30740
2974         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2975         subtypes, always False for non-modular types.
2976         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2977         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2978         for Shared_Storage package.
2979         (Is_RACW_Stub_Type): New entity flag.
2980
2981         * exp_ch4.adb
2982         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2983         case where we have a modular type with a non-binary modules.
2984         Comments reformattings.
2985
2986         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2987         all types.
2988
2989 2008-05-20  Javier Miranda  <miranda@adacore.com>
2990
2991         * exp_aggr.adb
2992         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2993         tests did not covered the case in which the type of the aggregate has
2994         no progenitors but some its parents has progenitors.
2995
2996 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
2997             Hristian Kirtchev  <kirtchev@adacore.com>
2998
2999         * exp_ch3.adb
3000         (Expand_N_Object_Declaration): Correct the condition which triggers the
3001         generation of a call to Displace when initializing a class-wide object.
3002         (Build_Dcheck_Functions): Build discriminant-checking for null variants
3003         when Frontend_Layout_On_Target is true to ensure that they're available
3004         for calling when a record variant size function is built in Layout.
3005
3006 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3007
3008         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3009         procedure for a derived type retrieve the discriminant values from the
3010         parent using the corresponding discriminant.
3011         (Expand_N_Assignment_Statement): Skip generation of implicit
3012         if-statement associated with controlled types if we are
3013         compiling with restriction No_Finalization.
3014
3015 2008-05-20  Vincent Celier  <celier@adacore.com>
3016
3017         * prj.adb (Hash (Project_Id)): New function
3018         (Project_Empty): Add new component Interfaces_Defined
3019
3020         * prj.ads (Source_Data): New component Object_Linked
3021         (Language_Config): New components Object_Generated and Objects_Linked
3022         (Hash (Project_Id)): New function
3023         (Source_Data): New Boolean components In_Interfaces and
3024         Declared_In_Interfaces.
3025         (Project_Data): New Boolean component Interfaces_Defined
3026
3027         * prj-attr.adb: 
3028         New project level attribute Object_Generated and Objects_Linked
3029         Add new project level attribute Interfaces
3030
3031         * prj-dect.adb: Use functions Present and No throughout
3032         (Parse_Variable_Declaration): If a string type is specified as a simple
3033         name and is not found in the current project, look for it also in the
3034         ancestors of the project.
3035
3036         * prj-makr.adb: 
3037         Replace procedure Make with procedures Initialize, Process and Finalize
3038         to implement H414-023: process different directories with different
3039         patterns.
3040         Use functions Present and No throughout
3041
3042         * prj-makr.ads: 
3043         Replace procedure Make with procedures Initialize, Process and Finalize
3044
3045         * prj-nmsc.adb
3046         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3047         the language configuration.
3048         (Process_Project_Level_Array_Attributes): Process new attributes
3049         Object_Generated and Object_Linked.
3050         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3051         False, to indicate that the erreor/warning is a continuation.
3052         (Check): Call Report_No_Sources with Contnuation = True after the first
3053         call.
3054         (Error_Msg): Process successively contnuation character and warning
3055         character.
3056         (Find_Explicit_Sources): Check that all declared sources have been found
3057         (Check_File): Indicate in hash table Source_Names when a declared source
3058         is found.
3059         (Check_File): Set Other_Part when found
3060         (Find_Explicit_Sources): In multi language mode, check if all exceptions
3061         to the naming scheme have been found. For Ada, report an error if an
3062         exception has not been found. Otherwise, disregard the exception.
3063         (Check_Interfaces): New procedure
3064         (Add_Source): When Other_Part is defined, set mutual pointers in spec
3065         and body.
3066         (Check): In multi-language mode, call Check_Interfaces
3067         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3068         for an excluded source.
3069         (Remove_Source): A source replacing a source in the interfaces is also
3070         in the interfaces.
3071
3072         * prj-pars.adb: Use function Present
3073
3074         * prj-part.adb: Use functions Present and No throughout
3075         (Parse_Single_Project): Set the parent project for child projects
3076         (Create_Virtual_Extending_Project): Register project with no qualifier
3077         (Parse_Single_Project): Allow an abstract project to be extend several
3078         times. Do not allow an abstract project to extend a non abstract
3079         project.
3080
3081         * prj-pp.adb: Use functions Present and No throughout
3082         (Print): Take into account the full associative array attribute
3083         declarations.
3084
3085         * prj-proc.adb: Use functions Present and No throughout
3086         (Expression): Call itself with the same From_Project_Node for the
3087         default value of an external reference.
3088
3089         * prj-strt.adb: Use functions Present and No throughout
3090         (Parse_Variable_Reference): If a variable is specified as a simple name
3091         and is not found in the current project, look for it also in the
3092         ancestors of the project.
3093
3094         * prj-tree.ads, prj-tree.adb (Present): New function
3095         (No): New function
3096         Use functions Present and No throughout
3097         (Parent_Project_Of): New function
3098         (Set_Parent_Project_Of): New procedure
3099
3100         * snames.ads, snames.adb: 
3101         Add new standard names Object_Generated and Objects_Linked
3102
3103 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3104
3105         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3106         and the derived type are of the same kind.
3107         (Expand_Call): Generate type conversions for actuals of
3108         record or array types when the parent and the derived types differ in
3109         size and/or packed status.
3110
3111 2008-05-20  Javier Miranda  <miranda@adacore.com>
3112             Ed Schonberg  <schonberg@adacore.com>
3113
3114         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3115         generating dispatch tables of locally defined tagged types statically.
3116         Remove implicit if-statement that is no longer required.
3117         (Expand_Dispatching_Call): If this is a call to an instance of the
3118         generic dispatching constructor, the type of the first argument may be
3119         a subtype of Tag, so always use the base type to recognize this case.
3120
3121 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3122
3123         * exp_dist.adb
3124         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3125         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3126         assigning NULL into the result, to avoid a spurious warning.
3127         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3128         is not frozen.
3129         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3130         type.
3131         (Build_From_Any_Function, Build_To_Any_Function,
3132         Build_TypeCode_Function): For a type that has user-specified stream
3133         attributes, use an opaque sequence of octets as the representation.
3134
3135 2008-05-20  Kevin Pouget  <pouget@adacore.com>
3136
3137         * exp_smem.ads, exp_smem.adb: Construction of access and assign
3138         routines has been replaced by an instantiation of
3139         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3140         shared variable declaration.
3141         Calls to access and assign routines have been replaced by calls to
3142         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3143         instantiated package.
3144         
3145         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3146         It identifies the new generic package added in s-shasto.
3147
3148         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3149         is instantiated for each shared passive variable. It provides
3150         supporting procedures called upon each read or write access by the
3151         expanded code.
3152
3153         * sem_attr.adb:
3154         For this runtime unit (always compiled in GNAT mode), we allow
3155         stream attributes references for limited types for the case where
3156         shared passive objects are implemented using stream attributes,
3157         which is the default in GNAT's persistent storage implementation.
3158
3159 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3160
3161         * freeze.adb
3162         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3163         convention from its base type, do not set the type to that of integer,
3164         because it may inherit a size clause.
3165         Warn on a size clause with a size different
3166         from that of Integer, if the type has convention C.
3167
3168 2008-05-20  Vincent Celier  <celier@adacore.com>
3169
3170         * gnatname.adb
3171         (Scan_Args): Rewrite to take into account new switch --and to separate
3172         arguments into sections.
3173         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3174         section, then Finalize.
3175
3176 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3177
3178         * init.c: Enable stack probing on ppc-linux.
3179
3180         * tracebak.c: Add symbolic traceback for ppc-linux.
3181
3182         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3183
3184 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3185
3186         * Makefile.in
3187         (common-tools): New rule, to avoid parallel build failure on gnat tools.
3188         Reenable parallel builds on this Makefile.
3189
3190         * Make-lang.in: Update dependencies.
3191
3192 2008-05-20  Robert Dewar  <dewar@adacore.com>
3193
3194         * opt.ads (Treat_Restrictions_As_Warnings): New switch
3195
3196         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3197         Treat_Restrictions_As_Warnings.
3198
3199         * switch-c.adb: Recognize new switch -gnatr
3200
3201         * usage.adb: Add line for -gnatr
3202
3203 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3204
3205         * par-ch3.adb
3206         (P_Access_Definition): Change the error message when parsing "access
3207         all" in Ada 95 mode. The message no longer forces the user to recompile
3208         in 05 mode only to discover that anonymous access types are not allowed
3209         to have "all".
3210
3211 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3212
3213         * par-ch9.adb
3214         (P_Protected): Update the error message on missing "-gnat05" switch when
3215         using interfaces in conjunction with protected types. Remove the
3216         incorrect error message associated with the presence of "private" after
3217         a "with".
3218
3219 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3220
3221         * sem_aggr.adb: Update comments.
3222         Improve previous change for PR ada/17985
3223
3224 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3225
3226         * sem_cat.adb
3227         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3228         the visible part of the spec of a remote types unit.
3229         (Validate_Remote_Access_Object_Type_Declaration):
3230         New local subprogram Is_Valid_Remote_Object_Type, replaces
3231         Is_Recursively_Limited_Private.
3232         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3233         non-controlling formals (and the return type, even though this is not
3234         explicit in the standard) must support external streaming.
3235         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3236         as above for of RAS types and RCI subprograms. (The return type is not
3237         checked yet).
3238         Update comments related to RACWs designating limited interfaces per
3239         ARG ruling on AI05-060.
3240
3241         * sem_util.ads, sem_util.adb
3242         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3243         Is_Remote_Call_Interface to identify RACW types in a stable and
3244         consistent way. We used to rely in this predicate on the privateness of
3245         the designated type and its ancestors, but depending on the currently
3246         visible private parts, this caused false negatives. We now uniformly
3247         rely on checks made at the point where the RACW type is declared.
3248         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3249
3250 2008-05-20  Javier Miranda  <miranda@adacore.com>
3251             Ed Schonberg  <schonberg@adacore.com>
3252             Hristian Kirtchev  <kirtchev@adacore.com>
3253
3254         * sem_ch3.adb
3255         (Analyze_Object_Declaration): Fix over-conservative condition
3256         restricting use of predefined assignment with tagged types that have
3257         convention CPP.
3258         (Analyze_Object_Declaration): Relax the check regarding deferred
3259         constants declared in scopes other than packages since they can be
3260         completed with pragma Import.
3261         Add missing escaping of all-caps word 'CPP' in error messages.
3262         (Build_Discriminated_Subtype): Do not inherit representation clauses
3263         from parent type if subtype already carries them, because they are
3264         inherited earlier during derivation and already include those that may
3265         come from a partial view.
3266
3267         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3268         Check the declarations of a subprogram body for proper deferred
3269         constant completion.
3270
3271         * sem_ch7.ads, sem_ch7.adb
3272         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3273
3274 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3275             Thomas Quinot  <quinot@adacore.com>
3276
3277         * sem_ch4.adb
3278         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3279         F is a parameterless function that returns an array, and S is a subtype
3280         mark.
3281         (Analyze_Call): Insert dereference when the prefix is a parameterless
3282         function that returns an access to subprogram and the call has
3283         parameters.
3284         Reject a non-overloaded call whose name resolves to denote
3285         a primitive operation of the stub type generated to support a remote
3286         access-to-class-wide type.
3287
3288 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3289
3290         * sem_ch8.adb
3291         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
3292         when there is a use clause for the same entity in the context.
3293         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
3294         created for a stream attribute of an abstract type or interface type.
3295
3296 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3297
3298         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
3299         subprogram.
3300
3301         * sem_type.adb
3302         (Add_One_Interp): Ignore any interpretation that is a primitive
3303         operation of an RACW stub type (these primitives are only executed
3304         through dispatching, never through static calls).
3305         (Collect_Interps): When only one interpretation has been found, set N's
3306         Entity and Etype to that interpretation, otherwise Entity and Etype may
3307         still refer to an interpretation that was ignored by Add_One_Interp,
3308         in which case would end up with being marked as not overloaded but with
3309         an Entity attribute not pointing to its (unique) correct interpretation.
3310
3311 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3312
3313         * sem_eval.adb
3314         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
3315         denotes the whole array of its prefix.
3316
3317 2008-05-20  Robert Dewar  <dewar@adacore.com>
3318
3319         * sem_res.adb (Resolve_Op_Not): Warn on double negation
3320
3321 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3322
3323         * sprint.adb
3324         (Print_Itype): Do not modify the sloc of the component type of a
3325         (packed) array itype, because it is an unrelated type whose source
3326         location is independent of the point of creation of the itype itself.
3327
3328 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3329
3330         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
3331         Append.
3332
3333 2008-05-20  Robert Dewar  <dewar@adacore.com>
3334             Vincent Celier  <celier@adacore.com>
3335
3336         * vms_data.ads: Add entry for -gnatr
3337         Put GNAT SYNC section in proper alpha order
3338         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
3339
3340         * gnat_ugn.texi: Add documentation for new gnatname switch --and
3341         Update the style checks section
3342         Add documentation of -gnatr
3343         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
3344         subsection the explanation how compiler checks should be disabled for
3345         gnatcheck.
3346         Update the list of Ada 95 reserved words used by in the project language
3347         Add documentation for project qualifiers.
3348         Document that abstract projects may be extended by different projects in
3349         the same project tree.
3350         Add documentation for gnatmake switch -d
3351
3352         * ug_words: Add -gnatyy VMS equivalence string.
3353         Add entry for -gnatr
3354
3355 2008-05-20  Bob Duff  <duff@adacore.com>
3356
3357         * a-rttiev.adb
3358         (Set_Handler): Remove code from both of these that implements
3359         RM-D.15(15/2), because it causes a race condition and potential
3360         deadlock.
3361         (Process_Queued_Events): Add comment explaining "exception when others
3362         => null". Add clarifying ".all", even though implicit .all is legal
3363         here.
3364
3365 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3366
3367         * s-winext.ads: Replace representation clause by pragma Pack. Gives
3368         equivalent representation, but has the advantage of allowing
3369         compilation of this file under 64 bits platforms.
3370
3371         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
3372
3373         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
3374
3375         * adaint.c: 
3376         Don't define dummy implementation of convert_addresses on ppc-linux.
3377
3378 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3379
3380         * exp_ch7.adb
3381         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
3382         if expression is aggregate component.
3383
3384 2008-05-20  Robert Dewar  <dewar@adacore.com>
3385
3386         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
3387         sem_ch12.adb: Update comments. Minor reformatting.
3388
3389         * exp_ch2.adb: Typo
3390
3391         * s-unstyp.ads: Fixed some typos in comments.
3392
3393 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3394
3395         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
3396         type/constant.
3397
3398         * g-socthi-vxworks.ads: Update to latest socket changes.
3399
3400         * a-caldel-vms.adb: Resync with a-caldel spec.
3401
3402         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
3403         Update comments.
3404
3405 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3406
3407         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
3408         for dummy types pointed to by the converted pointer types.
3409
3410 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3411
3412         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
3413         of records and unions.
3414         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
3415
3416 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
3417             Robert Dewar <dewar@adacore.com>
3418
3419         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
3420         restrictions to the prefix of 'Old.
3421         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
3422         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
3423         variables.
3424
3425 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
3426
3427         PR ada/24880
3428         PR ada/26635
3429         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
3430         expression to an integral type with lower precision, use NOP_EXPR
3431         directly in a couple of special cases.
3432
3433 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
3434             Ed Schonberg <schonberg@adacore.com>
3435
3436         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
3437         constraint expressions.
3438
3439 2008-05-12  Tomas Bily  <tbily@suse.cz>
3440
3441         * utils2.c (known_alignment, contains_save_expr_p)
3442         (gnat_mark_addressable): Use CASE_CONVERT.
3443         * decl.c (annotate_value): Likewise.
3444         * trans.c (maybe_stabilize_reference): Likewise.
3445         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
3446         * utils.c (rest_of_record_type_compilation): Likewise.
3447         * trans.c (protect_multiple_eval, Attribute_to_gnu)
3448         (protect_multiple_eval): Likewise.
3449
3450 2008-05-08  Andreas Schwab  <schwab@suse.de>
3451
3452         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
3453         DECL_IS_PURE to DECL_PURE_P.
3454
3455 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3456
3457         * decl.c (maybe_pad_type): Add ??? comment.
3458
3459 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3460
3461         * decl.c (components_to_record): Zero the alignment of the qualified
3462         union built for the variant part upon creating it.
3463
3464 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3465
3466         * decl.c (maybe_pad_type): Try to get a form of the type with integral
3467         mode even if the alignment is not a factor of the original size.  But
3468         make sure to create the inner field with the original size.  Reorder.
3469         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
3470         record as always addressable.
3471         * utils.c (convert): Deal specially with conversions between original
3472         and packable versions of a record type.
3473         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
3474         recognizing an assignment between padded objects.
3475
3476 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
3477
3478         * decl.c (make_packable_type): Resize the last component to its RM size
3479         only if it is of an aggregate type.
3480         * trans.c (call_to_gnu): Fix nit in comment.
3481         (gnat_to_gnu): Likewise.
3482
3483 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
3484
3485         * Makefile.in: Adapt sh4-linux target.
3486
3487 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
3488
3489         PR ada/35792
3490         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
3491         tagged type by an untagged protected or task type.
3492
3493 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3494             Tristan Gingold  <gingold@adacore.com>
3495
3496         PR ada/36007
3497         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
3498         of aliased objects with an unconstrained nominal subtype.
3499         Cap the promotion to the effective alignment of the word mode.
3500
3501 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3502
3503         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
3504         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
3505         Use '&&' instead of ';'.
3506
3507 2008-04-24  Olivier Hainque  <hainque@adacore.com>
3508
3509         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
3510         doesn't require signed arithmetic anymore.
3511
3512 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
3513
3514         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
3515         (call_to_gnu): Don't set TREE_INVARIANT.
3516         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
3517
3518 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
3519
3520         * s-osinte-rtems.adb: Add sigalstack function.
3521         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
3522         function. Add Alternate_Stack and Alternate_Stack_Size.
3523         Add missing process_shared field to pthread_condattr_t
3524         and change ss_low_priority to int from timespec.
3525
3526 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
3527
3528         * i-forbla.adb: Link against -llapack and -lblas by default
3529         instead of the private -lgnalasup.
3530
3531 2008-04-21  Olivier Hainque  <hainque@adacore.com>
3532
3533         Access to most C builtins from Ada
3534         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
3535         (handle_pure_attribute, handle_novops_attribute,
3536         handle_nonnull_attribute, handle_sentinel_attribute,
3537         handle_noreturn_attribute, handle_malloc_attribute,
3538         handle_type_generic_attribute): New attribute handlers, from C fe.
3539         (gnat_internal_attribute_table): Map the new handlers.
3540         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
3541         (init_gigi_decls): ... here.
3542         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
3543         Move to a section dedicated to builtins processing.
3544         (build_void_list_node, builtin_type_for_size): New functions.
3545         (def_fn_type, get_nonnull_operand): Likewise.
3546         (install_builtin_elementary_type, install_builtin_function_types,
3547         install_builtin_attributes): Likewise.
3548         (fake_attribute_handler): Fake handler for attributes we don't
3549         support in Ada.
3550         (def_builtin_1): New function, worker for DEF_BUILTIN.
3551         (install_builtin_functions): New function.
3552         (gnat_install_builtins): Move to the builtins processing section.
3553         Now calling the newly introduced installers.
3554
3555 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3556
3557         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
3558         constant objects, but not exceptions.
3559         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
3560         compatibility test.
3561         * utils.c (create_var_decl_1): Likewise.
3562         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
3563         the type when copying to padded object and the source is a constructor.
3564
3565 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3566
3567         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
3568         alignment, reset it to zero if it would end up not being greater
3569         than that of the type.
3570
3571 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3572
3573         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
3574         the padded type has a variable size.
3575
3576 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3577
3578         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
3579         target pointer mechanism as soon as the size is not constant.
3580
3581 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3582
3583         * gigi.h (create_var_decl_1): Declare.
3584         (create_var_decl): Turn into a macro invoking create_var_decl_1.
3585         (create_true_var_decl): Likewise.
3586         * utils.c (create_var_decl_1): Make global and reorder parameters.
3587         (create_var_decl): Delete.
3588         (create_true_var_decl): Likewise.
3589
3590 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3591
3592         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
3593         objects by default.
3594         * fe.h (Debug_Flag_Dot_A): Delete.
3595         * debug.adb (-gnatd.a): Update documentation.
3596
3597 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
3598
3599         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
3600         "not null" parameter.
3601
3602 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
3603
3604         * g-socket.adb: Add a message "IPv6 not supported" to the
3605         Socket_Error exception.
3606
3607 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
3608
3609         PR ada/29015
3610         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
3611         the type is known instead of the underlying type.
3612
3613 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
3614
3615         PR ada/22387
3616         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3617         procedure for a derived type retrieve the discriminant values from
3618         the parent using the corresponding discriminant.
3619
3620 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
3621             Gary Dismukes  <dismukes@adacore.com>
3622
3623         PR ada/28733
3624         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
3625         which is not an entity (and hence not a package).
3626         (End_Use_Package): Ditto.
3627
3628 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
3629
3630         PR ada/16086
3631         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
3632         protected operation that matches the signature, not only an entry, a
3633         regular subprogram or a literal.
3634
3635 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3636
3637         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
3638         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
3639         if a size or alignment is specified.  Do not take into account
3640         alignment promotions for the computation of the object's size.
3641         <type>: Call maybe_pad_type only if a size or alignment is specified.
3642         (maybe_pad_type): Really reuse the RM_Size of the original type if
3643         requested.
3644         * trans.c (Attribute_to_gnu): Fix a couple of nits.
3645         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
3646         statements.  Use the padded view of the type when copying between
3647         padded objects of the same underlying type.
3648
3649 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3650
3651         * vms_data.ads: Fix typo in constant.
3652         * gen-soccon.c: Fix typo in error string.
3653         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
3654         Fix typos.
3655         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
3656         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
3657         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
3658         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
3659         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
3660         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
3661         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
3662         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
3663         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
3664         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
3665         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
3666         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
3667         sinfo.ads: Fix typos in comments.
3668
3669 2008-04-14  Robert Dewar  <dewar@adacore.com>
3670
3671         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
3672         to every non-object and change error message.
3673
3674 2008-04-14  Robert Dewar  <dewar@adacore.com>
3675
3676         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
3677         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
3678         directly.
3679
3680 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3681
3682         PR ada/18680
3683         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
3684         apply pragma Linker_Section on type.
3685
3686 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3687
3688         PR ada/16098
3689         * sem_prag.adb (Error_Pragma_Ref): New.
3690         (Process_Convention): Specialized message for non-local
3691         subprogram renaming. Detect the problem in homonyms as well.
3692
3693 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3694
3695         PR ada/15915
3696         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
3697         * sem_ch12.adb (Instantiate_Object): Use it.
3698         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
3699         storage pool denotes a variable as per RM 13.11(15).
3700
3701 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3702
3703         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
3704         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
3705
3706 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
3707
3708         PR ada/20822
3709         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
3710         line endings even on non-Unix platforms.
3711
3712 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3713
3714         PR ada/35050
3715         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
3716         renaming information.
3717
3718 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
3719
3720         PR ada/17985
3721         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
3722         itself.
3723
3724 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3725
3726         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
3727         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
3728         snames.ads, sprint.adb, stand.ads, stringt.ads,
3729         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
3730         switch.ads, sysdep.c, table.adb, table.ads,
3731         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
3732         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
3733         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
3734         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
3735         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
3736         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
3737         Fix comment typos.
3738
3739         * sem_ch10.adb, sem_ch10.ads,
3740         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
3741         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3742         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3743         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
3744         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
3745         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
3746         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
3747         sem_warn.ads: Fix comment typos.
3748
3749         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
3750         s-soflin.ads, s-stalib.ads, s-stausa.adb,
3751         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
3752         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3753         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
3754         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3755         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
3756         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
3757         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
3758         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
3759         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
3760         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
3761         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
3762         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
3763         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
3764         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
3765         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
3766         sem_cat.adb, sem_cat.ads: Fix comment typos.
3767
3768 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
3769
3770         PR ada/35825
3771         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
3772
3773 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
3774
3775         * s-linux-hppa.ads: Fix syntax errors.
3776
3777 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3778
3779         * gnat_ugn.texi: Fix typos.
3780         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
3781         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
3782         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
3783         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
3784         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
3785         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
3786         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3787         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
3788         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
3789         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
3790         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
3791         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
3792         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
3793         s-osinte-darwin.ads, s-osinte-freebsd.ads,
3794         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
3795         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3796         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
3797         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
3798         s-parame-hpux.ads, s-parame-vms-alpha.ads,
3799         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
3800         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
3801         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
3802         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
3803         s-rident.ads: Fix comment typos.
3804
3805 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
3806
3807         PR ada/28305
3808         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
3809         environment if generic instance is a top-level one.
3810
3811 2008-04-09  Doug Rupp  <rupp@adacore.com>
3812
3813         * decl.c (validate_size): Set minimum size for fat pointers same as
3814         access types. Code clean ups.
3815
3816         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
3817         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
3818
3819         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
3820
3821         * s-crtl.ads (malloc32) New function, alias for malloc
3822         (realloc32) New function, alias for realloc
3823
3824         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
3825
3826         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
3827         allocator size is 32 and default pointer size is 64.
3828         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
3829         lhs type if smaller, whatever the modes.
3830
3831         * gigi.h (malloc32_decl): New macro definition
3832
3833         * utils.c (init_gigi_decls): New malloc32_decl
3834         Various code clean ups.
3835
3836         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3837         Task_Address vice System.Address.
3838
3839         * s-taspri-vms.ads: Import System.Aux_DEC
3840         (Task_Address): New subtype of System.Aux_DEC.Short_Address
3841         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
3842
3843         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3844         Task_Address vice System.Address.
3845
3846         * s-inmaop-vms.adb: Import System.Task_Primitives
3847         (To_Address): Unchecked convert to Task_Address vice System.Address
3848
3849         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3850         expires now.
3851         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3852         (To_Address) Unchecked convert to Task_Address vice System.Address
3853
3854         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3855
3856         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3857
3858 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3859
3860         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3861         (fdesc_type_node): Define.
3862         (null_fdesc_node): Likewise.
3863         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3864         uses descriptors for vtables and the type comes from a dispatch table,
3865         return the descriptor type.
3866         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3867         uses descriptors for vtables and the type comes from a dispatch table,
3868         build a descriptor in the static case and copy the existing one in the
3869         non-static case.
3870         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3871         the type is a pointer-to-subprogram coming from a dispatch table,
3872         return the null descriptor.
3873         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3874         vtables, the source type is the descriptor type and the target type
3875         is a pointer type, first build the pointer.
3876         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3877         build the descriptor type and the null descriptor.
3878
3879 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3880
3881         * decl.c (prepend_attributes): Fix typo.
3882         * trans.c (Pragma_to_gnu): Likewise.
3883         * utils.c (gnat_genericize): Likewise.
3884
3885 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3886             Richard Kenner  <kenner@adacore.com>
3887
3888         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3889         * decl.c (gnat_to_gnu_entity): Adjust for above change.
3890         <E_Record_Type>: Try to get a better form of the component for
3891         packing, even if it has an integral mode.
3892         <E_Record_Subtype>: Likewise.
3893         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3894         exception suppressing the final conversion between record types.
3895
3896 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3897
3898         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3899         alignment for space, promote the alignment of non-scalar variables with
3900         no size and alignment.
3901         * gigi.h (gnat_types_compatible_p): Declare.
3902         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3903         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
3904         * utils.c (gnat_types_compatible_p) : New predicate.
3905         (convert): Use it throughout to test for cases where a mere view
3906         conversion is sufficient.
3907         * utils2.c (build_binary_op): Minor tweaks.
3908         (build_unary_op): Likewise.
3909
3910 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3911
3912         * decl.c (adjust_packed): Expand comment.
3913
3914 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3915
3916         * s-tasuti.ads: Use Task_Address instead of System.Address.
3917
3918         * makeutl.adb (Path_Or_File_Name): New function
3919
3920         * nlists.ads, itypes.ads: Update comments.
3921
3922         * s-crtl.ads (malloc32, realloc32): New functions.
3923
3924         * s-auxdec.ads (Short_Address_Size): New constant.
3925
3926         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3927
3928         * s-ststop.ads, s-ststop.adb: New file.
3929
3930         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3931         Minor reformatting.
3932
3933 2008-04-08  Pascal Obry  <obry@adacore.com>
3934
3935         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3936         (Stop_Bits_Number): New type.
3937         (Parity_Check): Likewise.
3938         (Set): Add parameter to set the number of stop bits and
3939         the parity. Parameter timeout is now a duration instead
3940         of a plain integer.
3941
3942         * g-sercom-linux.adb:
3943         Implement the stop bits and parity support for GNU/Linux.
3944         Fix handling of timeout, it must be given in tenth of seconds.
3945         
3946         * g-sercom-mingw.adb:
3947         Implement the stop bits and parity support for Windows.
3948         Use new s-win32.ads unit instead of declaring Win32 services
3949         directly into this body.
3950         Update handling of timeout as now a duration.
3951
3952         * s-win32.ads, s-winext.ads: New files.
3953
3954 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3955             Arnaud Charlet  <charlet@adacore.com>
3956
3957         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3958
3959         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3960         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3961
3962         * s-osinte-lynxos-3.ads,
3963         (Alternate_Stack): Remove when not needed. Simplify declaration
3964         otherwise.
3965         (Alternate_Stack_Size): New constant.
3966
3967         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3968         'Unrestricted_Access.
3969
3970         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3971         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3972         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3973         s-osinte-solaris.ads, s-osinte-vms.ads
3974         (SA_ONSTACK): New constant.
3975         (stack_t): New record type.
3976         (sigaltstack): New imported function.
3977         (Alternate_Stack): New imported variable.
3978         (Alternate_Stack_Size): New constant.
3979
3980         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3981
3982         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
3983         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3984         s-taspri-vms.ads (Task_Address): New subtype of System.Address
3985         (Task_Address_Size): New constant size of System.Address
3986         (Alternate_Stack_Size): New constant.
3987
3988         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3989         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3990         Establish the alternate stack if the platform makes use of n alternate
3991         signal stack for stack overflows.
3992         (Create_Task): Take into account the alternate stack in the stack size.
3993         (Initialize): Save the address of the alternate stack into the ATCB for
3994         the environment task.
3995         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3996
3997         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
3998
3999         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4000
4001         * s-intman-posix.adb: 
4002         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4003         alternate signal stack for stack overflows.
4004
4005         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4006         x86-64, adjust the saved value of the stack pointer if the signal was
4007         raised by a stack checking probe.
4008         (HP-UX section): Use global __gnat_alternate_stack as signal handler
4009         stack and only for SIGSEGV.
4010         (Linux section): Likewise on x86 and x86-64.
4011         [VxWorks section]
4012         (__gnat_map_signal): Now static.
4013         (__gnat_error_handler): Not static any more.
4014         (__gnat_adjust_context_for_raise): New function. Signal context
4015         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4016         propagation circuitry.
4017         (__gnat_error_handler): Second argument of a sigaction handler is a
4018         pointer, not an int, and is unused.
4019         Adjust signal context before mapping to exception.
4020         Install signal handlers for LynxOS case.
4021
4022         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4023         (Task_Id): Set size to Task_Address_Size
4024         (To_Task_id): Unchecked convert from Task_Address vice System.Address
4025         (To_Address): Unchecked convert to Task_Address vice System.Address
4026
4027         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4028         address into the ATCB if the platform makes use of an alternate signal
4029         stack for stack overflows.
4030         (Free_Task): Add call to Finalize_Attributes_Link.
4031         Add argument Relative_Deadline to pass the value specified for
4032         the task. This is not yet used for any target.
4033
4034         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4035         the value specified for the task.
4036
4037 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4038
4039         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4040         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4041         s-vxwext-rtp.adb): New files.
4042
4043         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
4044         Minor updates to accomodate changes above.
4045
4046 2008-04-08  Pascal Obry  <obry@adacore.com>
4047
4048         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4049         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4050         Use new s-win32.ads unit instead of declaration
4051         from s-osinte-mingw.ads.
4052         
4053         * s-osinte-mingw.ads:
4054         Move all non tasking based interface to s-win32.ads.
4055         
4056         * s-osprim-mingw.adb:
4057         Remove duplicated declarations and use s-win32.ads
4058         unit instead.
4059
4060 2008-04-08  Vincent Celier  <celier@adacore.com>
4061             Arnaud Charlet  <charlet@adacore.com>
4062
4063         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4064         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4065         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4066         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4067         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4068
4069         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4070         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4071         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4072         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4073         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4074         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4075         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4076         mlib-tgt-specific-mingw.adb: New names.
4077
4078         * Makefile.in: 
4079         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4080         Get rid of gnatbl.
4081         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4082         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4083         Minor updates for VMS
4084
4085         * gnatbl.c: Removed.
4086
4087 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4088
4089         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4090         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4091         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4092         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4093         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4094         ASCII.NUL throughout.
4095
4096 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4097             Matthew Heaney  <heaney@adacore.com>
4098
4099         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4100         renaming.
4101
4102         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
4103         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4104         to convention for non-RM specs.
4105         Add descriptive header, and documented each operation
4106         document each operation
4107
4108 2008-04-08  Robert Dewar  <dewar@adacore.com>
4109             Bob Duff  <duff@adacore.com>
4110             Gary Dismukes  <dismukes@adacore.com>
4111             Ed Schonberg  <schonberg@adacore.com>
4112
4113         * alloc.ads: Add entries for Obsolescent_Warnings table
4114
4115         * einfo.ads, einfo.adb: Minor reformatting.
4116         (Is_Discriminal): New subprogram.
4117         (Is_Prival): New subprogram.
4118         (Is_Protected_Component): New subprogram.
4119         (Is_Protected_Private): Removed.
4120         (Object_Ref, Set_Object_Ref): Removed.
4121         (Prival, Set_Prival): Change assertion.
4122         (Privals_Chain, Set_Privals_Chain): Removed.
4123         (Prival_Link, Set_Prival_Link): New subprogram.
4124         (Protected_Operation, Set_Protected_Operation): Removed.
4125         (Protection_Object, Set_Protection_Object): New subprogram.
4126         (Write_Field17_Name): Remove case for Object_Ref.
4127         (Write_Field20_Name): Add case for Prival_Link.
4128         (Write_Field22_Name): Remove case for Protected_Operation,
4129         Privals_Chain.
4130         Add case for Protection_Object.
4131         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4132         so clients
4133         (Overlays_Constant): New flag
4134         (Is_Constant_Object): New predicate
4135         (Is_Standard_Character_Type): New predicate
4136         (Optimize_Alignment_Space): New flag
4137         (Optimize_Alignment_Time): New flag
4138         (Has_Postconditions): New flag
4139         (Obsolescent_Warrning): Field removed
4140         (Spec_PPC_List): New field
4141         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4142         subprograms to get and set the relative deadline associated to a task.
4143
4144         * exp_attr.adb (May_Be_External_Call): Account for the case where the
4145         Access attribute is part of a named parameter association.
4146         (Expand_Access_To_Protected_Op): Test for the attribute occurring
4147         within an init proc and use that directly as the scope rather than
4148         traversing up to the protected operation's enclosing scope. Only apply
4149         assertion on Is_Open_Scopes in the case the scope traversal is done.
4150         For the init proc case use the address of the first formal (_init) as
4151         the protected object reference.
4152         Implement Invalid_Value attribute
4153         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4154         contents of the dispatch table there is no need to duplicate the
4155         itypes associated with record types (i.e. the implicit full view
4156         of private types).
4157         Implement Enum_Val attribute
4158         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4159         within _Postconditions procedure
4160         (Expand_N_Attribute_Reference, case Result): Implement new attribute
4161
4162         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4163         a return statement calls a function that is not available in
4164         configurable runtime.
4165         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4166         (Expand_Non_Function_Return): Generate call to _Postconditions proc
4167         (Expand_Simple_Function_Return): Ditto
4168
4169         * frontend.adb: Add call to Sem_Aux.Initialize
4170
4171         * sem_aux.ads, sem_aux.adb: New file.
4172
4173         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4174         Add new Pragma_Relative_Deadline.
4175         Add support for pragmas Check and Check_Policy
4176
4177         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4178         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4179         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4180         missing check because they are not allowed in CPP tagged types.
4181         Add Sure parameter to Note_Possible_Modification calls
4182         Add implementation of Invalid_Value attribute
4183         Implement new attribute Has_Tagged_Values
4184         Implement Enum_Val attribute
4185         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4186         generated attributes.
4187         (Analyze_Attribute, case Result): If prefix of the attribute is
4188         overloaded, it always resolves to the enclosing function.
4189         (Analyze_Attribute, case Result): Properly deal with analysis when
4190         Postconditions are not active.
4191         (Resolve_Attribute, case Result): Properly deal with appearence during
4192         preanalysis in spec.
4193         Add processing for attribute Result
4194
4195         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4196         for operators.
4197         (Analyze_Subprogram_Body): Install private_with_clauses when the body
4198         acts as a spec.
4199         (Check_Inline_Pragma): recognize an inline pragma that appears within
4200         the subprogram body to which it applies.
4201         (Analyze_Function_Return): Check that type of the expression of a return
4202         statement in a function with a class-wide result is not declared at a
4203         deeper level than the function.
4204         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4205         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4206         user- defined operators.
4207         (Install_Formals): Moved to spec to allow use from Sem_Prag for
4208         analysis of precondition/postcondition pragmas.
4209         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4210         Last_Formal, along with lots of comments on what this is about
4211         (Analyze_Subprogram_Body): Fix case where we move entities from the
4212         spec to the body when there are no body entities (now possible with
4213         precondition and postcondition pragmas).
4214         (Process_PPCs): New procedure
4215         (Analyze_Subprogram_Body): Add call to Process_PPCs
4216
4217         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4218         clause.
4219         (Pop_Scope): Restore Check_Policy_List on scope exit
4220         (Push_Scope): Save Check_Policy_List on scope entry
4221         Change name In_Default_Expression      => In_Spec_Expression
4222         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4223         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4224         (Analyze_Object_Renaming): Allow 'Reference as object
4225         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4226         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4227         of restriction identifier.
4228         Add Sure parameter to Note_Possible_Modication calls
4229
4230         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4231         Don't check for primitive operations when calling Rep_Item_Too_Late.
4232         (Process_Import_Or_Interface): Do not place flag on formal
4233         subprograms.
4234         (Analyze_Pragma, case Export): If the entity is a deferred constant,
4235         propagate information to full view, which is the one elaborated by the
4236         back-end.
4237         (Make_Inline): the pragma is effective if it applies to an internally
4238         generated subprogram declaration for a body that carries the pragma.
4239         (Analyze_Pragma, case Optimize_Alignment): Set new flag
4240         Optimize_Alignment_Local.
4241         (Analyze_PPC_In_Decl_Part): New procedure
4242         (Get_Pragma_Arg): Moved to outer level
4243         (Check_Precondition_Postcondition): Change to allow new visibility
4244         rules for package spec
4245         (Analyze_Pragma, case Check_Policy): Change placement rules to be
4246         same as pragma Suppress/Unsuppress.
4247         Change name In_Default_Expression      => In_Spec_Expression
4248         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4249         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4250         (Check_Precondition_Postcondition): Do proper visibility preanalysis
4251         for the case of these pragmas appearing in the spec.
4252         (Check_Enabled): New function
4253         (Initialize): New procedure
4254         (Tree_Read): New procedure
4255         (Tree_Write): New procedure
4256         (Check_Precondition_Postcondition): New procedure
4257         Implement pragmas Check and Check_Policy
4258         Merge Assert processing with Check
4259
4260         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4261         New warning flag -gnatw.e
4262
4263         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4264         returning whether a task (or main procedure) has a pragma
4265         Relative_Deadline.
4266         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4267         (or main procedure) has a pragma Relative_Deadline.
4268         Add Next_Pragma field to N_Pragma node
4269         (PPC_Enabled): New flag
4270         (Next_Pragma): Now used for Pre/Postcondition processing
4271
4272         * snames.h, snames.ads, snames.adb: New standard name
4273         Inherit_Source_Path
4274         Add entry for 'Invalid_Value attribute
4275         Add entry for new attribute Has_Tagged_Values
4276         Add entry for Enum_Val attribute
4277         Add new standard names Aggregate, Configuration and Library.
4278         Add _Postconditions
4279         Add _Result
4280         Add Pragma_Precondition
4281         Add Pragma_Postcondition
4282         Add Attribute_Result
4283         New standard name Archive_Builder_Append_Option
4284         (Preset_Names): Add _relative_deadline and relative_deadline definitions
4285         There was also a missing non_preemptive_within_priorities.
4286         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4287         Relative_Deadline.
4288         Add support for pragmas Check and Check_Policy
4289
4290         * tree_gen.adb: Call Sem_Aux.Tree_Write
4291
4292         * tree_in.adb: Call Sem_Aux.Tree_Read
4293
4294         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
4295         sequence
4296
4297         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
4298         sequence
4299
4300         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
4301         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
4302         Relative_Deadline.
4303         (Expand_Pragma_Check): New procedure
4304
4305         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
4306         buffer.
4307
4308         * sinfo.adb (PPC_Enabled): New flag
4309
4310 2008-04-08  Robert Dewar  <dewar@adacore.com>
4311             Gary Dismukes  <dismukes@adacore.com>
4312             Javier Miranda  <miranda@adacore.com>
4313             Ed Schonberg  <schonberg@adacore.com>
4314
4315         * fe.h: Remove global Optimize_Alignment flag, no longer used
4316
4317         * layout.adb: Test Optimize_Alignment flags rather than global switch
4318
4319         * lib.ads, lib.adb: New OA_Setting field in library record
4320
4321         * lib-load.adb: New OA_Setting field in library record
4322
4323         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
4324         units mentioned in limited_with_ clauses in the ali file, with an
4325         'Y' marker.
4326         New Ox fields in U line
4327
4328         * opt.adb: New flag Optimize_Alignment_Local
4329         (Check_Policy_List[_Config]): New flags
4330
4331         * opt.ads (Invalid_Value_Used): New flag
4332         New switch Optimize_Alignment_Local
4333         (Warn_On_Parameter_Order): New flag
4334         (Check_Policy_List[_Config]): New flags
4335
4336         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
4337         limited_with clauses.
4338         New data structures for Optimize_Alignment
4339
4340         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
4341         New procedure
4342         (Check_Consistent_Optimize_Alignment): Rework for new structure
4343         (Check_Consistent_Restrictions): Fix incorrect error message
4344
4345         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
4346         created class-wide type (to the Parent field of the specific type).
4347         (Install_Siblings): Handle properly private_with_clauses on subprogram
4348         bodies and on generic units.
4349         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
4350         illegal limited_with_clause that names a non-existent package.
4351         (Check_Body_Required): Determine whether a unit named a limited_with
4352         clause needs a body.
4353         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
4354         Capture Optimize_Alignment settings to set new OA_Setting field in
4355         library record.
4356         (Build_Limited_Views): Include task and protected type declarations.
4357
4358         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
4359         case of a possible constant redeclaration where the current object is
4360         an entry index constant.
4361         (Analyze_Object_Declaration): Generate an error in case of CPP
4362         class-wide object initialization.
4363         (Analyze_Object_Declaration): Add extra information on warnings for
4364         declaration of unconstrained objects.
4365         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
4366         conflicts with the setting of Stored_Constraint in the case where the
4367         access type entity has already been created as an E_Incomplete_Type due
4368         to a limited with clause.
4369         Use new Is_Standard_Character_Type predicate
4370         (Analyze_Object_Declaration): Apply access_constant check only after
4371         expression has been resolved, given that it may be overloaded with
4372         several access types.
4373         (Constant_Redeclaration): Additional legality checks for deferred
4374         constant declarations tha involve anonymous access types and/or null
4375         exclusion indicators.
4376         (Analyze_Type_Declaration): Set Optimize_Alignment flags
4377         (Analyze_Subtype_Declaration): Ditto
4378         (Analyze_Object_Declaration): Ditto
4379         (Analyze_Object_Declaration): Don't count tasks in generics
4380         Change name In_Default_Expression      => In_Spec_Expression
4381         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4382         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4383         (Process_Discriminants): Additional check for illegal use of default
4384         expressions in access discriminant specifications in a type that is not
4385         explicitly limited.
4386         (Check_Abstract_Overriding): If an inherited function dispaches on an
4387         access result, it must be overridden, even if the type is a null
4388         extension.
4389         (Derive_Subprogram): The formals of the derived subprogram have the
4390         names and defaults of the parent subprogram, even if the type is
4391         obtained from the actual subprogram.
4392         (Derive_Subprogram): In the presence of interfaces, a formal of an
4393         inherited operation has the derived type not only if it descends from
4394         the type of the formal of the parent operation, but also if it
4395         implements it. This is relevant for the renamings created for the
4396         primitive operations of the actual for a formal derived type.
4397         (Is_Progenitor): New predicate, to determine whether the type of a
4398         formal in the parent operation must be replaced by the derived type.
4399
4400         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
4401         predicate recursive to handle components that have a user-defined
4402         Initialize procedure. Handle controlled derived types whose ancestor
4403         has a user-defined Initialize procedured.
4404         (Note_Possible_Modification): Add Sure parameter, generate warning if
4405         sure modification of constant
4406         Use new Is_Standard_Character_Type predicate
4407         (Find_Parameter_Type): when determining whether a protected operation
4408         implements an interface operation, retrieve the type of the formal from
4409         the entity when the formal is an access parameter or an
4410         anonymous-access-to-subprogram.
4411         Move Copy_Parameter_List to sem_util, for use when building stubbed
4412         subprogram bodies.
4413         (Has_Access_Values): Tagged types now return False
4414         (Within_HSS_Or_If): New procedure
4415         (Set_Optimize_Alignment_Flags): New procedure
4416         Change name In_Default_Expression      => In_Spec_Expression
4417         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4418         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4419
4420 2008-04-08  Tristan Gingold  <gingold@adacore.com>
4421
4422         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
4423
4424 2008-04-08  Tristan Gingold  <gingold@adacore.com>
4425
4426 PR ada/10768
4427
4428         * cuintp.c: Fix 16 bits issue for AVR.
4429         On AVR, integer is 16 bits, so it can't be used to do math with
4430         Base (=32768).
4431         So use long_integer instead.
4432
4433 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4434
4435         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
4436         System.OS_Primitives.
4437         Change type of various constants, parameters and local variables from
4438         Time to representation type OS_Time.
4439         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
4440         Remove the declaration of constant Mili_F from several routines. New
4441         body for internal package Conversions_Operations.
4442         (Time_Of): Add default parameters for several formals.
4443
4444         * a-caldel.adb: Minor reformatting
4445
4446         * a-calend.ads, a-calend.adb: New body for internal package
4447         Conversions_Operations.
4448         (Time_Of): Add default parameters for several formals.
4449
4450         * Makefile.rtl: Add a-ststop
4451         Add Ada.Calendar.Conversions to the list of runtime files.
4452         Add g-timsta
4453
4454         * a-calcon.adb, a-calcon.ads: New files.
4455
4456 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
4457             Tristan Gingold  <gingold@adacore.com>
4458
4459         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
4460         (Install_Restricted_Handlers): New procedure
4461         which is a simplified version of Install_Handlers that does not store
4462         previously installed.
4463
4464         * s-interr-vxworks.adb: Fix ACATS cxc3001
4465         On VxWorks interrupts can't be detached.
4466         (Install_Restricted_Handlers): New procedure.
4467
4468         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
4469         procedure.
4470
4471 2008-04-08  Olivier Hainque  <hainque@adacore.com>
4472
4473         * s-intman-vxworks.ads, s-intman-vxworks.adb
4474         (Map_And_Raise_Exception): Remove. Was an import of only part of the
4475         required services already implemented elsewhere.
4476         (Notify_Exception): Delete body, import __gnat_error_handler instead.
4477         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
4478         argument passed to the handler, which we need for ZCX propagation
4479         purposes.
4480
4481 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4482
4483         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
4484
4485         * g-timsta.adb, g-timsta.ads: New files.
4486
4487 2008-04-08  Robert Dewar  <dewar@adacore.com>
4488
4489         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
4490         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
4491         (Raise_Exception_Always): Fix documentation accordingly
4492
4493 2008-04-08  Robert Dewar  <dewar@adacore.com>
4494
4495         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
4496         Stream_Convert)
4497
4498         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
4499         FOnly
4500
4501 2008-04-08  Javier Miranda  <miranda@adacore.com>
4502             Robert Dewar  <dewar@adacore.com>
4503             Ed Schonberg  <schonberg@adacore.com>
4504
4505         * a-tags.adb (Register_Interface_Offset): New subprogram.
4506         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
4507         (To_Predef_Prims_Table_Ptr): Removed.
4508         (Acc_Size): Removed.
4509         (To_Acc_Size): Removed.
4510         (Parent_Size): Modified to the call the subprogram returning the size of
4511         the parent by means of the new TSD component Size_Func.
4512
4513         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
4514         (DT_Offset_To_Top_Offset): New constant value that is used to generate
4515         code referencing the Offset_To_Top component of the dispatch table's
4516         prologue.
4517         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
4518         use of 'address to initialize dispatch table slots.
4519         (Size_Func): New component of the TSD. Used by the run-time to call the
4520         size primitive of the tagged type.
4521
4522         * checks.adb (Apply_Access_Check): Avoid check when accessing the
4523         Offset_To_Top component of a dispatch table.
4524         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
4525         deferred constant declaration. do not add a null expression, to prevent
4526         spurious errors when full declaration is analyzed.
4527         (Apply_Discriminant_Check): If both discriminant constraints share a
4528         node which is not static but has no side effects, do not generate a
4529         check for that discriminant.
4530         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
4531         subexpr, since the prefix of an attribute is a name.
4532
4533         * checks.ads: Fix nit in comment.
4534
4535         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
4536         and body of predefined primitives in case of CPP tagged type
4537         derivations.
4538         (Freeze_Type): Deal properly with no storage pool case
4539         (Make_Predefined_Primitive_Specs): Generate specification of abstract
4540         primitive Deep_Adjust if a nonlimited interface is derived from a
4541         limited interface.
4542         (Build_Dcheck_Functions): Create discriminant-checking functions only
4543         for variants that have some component(s).
4544         (Build_Slice_Assignment): In expanded code for slice assignment, handle
4545         properly the case where the slice bounds extend to the last value of the
4546         underlying representation.
4547         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
4548         (Is_Variable_Size_Record): An array component has a static size if
4549         index bounds are enumeration literals.
4550
4551         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
4552         an external tag has been specified for the type.
4553         (Building_Static_DT): Add missing support for private types.
4554         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
4555         to the entity associated with the parent of Typ. This is done to
4556         avoid wrong access when the parent is a private type.
4557         (Expand_Interface_Conversion): Improve error message when the
4558         configurable runtime has no support for dynamic interface conversion.
4559         (Expand_Interface_Thunk): Add missing support to interface types in
4560         configurable runtime.
4561         (Expand_Dispatching_Call): remove obsolete code.
4562         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
4563         ensure that all subtypes and aggregates associated with dispatch
4564         tables have the attribute Is_Dispatch_Table_Entity set to true.
4565         (Register_Primitive): Rename one variable to improve code reading.
4566         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
4567         of the pointer to the 'size primitive in the TSD.
4568
4569         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
4570         (RE_Offset_To_Top_Ptr): New entity.
4571         (RE_Register_Interface_Offset): New entity.
4572         (RE_Set_Dynamic_Offset_To_Top): New entity.
4573         (RE_Set_Offset_To_Top): Removed entity.
4574         (RE_Prim_Ptr): New entity
4575         (RE_Size_Func): New entity
4576         (RE_Size_Ptr): New entity
4577         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
4578         (Ada_Dispatching_Child): Define this new subrange.
4579         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
4580          RE_Time_Span, and RE_Time_Span_Zero).
4581         (RE_Unit_Table): Add new required run-time calls
4582
4583         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
4584         children.
4585
4586         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
4587         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
4588          initializes the Offset_To_Top component of a dispatch table.
4589         (Build_Predef_Prims): Removed.
4590         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
4591          its actual code.
4592         (Build_Set_Size_Function): New subprogram.
4593
4594         * exp_ch13.adb: Do not generate storage variable for storage_size zero
4595         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
4596
4597 2008-04-08  Robert Dewar  <dewar@adacore.com>
4598
4599         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
4600         computing Fore when Exp > 0
4601
4602 2008-04-08  Robert Dewar  <dewar@adacore.com>
4603
4604         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
4605
4606         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
4607         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
4608
4609         * fmap.adb: Remove Big_String declarations (now in Types)
4610         (No_Mapping_File): New Boolean global variable
4611         (Initialize): When mapping file cannot be read, set No_Mapping_File to
4612         False.
4613         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
4614         tables were empty before adding entries, open the mapping file
4615         with Truncate = True, instead of delete/re-create.
4616
4617         * fname-sf.adb: Remove Big_String declarations (now in Types)
4618
4619         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
4620         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
4621         big pointer types
4622
4623         * table.ads: Add for Table_Ptr'Storage_Size use 0
4624
4625         * types.ads: Add Big_String declarations
4626         Add Size_Clause of zero for big pointer types
4627
4628 2008-04-08  Vincent Celier  <celier@adacore.com>
4629
4630         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
4631         (Usage): Add line for switch --subdirs=
4632         Add new switch -eL, to follow symbolic links when processing project
4633         files.
4634
4635         * gnatcmd.adb: Process switches -eL and --subdirs=
4636         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
4637         Program_Name to get proper tool names when AAMP_On_Target is set.
4638         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
4639         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
4640         Osint.Program_Name).
4641
4642         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
4643         (Usage): Add lines for switches -eL and --subdirs=
4644
4645         * makeusg.adb: Add line for switch --subdirs=
4646
4647         * prj.ads: 
4648         (Source_Data): New Boolean component Compiled, defaulted to True
4649         (Empty_File_Name: New global variable in private part, initialized in
4650         procedure Initialize.
4651         (Subdirs_Option): New constant string
4652         (Subdirs): New String_Ptr global variable
4653         (Language_Config): New component Include_Compatible_Languages
4654         (Project_Qualifier): New type for project qualifiers
4655         (Project_Data): New component Qualifier
4656         (Project_Configuration): New component Archive_Builder_Append_Option
4657
4658         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
4659         another imported project indicate the name of this imported project.
4660         (Check_File): When a unit is in two project files, indicate the project
4661         names and the paths of the source files for each project.
4662         (Add_Source): Set Compiled to False if compiler driver is empty. Only
4663         set object, dependency and switches file names if Compiled is True.
4664         (Process_Compiler): Allow the empty string for value of attribute Driver
4665         (Get_Directories): When Subdirs is not null and Object_Dir is not
4666          specified, locate and create if necessary the actual object dir.
4667         (Locate_Directory): When Subdirs is not empty and Create is not the
4668         empty string, locate and create if necessary the actual directory
4669         as a subdirectory of directory Name.
4670         (Check_Library_Attributes.Check_Library): Allow a project where the only
4671         "sources" are header files of file based languages to be imported by
4672         library projects, in multi-language mode (gprbuild).
4673         (Check_Library_Attributes.Check_Library): In multi-language mode
4674         (gprbuild), allow a library project to import a project with no
4675         sources, even when this is not declared explicitly.
4676         (Check_If_Externally_Built): A virtual project extending an externally
4677         built project is also externally built.
4678         (Check_Library_Attributes): For a virtual project extending a library
4679         project, inherit the library directory.
4680         (Process_Project_Level_Array_Attributes): Process new attribute
4681         Inherit_Source_Path.
4682         For projects with specified qualifiers "standard", "library" or
4683         "abstract", check that the project conforms to the qualifier.
4684         (Process_Project_Level_Simple_Attributes): Process new attribute
4685          Archive_Builder_Append_Option.
4686
4687         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
4688         (Normalize_Compiler_Switches): Only keep compiler switches that are
4689         passed to gnat1 by the gcc driver and that are stored in the ALI file
4690         by gnat1.
4691         Do not take into account switc -save-temps
4692
4693         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
4694         gprmake is called with -eL.
4695         (Scan_Arg): Recognize switch -eL
4696         (Usage): Add line for switch -eL
4697
4698         * prj.adb (Initialize): Initialize Empty_File_Name
4699         (Project_Empty): New component Qualifier
4700
4701         * prj-attr.ads, prj-attr.adb: New project level attribute
4702         Inherit_Source_Path.
4703         New project level attribute Archive_Builder_Append_Option
4704
4705         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
4706
4707         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
4708         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
4709         upward compatibility.
4710
4711         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
4712         each Trying ..." on different lines.
4713         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
4714         is "configuration" when not in configuration. Fail when in configuration
4715         when a specified qualifier is other than "configuration".
4716
4717         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
4718         full associative array together.
4719         (Recursive_Process): Put the project qualifier in the project data
4720         
4721         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
4722         (Set_Project_Qualifier_Of): New procedure
4723
4724 2008-04-08  Robert Dewar  <dewar@adacore.com>
4725
4726         * errout.ads: Update comments for new handling of info: messages
4727
4728         * erroutc.adb (Matches): New procedure
4729         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
4730         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
4731          info messages as well as style messages.
4732
4733         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
4734
4735         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
4736         subprograms.
4737         (Check_A_Call): Special "info: " warnings now have ? in the text
4738         (Elab_Warning): Use info message in static case
4739
4740 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4741
4742         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
4743         whether an array aggregate with static bounds and scalar components
4744         should be expanded into a static constant.
4745
4746 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4747             Ed Schonberg  <schonberg@adacore.com>
4748             Robert Dewar  <dewar@adacore.com>
4749
4750         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
4751         Has_Stream_Attribute_ Definition when checking for available stream
4752         attributes on parameters of a limited type in Ada 2005. Necessary for
4753         proper recognition of visible stream attribute clauses.
4754         (Has_Stream_Attribute_Definition): If the type is derived from a
4755         private type, then use the derived type's underlying type for checking
4756         whether it has stream attributes.
4757         (Validate_Object_Declaration): The check for a user-defined Initialize
4758         procedure applies also to types with controlled components or a
4759         controlled ancestor.
4760         Reject an object declaration in a preelaborated unit if the type is a
4761         controlled type with an overriding Initialize procedure.
4762         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
4763         checking when the parent of a dereference is a selected component and
4764         the name has not been analyzed.
4765
4766         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
4767         prefixes that are invalid explicit dereferences of remote
4768         access-to-class-wide values, first checking whether the selected
4769         component is a prefixed form of call to a tagged operation.
4770         (Analyze_Call): Remove code that issues an error for limited function
4771         calls in illegal contexts, as we now support all of the contexts that
4772         were forbidden here.
4773         Allow a function call that returns a task.and appears as the
4774         prefix of a selected component.
4775         (Analyze_Reference): Give error message if we try to make a 'Reference
4776         for an object that is atomic/aliased without its type having the
4777         corresponding attribute.
4778         (Analyze_Call): Remove condition checking for attributes to allow
4779         calls to functions with inherently limited results as prefixes of
4780         attributes. Remove related comment about Class attributes.
4781         (Analyze_Selected_Component): If the prefix is a remote type, check
4782         whether this is a prefixed call before reporting an error.
4783         (Complete_Object_Operation): If the controlling formal is an access to
4784         variable reject an actual that is a constant or an access to one.
4785         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4786         primitive operations from base type.
4787
4788         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
4789         build-in-place
4790         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4791         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
4792         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4793         (Expand_N_Slice): Test for prefix that is a build-in-place function call
4794         and call Make_Build_In_Place_Call_In_Anonymous_Context.
4795         (Analyze_Call): Remove code that issues an error for limited function
4796         calls in illegal contexts, as we now support all of the contexts that
4797         were forbidden here.
4798         New calling sequence for Get_Simple_Init_Val
4799         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
4800         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
4801
4802 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4803             Ed Schonberg  <schonberg@adacore.com>
4804             Robert Dewar  <dewar@adacore.com>
4805
4806         * exp_ch2.adb: Minor reformatting.
4807         (Expand_Entry_Index_Parameter): Set the type of the identifier.
4808         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
4809         (Expand_Protected_Component): New routine.
4810         (Expand_Protected_Private): Removed.
4811         Add Sure parameter to Note_Possible_Modification calls
4812
4813         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
4814         generated subprogram declaration must inherit the overriding indicator
4815         from the instantiation node.
4816         (Validate_Access_Type_Instance): If the designated type of the actual is
4817         a limited view, use the available view in all cases, not only if the
4818         type is an incomplete type.
4819         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
4820         and the actual subtype does not exclude null.
4821         (Process_Default): Handle properly abstract formal subprograms.
4822         (Check_Formal_Package_Instance): Handle properly defaulted formal
4823         subprograms in a partially parameterized formal package.
4824         Add Sure parameter to Note_Possible_Modification calls
4825         (Validate_Derived_Type_Instance): if the formal is non-limited, the
4826         actual cannot be limited.
4827         (Collect_Previous_Instances): Generate instance bodies for subprograms
4828         as well.
4829
4830         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
4831         try to set RM_Size.
4832         Add Sure parameter to Note_Possible_Modification calls
4833         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
4834         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
4835         constant overlaid by variable and issue warning.
4836         Use new Is_Standard_Character_Type predicate
4837         (Analyze_Record_Representation_Clause): Check that the specified
4838         Last_Bit is not less than First_Bit - 1.
4839         (Analyze_Attribute_Definition_Clause, case Address): Check for
4840         self-referential address clause
4841
4842         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
4843         detection mechanism when the lhs is a prival.
4844         (Analyze_Assignment): Call Check_Unprotected_Access to detect
4845         assignment of a pointer to protected data, to an object declared
4846         outside of the protected object.
4847         (Analyze_Loop_Statement): Check for unreachable code after loop
4848         Add Sure parameter to Note_Possible_Modication calls
4849         Protect analysis from previous syntax error such as a scope mismatch
4850         or a missing begin.
4851         (Analyze_Assignment_Statement): The assignment is illegal if the
4852         left-hand is an interface.
4853
4854         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4855         violation of restriction No_Implicit_Conditionals
4856         Add Sure parameter to Note_Possible_Modication calls
4857         Use new Is_Standard_Character_Type predicate
4858         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4859         call as operator. Fixes problems (e.g. validity checking) which
4860         come from the result looking as though it does not come from source).
4861         (Resolve_Call): Check case of name in named parameter if style checks
4862         are enabled.
4863         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4864         from the checking that such calls should not occur from an entry body.
4865         (Resolve_Call): If the return type of an Inline_Always function
4866         requires the secondary stack, create a transient scope for the call
4867         if the body of the function is not available for inlining.
4868         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4869         that are actuals for in-out formals.
4870         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4871         primitive operations from base type.
4872         (Analyze_Selected_Component): If the context is a call to a protected
4873         operation the parent may be an indexed component prior to expansion.
4874         (Resolve_Actuals): If an actual is of a protected subtype, use its
4875         base type to determine whether a conversion to the corresponding record
4876         is needed.
4877         (Resolve_Short_Circuit): Handle pragma Check
4878
4879         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4880         Use new Is_Standard_Character_Type predicate
4881         (Eval_Relational_Op): Catch more cases of string comparison
4882
4883 2008-04-08  Robert Dewar  <dewar@adacore.com>
4884             Gary Dismukes  <dismukes@adacore.com>
4885
4886         * s-rident.ads: Add No_Default_Initialization restriction
4887
4888         * exp_tss.adb: 
4889         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4890         (Set_TSS): Handle No_Default_Initialization case
4891
4892         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4893         No_Default_Initialization
4894         (Expand_N_Subprogram_Body): Remove redundant initialization of out
4895         parameters when Normalize_Scalars is active.
4896         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4897         Fix casing error in formal parameter name in call
4898         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4899         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4900         dispatching call on VM targets.
4901
4902 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4903             Thomas Quinot  <quinot@adacore.com>
4904
4905         * exp_ch7.adb (Find_Final_List): Change the test for generating a
4906         selected component from an access type's Associated_Final_Chain to
4907         check for the presence of that field, rather than assuming it exists
4908         for all named access types.
4909         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4910         procedure to call at the end of the generated cleanup procedure.
4911         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4912         and an At_End_Proc already exists in the handled sequence of statements
4913         for which cleanup actions are being expanded, the original cleanup
4914         action must be preserved.
4915
4916 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4917             Ed Schonberg  <schonberg@adacore.com>
4918             Robert Dewar  <dewar@adacore.com>
4919             Gary Dismukes  <dismukes@adacore.com>
4920
4921         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4922         Build_Unprotected_Subprogram_Body): Generate debug info for
4923         declarations related to the handling of private data in task and
4924         protected types.
4925         (Debug_Private_Data_Declarations): New subprogram.
4926         (Install_Private_Data_Declarations): Remove all debug info flagging.
4927         This is now done by Debug_Private_Data_Declarations at the correct
4928         stage of expansion.
4929         (Build_Simple_Entry_Call): If the task name is a function call, expand
4930         the prefix into an object declaration, and make the surrounding block a
4931         task master.
4932         (Build_Master_Entity): An internal block is a master if it wraps a call.
4933         Code reformatting, update comments. Code clean up.
4934         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4935         (Replicate_Entry_Formals): If the formal is an access parameter or
4936         anonymous access to subprogram, copy the original tree to create new
4937         entities for the formals of the subprogram.
4938         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4939         for tasks to store the value passed using pragma Relative_Deadline.
4940         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4941         run-time call to create a task.
4942         (Build_Wrapper_Spec): If the controlling argument of the interface
4943         operation is an access parameter with a non-null indicator, use the
4944         non-null indicator on the wrapper.
4945
4946         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4947         present, which it may not be in the case where the type entity is an
4948         incomplete view brought in by a limited with.
4949         (Analyze_Task_Type): Only retrieve the full view when present, which it
4950         may not be in the case where the type entity is an incomplete view brought
4951         in by a limited with.
4952         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4953         private components of a protected type, to prevent the generation of freeze
4954         nodes for which there is no proper scope of elaboration.
4955
4956         * exp_util.ads, exp_util.adb
4957         (Remove_Side_Effects): If the expression is a function call that returns a
4958         task, expand into a declaration to invoke the build_in_place machinery.
4959         (Find_Protection_Object): New routine.
4960         (Remove_Side_Effects): Also make a copy of the value
4961         for attributes whose result is of an elementary type.
4962         (Silly_Boolean_Array_Not_Test): New procedure
4963         (Silly_Boolean_Array_Xor_Test): New procedure
4964         (Is_Volatile_Reference): New function
4965         (Remove_Side_Effects): Use Is_Volatile_Reference
4966         (Possible_Bit_Aligned_Component): Handle slice case properly
4967
4968         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4969         case test to Exp_Util
4970         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4971
4972 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4973
4974         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4975         in call
4976         (Add_RACW_Features): When processing an RACW in another unit than the
4977         main unit, set Body_Decls to No_List to indicate that the bodies of
4978         the type's TSS must not be generated.
4979         (GARLIC_Support.Add_RACW_Read_Attribute,
4980         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4981         Body_Decls is No_List.
4982         (PolyORB_Support.Add_RACW_Read_Attribute,
4983         PolyORB_Support.Add_RACW_Write_Attribute,
4984         PolyORB_Support.Add_RACW_From_Any,
4985         PolyORB_Support.Add_RACW_To_Any,
4986         PolyORB_Support.Add_RACW_TypeCode): Same.
4987         (Transmit_As_Unconstrained): New function.
4988         (Build_Ordered_Parameters_List): Use the above to order parameters.
4989         (GARLIC_Support.Build_General_Calling_Stubs):
4990         Use the above to determine which parameters to unmarshall using 'Input
4991         at the point where their temporary is declared (as opposed to later on
4992         with a 'Read call).
4993         (PolyORB_Support.Build_General_Calling_Stubs):
4994         Use the above to determine which parameters to unmarshall using From_Any
4995         at the point where their temporary is declared (as opposed to later on
4996         with an assignment).
4997
4998 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4999
5000         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5001         an Input function for an access type, do not perform default
5002         initialization on the local variable that receives the value, to
5003         prevent spurious warnings when the type is null-excluding.
5004
5005 2008-04-08  Robert Dewar  <dewar@adacore.com>
5006             Ed Schonberg  <schonberg@adacore.com>
5007
5008         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5009         units.
5010         (Size_Known): Generic formal scalar types have known at compile
5011         time size, so remove check.
5012         Fix casing error in formal parameter name in call
5013         (Freeze_Subprogram): If the subprogram is a user-defined operator,
5014         recheck its overriding indication.
5015
5016 2008-04-08  Vincent Celier  <celier@adacore.com>
5017
5018         * gnat1drv.adb: Send all messages indicating an error to standard error
5019
5020 2008-04-08  Robert Dewar  <dewar@adacore.com>
5021
5022         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5023         (List_Applicable_Restrictions): Do not list existing restrictions
5024
5025 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5026
5027         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5028         add a pointer to generic sockets literature
5029         do not mention that the given example is "typical" usage.
5030         Remove obsolete comment about multicast not being supported on Windows.
5031         (Connect_Socket): Make Server mode IN rather than IN OUT
5032         since this formal is never modified.
5033
5034 2008-04-08  Robert Dewar  <dewar@adacore.com>
5035
5036         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5037         the declaration for some different entity.
5038         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5039         list is precent (following the parent subtype indication), display
5040         appropriate "and" keyword.
5041
5042         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5043         Remove unnecessary calls to Init_Size_Align and Init_Esize.
5044         Add notes on use of Parent field of an Itype
5045
5046 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5047             Robert Dewar  <dewar@adacore.com>
5048             Gary Dismukes  <dismukes@adacore.com>
5049
5050         * lib-xref.adb (Is_On_LHS): Remove dead code
5051         (Output_Overriden_Op): If the overridden operation is itself inherited,
5052         list the ancestor operation, which is the one whose body or absstract
5053         specification is actually being overridden. For source navigation
5054         purposes.
5055
5056         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5057         operation is primitive for the type.
5058         (Declare_Inherited_Private_Subprograms): If the new operation overrides
5059         an inherited private subprogram, set properly the Overridden_Operation
5060         attribute, for better cross-reference information.
5061         (Analyze_Package_Specification): Do late analysis of spec PPCs
5062         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5063         properly the full view and underlying full views of a private type in a
5064         child unit, whose full view is derived from a private type in a parent
5065         unit, and whose own full view becomes visible in the child body.
5066
5067         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5068         primitive operation after the type has been frozen, add an explicit
5069         reference to the type and the operation, because other primitive
5070         references have been emitted already.
5071         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5072         dispatching call on VM targets.
5073
5074 2008-04-08  Vincent Celier  <celier@adacore.com>
5075             Thomas Quinot  <quinot@adacore.com>
5076
5077         * make.adb: (Gnatmake_Called): Remove, no longer necessary
5078         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5079         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5080         (Insert_Project_Sources): Take into account index in multi-unit source
5081         files.
5082         After building a library project, delete all temporary files.
5083         (Initialize): Reset current output after parsing project file.
5084         (Collect_Arguments_And_Compile): Never insert in the queue the sources
5085         of library projects that are externally built.
5086         Put file name in error and inform messages if -df is used
5087         (Display): If invoked with -d7, do not display path names, but only
5088         file names.
5089
5090         * makeutl.ads (Path_Or_File_Name): New function
5091         (Path_Or_File_Name): New function
5092
5093 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
5094
5095         * Make-lang.in: Disable warnings during first stage of bootstrap
5096         Get rid of gnatbl.
5097         Update dependencies.
5098
5099 2008-04-08  Vincent Celier  <celier@adacore.com>
5100
5101         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5102         case to decide if ALI object file is included in library.
5103         (Build_Library): Never attempt to build a library if the project is
5104         externally built.
5105
5106 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5107
5108         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5109         (No_List) is defined to return Empty.
5110
5111 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
5112
5113         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5114         documentation.
5115         Update comments.
5116         (Read_Default_Search_Dirs): Do not consider spaces as path separators
5117         because spaces may be part of legal paths.
5118
5119 2008-04-08  Robert Dewar  <dewar@adacore.com>
5120
5121         * par-ch11.adb (P_Exception_Handler): Check indentation level for
5122         handler
5123
5124 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5125
5126         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5127         in a type declaration, if this is not an interface declaration or
5128         private type extension.
5129
5130 2008-04-08  Vincent Celier  <celier@adacore.com>
5131
5132         * prj-util.adb (Executable_Of): New String parameter Language. When
5133         Ada_Main is False and Language is not empty, attempt to remove the body
5134         suffix or the spec suffix of the language to get the base of the
5135         executable file name.
5136         (Put): New Boolean parameter Lower_Case, defauilted to False. When
5137         Lower_Case is True, put the value in lower case in the name list.
5138         (Executable_Of): If there is no executable suffix in the configuration,
5139         then do not modify Executable_Extension_On_Target.
5140
5141         * prj-util.ads (Executable_Of): New String parameter Language,
5142         defaulted to the empty string.
5143         (Put): New Boolean parameter Lower_Case, defauilted to False
5144
5145 2008-04-08  Robert Dewar  <dewar@adacore.com>
5146
5147         * scng.adb (Scan_Identifier): Handle case of identifier starting with
5148         wide character using UTF-8 encoding.
5149
5150 2008-04-08  Javier Miranda  <miranda@adacore.com>
5151
5152         * sem.adb (Analyze): Consider case in which we analyze an empty node
5153         that was generated by a call to a runtime function that is not
5154         available under the configurable runtime.
5155
5156         * sem.ads (Inside_Freezing_Actions): New flag.
5157         (Save_Check_Policy_List): New field in scope stack entry
5158
5159 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5160             Robert Dewar  <dewar@adacore.com>
5161
5162         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5163         the ancestor part of an extension aggregate for a limited type.
5164         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5165         enumeration index bounds.
5166         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5167         when array is too short.
5168         (Check_Expr_OK_In_Limited_Aggregate): Move function
5169         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5170         change name).
5171         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5172         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5173         component associations.
5174         (Check_Non_Limited_Type): Moved to outer level and renamed.
5175         (Resolve_Record_Aggregate): In an extension aggregate, an association
5176         with a box initialization can only designate a component of the
5177         extension, not a component inherited from the given ancestor
5178
5179         * sem_case.adb: Use new Is_Standard_Character_Type predicate
5180
5181 2008-04-08  Robert Dewar  <dewar@adacore.com>
5182
5183         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5184         negative scale
5185         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5186         Properly handle case where Aft > Scale and input number is less than
5187         one.
5188
5189 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5190
5191         * s-stoele.ads, s-soflin.ads: Move the location of
5192         Dummy_Communication_Block from System.Storage_Elements to
5193         System.Soft_Links.
5194
5195         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5196         emulate Communication_Block in certain scenarios.
5197
5198 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5199
5200         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5201         subprogram.
5202         Add new subtype S_WWC, unchecked conversion routines From_WWC and
5203         To_WWC.
5204         (I_WWC, O_WWC): New routines for input and output of
5205         Wide_Wide_Character.
5206
5207 2008-04-08  Robert Dewar  <dewar@adacore.com>
5208
5209         * stringt.adb (Write_String_Table_Entry): Handle wide characters
5210         properly
5211
5212 2008-04-08  Robert Dewar  <dewar@adacore.com>
5213
5214         * styleg.adb (Check_Comment): Allow special char after -- in
5215         non-end-of-line case
5216
5217 2008-04-08  Robert Dewar  <dewar@adacore.com>
5218
5219         * stylesw.adb: Implement -gnaty + - y options
5220         (Set_GNAT_Style_Check_Options): Includ I in style check string
5221
5222         * stylesw.ads: Add comments for new style switch options
5223
5224 2008-04-08  Sergey Rybin  <rybin@adacore.com>
5225
5226         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5227         to the set of the GNAT components needed by ASIS.
5228
5229 2008-04-08  Bob Duff  <duff@adacore.com>
5230
5231         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5232
5233 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5234
5235         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5236         Improve error message generation.
5237
5238 2008-04-08  Vincent Celier  <celier@adacore.com>
5239
5240         * a-direct.adb (Start_Search): Check for Name_Error before checking for
5241         Use_Error, as specified in the RM. Check if directory is open and raise
5242         Use_Error if it is not.
5243
5244 2008-04-08  Vincent Celier  <celier@adacore.com>
5245             Robert Dewar  <dewar@adacore.com>
5246
5247         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5248         AAMP_On_Target is set.
5249
5250         * vms_data.ads: Add NOxxx to style check switch list
5251         Add entry COMPONENTS for -gnatVe
5252         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5253         (/SUBDIRS=).
5254         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5255         Add qualifiers for gnatmetric coupling options
5256         Add note that -gnata enables all checks
5257         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5258         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5259         New warning flag -gnatw.e
5260
5261         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5262         Add entry for -gnatyN (forgotten before)
5263         Line for new warning switch -gnatw.p
5264         New warning flag -gnatw.e
5265
5266         * gnat_ugn.texi: Add documentation fpr project file switch -aP
5267         Document -gnaty - + y
5268         Replace occurences of "package specification" with "package spec"
5269         Define preprocessing symbols in documentation of gnatprep
5270         Clarify reason for distinguishing overflow checking
5271         Add documentation for project-aware tool switches -eL and --subdirs=
5272         Complete list of configuration pragmas
5273         Specify that, even when gnatmake switch -x is used, mains on the command
5274         line need to be sources of project files.
5275         Editing of gnatcheck/gnatmetric doc.
5276         Add documentation for -gnatw.p/-gnatw.P
5277         Add missing documentation for -fno-inline-functions.
5278         Add documentation for -gnatw.e
5279
5280         * gnat_rm.texi: Add documentation for No_Default_Initialization
5281         Replace occurences of "package specification" with "package spec"
5282         Document use of * in Warnings Off string
5283         Update documentation of alignment/component clauses.
5284         Add documentation for Invalid_Value
5285         Document new consistency rule for Optimize_Alignment
5286         Add documentation for Precondition and Postcondition pragmas
5287         Add documentation for Check and Check_Policy pragmas
5288         Document new Enum_Val attribute
5289         Remove requirement for static string in pragma Assert
5290         Add documentation on GNAT.Time_Stamp
5291
5292         * ug_words: add entry for -gnatVe
5293         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
5294         Add entry for -gnatw.e
5295
5296         * debug.adb: Add missing documentation for d.a flag
5297         Document new -gnatd.a switch.
5298         Add documentation for new gnatmake debug switch -df
5299
5300 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5301
5302         * gen-soccon.c: Bump year in copyright notices.
5303
5304         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
5305
5306 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5307
5308         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
5309         Minor reformatting.
5310
5311 2008-04-08  Robert Dewar  <dewar@adacore.com>
5312             Bob Duff  <duff@adacore.com>
5313
5314         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
5315         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
5316
5317         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
5318
5319         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
5320
5321         * g-trasym.ads: Minor comment improvements
5322
5323         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
5324
5325         * a-sequio.ads, a-direio.ads: improve message for tagged type
5326
5327         * a-strunb.ads: Minor reformatting
5328
5329         * a-tifiio.adb: Minor reformatting
5330
5331         * atree.adb (Fix_Parents): Use clearer names for formals
5332         Cleanup and simplify code
5333         Use named notation in calls
5334
5335         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
5336         confusing calls
5337
5338         * uintp.adb: Used named notation for some confusing calls
5339
5340         * bindusg.adb: Minor change in one line of output
5341
5342         * cstand.adb: Minor reformatting of src representation of Standard
5343
5344         * a-assert.ads: Add comment.
5345
5346         * g-decstr.adb: Fix bad indentation
5347
5348         * expander.ads, expander.adb: Code clean up.
5349
5350         * sem_dist.ads: Minor comment improvement
5351
5352         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
5353         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
5354
5355         * i-cstrin.adb: Fix casing error in formal parameter name in call
5356
5357 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5358
5359         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
5360         mentioned in limited_with_clauses to do create semantic dependencies
5361         even though they appear in the ali file.
5362
5363 2008-04-08  Emmanuel Briot  <briot@adacore.com>
5364
5365         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
5366         statement.
5367         (Get_Configuration): New subprogram.
5368
5369         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
5370         These optional parameters help preserve the casing of the project's name
5371         when pretty-printing.
5372
5373 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
5374             Arnaud Charlet  <charlet@adacore.com>
5375
5376         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
5377         then use __gnat_set_exit_status to report the returned status code.
5378
5379         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
5380         messages on .NET, since some constructs of the language are not
5381         properly supported.
5382
5383         * gnatlink.adb (Gnatlink): In case the command line is too long for the
5384         .NET linker, gnatlink now concatenate all .il files and pass this to
5385         ilasm.
5386
5387 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5388             Xavier Grave  <grave@ipno.in2p3.fr>
5389
5390         * Makefile.in: Add make ifeq define for mips/mipsel support.
5391         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
5392         system-linux-mips.ads: New files.
5393
5394 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5395
5396         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
5397         detect systems using GNU libc.
5398         * gsocket.h: ditto.
5399         * socket.c: ditto.
5400         * adaint.c: ditto.
5401         * link.c: ditto.
5402
5403 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5404
5405         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
5406         constant constant for sysconf call.
5407         (bit_field): New packed boolean type used by cpu_set_t.
5408         (cpu_set_t): New type corresponding to the C type with
5409         the same name. Note that on the Ada side we use a bit
5410         field array for the affinity mask. There is not need
5411         for the C macro for setting individual bit.
5412         (pthread_setaffinity_np): New imported routine.
5413         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
5414         on GNU/kFreeBSD.
5415
5416 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5417
5418         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
5419
5420 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5421
5422         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
5423         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
5424         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
5425         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
5426         Return by Depressed Stack Pointer.
5427
5428 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5429
5430         * decl.c (is_variable_size): Do not unconditionally return false
5431         on non-strict alignment platforms.
5432
5433 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5434
5435         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
5436         used to process all the variants of the specified type.
5437         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
5438         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
5439         (rest_of_type_decl_compilation): Likewise.
5440         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
5441
5442 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5443
5444         * gigi.h (insert_block): Kill.
5445         * utils.c (insert_block): Kill.
5446
5447 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
5448
5449         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
5450         type has self-referential size, get the size from the initializing
5451         expression directly if it is also a constant whose nominal type
5452         has self-referential size.
5453
5454 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5455
5456         PR ada/33688
5457         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
5458
5459         PR ada/33857
5460         * env.c: Always include crt_externs.h if __APPLE__ is defined.
5461         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
5462
5463 2008-04-01  Andreas Jaeger  <aj@suse.de>
5464
5465         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
5466         IP_PKTINFO.
5467
5468 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5469
5470         * g-table.adb, g-tasloc.adb, g-traceb.ads,
5471         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
5472         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
5473         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
5474         gnatlink.adb, gnatmem.adb, gprep.adb,
5475         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
5476         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
5477         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
5478         lib-xref.ads, lib.adb, link.c, live.ads,
5479         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
5480         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
5481         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
5482         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
5483         namet.adb, namet.h, nlists.adb, nlists.ads,
5484         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
5485         osint-c.ads, osint.adb, osint.ads, output.ads,
5486         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
5487         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
5488         par-endh.adb, par-labl.adb, par-prag.adb,
5489         par-sync.adb, par-tchk.adb, par-util.adb,
5490         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
5491         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
5492         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
5493         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
5494
5495 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5496
5497         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
5498         size if it has overflowed.
5499
5500 2008-03-31  Olivier Hainque  <hainque@adacore.com>
5501             Eric Botcazou  <ebotcazou@adacore.com>
5502
5503         * utils2.c (find_common_type): Document assumption on t1/t2 vs
5504         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
5505
5506 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5507
5508         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
5509         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
5510         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
5511         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
5512         exp_tss.ads, exp_util.adb, exp_util.ads,
5513         exp_vfpt.adb, freeze.adb, freeze.ads,
5514         frontend.adb, g-alleve.adb, g-altcon.adb,
5515         g-altive.ads, g-alveop.ads, g-alvevi.ads,
5516         g-arrspl.adb, g-busorg.ads, g-calend.adb,
5517         g-calend.ads, g-casuti.ads, g-cgideb.adb,
5518         g-comlin.adb, g-comlin.ads, g-curexc.ads,
5519         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
5520         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
5521         g-dyntab.adb, g-encstr.ads, g-excact.ads,
5522         g-except.ads, g-expect.ads, g-heasor.adb,
5523         g-hesora.adb, g-hesorg.adb, g-htable.ads,
5524         g-locfil.ads, g-md5.adb, g-md5.ads,
5525         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
5526         g-pehage.adb, g-pehage.ads, g-regexp.adb,
5527         g-regexp.ads, g-regpat.adb, g-regpat.ads,
5528         g-soccon-aix.ads, g-soccon-darwin.ads,
5529         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
5530         g-soccon-hpux.ads, g-soccon-irix.ads,
5531         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
5532         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
5533         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
5534         g-soccon-solaris.ads, g-soccon-tru64.ads,
5535         g-soccon-vms.ads, g-soccon-vxworks.ads,
5536         g-soccon.ads, g-socket.adb, g-socket.ads,
5537         g-socthi-mingw.adb, g-socthi-vms.adb,
5538         g-socthi-vxworks.adb, g-soliop-mingw.ads,
5539         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
5540         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
5541         typos.
5542
5543 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
5544
5545         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
5546         if the procedure is imported.
5547
5548 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5549
5550         * adaint.c: Fix warnings.
5551
5552 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5553
5554         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
5555
5556 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5557
5558         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
5559         Fix problem of status check for null file
5560
5561 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5562
5563         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
5564         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
5565         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
5566         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
5567         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
5568         comments.
5569
5570 2008-03-26  Thomas Quinot  <quinot@adacore.com>
5571
5572         PR ada/33688
5573         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
5574         Get_Socket_Option): Add support for Receive_Packet_Info.
5575
5576         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
5577         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
5578         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
5579         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
5580         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
5581         new constants SO_REUSEPORT and IP_PKTINFO
5582
5583 2008-03-26  Robert Dewar  <dewar@adacore.com>
5584
5585         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
5586         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
5587         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
5588         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
5589         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
5590         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
5591         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
5592         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5593         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
5594         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
5595         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
5596         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
5597         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
5598         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
5599         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
5600         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
5601         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
5602         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
5603         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5604         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
5605         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
5606         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
5607         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
5608         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
5609         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
5610         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
5611         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
5612         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
5613         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
5614         s-tasloc.adb: Minor reformatting.
5615         Update comments.
5616         Remove "used for" sections from comments.
5617
5618 2008-03-26  Robert Dewar  <dewar@adacore.com>
5619
5620         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5621         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5622         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5623         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5624         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5625         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5626         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5627         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5628         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5629         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5630         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5631         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5632         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5633         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5634         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5635         double spaced if it fits on one line and otherwise single spaced.
5636
5637 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5638
5639         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
5640         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
5641         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
5642         or task info if the thread could not be created.
5643
5644 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5645
5646         * gnatvsn.ads (Library_Version): Bump to 4.4.
5647         (Current_Year): Bump to 2008.
5648
5649 2008-03-26  Robert Dewar  <dewar@adacore.com>
5650
5651         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
5652
5653         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
5654
5655         * debug.adb: Add debug flags d.r and d.v
5656         Add debug flag .T (Optimize_Alignment (Time))
5657         Add debug flag .S (Optimize_Alignment (Space))
5658
5659         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
5660         depending on setting of relevant debug flags.
5661         Replace use of Warnings_Off by Has_Warnings_Off
5662         (Freeze_Entity): In circuit for warning on suspicious convention
5663         actuals, do not give warning if subprogram has same entity as formal
5664         type, or if subprogram does not come from source.
5665         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
5666         if Optimize_Alignment set to Space.
5667
5668         * frontend.adb: Add call to Sem_Warn.Initialize
5669         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
5670         Reset Optimize_Alignment mode from debug switches .S and .T
5671
5672         * layout.adb (Layout_Composite_Object): Rewritten for
5673         Optimize_Aligment pragma.
5674
5675         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
5676         mode.
5677
5678         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
5679
5680         * par-prag.adb (N_Pragma): Chars field removed, use Chars
5681         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5682         this change. Add entry for pragma Optimize_Alignment
5683
5684         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
5685         (Pragma_Identifier (..
5686         instead, adjustments throughout to accomodate this change.
5687         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
5688         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
5689         Add implementation of pragma Optimize_Alignment
5690
5691 2008-03-26  Vincent Celier  <celier@adacore.com>
5692
5693         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
5694         Improve memory usage to avoid use of stack.
5695
5696 2008-03-26  Robert Dewar  <dewar@adacore.com>
5697
5698         * a-teioed.ads: Correct value of Default_Fill
5699
5700         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
5701
5702 2008-03-26  Robert Dewar  <dewar@adacore.com>
5703
5704         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
5705         with Current_Output (introduce Self).
5706
5707 2008-03-26  Robert Dewar  <dewar@adacore.com>
5708
5709         * checks.adb (Ensure_Valid): Capture valid status if possible
5710         (eliminate checks)
5711
5712 2008-03-26  Robert Dewar  <dewar@adacore.com>
5713
5714         * stand.ads: Deal with reordering of package standard declarations
5715
5716         * cstand.adb: Put package Standard declarations in proper order
5717
5718 2008-03-26  Robert Dewar  <dewar@adacore.com>
5719
5720         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
5721         (Pragma_Identifier (.. instead.
5722         (OK_To_Reorder_Components): New flag
5723         (Has_Entries): Code cleanup.
5724         (Warnings_Off_Used): New flag
5725         (Warnings_Off_Used_Unmodified): New flag
5726         (Warnings_Off_Used_Unreferenced): New flag
5727         (Has_Warnings_Off): New function
5728         (Has_Unmodified): New function
5729         (Has_Unreferenced): New function
5730         (Is_Trivial_Subprogram): New flag
5731         (Is_Static_Dispatch_Table_Entity): New attribute.
5732         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
5733         (more consistent with other similar names)
5734         (Access_Subprogram_Type): New classification function
5735
5736 2008-03-26  Robert Dewar  <dewar@adacore.com>
5737
5738         * errout.ads: Document new !! insertion sequence
5739
5740         * errout.adb (N_Pragma): Chars field removed, use Chars
5741         (Pragma_Identifier (..  instead.
5742         Replace use of Warnings_Off by Has_Warnings_Off
5743         (Error_Msg_Internal): Don't delete warning ending in !!
5744
5745 2008-03-26  Robert Dewar  <dewar@adacore.com>
5746
5747         * par.adb (Check_No_Right_Paren): Removed no longer used
5748
5749         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
5750         (Pragma_Identifier (..  instead.
5751
5752         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
5753
5754         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
5755         par-ch4.adb: Minor improvements in error recovery and messages.
5756
5757         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
5758         non-serious
5759
5760         * par-ch9.adb: Minor improvements in error recovery and messages
5761         (P_Protected): Better error recovery for "protected type x;"
5762
5763         * par-util.adb: Minor improvements in error recovery and messages
5764         (Check_No_Right_Paren): Removed no longer used
5765
5766 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5767
5768         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
5769         that the prefix of an attribute is the type of the aggregate being
5770         expanded.
5771
5772 2008-03-26  Javier Miranda  <miranda@adacore.com>
5773             Robert Dewar  <dewar@adacore.com>
5774
5775         * exp_attr.adb (N_Pragma): Chars field removed.
5776         (Expand_N_Attribute_Reference): If the designated type associated with
5777         attribute 'Unrestricted_Access is a subprogram entity then replace it
5778         by an E_Subprogram_Type itype.
5779         Implement attribute Old
5780
5781         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
5782
5783         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
5784         Replace call to
5785         New_Internal_Entity by call to Create_Itype to centralize calls
5786         building itypes, ad propagate the convention of the designated
5787         subprogram. In addition, disable the machinery cleaning constant
5788         indications from all entities in current scope when 'Unrestricted_Access
5789         corresponds with a node initializing a dispatch table slot.
5790         (Analyze_Attribute): Parameterless attributes returning a string or a
5791         type will not be called with improper arguments, so we can remove junk
5792         code that was dealing with this case.
5793         Implement attribute Old
5794
5795         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
5796         Add entry for pragma Optimize_Alignment
5797         New standard names Sync and Synchronize
5798
5799 2008-03-26  Robert Dewar  <dewar@adacore.com>
5800             Arnaud Charlet  <charlet@adacore.com>
5801
5802         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
5803         stmt.
5804         (No_Exception_Propagation_Active): New function.
5805         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5806         Update comments, and review all uses of No_Exception_Propagation, which
5807         are now correct and in sync with what gigi expects.
5808
5809         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
5810         function.
5811         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5812         Update comments, and review all uses of No_Exception_Propagation, which
5813         are now correct and in sync with what gigi expects.
5814
5815 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5816
5817         * sem_ch3.adb (Access_Definition): If the access type is the return
5818         result of a protected function, create an itype reference for it
5819         because usage will be in an inner scope from the point of declaration.
5820         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
5821         OK_To_Reorder_Components.
5822         (Make_Index): If an overloaded range includes a universal integer
5823         interpretation, resolve to Standard.Integer.
5824         (Analyze_Subtype_Indication): Copy Convention to subtype
5825         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
5826         limited an synchronized progenitors in type declaration and private
5827         extension declarations.
5828
5829         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
5830         protected subprogram body, determine proper scope from subprogram
5831         declaration.
5832
5833 2008-03-26  Robert Dewar  <dewar@adacore.com>
5834
5835         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
5836         No_Run_Time_Mode
5837
5838 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
5839
5840         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
5841         of a heap allocator for a limited unconstrained function return when
5842         resstriction No_Allocators is active.
5843         (Analyze_Allocator): The restriction No_Allocators is now only checked
5844         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5845
5846         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5847         of a heap allocator for a limited unconstrained function return when
5848         resstriction No_Allocators is active.
5849         (Analyze_Allocator): The restriction No_Allocators is now only checked
5850         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5851         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
5852         operands are fixed-point types, the universal_fixed predefined operation
5853         is used, regardless of whether the operand type (s) have a primitive
5854         operation of the same name.
5855
5856 2008-03-26  Javier Miranda  <miranda@adacore.com>
5857
5858         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5859         Is_Static_Dispatch_Table
5860         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5861         to Exchange_Declarations to exchange the private and full-view. Bug
5862         found working in this issue.
5863         (Expand_Dispatching_Call): Propagate the convention of the subprogram
5864         to the subprogram pointer type.
5865         (Make_Secondary_DT): Replace generation of Prim'Address by
5866         Address (Prim'Unrestricted_Access)
5867         (Make_DT): Replace generation of Prim'Address by
5868         Address (Prim'Unrestricted_Access)
5869         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5870         simple call form for single entry.
5871         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5872         tables of predefined primitives).
5873         (Make_Secondary_DT): Add support to handle access to dispatch tables of
5874         predefined primitives.
5875         (Make_Tags): Add entities to Access_Dispatch_Table associated with
5876         access to dispatch tables containing predefined primitives.
5877
5878         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5879         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5880         this change.
5881         (Register_Predefined_DT_Entry): Updated to handle the new contents
5882         of attribute Access_Disp_Table (pointers to dispatch tables containing
5883         predefined primitives).
5884
5885         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5886         subprogram.
5887         (Find_Interface_ADT): Updated to skip the new contents of attribute
5888         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5889         primitives).
5890
5891         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5892         concurrent types.
5893         (Set_Convention): Use new function Is_Access_Subprogram_Type
5894         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5895         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5896         primitives).
5897
5898         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5899         expanded code avoiding calls to Build_Predef_Prims.
5900         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5901         call to Build_Get_Predefined_Prim_Op_Address.
5902
5903 2008-03-26  Javier Miranda  <miranda@adacore.com>
5904
5905         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5906         subprogram Corresponding_Runtime_Package to know the runtime package
5907         that will provide support to a given protected type.
5908
5909         * exp_ch9.adb (Add_Private_Declarations,
5910         Build_Protected_Subprogram_Call,
5911         Build_Protected_Entry, Build_Simple_Entry_Call,
5912         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5913         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5914         cleanup using the new centralized subprogram Corresponding_Runtime
5915         Package to know the runtime package that provides support to
5916         a given protected type.
5917
5918 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5919
5920         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5921         assignment is within the initialization procedure for a packed array,
5922         and Initialize_Scalars is enabled, compile right-hand side with checks
5923         off, because the value is purposely out of range.
5924
5925 2008-03-26  Vincent Celier  <celier@adacore.com>
5926
5927         * gnatcmd.adb: Add processing for GNAT SYNC
5928
5929         * vms_conv.ads: (Command_Type): Add command Sync
5930
5931         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5932
5933         * vms_data.ads: Add entries for -gnatw.w
5934         Add qualifier for gnatstub --header-file option
5935         Add switches for GNAT SYNC
5936
5937         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5938         (Add_Package_Name): New procedure
5939         (Package_Name_List): New function
5940         (Initialize): Add known package names to the list
5941         (Register_New_Package): Add the new package name to the list
5942
5943 2008-03-26  Robert Dewar  <dewar@adacore.com>
5944
5945         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5946         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5947         Raise_Exception by "raise with" construct.
5948
5949 2008-03-26  Pascal Obry  <obry@adacore.com>
5950
5951         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5952         supported platforms.
5953         
5954         * Makefile.rtl: Add g-sercom.o.
5955         
5956         * impunit.adb: Add g-sercom.adb.
5957         
5958         * s-crtl.ads (open): New routine.
5959         (close): Likewise.
5960         (write): Likewise.
5961         
5962         * s-osinte-mingw.ads (BYTE): New type.
5963         (CHAR): Likewise.
5964         (OVERLAPPED): Likewise.
5965         (GENERIC_READ): New constant.
5966         (GENERIC_WRITE): Likewise.
5967         (OPEN_EXISTING): Likewise.
5968         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5969         type instead.
5970         (CreateFile): New routine.
5971         (WriteFile): Likewise.
5972         (ReadFile): Likewise.
5973         (CloseHandle): Move next to the other file oriented routines.
5974
5975         * g-sercom.ads: New unit.
5976
5977         * g-sercom.adb: Default implementation, calls to this unit will raise
5978         a program error exception.
5979         
5980         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5981         GNU/Linux implementations.
5982
5983 2008-03-26  Robert Dewar  <dewar@adacore.com>
5984
5985         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5986
5987         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5988         unchecked conversion for different conventions only for subprogram
5989         pointers or on VMS.
5990
5991 2008-03-26  Vincent Celier  <celier@adacore.com>
5992
5993         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5994         to check if the specified object file is correct.
5995
5996 2008-03-26  Thomas Quinot  <quinot@adacore.com>
5997
5998         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5999         Comes_From_Source to exclude primitives from being checked. We want to
6000         exclude predefined primitives only, so use the appropriate specific
6001         predicate. Also, flag a formal parameter of an anonymous
6002         access-to-subprogram type as illegal for a primitive operation of a
6003         remote access to class-wide type.
6004
6005 2008-03-26  Vincent Celier  <celier@adacore.com>
6006
6007         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6008         known, check if it may be a missspelling of a known package name. In
6009         not verbose, not mode, issue warnings only if the package name is a
6010         possible misspelling.
6011         In verbose mode, always issue a warning for a not known package name,
6012         plus a warning if the name is a misspelling of a known package name.
6013
6014         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6015         limited withs or limited withs are parse during one call.
6016         (Parse_Single_Project): Post parse context clause in two passes: non
6017         limited withs before current project and limited withs after current
6018         project.
6019
6020         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6021         project with the name With_Name, even if it is only extended indirectly.
6022         (Recursive_Process): Process projects in order: first single withs, then
6023         current project, then limited withs.
6024
6025         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6026         project with the name With_Name, even if it is only extended indirectly.
6027
6028 2008-03-26  Robert Dewar  <dewar@adacore.com>
6029
6030         * scn.adb (Initialize_Scanner): Format messages belong on standard error
6031
6032 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6033
6034         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6035         a generic subprogram that is imported, do not attempt to compile
6036         non-existent body.
6037
6038         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6039         imported, do not generate a raise_program_error for the non-existent
6040         body.
6041         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6042         perform minimal name resolution on the generic to avoid spurious
6043         warnings.
6044         (Find_Actual_Type): the designated type of the actual in a child unit
6045         may be declared in a parent unit without being an actual.
6046
6047 2008-03-26  Robert Dewar  <dewar@adacore.com>
6048
6049         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6050         * sinfo.ads, sinfo.adb (From_At_End): New flag
6051
6052 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6053
6054         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6055         operations that have an interface parameter.
6056         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6057         Don't treat No_Return call as raise.
6058
6059         * sem_disp.adb (Check_Dispatching_Operations): apply check for
6060         non-primitive interface primitives to access parameters, not to all
6061         parameters of an access type.
6062
6063 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
6064
6065         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6066         declarations of a parent unit are made visible when compiling a child
6067         instance, the parent is not a hidden open scope, even though it may
6068         contain other pending instance.
6069         
6070         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6071         hidden open scope for some child instance, it does affect the
6072         visibility status of other stach entries.
6073         (Analyze_Object_Renaming): Check that a class-wide object cannot be
6074         renamed as an object of a specific type.
6075
6076 2008-03-26  Robert Dewar  <dewar@adacore.com>
6077
6078         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6079         recursion and raise SE directly.
6080         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6081         set for formal type for IN mode parameter.
6082
6083 2008-03-26  Robert Dewar  <dewar@adacore.com>
6084
6085         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6086         (Initialize): New procedure
6087         (Output_Warnings_Off_Warnings): New procedure
6088         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6089         (Output_Non_Modifed_In_Out_Warnings): Ditto
6090         (Warn_On_Unreferenced_Entity): Ditto
6091
6092 2008-03-26  Vincent Celier  <celier@adacore.com>
6093
6094         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6095         readable.
6096
6097 2008-03-26  Matthew Heaney  <heaney@adacore.com>
6098
6099         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
6100         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6101         Marked with clauses as private, and controlled operations as overriding
6102
6103 2008-03-26  Robert Dewar  <dewar@adacore.com>
6104
6105         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6106
6107 2008-03-26  Robert Dewar  <dewar@adacore.com>
6108
6109         * back_end.adb, back_end.ads: Minor reformatting
6110
6111         * bindgen.adb: Minor clarification of comments
6112
6113         * fname.ads: Minor comment fixes
6114
6115         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6116         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6117
6118         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6119         xsnames.adb: Remove warnings off pragma no longer needed
6120
6121         * a-catizo.ads, a-calari.ads, a-calfor.adb,
6122         a-calfor.ads: Fix header.
6123
6124 2008-03-26  Tristan Gingold  <gingold@adacore.com>
6125
6126         * init.c: Do not adjust pc for HPARITH on alpha/vms.
6127
6128 2008-03-26  Robert Dewar  <dewar@adacore.com>
6129
6130         * lib-xref.adb: (OK_To_Set_Reference): New function
6131         (Generate_Reference): Don't set referenced from occurrence in Warnings,
6132         Unmodified, or Unreferenced pragma
6133
6134 2008-03-26  Robert Dewar  <dewar@adacore.com>
6135
6136         * alloc.ads: Add entries for Warnings_Off_Pragmas table
6137
6138 2008-03-26  GNAT Script  <nobody@adacore.com>
6139
6140         * Make-lang.in: Makefile automatically updated
6141
6142 2008-03-26  Robert Dewar  <dewar@adacore.com>
6143
6144         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6145         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6146         removed, use Chars (Pragma_Identifier (..  instead, adjustments
6147         throughout to accomodate this change.
6148
6149         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6150
6151         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6152         Einfo.Set_Needs_Debug_Info)
6153
6154 2008-03-26  Robert Dewar  <dewar@adacore.com>
6155
6156         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6157         Add description for the new gnatstub option '--header-file'
6158         clarification of -gnatwz/-gnatwZ
6159         Add a "Irix-Specific Considerations" section to document the need to
6160         set LD_LIBRARY_PATH when using the default shared runtime library.
6161         Added documentation for both gcov and gprof.
6162
6163         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6164         messages that are not suppressed when clients are compiled.
6165         Add documentation of s-pooglo s-pooloc
6166         Document the new GNAT.Serial_Communications API.
6167         Add documentation for 'Old attribute
6168         Add description of pragma Optimize_Alignment
6169
6170         * ug_words: Add entries for -gnatw.w -gnatw.W
6171
6172         * usage.adb: Add line for -gnatw.w (warn on warnings off)
6173
6174 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
6175
6176         Revert
6177         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6178         PR ada/35186
6179         * decl.c (maybe_pad_type): Avoid padding an integral type when
6180         bumping its alignment is sufficient.
6181
6182 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
6183
6184         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6185         Fix wrong formatting (lines too long)
6186
6187 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6188
6189         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6190         a-calend-vms.adb, a-calend.adb, a-calend.ads,
6191         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6192         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6193         a-cohama.ads, a-comlin.ads, a-coorse.adb,
6194         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6195         a-except-2005.ads, a-except.adb, a-except.ads,
6196         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6197         a-exextr.adb, a-filico.ads, a-finali.ads,
6198         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6199         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6200         a-sequio.ads, a-strbou.ads, a-strfix.adb,
6201         checks.adb, exp_ch3.adb, exp_ch4.adb,
6202         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6203         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6204         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6205         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6206         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6207
6208 2008-03-24  Robert Dewar  <dewar@adacore.com>
6209
6210         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6211         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6212         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6213         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6214         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6215         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6216         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6217         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6218         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6219         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6220         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6221         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6222         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6223         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6224         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6225         double spaced if it fits on one line and otherwise single spaced.
6226
6227 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6228
6229         PR documentation/15479
6230         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6231         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6232         (doc/gnat_ugn.info): Renamed from ...
6233         (doc/gnat_ugn_unw.info): ... this.
6234         (doc/gnat_ugn.dvi): Renamed from ...
6235         (doc/gnat_ugn_unw.dvi): ... this.
6236         (doc/gnat_ugn.pdf): Renamed from ...
6237         (doc/gnat_ugn_unw.pdf): ... this.
6238         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6239         Adjusted.
6240         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6241         unconditionally to gnat_ugn.info.  Fix cross references to the
6242         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
6243         and GNU make manuals to be proper texinfo links.
6244         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6245
6246 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6247
6248         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6249         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6250
6251 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6252
6253         * trans.c (addressable_p): Add notes on addressability issues.
6254
6255 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6256             Ed Schonberg  <schonberg@adacore.com>
6257
6258         * trans.c (addressable_p): Accept COND_EXPR when both arms
6259         are addressable.
6260         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6261         (call_to_gnu): Do not use name reference in the error message
6262         for a misaligned by_reference_parameter. The actual may be a
6263         general expression.
6264
6265 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6266
6267         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6268
6269 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6270
6271         * gnat_rm.texi (Implementation Defined Characteristics)
6272         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6273         appropriate.
6274         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6275         (Switches for gnatchop, Installing a library): Likewise.
6276
6277 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6278
6279         * trans.c (emit_range_check): Do not emit the check if the base type
6280         of the expression is the type against which its range must be checked.
6281
6282 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6283
6284         * decl.c (maybe_pad_type): Use value_factor_p.
6285
6286 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6287
6288         * lang.opt (nostdlib): Move around.
6289         * misc.c (gnat_handle_option): Fix formatting.
6290         (gnat_dwarf_name): Move around.
6291         * trans.c (Case_Statement_to_gnu): Fix formatting.
6292         (gnat_to_gnu): Likewise.
6293         * utils.c (aggregate_type_contains_array_p): Likewise.
6294         (create_subprog_decl): Likewise.
6295
6296 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6297
6298         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
6299         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
6300
6301 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6302
6303         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
6304         BIGGEST_ALIGNMENT when capping the alignment of records with
6305         strict alignment and size clause.
6306
6307 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6308
6309         * lang-specs.h: Pass -gnatwa if -Wall is passed.
6310         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
6311         and -Wuninitialized.
6312         (gnat_post_options): Clear warn_unused_parameter.
6313
6314 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6315
6316         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
6317         aligned bit-fields, bumping the alignment of the record type if deemed
6318         profitable.
6319         (value_factor_p): Return false instead of 0.
6320
6321 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6322
6323         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
6324         for scalar types with small alignment.
6325
6326 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6327
6328         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
6329         from that of the front-end's end label.
6330         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
6331         from that of the loop label.
6332
6333 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6334
6335         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
6336         comment for the packed array type case.
6337         * utils.c (build_template): Use a loop to strip padding or
6338         containing records for justified modular types.
6339
6340 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6341
6342         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
6343         large alignments specified for types.
6344         (validate_alignment): Minor cleanup.
6345
6346 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6347
6348         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
6349         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
6350         the component for packing, if possible, as well as if a component
6351         size clause is specified.
6352         <E_Record_Subtype>: For an array type used to implement a packed
6353         array, get the component type from the original array type.
6354         Try to get a smaller form of the component for packing, if possible,
6355         as well as if a component size clause is specified.
6356         (round_up_to_align): New function.
6357         (make_packable_type): Add in_record parameter.
6358         For a padding record, preserve the size.  If not in_record and the
6359         size is too large for an integral mode, attempt to shrink the size
6360         by lowering the alignment.
6361         Ditch the padding bits of the last component.
6362         Compute sizes and mode manually, and propagate the RM size.
6363         Return a BLKmode record type if its size has shrunk.
6364         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
6365         Use Original_Array_Type to retrieve the type in case of an error.
6366         Adjust call to make_packable_type.
6367         (gnat_to_gnu_field): Likewise.
6368         (concat_id_with_name): Minor tweak.
6369         * trans.c (larger_record_type_p): New predicate.
6370         (call_to_gnu): Compute the nominal type of the object only if the
6371         parameter is by-reference.  Do the conversion actual type -> nominal
6372         type if the nominal type is a larger record.
6373         (gnat_to_gnu): Do not require integral modes on the source type to
6374         avoid the conversion for types with identical names.
6375         (addressable_p): Add gnu_type parameter.  If it is specified, do not
6376         return true if the expression is not addressable in gnu_type.
6377         Adjust recursive calls.
6378         * utils.c (finish_record_type): Remove dead code.
6379
6380 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6381
6382         PR ada/35186
6383         * decl.c (maybe_pad_type): Avoid padding an integral type when
6384         bumping its alignment is sufficient.
6385
6386 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6387
6388         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
6389         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
6390         statement.
6391         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
6392         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
6393         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
6394         code output strings.
6395         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
6396         system-vms_64.ads: Fix typos in ada source code comments.
6397         * sinfo-cn.adb: Remove incomplete sentence.
6398
6399         PR documentation/15479
6400         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
6401
6402 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6403
6404         PR ada/22255
6405         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
6406
6407 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6408
6409         PR ada/34799
6410         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
6411         that underlying type is present.
6412
6413 2008-02-26  Tom Tromey  <tromey@redhat.com>
6414
6415         * misc.c (internal_error_function): Remove test of
6416         USE_MAPPED_LOCATION.
6417         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
6418         (Sloc_to_locus): Remove old location code.
6419
6420 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6421
6422         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
6423         `i.e.' by adding comma or `@:' as appropriate.
6424         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
6425         plain characters `C', use `@samp{C}'.
6426         * gnat_ugn.texi (File Naming Rules, About gnatkr)
6427         (Krunching Method): Likewise.
6428
6429         * gnat_ugn.texi (Conventions): List environment variables and
6430         metasyntactic variables.
6431         (Compiling Programs): Fix notation of metasyntactic variables.
6432         Add @file where appropriate.  Use @file for file extensions,
6433         @samp for strings.
6434         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
6435         instead of @file, @env instead of @code.
6436
6437 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6438
6439         PR documentation/15479
6440         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
6441         and `...' with `@dots{}' or `@enddots{}'.
6442
6443         PR documentation/15479
6444         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
6445         use @command instead of @code, @option instead of @samp or @code,
6446         @code instead of @var, @samp instead of @file.
6447
6448         PR documentation/15479
6449         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
6450         in Makefile rules, by using `&&' rather than `;'.
6451
6452 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6453
6454         PR documentation/15479
6455         * gnat_ugn.texi: In non-code, avoid space before colon.
6456         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
6457         (Examples of gnatxref Usage): Use @command{vi} instead of
6458         @file{vi}.
6459         (Character Set Control): Do not use @code for UTF-8.
6460         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
6461         use @code for IEEE.
6462         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
6463         sample.
6464         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
6465
6466 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
6467
6468         PR ada/35143
6469         * env.c: Add __rtems__ to if defined.
6470         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
6471         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
6472         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
6473         pragma Convention as required.
6474         * gsocket.h: Make compile in and out of RTS.
6475         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
6476         Use g-soccon-rtems.ads.
6477         * g-soccon-rtems.ads, system-rtems.ads: New files.
6478
6479 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6480
6481         PR other/35107
6482         * Make-lang.in (gnat1): Add $(GMPLIBS).
6483
6484 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
6485
6486         * decl.c (components_to_record): Improve comment.
6487
6488 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
6489
6490         * decl.c (components_to_record): Do not reuse the empty union type
6491         if there is a representation clause on the record.
6492         * trans.c (addressable_p): Return true for INTEGER_CST.
6493
6494 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
6495
6496         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
6497         in pointer arithmetics.
6498         * utils2.c (build_allocator): Likewise.
6499
6500 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6501
6502         * utils.c (build_function_stub): Properly build the call expression.
6503
6504 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
6505
6506         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
6507         before converting the expression to the type of the object.
6508         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
6509         Stabilize constructors for special wrapping types.
6510
6511 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
6512
6513         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6514         when necessary.  Merge some conditional statements.  Update comments.
6515         Rename unchecked_convert_p local variable to suppress_type_conversion.
6516         Do not suppress conversions in the In case.
6517         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
6518         into account on non strict-alignment platforms.
6519
6520 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6521
6522         * utils.c (aggregate_type_contains_array_p): New predicate.
6523         (create_field_decl): In a packed record, force byte alignment
6524         for fields without specified position that contain an array.
6525
6526 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6527
6528         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
6529
6530 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
6531
6532         PR ada/34466
6533         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
6534         sysconf call.
6535         (bit_field): New packed boolean type used by cpu_set_t.
6536         (cpu_set_t): New type corresponding to the C type with
6537         the same name. Note that on the Ada side we use a bit
6538         field array for the affinity mask. There is not need
6539         for the C macro for setting individual bit.
6540         (pthread_setaffinity_np): New imported routine.
6541
6542 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
6543
6544         PR ada/34647
6545         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6546         on OpenBSD as is done on other BSD systems.
6547
6548         PR ada/34645
6549         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
6550         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
6551         I/O.
6552
6553         PR ada/34644
6554         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
6555         clearenv().
6556
6557         PR ada/34646
6558         * init.c (__gnat_error_handler, __gnat_install_handler,
6559         __gnat_init_float): Define for OpenBSD.
6560
6561         * initialize.c (__gnat_initialize): Define for OpenBSD.
6562
6563 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
6564
6565         PR ada/34553
6566         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6567         instead of mktemp() or tmpnam() on NetBSD.
6568
6569 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
6570
6571         * trans.c (call_to_gnu): Make the temporary for non-addressable
6572         In parameters passed by reference.
6573         (addressable_p): Return true for STRING_CST and CALL_EXPR.
6574
6575 2007-12-19  Robert Dewar  <dewar@adacore.com>
6576
6577         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
6578         Add pragma Warnings (Off) for unassigned IN OUT arguments
6579
6580         * sem_warn.adb (Output_Reference): Suppress messages for internal names
6581         (Check_References): Extensive changes to tune up warnings
6582         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
6583         (Has_Pragma_Unmodifed_Check_Spec): New function
6584         (Check_References): Implement pragma Unmodified
6585         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
6586
6587         * par-prag.adb: Dummy entry for pragma Unmodified
6588
6589         * sem_prag.adb: Implement pragma Unmodified
6590
6591         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
6592         (Proc_Next_Component_Or_Discriminant): Fix typo.
6593         Update comments.
6594
6595         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
6596         Unmodified.
6597         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
6598         because the former already takes care of discarding the result.
6599         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
6600         Add comment.
6601
6602         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
6603
6604 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
6605
6606         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
6607         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
6608         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
6609         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
6610         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6611         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6612         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6613         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6614         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6615         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
6616         (Dynamic_Trampolines_Used): Delete.
6617
6618         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
6619         Turn on stack probing mechanism on LynxOS.
6620
6621 2007-12-19  Bob Duff  <duff@adacore.com>
6622
6623         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
6624         the resulting tail recursion by hand. This prevents running out of
6625         memory on deeply nested concatenations, since Field2 is where the left
6626         operand of concatenations is stored.
6627         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
6628         clarify that it can only return OK or Abandon.
6629
6630         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
6631         operand by iteration, in order to avoid running out of memory on
6632         deeply-nested concatenations. Use the Parent pointer to get back up the
6633         tree.
6634         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
6635          Resolve_Op_Concat_Rest): New procedures split out of
6636         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
6637         clearer.
6638
6639         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
6640         Traverse_Func, because the former already takes care of discarding the
6641         result.
6642
6643         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
6644         because the former already takes care of discarding the result.
6645         (Remove_Warning_Messages): Use appropriate subtype for Status and
6646         Discard 
6647
6648 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6649
6650         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
6651         discriminants forces expansion of the aggregate into assignments.
6652         (Init_Record_Controller):  If the type of the aggregate is untagged and
6653         is not inherently limited, the record controller is not limited either.
6654
6655 2007-12-19  Robert Dewar  <dewar@adacore.com>
6656
6657         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
6658         handling compile time known size of record or array (case of front end
6659         layout active, e.g. in GNAAMP).
6660
6661 2007-12-19  Javier Miranda  <miranda@adacore.com>
6662
6663         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
6664         that forces the construction of static dispatch tables in case of
6665         record subtypes.
6666
6667 2007-12-19  Robert Dewar  <dewar@adacore.com>
6668
6669         * exp_ch9.adb (Null_Statements): Moved to library level
6670         (Trivial_Accept_OK): New function
6671         (Expand_Accept_Declaration): Use Trivial_Accept_OK
6672         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
6673
6674 2007-12-19  Robert Dewar  <dewar@adacore.com>
6675
6676         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
6677         in complex case where array is Volatile.
6678
6679 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6680
6681         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
6682         properly the Ada2005 rules concerning when the current instance of a
6683         record type is aliased.
6684
6685 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6686
6687         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
6688         mangled declaration
6689         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
6690         declarations.
6691         (P_Variant_Part): Cleaner patch for parenthesized discriminant
6692
6693 2007-12-19  Vincent Celier  <celier@adacore.com>
6694
6695         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
6696         package is not known
6697
6698         * prj-attr.ads (Unknown_Package): New constant
6699         Do not crash when an unknown package is in several projects
6700
6701         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
6702         ignored
6703
6704         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
6705         existing package Language_Processing.
6706
6707 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6708             Gary Dismukes  <dismukes@adacore.com>
6709             Samuel Tardieu  <sam@rfc1149.net>
6710
6711         PR ada/15803, ada/15805
6712         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
6713         illegal access subtypes when there is a constrained partial view.
6714         (Check_For_Premature_Usage): New procedure inside
6715         Access_Subprogram_Declaration for checking that an access-to-subprogram
6716         type doesn't reference its own name within any formal parameters or
6717         result type (including within nested anonymous access types).
6718         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
6719         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
6720         context is an access_to_variable, the expression cannot be an
6721         access_to_constant.
6722
6723 2007-12-19  Bob Duff  <duff@adacore.com>
6724
6725         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
6726         (Analyze_Concatenation): Use iteration instead of recursion in order
6727         to avoid running out of stack space for deeply nested concatenations.
6728
6729 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6730             Gary Dismukes  <dismukes@adacore.com>
6731
6732         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
6733         whose renamed entity is a subprogram that requires overriding.
6734         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
6735         issuing an error for premature usage and issue a message that says
6736         'type' rather than 'object'.
6737
6738 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
6739
6740         PR ada/34149
6741         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
6742         presence of a statically tagged operand (Present (Static_Tag)) with
6743         test for Indeterm_Ancestor_Call when determining whether to propagate
6744         the static tag to tag-indeterminate operands (which forces dispatching
6745         on such calls).
6746         (Check_Controlling_Formals): Ada2005, access parameters can have
6747         defaults.
6748         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
6749         not insert subprogram in list of primitive operations if already there.
6750
6751 2007-12-19  Tristan Gingold  <gingold@adacore.com>
6752
6753         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
6754         global variable.
6755
6756 2007-12-19  Thomas Quinot  <quinot@adacore.com>
6757
6758         Part of PR ada/33688
6759         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
6760         datagram info on Linux.
6761
6762 2007-12-19  Vincent Celier  <celier@adacore.com>
6763
6764         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
6765         that the source path name is always found in the dependencies.
6766
6767 2007-12-19  Robert Dewar  <dewar@adacore.com>
6768
6769         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
6770         Fix name of Wide_Wide_Latin_1/9 file names
6771         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
6772         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
6773         Add missing documentation for Ada.Command_Line.Response_File
6774         Update list of warning letters for Warnings pragma
6775         Add documentation for pragma Unmodified
6776
6777 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
6778
6779         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
6780
6781 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
6782
6783         * s-vxwork-alpha.ads: Removed, no longer used.
6784
6785 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
6786
6787         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
6788
6789 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
6790
6791         PR ada/34360
6792         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
6793         mlib-tgt-specific.adb.
6794
6795 2007-12-13  Bob Duff  <duff@adacore.com>
6796
6797         * trans.c (Attribute_to_gnu): Check for violations of the
6798         No_Implicit_Dynamic_Code restriction. This checking used to be done in
6799         the front end, but is moved here so we can make it more accurate.
6800
6801 2007-12-13  Pascal Obry  <obry@adacore.com>
6802
6803         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
6804          version is provided for older GNU/Linux distribution not
6805          supporting thread affinity sets.
6806         
6807         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
6808         call.
6809         (bit_field): New packed boolean type used by cpu_set_t.
6810         (cpu_set_t): New type corresponding to the C type with
6811         the same name. Note that on the Ada side we use a bit
6812         field array for the affinity mask. There is not need
6813         for the C macro for setting individual bit.
6814         (pthread_setaffinity_np): New imported routine.
6815         
6816         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
6817         no null.
6818         (Create_Task): Set the processor affinity mask if information
6819         is present.
6820         
6821         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
6822         
6823 2007-12-13  Robert Dewar  <dewar@adacore.com>
6824
6825         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
6826         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
6827         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
6828         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
6829         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
6830         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
6831         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
6832         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
6833         for subprogram pointers.
6834
6835         * g-ctrl_c.adb: New file.
6836
6837         * g-ctrl_c.ads (Install_Handler): New body.
6838
6839         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
6840         instead of obsolete function Is_Always_Inlined.
6841         (Freeze_Entity): check for tagged type in imported C subprogram
6842         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
6843         (Freeze_Entity): check for convention Ada subprogram pointer in
6844         imported C subprogram.
6845         (Freeze_Fixed_Point_Type): In the case of a base type where the low
6846         bound would be chopped off and go from negative to zero, force
6847         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6848         bound) so that the size computation for the base type will take
6849         negative values into account.
6850
6851 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
6852             Bob Duff  <duff@adacore.com>
6853             Tristan Gingold  <gingold@adacore.com>
6854
6855         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
6856         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
6857         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
6858         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
6859         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
6860         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
6861         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
6862         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6863         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
6864         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6865         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6866         (Always_Compatible_Rep): New flag to control trampolines globally.
6867         (Dynamic_Trampolines_Used): New flag for implementing the
6868         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6869         and not yet set correctly for some targets).
6870
6871         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6872         Simply indirectly call s-stchop when a task is created.
6873
6874         * ali.ads: 
6875         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6876         appears as an argument (entries A) in an ALI file.
6877
6878         * fe.h (Stack_Check_Limits): Declare new target parameter.
6879         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6880
6881         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6882         This variable is declared in C to be sure not subject to elaboration
6883         code.
6884         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6885         Storage_Error.
6886
6887         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6888         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6889
6890         * s-stchop.ads: Add comments.
6891
6892         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6893         limit method of stack checking.
6894
6895         * s-stchop-limit.ads: New file.
6896
6897 2007-12-13  Robert Dewar  <dewar@adacore.com>
6898
6899         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
6900         a-cihama.adb, g-awk.adb, 
6901         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6902         warnings
6903
6904         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6905
6906         * sem.adb: Update handling of assigned value/unreferenced warnings
6907
6908         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6909
6910         * lib-xref.ads: Improve documentation for k xref type
6911
6912         * lib-xref.adb: 
6913         Update handling of assigned value/unreferenced warnings
6914         (Generate_Reference): Warning for reference to entity for which a
6915         pragma Unreferenced has been given should be unconditional.
6916         If the entity is a discriminal, mark the original
6917         discriminant as referenced.
6918
6919         * sem_warn.ads, sem_warn.adb
6920         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6921         no entities referenced in package
6922         (Check_One_Unit): Don't give message about no entities referenced in
6923         a package if a pragma Unreferenced has appeared.
6924         Handle new warning flag -gnatw.a/-gnatw.A
6925         Update handling of assigned value/unreferenced warnings
6926
6927         * atree.h: Add flags up to Flag247
6928         (Flag231): New macro.
6929
6930 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
6931
6932         * adaint.h: (__gnat_plist_init): Not defined for RTX.
6933
6934         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6935         RTX systems.
6936
6937         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6938         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6939         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6940         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6941
6942         * mingw32.h: 
6943         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6944
6945         * sysdep.c (winflush_function for RTX): Procedure that does nothing
6946         since we only have problems with Windows 95/98, which are not
6947         supported by RTX.
6948         (__gnat_ttyname): Return the empty string on Nucleus, just as
6949         done on vxworks.
6950
6951 2007-12-13  Robert Dewar  <dewar@adacore.com>
6952
6953         * a-textio.adb, a-textio.ads: 
6954         Extensive changes to private part for wide character encoding
6955
6956         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6957         (Look_Ahead): Fix mishandling of encoded sequences
6958         Move declaration of Wch_Con to private part (should not be visible)
6959
6960         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6961         UTF-8. Probably this is never used, but if it is, brackets is
6962         clearly correct.
6963
6964         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6965         setting wide character encoding for no main program case and when
6966         encoding is specified using -W?
6967         Initialize stack limit of environment task if stack limit method of
6968         stack checking is enabled.
6969         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6970         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6971         (Get_Main_Unit_Name): New function.
6972         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6973         (Gen_Output_File): Set Bind_Main_Program to True for .NET
6974
6975         * bindusg.adb: Add line for -Wx switch
6976
6977         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6978         Add comments
6979         Add new useful constant WC_Longest_Sequences
6980
6981         * switch-b.adb: Clean up handling of -Wx switch
6982         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6983
6984         * switch-c.adb: -gnatg activates warning on assertion errors
6985         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6986
6987         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6988
6989 2007-12-13  Robert Dewar  <dewar@adacore.com>
6990             Ed Schonberg  <schonberg@adacore.com>
6991
6992         * a-ngcoty.adb: New pragma Fast_Math
6993
6994         * opt.adb: New pragma Fast_Math
6995
6996         * par-prag.adb: 
6997         Add Implemented_By_Entry to the list of pragmas which do not require any
6998         special processing.
6999         (Favor_Top_Level): New pragma.
7000         New pragma Fast_Math
7001
7002         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7003         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7004         Expand_Allocator_Expression): Take into account VM_Target
7005         (Expand_Attribute, case 'Identity):  Handle properly the case where
7006         the prefix is a task interface.
7007         New pragma Fast_Math
7008
7009         * par.adb (Next_Token_Is): New function
7010         (P_Pragma): Add Skipping parameter
7011         (U_Left_Paren): New procedure
7012         (U_Right_Paren): New procedure
7013         New pragma Fast_Math
7014
7015         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7016         subunit
7017         New pragma Fast_Math
7018
7019         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7020         Implemented_By_Entry.
7021         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7022         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7023         items, since it can apply to more than one overloadable entity. Set
7024         new flag Has_Pragma_Inline_Always for Inline_Always case.
7025         (Analyze_Pragma, case Complex_Representation): Improve error message.
7026         (Analyze_Pragma, case Assert): When assertions are disabled build the
7027         rewritten code with Sloc of expression rather than pragma, so new
7028         warning about failing is not deleted.
7029         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7030         protected types and update error message to reflect that. Test whether
7031         the protected type is allowed for the pragma (an error is issued if the
7032         type has any entries, or components that do not have preelaborable
7033         initialization).
7034         New pragma Fast_Math
7035         (Analyze_Pragma, case No_Return): Handle generic instance
7036
7037         * snames.h, snames.ads, snames.adb: 
7038         Add new predefined name for interface primitive _Disp_Requeue.
7039         New pragma Fast_Math
7040
7041         * a-tags.ads, a-tags.adb: New calling sequence for
7042         String_To_Wide_[Wide_]String
7043         (Secondary_Tag): New subprogram.
7044
7045         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7046         from Exp_Attr
7047         New calling sequence for String_To_Wide_[Wide_]String
7048         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7049         the use of the secondary stack for image routines.
7050
7051         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7052         calling sequence for String_To_Wide_[Wide_]String
7053
7054         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7055         Ada 95 mode
7056         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7057         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7058
7059         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7060         (P_Formal_Part): Use Skipping parameter in P_Pragma call
7061         to improve error recovery
7062
7063         * par-util.adb (Next_Token_Is): New function
7064         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7065
7066         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7067         semicolon if missing
7068         (P_Pragma): Implement new Skipping parameter
7069         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7070         Fix location of flag for unrecognized pragma message
7071
7072         * par-tchk.adb (U_Left_Paren): New procedure
7073         (U_Right_Paren): New procedure
7074
7075 2007-12-13  Geert Bosch  <bosch@adacore.com>
7076
7077         * a-tifiio.adb: 
7078         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7079         the second or later Scaled_Divide would omit leading zeroes,
7080         resulting in too few digits produced and a Layout_Error as result.
7081         (Put): Initialize Pos.
7082
7083 2007-12-13  Robert Dewar  <dewar@adacore.com>
7084
7085         atree.ads, atree.adb (Flag231..Flag247): New functions
7086         (Set_Flag231..Set_Flag247): New procedures
7087         (Basic_Set_Convention): Rename Set_Convention to be
7088         Basic_Set_Convention
7089         (Nkind_In): New functions
7090         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7091
7092         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7093         instead
7094          of obsolete function Is_Always_Inlined
7095         (Register_Predefined_DT_Entry): Initialize slots of the second
7096         secondary dispatch table.
7097         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7098         (Expand_N_Function_Call): Remove special provision for stack checking.
7099
7100         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7101         Include _Disp_Requeue in the list of predefined operations.
7102         (Find_Interface_ADT): Modified to fulfill the new specification.
7103         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7104
7105         * par-ch4.adb, nlists.ads, nlists.adb: 
7106         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7107
7108         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7109         Fix location of flag for unrecognized pragma message
7110
7111         * sem_ch7.adb: Use Nkind_In
7112
7113 2007-12-13  Vincent Celier  <celier@adacore.com>
7114
7115         * opt.ads: 
7116         Indicate what flags are used by the Project Manager, gprbuild and
7117         gprclean.
7118         (Opt.Follow_Links_For_Dirs): New flag
7119         (Warn_On_Assertion_Failure): New flag
7120         (Wide_Character_Encoding_Method_Specified): New flag
7121         (Suppress_All_Inlining): New switch set by -fno-inline
7122         (Real_VMS_Target): New flag
7123         New pragma Fast_Math
7124
7125 2007-12-13  Robert Dewar  <dewar@adacore.com>
7126
7127         * back_end.adb: Recognize -fno-inline
7128
7129 2007-12-13  Robert Dewar  <dewar@adacore.com>
7130
7131         * checks.adb: Fix optimization problem with short-circuited form
7132
7133 2007-12-13  Bob Duff  <duff@adacore.com>
7134
7135         * clean.adb (Usage): Add line for -aP
7136         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7137         with a parameter "procedure Usage", instead of passing a pointer to a
7138         procedure. This is to eliminate trampolines (since the Usage procedure
7139         is often nested in a main procedure, and it would be inconvenient to
7140         unnest it).
7141
7142         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7143         to be generic, with a parameter "procedure Callback (...)", instead of
7144         passing a pointer to a procedure. This is to eliminate trampolines
7145         (since the Callback procedure is usually nested).
7146
7147         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
7148         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7149         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7150
7151         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7152         Use the generic Heap_Sort_G instead of Heap_Sort_A.
7153
7154 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7155
7156         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7157         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7158         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7159         (Renamed_In_Spec): New flag
7160         (Has_Pragma_Inline_Always): New flag
7161         Add missing doc for pragma Obsolescent_Warning
7162         Add missing doc for 17 additional unused flags (230-247)
7163         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7164         Alphabetize with clauses.
7165         Separate Is_Thunk and Has_Thunks flags
7166         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7167         (Related_Interface): Renamed to Related_Type.
7168         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7169         (Set_Is_Flag): Restrict the assertion.
7170
7171 2007-12-13  Vincent Celier  <celier@adacore.com>
7172
7173         * errout.adb (Output_Source_Line): Do not keep a trailing space after
7174         the source line number if the source line is empty.
7175
7176 2007-12-13  Geert Bosch  <bosch@adacore.com>
7177
7178         * eval_fat.adb (Decompose_Int): Handle argument of zero.
7179         (Compose): Remove special casing of zero.
7180         (Exponent): Likewise.
7181         (Fraction): Likewise.
7182         (Machine): Likewise.
7183         (Decompose): Update comment.
7184
7185 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7186
7187         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7188         limited ancestor part, initialize controllers of enclosing record
7189         before expanding ancestor aggregate.
7190         (Gen_Assign): If a component of the aggregate is box-initialized, add
7191         code to call Initialize if the component is controlled, and explicit
7192         assignment of null if the component is an access type.
7193
7194         Handle properly aggregates for limited types that appear in object
7195         declarations when the aggregate contains controlled values such as
7196         protected types.
7197         When expanding limited aggregates into individual components, do not
7198         call Adjust on controlled components that are limited.
7199
7200 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7201
7202         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7203
7204 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7205
7206         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7207         predefined primitive _Disp_Requeue.
7208         (Make_Predefined_Primitive_Specs): Create the spec for predefined
7209         primitive _Disp_Requeue.
7210         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7211         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7212         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7213         an interface type. In case of limited interfaces we now declare all the
7214         predefined primitives associated with synchronized interfaces as
7215         abstract.
7216         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7217         declarations.
7218         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7219         tagged type is an interface type and there is no user-defined equality
7220         function.
7221         Add also bodies of predefined primitives associated with synchronized
7222         interfaces.
7223         (Freeze_Record_Type): Do not build bodies of predefined primitives of
7224         interface types because they are now defined abstract.
7225         Add missing documentation.
7226         (Expand_Record_Controller): Update occurrence of Related_Interface
7227         to Related_Type.
7228         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7229         (Expand_N_Object_Declaration): Take into account VM_Target when handling
7230         class wide interface object declaration.
7231         (Expand_Previous_Access_Type): Do not create a duplicate master entity
7232         if the access type already has one.
7233         (Expand_N_Object_Declaration): Defend against attempt to validity check
7234         generic types. Noticed for -gnatVcf specified with previous errors.
7235
7236 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7237
7238         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7239         Expand_Allocator_Expression): Take into account VM_Target
7240
7241         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7242         secondary stack when VM_Target /= No_VM
7243
7244 2007-12-13  Javier Miranda  <miranda@adacore.com>
7245             Ed Schonberg  <schonberg@adacore.com>
7246
7247         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7248         Is_Complation_Unit by Is_Library_Level_Entity in the code
7249         that decides if the static dispatch tables need to be built.
7250         (Wrap_Transient_Declaration): Do not generate a finalization call if
7251         this is a renaming declaration and the renamed object is a component
7252         of a controlled type.
7253
7254 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7255
7256         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7257         In the case where the renamed subprogram is a dereference, call
7258         Force_Evaluation on the prefix.
7259
7260 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7261             Ed Schonberg  <schonberg@adacore.com>
7262
7263         * exp_ch9.adb (Expand_N_Asynchronous_Select,
7264         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7265         comment reformatting.
7266         (Set_Privals): Inherit aliased flag from formal. From code reading.
7267         (Build_Simple_Entry_Call): Out parameters of an access type are passed
7268         by copy and initialized from the actual. This includes entry parameters.
7269         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7270         and Ada 2005 models of requeue.
7271         (Null_Statements): Still connsider do-end block null if it contains
7272         Unreferenced and Warnings pragmas.
7273         (Expand_N_Accept_Statement): Do not optimize away null do end if
7274         dispatching policy is other than defaulted.
7275         (Expand_N_Timed_Entry_Call): When the triggering statement is a
7276         dispatching call, manually analyze the delay statement.
7277         (Find_Parameter_Type): Move subprogram to Sem_Util.
7278
7279 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7280             Javier Miranda  <miranda@adacore.com>
7281
7282         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7283         _Disp_Requeue occupies dispatch table slot number 15. Move
7284         _Disp_Timed_Select to slot 16.
7285         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7286         generate the spec and body of _Disp_Reqeueue.
7287         (Make_DT): Build and initialize the second dispatch table.
7288         Handle initialization of RC_Offset when the parent
7289         is a private type with variable size components.
7290         (Make_Secondary_DT): Complete documentation. Add support to
7291         initialize the second dispatch table.
7292         (Make_Tags): Generate the tag of the second dispatch table.
7293         (Register_Primitive): Add support to register primitives in the
7294         second dispatch table.
7295
7296 2007-12-13  Pascal Obry  <obry@adacore.com>
7297
7298         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
7299         Windows. This signal is used by gnatmake to kill child processes for
7300         example.
7301
7302 2007-12-13  Javier Miranda  <miranda@adacore.com>
7303
7304         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7305         support for generic dispatching constructor calls in which we need to
7306         locate the tag of a secondary dispatch table associated with an
7307         interface type to properly dispatch the call.
7308         (Expand_N_Attribute_Reference [case Address],
7309         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
7310         handling of VM targets.
7311
7312 2007-12-13  Robert Dewar  <dewar@adacore.com>
7313             Ed Schonberg  <schonberg@adacore.com>
7314
7315         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
7316         assert fail
7317
7318         * ug_words: Add entries for -gnatw.a -gnatw.A
7319
7320         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
7321         literal is a subtype with non-static constraints, use the base type of
7322         the context as the base of the string subtype, to prevent type
7323         mismatches in gigi.
7324         (Resolve_Actuals): If the actual is an entity name, generate a
7325         reference before the actual is resolved and expanded, to prevent
7326         spurious warnings on formals of enclosing protected operations.
7327         (Analyze_Overloaded_Selected_Component): If type of prefix if
7328         class-wide, use visible components of base type.
7329         (Resolve_Selected_Component): Ditto.
7330         (Resolve_Short_Circuit): Detect case of pragma Assert argument
7331         evaluating to False, and issue warning message.
7332
7333         * usage.adb: Add lines for -gnatw.a and -gnatw.A
7334
7335 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7336
7337         * g-calend.ads (No_Time): New constant, to represent an uninitialized
7338         time value
7339
7340         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
7341         formats.
7342         (Month_Name_To_Number): New subprogram
7343
7344         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
7345         letter to upper-case.
7346
7347 2007-12-13  Robert Dewar  <dewar@adacore.com>
7348             Ed Schonberg  <schonberg@adacore.com>
7349
7350         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
7351
7352         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
7353         context is a limited view, use non-limited view when available. If the
7354         non-limited view is an unconstrained array, this enforces consistency
7355         requirements in 3.10.2 (27).
7356         (Layout_Type): For an access type whose designated type is a limited
7357         view, examine its declaration to determine if it is an unconstrained
7358         array, and size the access type accordingly.
7359         (Layout_Type): Do not force 32-bits for convention c subprogram
7360         pointers in -gnatdm mode, only if real vms target.
7361
7362         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
7363         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7364         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
7365         violations of the No_Implicit_Dynamic_Code restriction.
7366         (Resolve_Attribute, case 'Access): If designated type of context is a
7367         limited view, use non-limited view when available. If the non-limited
7368         view is an unconstrained array, this enforces consistency requirements
7369         in 3.10.2 (27).
7370         (Layout_Type): For an access type whose designated type is a limited
7371         view, examine its declaration to determine if it is an unconstrained
7372         array, and size the access type accordingly.
7373
7374 2007-12-13  Vincent Celier  <celier@adacore.com>
7375
7376         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
7377         object directory of main project does not exist.
7378         On VMS, correctly set then environment variable for the source
7379         directories.
7380
7381 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7382
7383         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
7384         set to True this procedure will create the value of type REG_EXPAND_SZ.
7385         It was only possible to create REG_SZ values before.
7386
7387 2007-12-13  Robert Dewar  <dewar@adacore.com>
7388
7389         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
7390         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
7391         namet-sp.adb, namet-sp.ads: New files.
7392
7393         * g-speche.adb: Use generic routine in g-spchge
7394
7395         * s-wchcnv.ads, s-wchcnv.adb: 
7396         Minor code cleanup (make formal type consistent with spec)
7397
7398         * namet.adb: Update comments.
7399
7400         * par-endh.adb (Evaluate_End_Entry): Use new
7401         Namet.Sp.Is_Bad_Spelling_Of function
7402
7403         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
7404
7405         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
7406         ancestor is an access type initialized with a box, set its type
7407         explicitly, for use in subsequent expansion.
7408         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
7409         function
7410
7411 2007-12-13  Robert Dewar  <dewar@adacore.com>
7412
7413         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
7414         access Vstring)
7415
7416 2007-12-13  Robert Dewar  <dewar@adacore.com>
7417
7418         * inline.adb (Back_End_Cannot_Inline): Use new flag
7419         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7420
7421         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
7422         Has_Pragma_Inline_Always instead.
7423         of obsolete function Is_Always_Inlined
7424         (Build_Body_To_Inline): Same change
7425         (Cannot_Inline): Same change
7426         Do not give warning on exception raise in No_Return function
7427
7428         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
7429         component has two inconsistent component clauses in the same record
7430         representation clause, favor the message that complains about
7431         duplication rather than inconsistency.
7432         Update comments.
7433         (Record_Representation_Clause): Do not warn on missing component
7434         clauses for inherited components of a type extension.
7435         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
7436         an overloadable item if it is a pragma that can apply to multiple
7437         overloadable entities (e.g. Inline) because a pragma cannot be on
7438         more than one chain at a time.
7439         (Validate_Unchecked_Conversion): Add code to warn on unchecked
7440         conversion where one of the operands is Ada.Calendar.Time.
7441         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
7442         For now, ignore Component_Size clause on VM targets, as done for
7443         pragma Pack.
7444
7445 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7446             Vincent Celier  <celier@adacore.com>
7447
7448         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
7449         string
7450         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
7451         prj.ads
7452         (Hash): Move instantiation of System.HTable.Hash from spec to body
7453         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
7454         systems, since we do not need to recompute the Name_Id for the canonical
7455         file name.
7456         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7457         as a parameter. This parameter is in fact always "ada" in all calls, and
7458         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
7459         while loading a project with 40000 files
7460
7461         * prj-attr.adb: Fix name of attribute Dependency_Driver
7462         Change the kind of indexing for attribute Root
7463
7464         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
7465         variables already declared, in case constructions.
7466
7467         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
7468         Current_Object_Path_File to No_Path.
7469
7470         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
7471         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
7472
7473         * prj-makr.adb: new parameter Current_Dir
7474
7475         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
7476         Ada sources when language is not Ada.
7477         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7478         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
7479         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
7480         (Locate_Directory): Always resolve links when computing Canonical_Path
7481         (Look_For_Sources): Make sure that Name_Buffer contains the file name
7482         in Source_Files before checking for the presence of a directory
7483         separator.
7484         Optimize calls to Name_Find when on case sensitive systems.
7485         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7486         as a parameter.
7487         (Prj.Nmsc.Check): new parameter Current_Dir
7488         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
7489         cannot be empty and the spec suffix cannot be the same as the body or
7490         separate suffix.
7491         (Get_Unit): When a file name can be of several unit kinds (spec, body or
7492         subunit), always consider the longest suffix.
7493         (Check_Configuration): Do not issue an error if there is no compiler
7494         for a language. Just issue a warning and ignore the sources for the
7495         language.
7496         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
7497         not empty.
7498         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
7499         (Unit_Exceptions): New hash table
7500         (Check_Naming_Schemes): Check if a file that could be a unit because of
7501         the naming scheme is not in fact a source because there is an exception
7502         for the unit.
7503         (Look_For_Sources): Put the unit exceptions in hash table
7504         Unit_Exceptions
7505         (Get_Unit_Exceptions): Give initial value No_Source to local variable
7506         Other_Part to avoid exception when code is compiled with validity
7507         checking.
7508         (Get_Sources_From_File): Check that there is no directory information
7509         in the file names.
7510         (Look_For_Sources): Check that there is no directory information in the
7511         list of file names in Source_Files.
7512         (Look_For_Sources): In multi-language mode, do not allow exception file
7513         names that are excluded.
7514         (Excluded_Sources_Htable): New hash table
7515         (Search_Directories.Check_File): New procedure to simplify
7516         Search_Directories.
7517         (Search_Directories): Do not consider excluded sources
7518         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
7519         Search_Directories.
7520         (Get_Exceptions): Set component Lang_Kind of Source_Data
7521         (Get_Unit_Exceptions): Ditto
7522         (Search_Directories): Ditto
7523
7524         * prj-pars.adb: new parameter Current_Dir
7525
7526         * prj-part.ads, prj-part.adb: 
7527         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7528         (Opt.Follow_Links_For_Dirs): New flag
7529         (Project_Path_Name_Of): Cache information returned by this routine as
7530         Locate_Regular_File is a costly routine. The code to output a log
7531         information and the effective call to Locate_Regular_File is now
7532         factorized into a routine (code clean-up).
7533         (Parse, Parse_Single_Project): new parameter Current_Dir
7534         When main project file cannot be found, indicate in the error
7535         message the project path that was used to do the search.
7536
7537         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
7538         (Prj.Proc.Process*): new parameter Current_Dir
7539
7540         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
7541
7542 2007-12-13  Bob Duff  <duff@adacore.com>
7543
7544         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
7545         procedure to be called from the back end to check the
7546         No_Implicit_Dynamic_Code restriction.
7547
7548 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7549
7550         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
7551         Fixes another case where RTE_Available_Call was ignored instead of being
7552         taken into account.
7553         (Load_Fail): Ditto.
7554
7555         * rtsfind.ads: Add new entries.
7556
7557 2007-12-13  Robert Dewar  <dewar@adacore.com>
7558
7559         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
7560         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
7561
7562         * scn.adb: Implement BOM recognition
7563
7564 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7565             Ed Schonberg  <schonberg@adacore.com>
7566
7567         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
7568         subprogram body that acts as its own spec may not have a non-private
7569         WITH clause on a private sibling.
7570         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
7571         child unit is a renaming, create an implicit with_clause on that
7572         parent, and not on the unit it renames, to prevent visibility errors
7573         in the current unit.
7574
7575 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7576
7577         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
7578         renaming declaration, use the Slocs of the formal parameters from the
7579         declaration of the formal subprogram when creating the formal parameter
7580         entities in the renaming declaration.
7581         (Analyze_Formal_Type_Declaration): Change the placement of the error
7582         message concerning illegal known discriminants. It is now posted on the
7583         type rather than on the first discriminant. This change ensures early
7584         error report.
7585         (Freeze_Subprogram_Body): If the generic subprogram is nested within
7586         the package body that contains the instance, do not generate an
7587         out-of-place freeze node for the enclosing package.
7588         (Collect_Previous_Instantiations): Ignore internal instantiations
7589         generated for formal packages.
7590         (Validate_Derived_Type_Instance): Add a check that when a formal
7591         derived type is Known_To_Have_Preelab_Init then the actual type must
7592         have preelaborable initialization, and issue an error when this
7593         condition is violated.
7594
7595 2007-12-13  Robert Dewar  <dewar@adacore.com>
7596
7597         * s-imenne.adb, s-imenne.ads: New files.
7598
7599         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
7600         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
7601         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
7602         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
7603         s-imgwch.ads: New calling sequence for Image routines to avoid sec
7604         stack usage.
7605
7606 2007-12-13  Javier Miranda  <miranda@adacore.com>
7607             Ed Schonberg  <schonberg@adacore.com>
7608
7609         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
7610         generation of spurious error if parent is an interface type; caused
7611         because predefined primitive bodies will be generated later by
7612         Freeze_Record_Type.
7613         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
7614         flag.
7615         (Derive_Subprograms): Handle derivations of predefined primitives
7616         after all the user-defined primitives to ensure that they are
7617         found in proper order in instantiations.
7618         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
7619         of Related_Interface to Related_Type.
7620         (Record_Type_Declaration): Minor reordering of calls to decorate the
7621         Tag component because the entity must have set its Ekind attribute
7622         before setting its Is_Tag attribute.
7623         (Analyze_Subtype_Declaration): In the case of subtypes with
7624         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
7625
7626 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7627             Ed Schonberg  <schonberg@adacore.com>
7628
7629         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
7630         statement to the list of contexts where a selected component with a
7631         concurrent tagged type prefix should yield a primitive operation.
7632         (Find_Primitive_Operation): Handle case of class-wide types.
7633         (Analyze_Overloaded_Selected_Component): If type of prefix is
7634         class-wide, use visible components of base type.
7635         (Resolve_Selected_Component): Ditto.
7636         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
7637         formal of a generic subprogram. find candidate interpretations by
7638         scanning the list of generic formal declarations.:
7639         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
7640         type from a limited_with_clause, and the full view is available, use it
7641         for subsequent semantic checks.
7642         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
7643         (Find_Primitive_Operation): New function.
7644         (Analyze_Overloaded_Selected_Component): insert explicit dereference
7645         only once if several interpretations of the prefix yield an access type.
7646         (Try_Object_Operation): Code and comment cleanup.
7647         (Analyze_Selected_Component): Reorder local variables. Minot comment and
7648         code reformatting. When the type of the prefix is tagged concurrent, a
7649         correct interpretation might be available in the primitive and
7650         class-wide operations of the type.
7651
7652 2007-12-13  Robert Dewar  <dewar@adacore.com>
7653             Ed Schonberg  <schonberg@adacore.com>
7654
7655         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
7656         renaming entry as subprogram using rename-as-body if subprogram spec
7657         frozen.
7658         (Use_One_Type): The clause is legal on an access type whose designated
7659         type has a limited view.
7660         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7661         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7662         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
7663         operation denoted by a selected component.
7664         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
7665         it can be an expression, possibly overloaded, that returns a task or
7666         an access to one.
7667
7668 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7669             Gary Dismukes  <dismukes@adacore.com>
7670
7671         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
7672         requeue statement is dispatching. Do not emit an error when the name is
7673         not an entry and the context is a dispatching select. Add code to
7674         perform subtype conformance between the formals of the current entry
7675         and those of the target interface primitive.
7676         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
7677         Timed_Entry_Call): Analyze the triggering statement as the first step of
7678         the processing. If this is a dispatching select, postpone the analysis
7679         of all select statements until the Expander transforms the select. This
7680         approach avoids generating duplicate identifiers after the Expander has
7681         replicated some of the select statements. In case the Expander is
7682         disabled, perform regular analysis.
7683         (Check_Triggering_Statement): New routine.
7684         (Analyze_Requeue): Exclude any interpretations that are not entries when
7685         checking overloaded names in a requeue. Also test type conformance for
7686         matching interpretations rather than requiring subtype conformance at
7687         that point to conform with the RM's resolution rule for requeues.
7688
7689 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7690
7691         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
7692         inherited operation is a defaulted tag-indeterminate call, and there is
7693         a statically tagged actual, use the static tag as a controlling actual
7694         for the defaulted actual.
7695
7696 2007-12-13  Geert Bosch  <bosch@adacore.com>
7697
7698         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
7699         context, so do not call Check_Non_Static_Context.
7700
7701 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7702
7703         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
7704         whether formal E is an entity which may have parameters.
7705
7706 2007-12-13  Bob Duff  <duff@adacore.com>
7707             Javier Miranda  <miranda@adacore.com>
7708             Robert Dewar  <dewar@adacore.com>
7709
7710         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
7711         (Set_Convention): New procedure to set the Convention flag, and in
7712         addition make sure the Favor_Top_Level flag is kept in sync (all
7713         foreign-language conventions require Favor_Top_Level = True).
7714         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
7715         to Related_Type.
7716         (Collect_Interfaces_Info): Minor update to handle the two secondary
7717         dispatch tables. Update occurrence of Related_Interface to Related_Type.
7718         (Generate_Parent_Ref): Add parameter to specify entity to check
7719         (Is_Preelaborable_Expression): Allow the name of a discriminant to
7720         initialize a component of a type with preelaborable initialization.
7721         This includes the case of a discriminal used in such a context.
7722         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
7723         latest Ada 2005 rules about renaming and 'Access of
7724         discriminant-dependent components.
7725         (Check_Nested_Access): Add handling when there are no enclosing
7726         subprograms (e.g. case of a package body).
7727         (Find_Parameter_Type): Factor routine from several other compiler files.
7728         Remove routine from Find_Overridden_Synchronized_Primitive.
7729
7730 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7731
7732         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
7733         an invalid access to an uninitialized slot in the
7734         Source_File_Index_Table.
7735
7736 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7737
7738         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
7739
7740 2007-12-13  Bob Duff  <duff@adacore.com>
7741
7742         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
7743         access-to-subprogram types in this package.
7744
7745 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7746
7747         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
7748         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
7749         Stack_Overlay_Address and document that we are using an internal
7750         abstraction.
7751         (Byte_Size, Unsigned_32_Size): Remove, now useless.
7752         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
7753         consistently throughout the various implementation pieces.
7754
7755         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
7756         overlay we are using to fill the stack area with patterns.
7757         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
7758         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
7759         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
7760
7761 2007-12-13  Robert Dewar  <dewar@adacore.com>
7762
7763         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
7764
7765 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7766
7767         * s-tassta.adb: 
7768         (Create_Task): Take into account tasks created by foreign threads.
7769         Code clean up: use constants instead of hard coded values.
7770
7771 2007-12-13  Robert Dewar  <dewar@adacore.com>
7772
7773         * styleg.adb (Check_Comment): More liberal rules for comment placement
7774
7775 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7776
7777         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
7778         of Procedure Value instead of Frame Pointer as the invocation
7779         identifier associated with the instruction pointer in each traceback
7780         entry.
7781
7782         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
7783         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
7784         Pointer as the invocation identifier passed to tbk$symbolize.
7785
7786         * s-traent-vms.ads, s-traent-vms.adb
7787         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
7788         Procedure Value instead of Frame Pointer as the invocation identifier
7789         passed to tbk$symbolize.
7790
7791 2007-12-13  Robert Dewar  <dewar@adacore.com>
7792
7793         * tbuild.ads, tbuild.adb: 
7794         Fix location of flag for unrecognized pragma message
7795
7796 2007-12-13  Robert Dewar  <dewar@adacore.com>
7797
7798         * treepr.ads, treepr.adb: (pl): implement use of positive value
7799         shorthands
7800
7801 2007-12-13  Robert Dewar  <dewar@adacore.com>
7802
7803         * xeinfo.adb: Remove warnings
7804         * xnmake.adb: Remove warnings
7805         * xsinfo.adb: Remove warnings
7806         * xtreeprs.adb: Remove warnings
7807         * xsnames.adb: Remove warnings
7808
7809         * a-ngcoar.adb: Fix typo.
7810         * s-interr.adb: Minor reformatting
7811         * env.c: Minor reformatting.
7812         * g-bytswa.adb: Minor reformatting.
7813         * g-rannum.ads: Minor documentation improvements
7814         * s-tasinf-mingw.adb: Minor header fix
7815         * a-clrefi.adb: Minor reformatting
7816         * g-sttsne.ads: Minor documentation improvement
7817         * g-sttsne-locking.ads: Minor documentation improvement
7818         * g-soliop-solaris.ads: Minor documentation improvement
7819         * g-soliop-mingw.ads: Minor documentation improvement
7820         * g-soliop.ads: Minor documentation improvement
7821         * exp_aggr.ads: Minor reformatting
7822         * debug.adb: Add documentation for the gprbuild debug flags
7823         * exp_ch2.adb: Use Nkind_In to simplify code throughout
7824         * exp_pakd.adb: Minor reformatting
7825
7826         * g-altive.ads, g-alleve.adb: Remove assertions.
7827         Add comment about minor differences between targets regarding
7828         floating-point operations.
7829
7830         * g-thread.adb: Remove pragma unreferenced.
7831         * lib.ads: Minor reformatting
7832         * par-ch9.adb: Minor reformatting of error messages
7833         * sem_case.adb: Minor reformatting
7834         * s-fileio.adb: Minor reformattinng
7835         * s-vmexta.ads: Minor typo
7836         * vxaddr2line.adb: 
7837         Take into account 'Success' value as per new GNAT warning.
7838
7839 2007-12-13  Vincent Celier  <celier@adacore.com>
7840
7841         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
7842         even on Windows
7843
7844 2007-12-13  Robert Dewar  <dewar@adacore.com>
7845             Bob Duff  <duff@adacore.com>
7846
7847         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7848         Document that suffixes may be terminations of each others
7849         Add doc for -gnatw.a and -gnatw.A
7850         Document gnatbind -Wx switch
7851         Document BOM recognition
7852         Document pragma Implemented_By_Entry.
7853         Document new units.
7854
7855         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7856         Add doc for pragma Unreferenced suppressing no entities referenced msg
7857         Add documentation of GNAT.Directory_Operations.Iteration
7858         Add documentation of GNAT.Random_Numbers
7859         Add documentation for pragma Shared.
7860         Correct documentation for Bit_Order
7861         Add documentation for the Pool_Address attribute.
7862         Fix and improve documentation of pragma machine_attribute.
7863         New pragma Fast_Math
7864         Document BOM recognition
7865
7866         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7867         Add /Wide_Character_Encoding for binder
7868         Add qualifier for the new gnatpp option --no-separate-loop-then
7869
7870 2007-12-13  Matthew Heaney  <heaney@adacore.com>
7871
7872         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7873         which generic formal operations are called for each operation.
7874
7875 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7876
7877         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7878         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7879
7880 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7881
7882         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7883         Reference_Dir unless we actually need it.
7884
7885 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7886             Tristan Gingold  <gingold@adacore.com>
7887
7888         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7889
7890         * s-osprim-vms.adb,
7891         a-calend-vms.adb: Remove pragma warning off and add pragma
7892         unreferenced.
7893
7894 2007-12-13  Robert Dewar  <dewar@adacore.com>
7895
7896         * impunit.adb: Add entries for missing units
7897
7898         * Makefile.rtl: Add new run-time units.
7899
7900         * Make-lang.in:  Update dependencies.
7901
7902 2007-12-13  Bob Duff  <duff@adacore.com>
7903
7904         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7905         types, set Can_Use_Internal_Rep appropriately, based on
7906         Always_Compatible_Rep_On_Target.
7907
7908 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7909             Arnaud Charlet  <charlet@adacore.com>
7910
7911         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7912         it to the front end and setting the aamp_target environment variable
7913         to the switch's argument to ensure that gnaampbind and gnaamplink will
7914         take the specified library into account.
7915         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7916         target, since the CIL compiler supports an "object" file (.il files).
7917
7918 2007-12-13  Vincent Celier  <celier@adacore.com>
7919
7920         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7921         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7922
7923 2007-12-13  Geert Bosch  <bosch@adacore.com>
7924
7925         * s-parame-vxworks.adb: 
7926         Update comments to reflect usage of this package by Nucleus.
7927
7928 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7929
7930         * i-vxwork.ads: Kill new warning on Convention C, since changing the
7931         spec would break code.
7932
7933         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7934
7935         * system-vxworks-alpha.ads: Removed.
7936
7937 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
7938
7939         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7940
7941 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
7942
7943         PR ada/34366
7944         * sem_ch3.adb (Designates_T): New function.
7945         (Mentions_T): Factor reusable part of the logic into Designates_T.
7946         Consider non-access parameters and access and non-access result.
7947         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7948         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7949
7950         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7951
7952 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
7953
7954         PR ada/34361
7955         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7956         the new implementation of target-specific calls.
7957
7958 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7959
7960         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7961         the designated full view, only follow a second level Full_View link
7962         for Non_Limited_Views of from_limited_with references.
7963         
7964 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
7965
7966         PR ada/15805
7967         * sem_ch6.adb (Process_Formals): Prevent an access type formal
7968         to be initialized with an access to constant object.
7969
7970         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7971         when an access to constant is used to initialize an access
7972         value.
7973
7974         PR ada/21346
7975         * a-direct.adb (Compose): Containing_Directory can be an empty string.
7976
7977 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7978
7979         PR ada/34173
7980         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7981         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7982         this is from an alignment clause on the GNAT entity.
7983         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7984         to distinguish the case where we set it from the type's alignment.
7985         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7986         whether this alignment was set from an explicit alignment clause.
7987
7988 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
7989
7990         * decl.c (make_packable_type): Revert last change.
7991         (gnat_to_gnu_field): Avoid setting size and position multiple times.
7992         * utils.c (finish_record_type): Retrieve the real name of the type.
7993
7994 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
7995
7996         * trans.c (lvalue_required_p): Take base node directly instead
7997         of its parent.  Rename second parameter to 'gnu_type'.
7998         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7999         <N_Slice>: Likewise.
8000         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8001         Adjust calls to lvalue_required_p.
8002
8003 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
8004
8005         PR ada/21489
8006         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8007         parameters of an entry call.
8008
8009 2007-12-03  Robert Dewar  <dewar@adacore.com>
8010             Samuel Tardieu  <sam@rfc1149.net>
8011
8012         PR ada/34287
8013         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8014         of variables declared in a library-level package.
8015     
8016 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
8017
8018         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8019         of Empty_String'Unchecked_Access.
8020
8021         * Makefile.in: Add support for sh4-linux.
8022
8023         * system-linux-sh4.ads: New file.
8024
8025 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
8026
8027         PR ada/33722
8028         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8029         and its argument must not be free()ed.
8030
8031 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
8032
8033         * decl.c (make_packable_type): Retrieve the real name of the type.
8034         (maybe_pad_type): Simplify similar code.
8035
8036 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
8037
8038         PR ada/15804
8039         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8040         than an identifier is used after "case" in a variant_part.
8041
8042         PR ada/17318
8043         * par-ch4.adb (Is_Parameterless_Attribute): New map.
8044         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8045         attribute name or not depending on the new map.
8046
8047         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8048         returning a string or a type will not be called with improper
8049         arguments.
8050
8051         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8052
8053         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8054
8055         PR ada/32792
8056         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8057         Signal an error when attribute argument is a fixed-point value of
8058         an unknown type.
8059
8060         PR ada/22559
8061         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8062         a derived ordinary fixed point type.
8063
8064         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8065         RM_Size when a Small clause is found.
8066
8067 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
8068
8069         PR 34081/C++
8070         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8071         Pass 'false' for the new allocate_struct_function parameter.
8072         * utils.c (build_function_stub): Likewise.
8073
8074 2007-11-25  Richard Guenther  <rguenther@suse.de>
8075
8076         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8077         (gnat_poplevel): Likewise.
8078
8079 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
8080
8081         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8082         strict alignment, no alignment clause and a known static size, cap
8083         the type alignment to the greatest power of 2 factor of the size.
8084         (gnat_to_gnu_field): If the field has a component clause, is aliased
8085         or of a type with strict alignment, require that its size be equal to
8086         that of the type.
8087         (validate_size): Use the type size as the minimum size for a type with
8088         strict alignment.
8089
8090 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
8091
8092         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8093         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8094         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8095         Use 'Access instead of 'Unchecked_Access in second and third
8096         arguments of pthread_sigmask.
8097
8098 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
8099
8100         * decl.c (ceil_alignment): New function.
8101         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8102         (make_packable_type): Likewise.
8103
8104 2007-11-22  Olivier Hainque  <hainque@adacore.com>
8105
8106         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8107         to fit in 80 columns.
8108
8109 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
8110
8111         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8112         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8113
8114 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
8115
8116         PR ada/34098
8117         * misc.c (gnat_adjust_rli): Delete.
8118         (gnat_init): Do not initialize the translation code here.
8119         Do not call set_lang_adjust_rli.
8120         * trans.c (init_code_table): Make static.
8121         (gnat_init_stmt_group): Delete.
8122         (gigi): Initialize the translation code entirely here.
8123         Emit debug info for the common types here instead of...
8124         * utils.c (gnat_init_decl_processing): ...here.
8125         * gigi.h (init_code_table): Delete.
8126         (gnat_init_stmt_group): Likewise.
8127
8128 2007-11-16  Olivier Hainque  <hainque@adacore.com>
8129
8130         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8131         retrieving an allocator return value from a super-aligned address from
8132         here to ...
8133         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8134         expect a super-aligned address for a fat or thin pointer.
8135         
8136 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
8137
8138         * trans.c (call_to_gnu): Always set the source location on the call
8139         expression.  If the function returns-by-target, also set it on the
8140         address expression.
8141
8142 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
8143
8144         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8145         sections of non-supported Interix target.
8146
8147         * s-osinte-interix.ads: Removed.
8148
8149         * i-cstrin.ads (chars_ptr): Make it a C convention type.
8150
8151 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
8152
8153         * a-tasatt.adb: Add a comment at the beginning of the package
8154         explaining why in general 'Unchecked_Access must be used instead
8155         of 'Access.
8156
8157         * sem_prag.adb (Process_Convention): Move the test for the
8158         entity on which the Convention pragma applies down to also
8159         forbid pragma Convention on enumeration literals reached
8160         through renamings.
8161
8162 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
8163
8164         * a-tasatt.adb: Revert previous change for this file as it will
8165         generate an error when this package is instantiated from a
8166         local context.
8167
8168 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
8169
8170         * a-tasatt.adb: Type Wrapper should be declared in comment instead
8171         of already declared type Node_Access.
8172         Use 'Access instead of 'Unchecked_Access when applicable. Local
8173         lifetime is the one of the package.
8174         (Set_Value): W is allocated on the heap.
8175
8176         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8177         applicable.
8178         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8179         access type.
8180         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8181         access type.
8182
8183         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8184         applicable.
8185         (elaboration code): Timer_Queue lifetime is the one of the
8186         package.
8187
8188         * tracebak.c (i386 alternative): Remove useless comparaison
8189         which is always false; LOWEST_ADDRESS is 0 and is never greater
8190         than an unsigned integer.
8191
8192         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8193         embedded check for "Ada_Version >= Ada_05".
8194
8195 2007-11-07  Olivier Hainque  <hainque@adacore.com>
8196
8197         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8198         craft and expand comment.
8199
8200 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
8201
8202         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8203
8204 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8205
8206         * misc.c (gnat_handle_option): Replace call to abort with
8207         call to gcc_unreachable.
8208         (gnat_init): Likewise.
8209         (gnat_expand_expr): Likewise.
8210         (fp_prec_to_size): Likewise.
8211         (fp_size_to_prec): Likewise.
8212
8213 2007-10-23  Richard Guenther  <rguenther@suse.de>
8214
8215         PR bootstrap/33608
8216         * tracebak.c: #undef abort after including system.h.
8217
8218 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
8219
8220         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8221         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8222         for win32 targets.
8223         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8224
8225 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
8226
8227         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8228         Set the protection status of the guard page based on the value of On.
8229
8230         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8231
8232         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8233         (Exit_Task): Pass False to Hide_Yellow_Zone.
8234
8235 2007-10-15  Robert Dewar  <dewar@adacore.com>
8236
8237         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
8238         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8239         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
8240         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
8241         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
8242         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
8243         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
8244         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
8245         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
8246         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8247         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
8248         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
8249         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
8250         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
8251         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
8252         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8253         Minor reformatting.
8254         Add Unreferenced and Warnings (Off) pragmas for cases of
8255         variables modified calls where they are IN OUT or OUT parameters and
8256         the resulting values are not subsequently referenced. In a few cases,
8257         we also remove redundant code found by the new warnings.
8258
8259         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
8260         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8261         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8262         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8263         warning controlled by -gnatw.o that warns on cases of out parameter
8264         values being ignored.
8265
8266 2007-10-15  Geert Bosch  <bosch@adacore.com>
8267
8268         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8269
8270         * expect.c: Initial port to arm-mentor-nucleus.
8271         Use kill for __gnat_kill() on VMS.
8272
8273 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8274
8275         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8276         value.
8277         (Xref_Record): Change type for Line, since in the case of a reference to
8278         a predefined entity (as happens for array index types), the line is set
8279         to 0.
8280         Add support for parsing multiple array index types info, or
8281         multiple inherited interfaces info. This information cannot be stored
8282         in Xref_Entity_Record, which only supports a single instance of Tref_*,
8283         and is therefore stored in the list of references instead. It has a
8284         special treatement later on in tools that use this information.
8285
8286 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8287
8288         * debug.adb: Document use of -gnatd.a and -gnatd.I
8289
8290         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
8291
8292 2007-10-15  Javier Miranda  <miranda@adacore.com>
8293
8294         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
8295         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
8296         care of access to class-wide interface types plus removal of bizarre
8297         conversion of tagged object to access type (reported by Gary
8298         Dismukes). After this patch there is no need to perform any
8299         additional management on these nodes in Expand_Interface_Actuals.
8300
8301         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
8302         that handles use of 'Access and 'Unchecked_Access applied to
8303         actuals covering interface types. Such code is now
8304         centralized in Expand_N_Attribute_Reference.
8305
8306 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8307
8308         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
8309         of tagged types whose ultimate ancestor is a CPP type.
8310         (Freeze_Array_Type): For a packed array type, generate an initialization
8311         procedure if the type is public, to handle properly a client that
8312         specifies Normalize_Scalars.
8313
8314 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8315
8316         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
8317         inside a generic body, retrieve the full view of the entry family
8318         discrete subtype if available.
8319
8320 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8321
8322         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
8323         attempt to generate stubs for hidden primitive operations.
8324
8325 2007-10-15  Vincent Celier  <celier@adacore.com>
8326
8327         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
8328         returning None, used when there is no platform specific body for
8329         MLib.Tgt.Specific.
8330
8331 2007-10-15  Bob Duff  <duff@adacore.com>
8332
8333         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
8334         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
8335         the generic Heap_Sort_G, in order to avoid trampolines.
8336
8337 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
8338             Jose Ruiz  <ruiz@adacore.com>
8339
8340         * vx_stack_info.c: New file.
8341
8342         * i-forbla-unimplemented.ads: New file.
8343
8344         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
8345         for unsupported configurations; use it on VMS targets instead of the
8346         real one.
8347         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
8348         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
8349         used by VxWorks targets to have access to task-specific data and be
8350         able to extract the stack boundaries for stack checking.
8351         Use system-vms-ia64.ads on ivms.
8352
8353         * Make-lang.in: Update dependencies.
8354
8355         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
8356         (vx_stack_info.c).
8357
8358 2007-10-15  Vincent Celier  <celier@adacore.com>
8359
8360         * snames.adb, snames.ads: Add new standard name runtime_library_dir
8361
8362         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
8363
8364         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
8365
8366         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
8367         the source is unknown.
8368
8369         * prj-ext.adb: Spelling error fix
8370
8371         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
8372         95 reserved word in its name.
8373         (Process_Project_Level_Array_Attributes): Process new attribute
8374         Runtime_Library_Dir.
8375
8376         * prj-part.adb (Parse_Single_Project): Do not check the name of the
8377         config project against the user project names.
8378
8379         * prj-proc.adb (Expression): In multi-language mode, indexes that do
8380         not include a dot are always case insensitive.
8381         (Process_Declarative_Items): Ditto
8382         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
8383         detected.
8384
8385         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
8386         True, compare both indexes in lower case.
8387
8388 2007-10-15  Robert Dewar  <dewar@adacore.com>
8389
8390         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
8391
8392 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8393
8394         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
8395         association for an access component, add an association with null as
8396         the expression. Remove testing for array subtypes and the setting in
8397         that case of Ctyp to the array component type, which prevented proper
8398         inclusion of an association for null-initialized arrays. Collapse
8399         condition that tests for array subtypes into just a test of
8400         Is_Partially_Initialized_Type (which already covers arrays anyway).
8401
8402 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8403
8404         * sem_ch12.adb: Minor code reformatting.
8405         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
8406         find the parent package which may have been hidden by local
8407         declarations.
8408
8409 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8410
8411         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
8412         flag of derived concurrent types, taking into account the flag setting
8413         on the parent subtype and any new set of discriminants.
8414
8415 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8416
8417         * sem_ch4.adb: Minor code and comment reformatting.
8418         (Analyze_Allocator): When the designated type of an unconstrained
8419         allocator is a record with unknown discriminants or an array with
8420         unknown range bounds, emit a detailed error message depending on the
8421         compilation mode and whether the designated type is limited.
8422
8423 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8424
8425         * system-vms-ia64.ads: New file.
8426
8427         * system-vms_64.ads: Minor comment fix.
8428
8429 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8430
8431         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
8432         body generated for a function with a controlling result that is a null
8433         extension, discard the generated body in favor of the current explicit
8434         one.
8435
8436 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8437
8438         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
8439         examining its original form, to handle properly operator calls that
8440         have been rewritten.
8441
8442 2007-10-15  Olivier Hainque  <hainque@adacore.com>
8443
8444         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
8445         instead of a procedure value in each traceback entry.
8446
8447         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
8448         instead of procedure value to TBK$SYMBOLIZE.
8449
8450         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
8451         field.
8452         (TB_Entry_For): Account for the PV/FP renaming.
8453
8454         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
8455         add comment.
8456         (Null_TB_Entry): Account for change of component name.
8457         (PV_For): Rename as FP_For.
8458
8459 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8460
8461         * trans.c (gnat_to_gnu): Remove the padding structure more often.
8462         This optimize assignment to over-aligned record.
8463
8464 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8465
8466         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
8467         interfaces.
8468
8469         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
8470         type, for dispatching calls.
8471
8472 2007-10-15  Vincent Celier  <celier@adacore.com>
8473             Robert Dewar  <dewar@adacore.com>
8474
8475         * gnat_ugn.texi: Add documentation for switches --version and --help
8476         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
8477         gnatxref, gnatfind, gnatls, and gnatclean.
8478         Document -gnatw.o.
8479         Mention attribute Excluded_Source_Dirs
8480         Replace obsolescent attribute Locally_Removed_Files with attribute
8481         Excluded_Source_Files.
8482         Improve documentation of -u (gnatbind)
8483         Document how to do reliable stack checking for the environmental task
8484         on iVMS.
8485
8486         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
8487         Document attribute Excluded_Source_Files and indicate that attribute
8488         Locally_Removed_Files is obsolescent.
8489
8490 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8491
8492         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
8493
8494         * gen-soccon.c: 
8495         Update documentation to note that OpenVMS 8.3 or later must be used
8496         to generate g-soccon-vms.ads.
8497
8498         * atree.adb: Add ??? comment
8499
8500         * exp_util.adb: Minor reformatting.
8501         Add ??? comment in Kill_Dead_Code.
8502
8503 2007-10-15  Robert Dewar  <dewar@adacore.com>
8504
8505         * errout.ads: Comment clarification
8506
8507         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8508         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
8509
8510         * lib.ads: Comment update
8511
8512         * init.c: Minor reformatting.
8513
8514         * sem_attr.adb: Minor formatting
8515
8516         * osint-b.ads: Minor reformatting
8517
8518         * sem_ch9.adb: Implement -gnatd.I switch
8519
8520         * g-comlin.adb: (Start): Fix handling of empty command line.
8521
8522         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
8523         even when -rules follows the -cargs section.
8524
8525 2007-10-08  Ollie Wild  <aaw@google.com>
8526
8527         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
8528         gnat_return_tree.
8529         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
8530         gnat_return_tree.
8531         (gnat_eh_runtime_type): Removed.
8532         (gnat_return_tree): New function.
8533
8534 2007-10-08  Ben Elliston  <bje@au.ibm.com>
8535
8536         PR ada/33454
8537         Revert:
8538         2007-08-31  Ben Elliston  <bje@au.ibm.com>
8539
8540         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8541         when compiling for powerpc64-*-linux.
8542         * system-linux-ppc64.ads: New file.
8543
8544 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
8545
8546         Mapped location support
8547         * back_end.adb (Call_Back_End): Pass information about source
8548         files instead of units to gigi.
8549         * gigi.h (struct File_Info_Type): New.
8550         (gigi): Rename and change type of number_units parameter, change
8551         type of file_info_ptr parameter.
8552         * trans.c (number_files): New global variable.
8553         (gigi): Rename and change type of number_units parameter, change
8554         type of file_info_ptr parameter.
8555         If mapped location support is enabled, create the isomorphic mapping
8556         between source files and line maps.
8557         (Sloc_to_locus): If mapped location support is enabled, translate
8558         source location into mapped location.
8559         (annotate_with_node): Rename into set_expr_location_from_node.
8560         Call set_expr_location instead of annotate_with_locus.
8561         (Pragma_to_gnu): Adjust for above change.
8562         (Loop_Statement_to_gnu): Likewise.
8563         (call_to_gnu): Likewise.
8564         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
8565         (gnat_to_gnu): Likewise.
8566         (add_stmt_with_node): Likewise.
8567         (add_cleanup): Likewise.
8568         * utils.c (gnat_init_decl_processing): Do not set input_line.
8569
8570 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8571
8572         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
8573         (Applicable_Use): Emit a warning when a package tries to use itself.
8574         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
8575         is already in use or the package where it is declared is in use or is
8576         declared in the current package.
8577         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
8578
8579         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
8580         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
8581         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
8582
8583 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8584
8585         * a-calend-vms.adb, a-calend.adb: 
8586         Add a section on leap seconds control along with two entities used to
8587         enable and disable leap seconds support. The array Leap_Second_Times is
8588         now constant and contains hard time values pre-generated. Remove
8589         all elaboration code used to populate the table of leap seconds.
8590
8591         * bindgen.adb: 
8592         Add entity Leap_Seconds_Support to the list of global run-time variables
8593         along with a comment on its usage and values.
8594         (Gen_Adainit_Ada): Add code to generate the declaration and import of
8595         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
8596         or one (enabled) depending on the presence of binder switch "-y".
8597         (Gen_Adainit_C): Add code to generate the declaration of external int
8598         __gl_leap_seconds_support. Set is value to zero (disabled) or one
8599         (enabled) depending on the presence of binder switch "-y".
8600
8601         * init.c: Add __gl_leap_seconds_support to the list of global values
8602         computed by the binder.
8603
8604 2007-09-26  Jerome Guitton  <guitton@adacore.com>
8605
8606         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8607         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
8608          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8609         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
8610
8611         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
8612
8613         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
8614         function which can be called by the debugger to interrupt the tasks of
8615         an Ada application asynchronously, as needed on VxWorks.
8616         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
8617
8618         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
8619         renamed from Stop_All_Tasks. Update comments.
8620         (Stop_All_tasks): New function declaration.
8621
8622 2007-09-26  Olivier Hainque  <hainque@adacore.com>
8623
8624         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
8625         #include <utime.h> and #define GCC_RESOURCE_H before
8626         #include <sys/wait.h>.
8627         Add more protections in __gnat_translate_vms.
8628
8629         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
8630         #include <sys/wait.h>.
8631
8632 2007-09-26  Thomas Quinot  <quinot@adacore.com>
8633             Sergey Rybin  <rybin@adacore.com>
8634
8635         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
8636
8637         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8638         where it belongs.
8639
8640         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8641
8642         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8643         where it belongs.
8644
8645         * sem_dist.ads: Minor comment fix
8646
8647         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8648
8649 2007-09-26  Javier Miranda  <miranda@adacore.com>
8650             Eric Botcazou  <ebotcazou@adacore.com>
8651
8652         * a-tags.adb: 
8653         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
8654          indirection added to the HT_Link component of the TSD. This is required
8655          to statically allocate the TSD.
8656
8657         * a-tags.ads: 
8658         Minor reordering of the declarations in the private part. Required to
8659         add a level of indirection to the contents of the TSD component HT_Link.
8660         This is required to statically allocate the TSD.
8661
8662         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
8663         Is_Statically_Allocated set from constant objects.
8664         Do not make exported constants created by the compiler volatile.
8665         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
8666         as read-only.
8667
8668         * trans.c (Identifier_to_gnu): For constants, unshare initializers
8669         before returning them.
8670
8671         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
8672         public part of the package.
8673         (Make_DT): Move HT_Link component out of the TSD record. For this
8674         purpose Make_DT now declares a separate object that stores the
8675         HT_Link value, and initializes the TSD component with the address
8676         of this new object. The addition of this level of indirection is
8677         required to statically allocate the TSD because the TSD cannot
8678         have variable components.
8679         (Expand_Interface_Conversion): Improve the expanded code.
8680         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
8681
8682         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
8683         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
8684         if we are building static dispatch tables then we must not generate
8685         extra code to register the primitive because the dispatch table will
8686         be built at the end of the library package; otherwise we notify that
8687         we cannot build the static dispatch table.
8688
8689 2007-09-26  Robert Dewar  <dewar@adacore.com>
8690
8691         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
8692         overlays.
8693
8694         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
8695         (Analyze_Record_Representation_Clause): Suppress junk warning for
8696         missing component clause.
8697         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
8698         tests for controlled type overlay to composites with controlled
8699         components.
8700         (Analyze_Record_Representation_Clause): Add reference for component name
8701
8702 2007-09-26  Javier Miranda  <miranda@adacore.com>
8703             Gary Dismukes  <dismukes@adacore.com>
8704
8705         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
8706         for thunks associated with interface types.
8707
8708         * einfo.ads: Improve documentatation of Is_Internal
8709         (Is_Thunk): New attribute applicable to subprograms. True for thunks
8710         associated with interface types.
8711         Extensive comment fixes regarding flags that appear in all entities. The
8712         documentation is now consistent for all such flags (there were a number
8713         of errors in the documentation in this regard).
8714
8715         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
8716
8717         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
8718         of these procedures are passed a function call that already has
8719         build-in-place actuals (testing new flag
8720         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
8721         the case where processing continues.
8722         (Expand_Call): If the call is generated from a thunk body then we
8723         propagate the extra actuals associated with the accessibility
8724         level of the access type actuals.
8725
8726         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
8727         of each extra formal of a protected operation to reference the
8728         corresponding extra formal of the subprogram denoted by the
8729         operation's Protected_Body_Subprogram.
8730         
8731         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
8732         N_Function_Call nodes.
8733
8734 2007-09-26  Robert Dewar  <dewar@adacore.com>
8735
8736         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
8737
8738         * debug.adb: Add d.s flag.
8739
8740 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8741
8742         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
8743         debug variable so that it won't be initialized when pragma
8744         Initialize_Scalars is in effect.
8745
8746 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8747
8748         * freeze.adb (Freeze_Entity): Remove check for preelaborable
8749         initialization of a full view. This is moved to
8750         Analyze_Package_Specification.
8751
8752         * sem_ch7.adb (Analyze_Package_Specification): Add check for
8753         preelaborable initialization of a full view in entity loop.
8754         (Uninstall_Declarations): If entity is a use-visible compilation unit,
8755         its child units are use-visible only if they are visible child units.
8756
8757         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
8758         whether an expression can be used within a type declaration that
8759         requires preelaborable init.
8760         (Check_Components): Replace inline code that does partial checking for
8761         preelaborable default expressions with call to
8762         Is_Preelaborable_Expression.
8763         (Has_Preelaborable_Initialization): In the case of a generic actual
8764         subtype, (that is, Is_Generic_Actual is True), return the result of
8765         applying Has_Preelaborable_Initialization to the generic actual's base
8766         type.
8767
8768 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8769
8770         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
8771         call to Jan_1_Day _Of_Week to optimize its performance.
8772         (Is_Leap): Move the routine to the scope of Week_In_Year.
8773         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
8774         weekday on which January 1 falls of Year - 1 and Year + 1. This function
8775         avoids calling Time_Of and Split, thus making it more efficent.
8776         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
8777
8778         * g-calend.ads (Week_In_Year): Change comment to reflect new
8779         implementation.
8780
8781 2007-09-26  Emmanuel Briot  <briot@adacore.com>
8782
8783         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
8784         Command_Line): New types
8785         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
8786         support for defining how switches can be grouped on a command line (as
8787         is the case for -gnatw... for GNAT), and how simple switches can be
8788         used as aliases for more complex switches (-gnatwa is same as
8789         -gnatwbcef...)
8790         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
8791         (Start, Current_*): New subprograms
8792         Added support for parsing an array of strings in addition to the real
8793         command line.
8794         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
8795          be moved from the body to the private part of the spec.
8796         (*): All subprograms now have an extra parameter with default value to
8797         specify which parser should be used. For backward compatibility, it
8798         defaults to parsing the command line of the application. They were also
8799         modified to properly handle cases where each of the argument does not
8800         start at index 1 (which is always true for Ada.Command_Line, but not
8801         when processing any Argument_List).
8802         (Free): New subprogram
8803         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
8804         Argument): New subprograms
8805         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
8806         special characters like ':', '=',... are now handled in a single place,
8807         which makes the code more extensible eventually.
8808         (Getopt, Full_Switch): When the switch was returned as part of the
8809         special character '*', make sure it is prepended by the switch character
8810         ('-' in general), so that the application knows whether "foo" or "-foo"
8811         was specified on the command line.
8812
8813 2007-09-26  Florian Villoing  <villoing@adacore.com>
8814
8815         * g-dirope.adb (Remove_Dir): In case we are removing directories
8816         recursively, make sure that if an exception is raised during the
8817         processing, the current working directory is reset to its initial
8818         value before propagating the exception.
8819
8820 2007-09-26  Vincent Celier  <celier@adacore.com>
8821
8822         * gnatbind.adb: If there are several ALI files specified and there is
8823         a main program to bind, the first ALI is expected to contain the main
8824         subprogram and the names of the binder generated files will be derived
8825         from the first ALI file name.
8826         (Gnatbind): Fix insertion character in invocation of Error_Msg
8827
8828 2007-09-26  Vincent Celier  <celier@adacore.com>
8829
8830         * gnatcmd.adb (Check_Files): Do not include sources that have been
8831         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
8832
8833 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8834
8835         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
8836         information about each of its index types, following the type
8837         reference for its component type.
8838
8839 2007-09-26  Vincent Celier  <celier@adacore.com>
8840
8841         * make.adb: (Kill): New procedure (__gnat_kill imported)
8842         (Running_Compile, Outstanding_Compiles): Global variables that
8843         were previously local to procedure Compile_Sources.
8844         (Sigint_Intercepted): Send signal SIGINT to all outstanding
8845         compilation processes.
8846
8847         (Gnatmake): If project files are used, create the mapping of all the
8848         sources, so that the correct paths will be found.
8849
8850         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8851
8852 2007-09-26  Vincent Celier  <celier@adacore.com>
8853
8854         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8855
8856         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8857         Replace components Compiler_Min_Options and Binder_Min_Options with
8858         Compiler_Required_Switches and Binder_Required_Switches in record
8859         Language_Config.
8860         Remove components Default_Language and Config in Project_Tree_Data,
8861         no longer used.
8862
8863         * prj-attr.adb: New attributes Required_Switches (<language>) in
8864         packages Compiler and Binder.
8865
8866         * prj-nmsc.adb: Major rewrite of the processing of configuration
8867         attributes for gprbuild. No impact on GNAT tools.
8868
8869         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8870         process configuration attributes: this is done in Prj.Nmsc.Check.
8871         (Recursive_Process): Make a full copy of packages inherited from project
8872         being extended, instead of a shallow copy.
8873         (Process_Project_Tree_Phase_1): New procedure
8874         (Process_Project_Tree_Phase_1): New procedure
8875         (Process): Implementation now uses the two new procedures
8876
8877         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8878         from the project config, not the tree config that no longer exists.
8879
8880 2007-09-26  Vincent Celier  <celier@adacore.com>
8881
8882         * Make-lang.in: Update dependencies..
8883
8884 2007-09-26  Vincent Celier  <celier@adacore.com>
8885
8886         * osint.adb, osint.ads: Minor reformatting
8887
8888         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8889
8890 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8891
8892         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8893         message to cite use of <> in aggregate component associations rather
8894         than wrongly indicating use of limited aggregates.
8895
8896 2007-09-26  Robert Dewar  <dewar@adacore.com>
8897
8898         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8899         Address_Taken.
8900
8901 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8902
8903         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8904         ancestor of the derived type, the operations are inherited from the
8905         primary dispatch table of the parent.
8906         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8907         when the context is an explicit type conversion.
8908
8909 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8910
8911         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8912         rule for qualified expressions properly, to detect improper conversions
8913         and resolve some cases of overloading.
8914
8915 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8916
8917         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8918         proper kind of reference to the primitive operation, for better source
8919         navigation.
8920         (Valid_Conversion): A tagged conversion is legal if both operands are
8921         tagged.
8922
8923 2007-09-26  Robert Dewar  <dewar@adacore.com>
8924
8925         * sem_warn.adb (Check_References): Catch more cases of unreferenced
8926         packages.
8927
8928 2007-09-26  Vincent Celier  <celier@adacore.com>
8929
8930         * snames.adb, snames.ads: Change Include_Option to Include_Switches
8931
8932 2007-09-26  Robert Dewar  <dewar@adacore.com>
8933
8934         * s-wchstw.adb: provide messages for run time unit exceptions
8935
8936         * a-witeio.adb: Minor reformatting
8937
8938         * exp_ch13.adb: Minor reformatting
8939
8940 2007-09-26  Sergey Rybin  <rybin@adacore.com>
8941
8942         * vms_data.ads: Revise gnatmetric qualifiers.
8943         Add qualified for the new gnatbind option '-y'
8944
8945         * gnat_ugn.texi: Revise the gnatmetric section.
8946         Add entry for new gnatbind option '-y'.
8947
8948         * gnat_rm.texi: Minor spelling correction.
8949         Document restriction on overlaying controlled types
8950
8951 2007-09-26  Vincent Celier  <celier@adacore.com>
8952
8953         * makegpr.adb (Link_Executables): Do not fail when the root project has
8954         no sources, but is an extending project.
8955
8956 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
8957
8958         * trans.c: Fix misplaced #define.
8959
8960 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8961
8962         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8963         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8964
8965 2007-09-21  Olivier Hainque  <hainque@adacore.com>
8966
8967         * utils.c (type_for_nonaliased_component_p): Return false for
8968         all AGGREGATE_TYPEs.
8969
8970 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8971
8972         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8973         object covered by 13.3(19) volatile.
8974
8975 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
8976
8977         PR ada/26797
8978         PR ada/32407
8979         * utils.c (unchecked_convert): Use a subtype as the intermediate type
8980         in the special VIEW_CONVERT_EXPR case.
8981
8982 2007-09-12  Robert Dewar  <dewar@adacore.com>
8983
8984         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8985
8986         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8987         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8988         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8989         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8990         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8991         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8992         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
8993         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
8994         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
8995         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
8996         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
8997         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
8998         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
8999         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
9000         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
9001         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
9002         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9003         pragma Compiler_Unit and adds it to relevant library units.
9004
9005 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
9006
9007         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9008         a box need not correspond to any component.
9009
9010 2007-09-12  Robert Dewar  <dewar@adacore.com>
9011
9012         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9013         the tasking version of the Ada run time when foreign threads are
9014         present and there are no explicit Ada tasks or tasking constructs.
9015
9016         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9017
9018 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
9019
9020         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9021         the usage of switch -y.
9022
9023         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9024         when switch -y is present.
9025
9026         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9027         leap seconds in Ada.Calendar and its children.
9028
9029 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
9030
9031         * a-extiti.ads (Timer): The discriminant is a "not null access
9032         constant" in the Reference Manual.
9033         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9034
9035 2007-09-12  Robert Dewar  <dewar@adacore.com>
9036
9037         * a-swuwha.adb: Remove junk RM header
9038
9039 2007-09-12  Vincent Celier  <celier@adacore.com>
9040
9041         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9042         indicator
9043
9044         * g-bytswa.ads: Minor reformatting
9045
9046 2007-09-12  Thomas Quinot  <quinot@adacore.com>
9047
9048         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
9049         Add new constant Thread_Blocking_IO, always True by default, set False
9050         on a per-runtime basis.
9051         (Need_Netdb_Buffer): New constant.
9052
9053 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
9054
9055         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9056         Added renames for corresponding functions in System.Partition_Interface.
9057
9058 2007-09-12  Doug Rupp  <rupp@adacore.com>
9059
9060         * Makefile.in: Remove VMS specific System.CRTL packages which are no
9061         longer needed.
9062
9063         * s-crtl-vms64.ads: Removed.
9064
9065 2007-09-12  Olivier Hainque  <hainque@adacore.com>
9066
9067         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9068         with discriminant constraints, generalize the code for BIT_FIELDs
9069         to PACKED fields of constant size and propagate DECL_PACKED.
9070
9071 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
9072
9073         * decl.c (array_type_has_nonaliased_component): New predicate.
9074         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9075         set the TYPE_NONALIASED_COMPONENT flag on the type.
9076         <E_Array_Subtype>: Likewise.
9077         * gigi.h (type_for_nonaliased_component_p): Declare.
9078         * utils.c (type_for_nonaliased_component_p): New predicate.
9079         (create_field_decl): Invoke the above predicate to set the
9080         DECL_NONADDRESSABLE_P flag on the field.
9081
9082 2007-09-11  Javier Miranda  <miranda@adacore.com>
9083
9084         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9085         in library level record type entities if we are generating statically
9086         allocated dispatch tables.
9087
9088         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9089         importing/exporting the _tag declaration by new code
9090         importing/exporting the dispatch table wrapper. This change allows us
9091         to statically allocate of the TSD.
9092         (Make_DT.Export_DT): New procedure.
9093         (Build_Static_DT): New function.
9094         (Has_DT): New function.
9095
9096         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9097         True_Constant and Current_Value. Required to statically
9098         allocate the dispatch tables.
9099         (Check_Allocator): Make function iterative instead of recursive.
9100         Also return inner allocator node, when present, so that we do not have
9101         to look for that node again in the caller.
9102
9103 2007-09-11  Jan Hubicka  <jh@suse.cz>
9104
9105         * misc.c (gnat_expand_body): Kill.
9106         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9107
9108 2007-09-10  Robert Dewar  <dewar@adacore.com>
9109
9110         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9111         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9112         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9113         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9114         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9115         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9116         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9117         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9118         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9119         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9120         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9121         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9122         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9123         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9124         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9125         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9126         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9127         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9128         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9129         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9130         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9131         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9132         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9133         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9134         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9135         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9136         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9137         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9138         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9139         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9140         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9141         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9142         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9143         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9144         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9145         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9146         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9147         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9148         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9149         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9150         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9151         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9152         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9153         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9154         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9155         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9156         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9157         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9158         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9159         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9160         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9161         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9162         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9163         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9164         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9165         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9166         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9167         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9168         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9169         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9170         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9171         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9172         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9173         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9174         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9175         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9176         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9177         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9178         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9179         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9180         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9181         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9182         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9183         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9184         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9185         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9186         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9187         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9188         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9189         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9190         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9191         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9192         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9193
9194 2007-09-10  Emmanuel Briot  <briot@adacore.com>
9195
9196         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9197         classes ("[]").
9198
9199 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
9200
9201         * adaint.c (__gnat_translate_vms): new function.
9202
9203 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
9204             Thomas Quinot  <quinot@adacore.com>
9205
9206         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9207         create an abstract subprogram in the case of 'Input. For 'Output we now
9208         create a real spec/body when the type is abstract, since it can
9209         potentially be called.
9210         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9211         body for 'Output when the type is abstract (only the creation of the
9212         body for 'Input is excluded when the type is abstract).
9213         (Stream_Operation_OK): Add an additional condition in the return
9214         statement, so that False will be returned for TTS_Stream_Input if the
9215         associated tagged type is an abstract extension. Add comments for
9216         return statement.
9217         (Expand_N_Object_Declaration): For the case of a shared passive
9218         variable, insert init proc call only after the shared variable
9219         procedures have been processed, because the IP call needs to undergo
9220         shared passive variable reference expansion, which requires these
9221         procedures to be available (and elaborated).
9222
9223 2007-09-10  Vincent Celier  <celier@adacore.com>
9224
9225         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9226         parameter Runtime_Project.
9227
9228 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9229
9230         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9231         given a box association, the type of the component is discriminated,
9232         and the value of the discriminant is the discriminant of the enclosing
9233         type, retrieve its value from the aggregate itself, where it must have
9234         been supplied.
9235
9236         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9237         to remove other spurious ambiguities on arithmetic operations involving
9238         literals and addresses, on systems where Address is a visible integer
9239         type, when the operator is called in functional notation.
9240         (Try_Primitive_Operation): Within an instance, a call in prefixed form
9241         is legal when the types match, even if the operation is currently
9242         hidden.
9243
9244 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9245
9246         * sem_ch12.adb (Build_Local_Package): A formal package with no
9247         associations is legal if all formals have defaults. It is not
9248         equivalent to a formal declared with a box.
9249
9250 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9251
9252         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9253
9254 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9255
9256         * gnat_ugn.texi: Add description of the new '-lratio' option
9257         Update 7.3.1 section about availability of the feature.
9258
9259 2007-09-10  Thomas Quinot  <quinot@adacore.com>
9260
9261         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9262         inserted node.
9263
9264 2007-09-10  Olivier Hainque  <hainque@adacore.com>
9265
9266         * Makefile.in: (mips-irix section): Activate build of libgmem.
9267
9268 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9269
9270         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9271         x87 registers.
9272
9273 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9274
9275         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9276         a debug renaming declaration specially.
9277
9278 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9279
9280         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9281         which a constant renaming is treated as a normal object declaration.
9282         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9283         the N_Indexed_Component case.
9284         <N_Indexed_Component>: Fall through to above case.
9285         <N_Object_Renaming_Declaration>: Return true for all composite types.
9286
9287 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9288
9289         * decl.c (make_packable_type): If the new type has been given BLKmode,
9290         try again to get an integral mode for it.
9291
9292 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9293
9294         Re-apply accidentally reverted change:
9295
9296         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9297
9298         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9299         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
9300         and _Unwind_SWord with _sleb128_t.
9301
9302 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9303
9304         * trans.c (convert_with_check): Update call to real_2expN.
9305
9306 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
9307
9308         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
9309         * utils.c (end_subprog_body): Likewise.
9310
9311 2007-09-03  Nick Clifton  <nickc@redhat.com>
9312
9313         * Make-lang.in: Change copyright header to refer to version 3 of
9314         the GNU General Public License and to point readers at the
9315         COPYING3 file and the FSF's license web page.
9316         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
9317         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
9318         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
9319         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
9320         Likewise.
9321
9322 2007-08-31  Vincent Celier  <celier@adacore.com>
9323
9324         PR ada/4720
9325
9326         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
9327         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
9328         (Check_Version_And_Help): New procedure in package Switch to process
9329         switches --version and --help.
9330         Use Check_Version_And_Help in GNAT tools
9331
9332         * make.adb:  Ditto.
9333         (Compile_Sources): Make sure that sources that are "excluded" are not
9334         compiled.
9335         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
9336         project file is used.
9337         (Version_Switch): Remove, moved to Switch
9338         (Help_Switch): Remove, moved to Switch
9339         (Display_Version): Remove, moved to Switch
9340
9341         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
9342         package Switch to process switches --version and --help.
9343         (Display_Version): New procedure
9344
9345         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
9346
9347 2007-08-31  Javier Miranda  <miranda@adacore.com>
9348
9349         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
9350         internal tags.
9351
9352 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9353
9354         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
9355         (Mark_Non_Null): If the node for which we just generated an access check
9356         is a reference to an *in* parameter and the reference appears in the
9357         declarative part of a subprogram body, mark the node as known non null.
9358
9359 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9360
9361         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
9362         structure of E_Exception to reflect the new flag.
9363         (Is_Raised, Set_Is_Raised): New inlined routines.
9364         Update the usage of available flag to reflect the addition of Is_Raised.
9365         (Is_Raised, Set_Is_Raised): Bodies of new routines.
9366         (Write_Entity_Flags): Write the status of flag Is_Raised.
9367         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
9368         spurious ambiguities when integer literals appear in the context of an
9369         address type that is a visible integer type.
9370
9371         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
9372         exceptions never being raised.
9373         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
9374         explicitly raised.
9375
9376 2007-08-31  Javier Miranda  <miranda@adacore.com>
9377
9378         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
9379         statement when compiling under restriction No_Exceptions_Proparation.
9380
9381 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9382
9383         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
9384         initialization aggregate for the type, generate itype references for
9385         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
9386
9387 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
9388
9389         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
9390         library-level package renaming, pass the declaration associated with
9391         the renaming's special debug variable to Qualify_Entity_Names to ensure
9392         that its encoded name is properly qualified.
9393
9394         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
9395         occurring in the list of entities to qualify, and do not attempt to
9396         traverse an entity list in that case. Variables associated with
9397 `       library-level package renamings can now occur in the table.
9398
9399         * exp_dbug.ads: Revise documentation of the encoding for renaming
9400         declarations.
9401
9402 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9403
9404         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
9405         access type points to an unconstrained array.
9406
9407 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9408
9409         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
9410         conversion.
9411
9412         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
9413         simple redundant qualifications. The check is performed whenever the
9414         expression is a non-overloaded identifier.
9415         (Resolve_Type_Conversion): Enchance the redundant type conversion check
9416         to include loop parameters.
9417         (Valid_Conversion): Avoid generation of spurious error message.
9418
9419 2007-08-31  Bob Duff  <duff@adacore.com>
9420
9421         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
9422         concatenations of string literals into a single literal, in order to
9423         avoid very deep recursion in the front end, which was causing stack
9424         overflow.
9425
9426         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
9427         string, and the right operand is a string literal (the case of "" &
9428         "..."), optimize by avoiding copying the right operand -- just use the
9429         value of the right operand directly.
9430
9431         * stringt.adb (Store_String_Chars): Optimize by growing the
9432         String_Chars table all at once, rather than appending characters one by
9433         one.
9434         (Write_String_Table_Entry): If the string to be printed is very long,
9435         just print the first few characters, followed by the length. Otherwise,
9436         doing "pn(n)" in the debugger can take an extremely long time.
9437
9438         * sem_prag.adb (Process_Interface_Name): Replace loop doing
9439         Store_String_Char with Store_String_Chars.
9440
9441 2007-08-31  Vincent Celier  <celier@adacore.com>
9442
9443         * prj-attr.adb: Add new attribute Excluded_Source_Files
9444
9445         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
9446         Locally_Removed_Files.
9447
9448         * snames.ads, snames.adb: New standard name Excluded_Source_Files
9449
9450 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9451
9452         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
9453         clauses of subunits, ignore limited_with_clauses that are illegal and
9454         have not been fully analyzed.
9455
9456 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9457
9458         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
9459         flag, for effiency. It is called when analyzing arithmetic operators
9460         and also for actuals in calls that are universal_integers. The flag is
9461         set for the predefined type address, and for any type or subtype
9462         derived from it.
9463
9464         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
9465         Universal_Integer, when the formal is a descendent of address and the
9466         call appears in user code.
9467         (Analyze_Selected_Component): if the prefix is a private extension, the
9468         tag component is visible.
9469
9470         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
9471         entity flag.
9472
9473 2007-08-31  Robert Dewar  <dewar@adacore.com>
9474
9475         * s-fileio.adb (Open): Normalize file name to lower case in non-case
9476         sensitive file name systems to avoid unexpected mismatch in Vista.
9477
9478 2007-08-31  Vincent Celier  <celier@adacore.com>
9479
9480         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
9481
9482 2007-08-31  Vincent Celier  <celier@adacore.com>
9483
9484         * symbols-vms.adb (Initialize): Read symbol files with continuation
9485         lines
9486         (Finalize): If symbol is long, split the line
9487
9488 2007-08-31  Vincent Celier  <celier@adacore.com>
9489
9490         * fmap.ads: Minor comment updates
9491
9492 2007-08-31  GNAT Script  <nobody@adacore.com>
9493
9494         * Make-lang.in: Makefile automatically updated
9495
9496 2007-08-31  Bob Duff  <duff@adacore.com>
9497
9498         * sinfo.ads: Minor comment fix.
9499
9500 2007-08-31  Thomas Quinot  <quinot@adacore.com>
9501
9502         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
9503         with implementation.
9504         Documentation cleanup only.
9505
9506 2007-08-31  Sergey Rybin  <rybin@adacore.com>
9507
9508         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
9509         gnatpp '--separate-stmt-name' option.
9510         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
9511         option.
9512
9513         * gnat_ugn.texi: Add description for the new gnatpp
9514         '--separate-stmt-name' and '--use-on-new-line' options.
9515
9516 2007-08-31  Ben Elliston  <bje@au.ibm.com>
9517
9518         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9519         when compiling for powerpc64-*-linux.
9520         * system-linux-ppc64.ads: New file.
9521
9522 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
9523
9524         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
9525         NetBSD.
9526
9527 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9528
9529         * misc.c (gnat_type_max_size): Constify.
9530
9531 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9532
9533         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
9534         associated with Standard_Debug_Renaming_Type, to be used as the type of
9535         the special variables whose names provide debugger encodings for
9536         renaming declarations.
9537
9538         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
9539         (Set_Debug_Renaming_Link): Change to set Node25.
9540         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
9541         (Write_Field25_Name): Add case for E_Variable to output
9542         "Debug_Renaming_Link".
9543         (Write_Field23_Name): Correct the output string for "Limited_View".
9544
9545         * exp_dbug.adb: Add with and use of Tbuild.
9546         (Debug_Renaming_Declaration): Replace creation of an enumeration type
9547         and literal with creation of a variable of type
9548         Standard_Debug_Renaming_Type whose name encodes both the renamed object
9549         and the entity of the renaming declaration.
9550         (Qualify_Entity_Name): Add the delayed qualification of the entity name
9551         part of the name of a variable that has a Debug_Renaming_Link.
9552
9553         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
9554         special type to be associated with variables that provide debugger
9555         encodings for renaming declarations.
9556
9557 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9558             Ed Schonberg  <schonberg@adacore.com>
9559             Javier Miranda  <miranda@adacore.com>
9560
9561         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
9562         ancestor part given by an aggregate to test for an unchecked conversion,
9563         since this can occur in some cases when the ancestor part is a function
9564         call, and we don't want to fall into the recursive call to this
9565         procedure in that case.
9566
9567         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
9568         stream attributes on limited types to account for user-specified
9569         attributes as well as whether Input (resp. Output) becomes available
9570         due to Read (resp. Write) being available for the type. Change Boolean
9571         variable to the more accurate name
9572         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
9573         double-"not" predicate at beginning of return statement to more
9574         understandable form.
9575
9576         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
9577         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
9578         in a block statement and use that as the first statement of the
9579         expanded return rather than incorrectly using the handled sequence as
9580         the first statement.
9581
9582         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
9583         operation, generate an explicit freeze node for it rather than
9584         generating extra formals, to ensure that gigi has the proper order of
9585         elaboration for anonymous subtypes in the signature of the subprograms.
9586         (Build_In_Place_Formal): Move assertion to beginning of loop.
9587         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
9588         applied to a function call (occurs for some cases of 'Input).
9589         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
9590         applied to a function call (occurs for some cases of 'Input).
9591
9592         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
9593         2005, generate an extended return statement enclosing the result object
9594         and 'Read call.
9595
9596         * freeze.adb (Freeze_Record_Type): Extend the current management of
9597         components that are access type with an allocator as default value: add
9598         missing support to the use of qualified expressions of the
9599         allocator (which also cause freezing of the designated type!)
9600         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
9601         dispatching operation, since extra formals may be needed by calls to
9602         build-in-place functions (such as stream 'Input).
9603
9604         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
9605         formals for 'Constrained and accessibility level in the case of a
9606         predefined dispatching operation.
9607
9608         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
9609         point, no need to find the parent node.
9610
9611 2007-08-16  Javier Miranda  <miranda@adacore.com>
9612
9613         * exp_attr.adb (Attribute_Priority): Add missing support for entries
9614         and entry barriers.
9615
9616 2007-08-16  Javier Miranda  <miranda@adacore.com>
9617
9618         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
9619         is not really required and can introduce regression with the debugger.
9620         The original problem is fixed with the patch written for checks.adb.
9621
9622 2007-08-16  Thomas Quinot  <quinot@adacore.com>
9623
9624         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
9625         Range_Check on Allocated_Table.
9626
9627 2007-08-16  Vincent Celier  <celier@adacore.com>
9628
9629         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
9630         Including_Non_Switch set to False.
9631         (Gnatmake): For the compiler, call Test_If_Relative_Path with
9632         Including_Non_Switch set to False.
9633
9634         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
9635         parameter Including_Non_Switch, defaulted to True. When
9636         Including_Non_Switch is False, options that are not switches and
9637         appear as relative path are not converted to absolute paths.
9638
9639 2007-08-16  Nicolas Roche  <roche@adacore.com>
9640
9641         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
9642         makefiles
9643
9644         * Make-lang.in: Update dependencies
9645
9646 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9647
9648         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
9649         currently inspected is a selected component, retrieve the entity of
9650         its selector.
9651         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
9652         from the immediate ancestor of Main_Unit_Entity.
9653         (Install_Limited_Withed_Unit): Do not install the limited view of
9654         package P if P is reachable through an ancestor chain from package C
9655         and C also has a with clause for P in its body.
9656         (Has_Limited_With_Clause): New routine.
9657         (Has_With_Clause): New routine.
9658
9659 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9660
9661         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
9662         generic for an enclosing instance is a global reference, even though
9663         its scope is the enclosing instance.
9664
9665 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9666             Javier Miranda  <miranda@adacore.com>
9667
9668         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
9669         initialize a limited object.
9670         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
9671         13/2 and 14/2.
9672         Make sure Has_Complex_Representation is inherited by derived type.
9673
9674 2007-08-16  Robert Dewar  <dewar@adacore.com>
9675
9676         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
9677         exception case
9678
9679 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9680
9681         * sem_disp.adb (Check_Dispatching_Operation): If the operation
9682         implements an operation inherited from a progenitor interface, verify
9683         that they are subtype-conformant.
9684
9685 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9686             Bob Duff  <duff@adacore.com>
9687             Nicolas Setton  <setton@adacore.com>
9688
9689         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
9690         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
9691         the statement which is being resolved comes from a predefined library
9692         unit, all non-predefined library interpretations are skipped.
9693         (Resolve_Op_Concat): If string concatenation was folded in the parser,
9694         but the "&" is user defined, give an error, because the folding would
9695         be wrong.
9696
9697         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
9698         the parser has folded a long sequence of concatenations of string
9699         literals.
9700
9701         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
9702         and "JMP_BUF" variables as artificial.
9703         (N_String_Literal): Do not use alloca for very long string literals. Use
9704         xmalloc/free instead. Otherwise the stack might overflow.
9705
9706         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
9707         compiler.
9708
9709 2007-08-16  Vincent Celier  <celier@adacore.com>
9710
9711         * vms_conv.adb (Process_Argument): Ensure that project related options
9712         are not put in the -cargs section when using GNAT COMPILE.
9713
9714 2007-08-16  Robert Dewar  <dewar@adacore.com>
9715
9716         * gnat_ugn.texi: Add note on preprocessing (output file not written)
9717
9718 2007-08-16  Thomas Quinot  <quinot@adacore.com>
9719
9720         * a-tags.adb: Minor reformatting.
9721
9722 2007-08-16  Bob Duff  <duff@adacore.com>
9723
9724         * sem_type.ads, sem_ch4.adb: Minor reformatting.
9725
9726 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9727
9728         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
9729         s-osinte-interix.ads, system-interix.ads: Removed.
9730
9731 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9732
9733         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
9734         calls to Check_Within_Time_Bounds.
9735         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
9736         (Difference): Account for possible rounding of the resulting difference
9737
9738 2007-08-14  Robert Dewar  <dewar@adacore.com>
9739
9740         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
9741         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
9742         s-osinte-solaris.adb, s-osinte-solaris.ads,
9743         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
9744
9745         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
9746         switch -gnatyS. Enable -gnatyS in GNAT style check mode
9747
9748 2007-08-14  Robert Dewar  <dewar@adacore.com>
9749             Ed Schonberg  <schonberg@adacore.com>
9750
9751         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
9752         Suppress unmodified in-out parameter warning in some cases
9753         This patch is a also fairly significant change to the way suppressible
9754         checks are handled.
9755
9756         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
9757         needed for access to concurrent record types generated by the expander.
9758         (Generate_Range_Check): When generating a temporary to capture the
9759         value of a conversion that requires a range check, set the type of the
9760         temporary before rewriting the node, so that the type is always
9761         properly placed for back-end use.
9762         (Apply_Float_Conversion_Check): Handle case where the conversion is
9763         truncating.
9764         (Get_Discriminal): Code reformatting. Climb the scope stack looking
9765         for a protected type in order to examine its discriminants.
9766
9767 2007-08-14  Robert Dewar  <dewar@adacore.com>
9768             Gary Dismukes  <dismukes@adacore.com>
9769             Ed Schonberg  <schonberg@adacore.com>
9770             Thomas Quinot  <quinot@adacore.com>
9771
9772         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
9773         a-stwisu.adb, a-strsup.adb: Fix warnings for range
9774         tests optimized out.
9775
9776         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
9777         (Get_Allocator_Final_List): For the case of an anonymous access type
9778         that has a specified Associated_Final_Chain, do not go up to the
9779         enclosing scope.
9780         (Expand_N_Type_Conversion): Test for the case of renamings of access
9781         parameters when deciding whether to apply a run-time accessibility
9782         check.
9783         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
9784         aggregate code before allocator, and ahead of declaration for
9785         temporary, to prevent access before elaboration when the allocator is
9786         an actual for an access parameter.
9787         (Expand_N_Type_Conversion): On an access type conversion involving an
9788         access parameter, do not apply an accessibility check when the
9789         operand's original node was an attribute other than 'Access. We now
9790         create access conversions for the expansion of 'Unchecked_Access and
9791         'Unrestricted_Access in certain cases and clearly accessibility should
9792         not be checked for those.
9793
9794         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
9795         includes a type conversion of a packed component that has been expanded,
9796         recover the original expression for the object, and use this expression
9797         in the post-call assignment statement, so that the assignment is made
9798         to the object and not to a back-end temporary.
9799         (Freeze_Subprogram): In case of primitives of tagged types not defined
9800         at the library level force generation of code to register the primitive
9801         in the dispatch table. In addition some code reorganization has been
9802         done to leave the implementation clear.
9803         (Expand_Call): When expanding an inherited implicit conversion,
9804         preserve the type of the inherited function after the intrinsic
9805         operation has been expanded.
9806
9807         * exp_ch2.ads, exp_ch2.adb
9808         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
9809         of an entry formal appearing in an assignment statement does not assign
9810         to the formal.
9811         (Expand_Current_Value): Instead of calling a routine to determine
9812         whether the prefix of an attribute reference should be optimized or
9813         not, prevent the optimization of such prefixes all together.
9814
9815         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
9816         component whose prefix is known to be of an access type is an implicit
9817         dereference and does not assign to the prefix.
9818
9819 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9820             Robert Dewar  <dewar@adacore.com>
9821
9822         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
9823         itype is visited, make an entry into table to link associated node and
9824         new itype.
9825         Add comments and correct harmless error in Build_NCT_Hash_Tables
9826         (Array_Aggr_Subtype): Associate each itype created for an index type to
9827         the corresponding range construct, and not to the aggregate itself. to
9828         maintain a one-to-one correspondence between itype and its associated
9829         node, to prevent errors when complex expression is copied.
9830         Fix mishandling of multiple levels of parens
9831
9832         * sem_aggr.adb: Create a limited view of an incomplete type, to make
9833         treatment of limited views uniform for all visible declarations in a
9834         limited_withed package.
9835         (New_Copy_Tree): If hash table is being used and itype is visited,
9836         make an entry into table to link associated node and new itype.
9837         (Resolve_Record_Aggregate): Do not add an others box association for a
9838         discriminated record component that has only discriminants, when there
9839         is a box association for the component itself.
9840
9841         * par-ch4.adb: Fix mishandling of multiple levels of parens
9842
9843 2007-08-14  Robert Dewar  <dewar@adacore.com>
9844
9845         * comperr.adb: Fix problem with suppressing warning messages from gigi
9846
9847         * erroutc.ads, erroutc.adb, errout.ads, 
9848         errout.adb (Write_Eol): Remove trailing spaces before writing the line
9849         (Write_Eol_Keep_Blanks): New procedure to write a line, including
9850         possible trailing spaces.
9851         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9852         Fix problem with suppressing warning messages from back end
9853         Improve handling of deleted warnings
9854
9855         * gnat1drv.adb: 
9856         Fix problem with suppressing warning messages from back end
9857         Handle setting of Static_Dispatch_Tables flag.
9858
9859         * prepcomp.adb: 
9860         Fix problem with suppressing warning messages from back end
9861
9862         * exp_intr.adb: Improve handling of deleted warnings
9863
9864 2007-08-14  Robert Dewar  <dewar@adacore.com>
9865
9866         * debug.adb: Improve -gnatdI to cover all cases of serialization
9867         Add documentation of dZ, d.t
9868
9869         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9870         serialization.
9871         (Sprint_Node_Actual): Generate new output associated with implicit
9872         importation and implicit exportation of object declarations.
9873
9874 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9875             Robert Dewar  <dewar@adacore.com>
9876             Javier Miranda  <miranda@adacore.com>
9877             Gary Dismukes  <dismukes@adacore.com>
9878
9879         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9880         to make treatment of limited views uniform for all visible declarations
9881         in a limited_withed package.
9882         Improve warnings for in out parameters
9883         (Set_Related_Interaface/Related_Interface): Allow the use of this
9884         attribute with constants.
9885         (Write_Field26_Name): Handle attribute Related_Interface in constants.
9886         Warn on duplicate pragma Preelaborable_Initialialization
9887
9888         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9889         generation of a freezing node to ensure proper management of null
9890         excluding access types in the backend.
9891         (Create_Extra_Formals): Test base type of the formal when checking for
9892         the need to add an extra accessibility-level formal. Pass the entity E
9893         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9894         originally being done in a couple of cases), to ensure that the
9895         Extra_Formals list gets set on the entity E when the first entity is
9896         added.
9897         (Conforming_Types): Add missing calls to Base_Type to the code that
9898         handles anonymous access types. This is required to handle the
9899         general case because Process_Formals builds internal subtype entities
9900         to handle null-excluding access types.
9901         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9902         functions that need it, even when not marked Requires_Overriding.
9903         Improve warnings for in out parameters
9904         (Analyze_Function_Return): Warn for disallowed null return
9905         Warn on return from procedure with unset out parameter
9906         Ensure consistent use of # in error messages
9907         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9908         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9909         the implicit conversion of the expression done for anonymous access
9910         types. This is required to generate the code of the null excluding
9911         check (if required).
9912
9913         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9914         A formal parameter is never publicly referenceable outside of its body.
9915         (Check_References): For an unreferenced formal parameter in an accept
9916         statement, use the same warning circuitry as for subprogram formal
9917         parameters.
9918         (Warn_On_Unreferenced_Entity): New subprogram, taken from
9919         Output_Unreferenced_Messages, containing the part of that routine that
9920         is now reused for entry formals as described above.
9921         (Goto_Spec_Entity): New function
9922         (Check_References): Do not give IN OUT warning for dispatching operation
9923         Improve warnings for in out parameters
9924         (Test_Ref): Check that the entity is not undefinite before calling
9925         Scope_Within, in order to avoid infinite loops.
9926         Warn on return from procedure with unset out parameter
9927         Improved warnings for unused variables
9928
9929 2007-08-14  Robert Dewar  <dewar@adacore.com>
9930             Javier Miranda  <miranda@adacore.com>
9931             Gary Dismukes  <dismukes@adacore.com>
9932
9933         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9934         (Expand_N_Attribute_Reference): Further unify the handling of the
9935         three forms of access attributes, using common code now for all three
9936         cases. Add a test for the case of applying an access attribute to
9937         an explicit dereference when the context is an access-to-interface
9938         type. In that case we need to apply the conversion to the prefix
9939         of the explicit dereference rather than the prefix of the attribute.
9940         (Attribute_Version, UET_Address): Set entity as internal to ensure
9941         proper dg output of implicit importation.
9942         (Expand_Access_To_Type): Removed.
9943         (Expand_N_Attribute_Reference): Merge the code from the three cases
9944         of access attributes, since the processing is largely identical for
9945         these cases. The substantive fix here is to process the case of a
9946         type name prefix (current instance case) before handling the case
9947         of interface prefixes.
9948
9949 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9950             Ed Schonberg  <schonberg@adacore.com>
9951             Javier Miranda  <miranda@adacore.com>
9952             Robert Dewar  <dewar@adacore.com>
9953
9954         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9955         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9956         type that is an anonymous access to controlled object, establish
9957         an associated finalization chain to avoid corrupting the global
9958         finalization list when a dynamically allocated object designated
9959         by such a component is deallocated.
9960         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9961         functions that need it, even when not marked Requires_Overriding.
9962         (Initialize_Tag): Replace call to has_discriminants by call to
9963         Is_Variable_Size_Record in the circuitry that handles the
9964         initialization of secondary tags.
9965         (Is_Variable_Size_Record): New implementation.
9966         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9967         Suppress_Initialization pragma for a derived type.
9968         (Is_Variable_Size_Record): New subprogram.
9969         (Build_Offset_To_Top_Functions): New implementation that simplifies the
9970         initial version of this routine and also fixes problems causing
9971         incomplete initialization of the table of interfaces.
9972         (Build_Init_Procedure): Improve the generation of code to initialize the
9973         the tag components of secondary dispatch tables.
9974         (Init_Secondary_Tags): New implementation that simplifies the previous
9975         version of this routine.
9976         (Make_DT): Add parameter to indicate when type has been frozen by an
9977         object declaration, for diagnostic purposes.
9978         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9979         diagnose attemps to freeze a subprogram when some untagged type of its
9980         profile is a private type whose full view has not been analyzed yet.
9981         (Freeze_Array_Type): Generate init proc for packed array if either
9982         Initialize or Normalize_Scalars is set.
9983         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9984         constructing the new profile, copy the null_exclusion indicator for each
9985         parameter, to ensure full conformance of the new body with the spec.
9986
9987         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9988         Create wrappers for constructor functions that need it, even when not
9989         marked Requires_Overriding.
9990         (Covers): Handle properly designated types of anonymous access types,
9991         whose non-limited views are themselves incomplete types.
9992         (Add_Entry): Use an entity to store the abstract operation which hides
9993         an interpretation.
9994         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9995         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9996         initialization aggregate.
9997         (Function_Interp_May_Be_Hidden): Rename to
9998         Function_Interp_Has_Abstract_Op.
9999         (Has_Compatible_Type): Remove machinery that skips interpretations if
10000         they are labeled as potentially hidden by an abstract operator.
10001         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10002         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10003         (Write_Overloads): Output the abstract operator if present.
10004         (Add_Entry): Before inserting a new entry into the interpretation table
10005         for a node, determine whether the entry will be disabled by an abstract
10006         operator.
10007         (Binary_Op_Interp_May_Be_Hidden): New routine.
10008         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10009         aggregate.
10010         (Function_Interp_May_Be_Hidden): New routine.
10011         (Has_Compatible_Type): Do not consider interpretations hidden by
10012         abstract operators when trying to determine whether two types are
10013         compatible.
10014         (Has_Hidden_Interp): New routine.
10015         (Set_May_Be_Hidden_Interp): New routine.
10016         (Write_Overloads): Write the status of flag May_Be_Hidden.
10017
10018 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10019             Javier Miranda  <miranda@adacore.com>
10020
10021         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10022         types declared in the declarative part of a nested package body or in
10023         the proper body of a stub.
10024         (Set_All_DT_Position): Add missing check to avoid wrong assignation
10025         of the same dispatch table slot to renamed primitives.
10026         (Make_Select_Specific_Data_Table): Handle private types.
10027         (Tagged_Kind): Handle private types.
10028         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10029         output of implicit importation and exportation.
10030         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10031         first formal of the thunk is always associated with the controlling
10032         type. In addition perform the following code cleanup: remove formal
10033         Thunk_Alias which is no longer required, cleanup evaluation of the
10034         the controlling type, and update the documentation.
10035         Replace occurrence of Default_Prim_Op_Count by
10036         Max_Predef_Prims. Addition of compile-time check to verify
10037         that the value of Max_Predef_Prims is correct.
10038         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10039         (Make_DT): Add parameter to indicate when type has been frozen by an
10040         object declaration, for diagnostic purposes.
10041         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10042         construction of statically allocated dispatch tables.
10043         (Make_DT): In case of library-level tagged types export the declaration
10044         of the primary tag. Remove generation of tags (now done by Make_Tags).
10045         Additional modifications to handle non-static generation of dispatch
10046         tables. Take care of building tables for asynchronous interface types
10047         (Make_Tags): New subprogram that generates the entities associated with
10048         the primary and secondary tags of Typ and fills the contents of Access_
10049         Disp_Table. In case of library-level tagged types imports the forward
10050         declaration of the primary tag that will be declared later by Make_DT.
10051         (Expand_Interface_Conversion): In case of access types to interfaces
10052         replace an itype declaration by an explicit type declaration to avoid
10053         problems associated with the scope of such itype in transient blocks.
10054
10055 2007-08-14  Robert Dewar  <dewar@adacore.com>
10056             Ed Schonberg  <schonberg@adacore.com>
10057             Javier Miranda  <miranda@adacore.com>
10058
10059         * exp_util.ads, exp_util.adb: 
10060         This patch replaces a number of occurrences of explicit tests for N_Null
10061         with calls to Known_Null. This improves tracking of null values, since
10062         Known_Null also catches null constants, and variables currently known to
10063         be null, so we get better tracking.
10064         (Ensure_Defined): create an itype reference only in the scope of the
10065         itype.
10066         (Side_Effect_Free): A selected component of an access type that
10067         denotes a component with a rep clause must be treated as not
10068         side-effect free, because if it is part of a linked structure its
10069         value may be affected by a renaming.
10070         (Expand_Subtype_From_Expr): For limited objects initialized with build
10071         in place function calls, do nothing; otherwise we prematurely introduce
10072         an N_Reference node in the expression initializing the object, which
10073         breaks the circuitry that detects and adds the additional arguments to
10074         the called function. Bug found working in the new patch for statically
10075         allocated dispatch tables.
10076         (Is_Library_Level_Tagged_Type): New subprogram.
10077         (Remove_Side_Effects): If the expression of an elementary type is an
10078         operator treat as a function call.
10079         (Make_Literal_Range): If the index type of the array is not integer, use
10080         attributes properly to compute the constraint on the resulting aggregate
10081         which is a string.
10082
10083         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10084         class-wide type whose base type is an incomplete private type, leave
10085         class-wide type unfrozen so that freeze nodes can be generated
10086         properly at a later point.
10087         (Freeze_Entity, array case): Handle case of pragma Pack and component
10088         size attributre clause for same array.
10089
10090 2007-08-14  Vincent Celier  <celier@adacore.com>
10091
10092         * prj.ads, prj.adb: Update Project Manager to new attribute names for
10093         gprbuild.
10094         Allow all valid declarations in configuration project files
10095         (Reset): Initialize all tables and hash tables in the project tree data
10096         Major update of the Project Manager and of the project aware tools,
10097         including gprmake, so that the same sources in the GNAT repository
10098         can be used by gprbuild.
10099         (Slash_Id): Change type to be Path_Name_Type
10100         (Slash): Return a Path_Name_Type instead of a File_Name_Type
10101
10102         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10103         gprbuild.
10104         Update Project Manager to new attribute names for ghprbuild
10105         Allow all valid declarations in configuration project files
10106         Major update of the Project Manager and of the project aware tools,
10107         including gprmake, so that the same sources in the GNAT repository
10108         can be used by gprbuild.
10109
10110         * prj-com.ads: 
10111         Major update of the Project Manager and of the project aware tools,
10112         including gprmake, so that the same sources in the GNAT repository
10113         can be used by gprbuild.
10114
10115         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10116         insensitive flag for attributes with optional index.
10117         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10118         array attribute, put the index in lower case.
10119         Update Project Manager to new attribute names for ghprbuild
10120         Allow all valid declarations in configuration project files
10121         Major update of the Project Manager and of the project aware tools,
10122         including gprmake, so that the same sources in the GNAT repository
10123         can be used by gprbuild.
10124
10125         * prj-env.ads, prj-env.adb: 
10126         Major update of the Project Manager and of the project aware tools,
10127         including gprmake, so that the same sources in the GNAT repository
10128         can be used by gprbuild.
10129         (Get_Reference): Change type of parameter Path to Path_Name_Type
10130
10131         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10132         removing '-' from the path to start with the first character of the
10133         next directory.
10134         Major update of the Project Manager and of the project aware tools,
10135         including gprmake, so that the same sources in the GNAT repository
10136         can be used by gprbuild.
10137         Major update of the Project Manager and of the project aware tools,
10138         including gprmake, so that the same sources in the GNAT repository
10139         can be used by gprbuild.
10140
10141         * prj-nmsc.ads, prj-nmsc.adb: 
10142         Update Project Manager to new attribute names for ghprbuild
10143         Allow all valid declarations in configuration project files
10144         (Search_Directories): Detect subunits that are specified with an
10145         attribute Body in package Naming. Do not replace a source/unit in the
10146         same project when the order of the source dirs are known. Detect
10147         duplicate sources/units in the same project when the order of the
10148         source dirs are not known.
10149         (Check_Ada_Name): Allow all identifiers that are not reserved words
10150         in Ada 95.
10151         Major update of the Project Manager and of the project aware tools,
10152         including gprmake, so that the same sources in the GNAT repository
10153         can be used by gprbuild.
10154         (Look_For_Sources): If the list of sources is empty, set the object
10155         directory of non extending project to nil.
10156         Change type of path name variables to be Path_Name_Type
10157         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10158         otherwise creating missing directories will fail.
10159
10160         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
10161         prj-part.ads, prj-part.adb:
10162         Major update of the Project Manager and of the project aware tools,
10163         including gprmake, so that the same sources in the GNAT repository
10164         can be used by gprbuild.
10165
10166         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10167         insensitive flag for attributes with optional index.
10168         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10169         array attribute, put the index in lower case.
10170         (Parse_Variable_Reference): Allow the current project name to be used in
10171         the prefix of an attribute reference.
10172
10173         * prj-util.ads, prj-util.adb
10174         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10175         defaulted to False. When True, always check against indexes in lower
10176         case.
10177
10178         * snames.ads, snames.h, snames.adb: 
10179         Update Project Manager to new attribute names for gprbuild
10180         Allow all valid declarations in configuration project files
10181
10182 2007-08-14  Robert Dewar  <dewar@adacore.com>
10183             Ed Schonberg  <schonberg@adacore.com>
10184
10185         * opt.ads: Warning for non-local exception propagation now off by
10186         default
10187         New switch -gnatI to disable representation clauses
10188         Implement new pragma Implicit_Packing
10189
10190         * usage.adb: 
10191         Warning for non-local exception propagation now off by default
10192         Add warning for unchecked conversion of pointers wi different
10193         conventions.
10194         New switch -gnatI to disable representation clauses
10195
10196         * usage.adb: new switch -gnatyS
10197
10198         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10199         note that aggregates of anonymous array types are not flagged.
10200         -gnatwc now includes membership tests optimized away
10201         -gnatw.x warnings are now off by default
10202         Added conditional compilation Appendix
10203         Add documentation of -gnatI
10204         Add documentation for new -gnatyS style check
10205         Update documentation about SAL and auto-init on Windows.
10206
10207         * gnat_rm.texi: 
10208         Add documentation for pragma Check_Name and 'Enabled attribute
10209         Document that Eliminate on dispatching operation is ignored
10210         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10211         Document pragma Main
10212         Document pragma Implicit_Packing
10213
10214         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10215         different conventions
10216         New switch -gnatI to disable representation clauses
10217
10218         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10219         recognized, report the invalid characters including "-gnat" instead of
10220         just the first character in the switch.
10221         New switch -gnatI to disable representation clauses
10222         Set Warn_On_Object_Renames_Function true for -gnatg
10223
10224         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10225         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10226         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10227         to switch -aP (add directory to project search dir).
10228
10229         * par-prag.adb: Implement new pragma Implicit_Packing
10230
10231         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10232         type as having a non-standard representation, to force expansion on
10233         conversion to related types.
10234         (Analyze_Pragma): Warn on misspelled pragma
10235         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10236         Ensure consistent use of # in error messages
10237         Implement pragma Implicit_Packing
10238
10239 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10240             Eric Botcazou  <ebotcazou@adacore.com>
10241
10242         * targtyps.c (get_target_maximum_default_alignment): New function.
10243         Maximum alignment
10244         that the compiler might choose by default for a type or object.
10245         (get_target_default_allocator_alignment): New function. Alignment known
10246         to be honored by the target default allocator.
10247         (get_target_maximum_allowed_alignment): New function. Maximum alignment
10248         we might accept for any type or object on the target.
10249         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10250
10251         * gigi.h (get_target_maximum_default_alignment): Declare new function.
10252         (get_target_default_allocator_alignment): Likewise.
10253         (get_target_maximum_allowed_alignment): Likewise.
10254
10255         PR ada/19037
10256         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10257         result of a function call, first try to use a stabilized reference for
10258         a constant renaming too.
10259         (validate_alignment): Use target_maximum_allowed_alignment instead of
10260         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10261         (gnat_to_gnu_entity): Use common nodes directly.
10262         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10263         alignment and size for the object.
10264         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10265         and N_Procedure_Call_Statement.
10266         (takes_address): Rename to lvalue_required_p, add third parameter
10267         'aliased' and adjust recursive calls.
10268         <N_Indexed_Component>: Update 'aliased' from the array type.
10269         <N_Selected_Component>: New case.
10270         <N_Object_Renaming_Declaration>: New Likewise.
10271         (Identifier_to_gnu): Adjust for above changes.
10272         (maybe_stabilize_reference) <CONST_DECL>: New case.
10273
10274         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10275         between type variants.
10276         (build_simple_component_ref): Likewise.
10277         (build_call_alloc_dealloc): Use target_default_allocator_alignment
10278         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10279         aligning type circuitry for allocations from the default storage pool.
10280         (build_allocator): Likewise.
10281         (build_simple_component_ref): Manually fold the reference for a
10282         constructor if the record type contains a template.
10283
10284         * utils.c (value_zerop): Delete.
10285         (gnat_init_decl_processing): Emit debug info for common types.
10286         (rest_of_record_type_compilation): If a union contains a field
10287         with a non-constant qualifier, treat it as variable-sized.
10288         (finish_record_type): Give the stub TYPE_DECL a name.
10289         (rest_of_record_type_compilation): Likewise.
10290         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
10291         types are equivalent array types.
10292         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
10293         even if the type is not passed by reference.
10294         (static_ctors, static_dtors): Delete.
10295         (end_subprog_body): Do not record constructors and destructors.
10296         (build_global_cdtor): Delete.
10297         (gnat_write_global_declarations): Do not call build_global_cdtor.
10298
10299         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
10300         -fRTS=rtp is specified.
10301         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
10302         specified.
10303
10304         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
10305         of the personality function with SJLJ exceptions.
10306
10307         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
10308         the name of the personality function with SJLJ exceptions.
10309
10310 2007-08-14  Robert Dewar  <dewar@adacore.com>
10311             Ed Schonberg  <schonberg@adacore.com>
10312
10313         * par.ads, par.adb: Improve handling of extra right parens.
10314         (Par): Remove flag From_Limited_With_Clause.
10315
10316         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
10317         Improve handling of extra right parens.
10318
10319 2007-08-14  Robert Dewar  <dewar@adacore.com>
10320
10321         * par-tchk.adb (TF_Semicolon): Improve error recovery
10322
10323 2007-08-14  Robert Dewar  <dewar@adacore.com>
10324             Ed Schonberg  <schonberg@adacore.com>
10325
10326         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
10327         enumeration type, mark all literals as referenced.
10328         (Eval_Attribute, case 'Image): If the argument is an enumeration
10329         literal and names are available, constant-fold but mark nevertheless as
10330         non-static.
10331         Clean up function names.
10332         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
10333         comment.
10334         (Requires_Simple_Name_Prefix): Removed.
10335
10336 2007-08-14  Robert Dewar  <dewar@adacore.com>
10337             Ed Schonberg  <schonberg@adacore.com>
10338
10339         * sem_ch11.adb: Improved warnings for unused variables
10340
10341         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
10342         is a synchronized interface, the derived type is limited.
10343         (Analyze_Object_Declaration): Mark the potential coextensions in the
10344         definition and expression of an object declaration node.
10345         (Build_Derived_Type): For the completion of a private type declaration
10346         with a derived type declaration, chain the parent type's representation
10347         items to the last representation item of the derived type (not the
10348         first one) if they are not present already.
10349         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
10350         object declaration of forward references to tags.
10351         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
10352         subprogram types can appear as access discriminants of synchronized
10353         types.
10354         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
10355         given in prefixed form as a selected component.
10356         (Process_Discriminants): If not all discriminants have defaults, place
10357         error message on a default that is present.
10358         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
10359         extend a synchronized tagged type.
10360         Improved warnings for unused variables
10361         (Is_Visible_Component): Fix a visibility hole on a component inherited
10362         by a private extension when parent is itself declared as a private
10363         extension, and the derivation is in a child unit.
10364         (Find_Hidden_Interface): Move spec from the package body.
10365
10366 2007-08-14  Robert Dewar  <dewar@adacore.com>
10367             Ed Schonberg  <schonberg@adacore.com>
10368
10369         * sem_ch5.adb: Improve warnings on redundant assignments
10370
10371         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
10372         parameter
10373         (Is_Synchronized_Tagged_Type): New subprogram that returns true
10374         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
10375         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
10376         is set to False. Improves handling of Known_[Not_]Null.
10377         (Wrong_Type): Special case address arithmetic attempt
10378         (Collect_Abstract_Interfaces): Add new formal to allow collecting
10379         abstract interfaces just using the partial view of private types.
10380         (Has_Abstract_Interfaces): Add new formal to allow checking types
10381         covering interfaces using the partial view of private types.
10382         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
10383         component still needs to be defined in this case, but is never
10384         initialized as VMs are using other dispatching mechanisms.
10385         (Abstract_Interface_List): For a protected type, use base type to get
10386         proper declaration.
10387         Improve warnings on redundant assignments
10388         (Is_Variable): Handle properly an implicit dereference of a prefixed
10389         function call.
10390         (Build_Actual_Subtype): If this is an actual subtype for an
10391         unconstrained formal parameter, use the sloc of the body for the new
10392         declaration, to prevent anomalises in the debugger.
10393
10394 2007-08-14  Robert Dewar  <dewar@adacore.com>
10395
10396         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
10397         dispatching operation
10398
10399 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10400             Gary Dismukes  <dismukes@adacore.com>
10401
10402         * exp_aggr.ads, 
10403         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
10404         expanded aggregate code before allocator, and ahead of declaration for
10405         temporary, to prevent access before elaboration when the allocator is
10406         an actual for an access parameter.
10407         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
10408         the TSD and the table of interfaces.
10409         (Convert_To_Assignments): Augment the test for delaying aggregate
10410         expansion for limited return statements to include the case of extended
10411         returns, to prevent creation of an unwanted transient scope.
10412         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
10413         (Expand_Array_Aggregate): Handle aggregates associated with
10414         statically allocated dispatch tables.
10415         (Expand_Record_Aggregate): Handle aggregates associated with
10416         statically allocated dispatch tables.
10417         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
10418         of anonymous access type.
10419
10420 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10421
10422         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
10423         is a variable that renames a slice, use the variable itself in the
10424         expannsion when the renamed expression itself may be modified between
10425         the declaration of the renaming and the array assignment.
10426
10427 2007-08-14  Jerome Guitton  <guitton@adacore.com>
10428
10429         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
10430         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
10431         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
10432         New functions; dummy implementations.
10433
10434         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
10435         functions, used to implement the multi-tasks mode routines on VxWorks.
10436
10437         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
10438         New functions, thin
10439         binding to the VxWorks routines which have changed between VxWorks 5
10440         and 6.
10441         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
10442         which are not callable from a RTP.
10443
10444         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
10445         implemented for the multi-tasks mode on VxWorks 5 and 6.
10446
10447         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
10448
10449         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
10450         functions.
10451
10452 2007-08-14  Vincent Celier  <celier@adacore.com>
10453
10454         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
10455         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
10456         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
10457         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
10458         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
10459         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
10460         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
10461         procedure.
10462         (Major_Id_Name): New function.
10463         mlib-tgt.ads/mlib.tgt.adb:
10464         (Library_Major_Minor_Id_Supported): New function, default returns True
10465         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
10466         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
10467         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
10468         Implementation of Library_Major_Minor_Id_Supported returns False
10469         clean.adb:
10470         (Clean_Library_Directory): If major/minor ids are supported, clean all
10471         library files.
10472         Major update of the Project Manager and of the project aware tools,
10473         including gprmake, so that the same sources in the GNAT repository
10474         can be used by gprbuild.
10475
10476 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10477
10478         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
10479         (GCC_ZCX_Support): Switch to True.
10480         
10481         * s-intman-solaris.adb (Notify_Exception): Call
10482         Adjust_Context_For_Raise before raising, as expected for signal
10483         handlers in general.
10484         
10485         * s-intman-posix.adb (Notify_Exception): Remove declaration of
10486         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
10487         to other implementation bodies.
10488         
10489         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
10490         be visible by multiple implementation bodies.
10491         
10492         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
10493         only for conditions coming from hardware.
10494         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
10495         adjustments to signal context prior to exception raise from signal
10496         handler.
10497         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
10498         mode.
10499         Solaris section: (__gnat_adjust_context_for_raise): New function.
10500         Implementation of the machine context adjustments to perform prior to
10501         raise from a signal handler. Version for both sparc and x86.
10502         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
10503         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
10504         prior to raising as expected for any handler, before possible nested
10505         faults to make sure all the contexts in a chain have been adjusted by
10506         the time we propagate.
10507
10508 2007-08-14  Pascal Obry  <obry@adacore.com>
10509
10510         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
10511         (SYSTEM_INFO): New record.
10512         (SetThreadIdealProcessor): New imported routine needed for supporting
10513         task_info pragma on Windows.
10514
10515         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
10516         info can be applied to the current host.
10517         (Create_Task): Set the ideal processor if information is present.
10518
10519         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
10520         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
10521
10522 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10523
10524         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
10525         stack size and initial stack pointer value for a given task.
10526         (Enter_Task): Get the stack attributes of the task we are entering and
10527         let the stack checking engine know about them.
10528
10529         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
10530         Let the stack-checking engine know about the initial sp value and stack
10531         size associated with the current task.
10532         (Set_Stack_Info): If a stack base has been notified for the current
10533         task, honor it. Fallback to the previous less accurate method otherwise.
10534
10535         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
10536
10537 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10538
10539         * sem_ch10.adb: Create a limited view of an incomplete type, to make
10540         treatment of limited views uniform for all visible declarations in a
10541         limited_withed package.
10542         Set flag indicating that a subprogram body for a child unit has a
10543         generated spec.
10544         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
10545         separate declaration, remove the unit name from visibility after
10546         compilation, so that environment is clean for subsequent compilations.
10547         (Install_Limited_Context_Clauses): Do not install a
10548         limited_private_with_clause unless the current unit is a body or a
10549         private child unit.
10550         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
10551         in the same fashion.
10552         (Install_Limited_Withed_Unit): Do not install a limited with clause if
10553         it applies to the declaration of the current package body.
10554         (Remove_Private_With_Clauses): If there is a regular with_clause for
10555         the unit, delete Private_With_Clause from context, to prevent improper
10556         hiding when processing subsequent nested packages and instantiations.
10557
10558 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
10559
10560         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
10561         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
10562         representing absolute path names.
10563         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
10564
10565         * cstreams.c (__gnat_full_name for VxWorks): Use
10566         __gnat_is_absolute_path to detect whether we need to add the current
10567         directory to normalize the path.
10568
10569 2007-08-14  Javier Miranda  <miranda@adacore.com>
10570
10571         * a-tags.ads, 
10572         a-tags.adb (Displace): Associate a message with the raised CE
10573         exception.
10574         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
10575         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
10576         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
10577         spec.
10578         (Default_Prim_Op_Count): Removed.
10579         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
10580         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
10581         Remove pragma Inline_Always.
10582
10583         * rtsfind.ads (Default_Prim_Op_Count): Removed
10584         (Max_Predef_Prims): New entity
10585         (RE_Expanded_Name): Removed
10586         (RE_HT_Link): Removed
10587         (RE_Iface_Tag): Remmoved
10588         (RE_Ifaces_Table): Removed
10589         (RE_Interfaces_Array): Removed
10590         (RE_Interface_Data_Element): Removed
10591         (RE_Nb_Ifaces): Removed
10592         (RE_RC_Offset): Removed
10593         (RE_Static_Offset_To_Top): Removed
10594
10595         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
10596         formal.
10597         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
10598         Prim_Op_Count by Max_Predef_Prims.
10599
10600 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10601             Vincent Celier  <celier@adacore.com>
10602
10603         * binde.adb (Elab_All_Links): Remove unnecessary call to
10604         Generic_Separately_Compiled (if a unit satisfies this predicate, there
10605         won't be an associated Afile).
10606         (Elab_All_Links): Fail if a referenced unit cannot be found
10607
10608         * bindgen.adb: 
10609         Fix comments in bindgen regarding consistency checks done in Bcheck:
10610         the checks are made across units within a partition, not across several
10611         partitions.
10612         Fix generation of C binder file for VxWorks.
10613
10614         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
10615         Generic_May_Lack_ALI, more descriptive of the current use of the
10616         predicate, and update documentation.
10617
10618         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
10619         reorganization and documentation update for the case of predefined
10620         library generics (for which we do not reference an Afile).
10621
10622 2007-08-14  Robert Dewar  <dewar@adacore.com>
10623
10624         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
10625         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
10626         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
10627         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
10628         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
10629         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
10630         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
10631         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
10632         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
10633         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
10634         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
10635         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
10636         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
10637         g-altcon.adb: Minor reformatting
10638
10639         ada-tree.h: Delete empty line.
10640
10641         ali.ads: Minor reformatting
10642         Clarification of comments.
10643         Minor spelling correction
10644
10645         * exp_dbug.adb: Add Warnings Off to suppress new warning
10646
10647         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10648         formal
10649
10650         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
10651         value
10652
10653         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
10654
10655         * a-textio.ads: Reorder the standard input/output/error declarations
10656         for consistency.
10657
10658         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
10659
10660         * par-ch2.adb: Recognize RM specially in errout
10661         Change 'R'M to RM in all error messages
10662
10663         * scng.adb: Recognize RM specially in errout
10664
10665         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
10666         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
10667
10668         * s-direio.adb: Add missing routine header box.
10669
10670         * sem_attr.ads: Add ??? comments
10671
10672         * sem_eval.adb: Recognize RM specially in errout
10673         Change 'R'M to RM in all error messages
10674
10675         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
10676
10677         * s-tasinf.ads: Fix minor comment typo.
10678
10679         * a-cihama.adb: Minor comment addition
10680
10681         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10682         formal
10683
10684         * s-tasinf-tru64.ads: Fix minor comment typo.
10685
10686         * itypes.ads: Comment update.
10687
10688         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
10689         anymore.
10690
10691         * argv.c: Added protection against null gnat_argv and gnat_envp.
10692
10693         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
10694         warning message when Tolerate_Consistency_Errors is True.
10695
10696         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
10697         Any_Id, as this subprogram is only applicable to *type* entities (it
10698         sets RM_Size). Instead initialize just Esize and Alignment.
10699
10700 2007-08-14  Bob Duff  <duff@adacore.com>
10701
10702         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
10703         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
10704         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
10705         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
10706         a-coorse.ads (Next): Applied pragma Inline.
10707         Make all Containers packages Remote_Types (unless they are already
10708         Pure).
10709         (Previous): applied pragma Inline
10710         (Elements_Type): is now a record instead of an array
10711
10712 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10713
10714         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
10715         of Set_Item.
10716         (Set_Item): When the new item is an element of the currently allocated
10717         table passed by reference, save a copy on the stack if we're going
10718         to reallocate. Also, in Table.Set_Item, make sure we test the proper
10719         variable to determine whether to call Set_Last.
10720
10721         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
10722         symbols-vms.adb, symbols-processing-vms-alpha.adb,
10723         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
10724         some occurrences of the pattern
10725            T.Increment_Last;
10726            T.Table (T.Last) := Value;
10727         with a cleaner call to
10728            T.Append (Value);
10729
10730 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10731             Gary Dismukes  <dismukes@adacore.com>
10732             Thomas Quinot  <quinot@adacore.com>
10733
10734         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
10735         derived type with interface progenitors use the analyzed formal as the
10736         parent of the actual, to create renamings for all the inherited
10737         operations in Derive_Subprograms.
10738         (Collect_Previous_Instances): new procedure within of
10739         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
10740         unit being loaded, to ensure that the generation of global symbols is
10741         consistent in different compilation modes.
10742         (Is_Tagged_Ancestor): New function testing the ancestor relation that
10743         takes progenitor types into account.
10744         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
10745         traversing over the primitives of the formal and actual types to locate
10746         any abstract subprograms of the actual type that correspond to a
10747         nonabstract subprogram of the formal type's ancestor type(s), and issue
10748         an error if such is found.
10749         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
10750         Instantiate_Package_Body, Instantiate_Subprogram_Body):
10751         Remove bogus guard around calls to Inherit_Context.
10752         (Reset_Entity): If the entity is the selector of a selected component
10753         that denotes a named number, propagate constant-folding to the generic
10754         template only if the named number is global to the generic unit.
10755         (Set_Instance_Env): Only reset the compilation switches when compiling
10756         a predefined or internal unit.
10757
10758 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10759
10760         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
10761         parameter to determine whether operation applies to the prefix.
10762         (Complete_Object_Operation): If actual has an access type and
10763         controlling formal is not an in_parameter, reject the actual if it is
10764         an access_to_constant type.
10765         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
10766         type, the candidate operations are found in the scope of declaration of
10767         the type, because the type has no primitive subprograms.
10768         (Analyze_Selected_Component): If prefix is class-wide, and root type is
10769         a private extension, only examine visible components before trying to
10770         analyze as a prefixed call.
10771         Change Entity_List to Type_To_Use, for better readability.
10772         (Has_Fixed_Op): Use base type when checking whether the type of an
10773         operator has a user-defined multiplication/division
10774         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
10775         user-defined operators are available for fixed-point types.
10776
10777 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10778             Ed Schonberg  <schonberg@adacore.com>
10779
10780         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
10781         formal At_Any_Place indicating, when True, that we want to test for
10782         availability of the stream attribute at any place (as opposed to the
10783         current visibility context only).
10784         (Missing_Read_Write_Attributes): A stream attribute is missing for the
10785         purpose of enforcing E.2.2(8) only if it is not available at any place.
10786         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
10787         when checking the legality of an extension aggregate in a preelaborable
10788         package. Treat the literal null as a valid default expression in a
10789         component declaration for a type with preelaborable initialization.
10790         A limited interface is a legal progenitor for the designated type of a
10791         remote access to class-wide type.
10792
10793 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10794             Ed Schonberg  <schonberg@adacore.com>
10795
10796         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
10797         reference): Use correct entity as denoted entity for the selector of
10798         the rewritten node.
10799         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
10800         setting the Referenced_As_LHS flag for entities that are implicitly
10801         dereferenced.
10802         (Find_Type): If the type is an internally generated incomplete type,
10803         mark the full view as referenced, to prevent spurious warnings.
10804         (Find_Selected_Component, Has_Components): Handle properly non-limited
10805         views that are themselves incomplete types.
10806         Handle interfaces visible through limited-with clauses.
10807         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
10808         subprogram generic actual for which we have generated a renaming.
10809         Warn when the renaming introduces a homonym of
10810         the renamed entity, and the renamed entity is directly visible.
10811
10812 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10813             Hristian Kirtchev  <kirtchev@adacore.com>
10814
10815         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
10816         appear in the subtree to the current allocator if it is not a static
10817         coextension.
10818         (Resolve_Allocator): Perform cleanup if resolution has determined that
10819         the allocator is not a coextension.
10820         (Resolve): Skip an interpretation hidden by an abstract operator only
10821         when the type of the interpretation matches that of the context.
10822         (Resolve): When looping through all possible interpretations of a node,
10823         do not consider those that are hidden by abstract operators.
10824         (Resolve_Actuals): When verifying that an access to class-wide object
10825         is an actual  for a controlling formal, ignore anonymous access to
10826         subprograms whose return type is an access to class_wide type.
10827         (Resolve_Slice): If the prefix of the slice is a selected component
10828         whose type depends on discriminants, build its actual subtype before
10829         applying range checks on the bounds of the slice.
10830         (Valid_Conversion): In an instance or inlined body, compare root types,
10831         to prevent anomalies between private and public views.
10832         (Resolve): Improve error message for ambiguous fixed multiplication
10833         expressions that involve universal_fixed multiplying operations.
10834
10835 2007-08-14  Javier Miranda  <miranda@adacore.com>
10836             Hristian Kirtchev  <kirtchev@adacore.com>
10837
10838         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
10839         location to allow the correct generation of errors in case of
10840         restrictions applied to the expanded code.
10841         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
10842         function if the condition does not reference them.
10843         (Expand_Entry_Body_Declarations): Mark the index constant as having a
10844         valid value.
10845
10846 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10847             Pablo Oliveira  <oliveira@adacore.com>
10848
10849         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10850         typecode parameters for a union (in a variant record), remove
10851         extraneous layer of Any wrapping for member label.
10852         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10853         elabration statements, register the package with the name server
10854         at the beginning, not at the end, of the elaboration statements so
10855         that they can create remote access to subprogram values that designate
10856         remote subprograms from the package.
10857
10858 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10859
10860         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10861         values to compute the number of seconds since the Unix Epoc in order to
10862         account for Daylight Savings Time. Perform special processing for dates
10863         that are earlier than the Unix Epoc to obtain a negative number.
10864
10865 2007-08-14  Emmanuel Briot  <briot@adacore.com>
10866
10867         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10868         switches.
10869
10870 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
10871
10872         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10873         binder-generated file is not in Ada.
10874         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10875         recorded in the ALI file.
10876         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10877
10878 2007-08-14  Vincent Celier  <celier@adacore.com>
10879
10880         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10881         (Output_Source): Do nothing if parameter is No_Sdep_Id
10882
10883         * make.adb (Gnatmake): Do not rebuild an archive simply because a
10884         shared library it imports has a later time stamp.
10885         (Check): Resolve the symbolic links in the path name of the object
10886         directory.
10887         Check that the ALI file is in the correct object directory
10888         Check if a file name does not correspond to the mapping of units
10889         to file names.
10890         (Display_Version): New procedure
10891         (Initialize): Process switches --version and --help
10892         Use type Path_Name_Type for path name
10893
10894 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
10895
10896         * impunit.adb: Re-organize System.Random_Numbers and
10897         GNAT.Random_Numbers and add to builds.
10898
10899         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10900
10901         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10902
10903         * a-assert.ads, a-assert.adb: New files.
10904
10905 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10906
10907         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10908         if AAMP_On_Target is True, then the size of the type encompasses two
10909         addresses (a static link and a subprogram address), except in the case
10910         of library-level access types.
10911
10912 2007-08-14  Vincent Celier  <celier@adacore.com>
10913
10914         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10915         writing the line.
10916         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10917         possible trailing spaces.
10918         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10919
10920 2007-08-14  Javier Miranda  <miranda@adacore.com>
10921
10922         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10923         null-excluding access types.
10924
10925 2007-08-14  Javier Miranda  <miranda@adacore.com>
10926
10927         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10928         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10929         of private types add missing check on matching interfaces in the
10930         partial and full declarations.
10931         (Analyze_Protected_Type): Code cleanup.
10932         (Analyze_Task_Type): Code cleanup.
10933
10934 2007-08-14  Javier Miranda  <miranda@adacore.com>
10935
10936         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10937         generated interface thunk.
10938
10939 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10940
10941         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10942         obsolescent warning on application of 'Class to an incomplete type.
10943
10944         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10945         prevent obsolescent warning on application of 'Class to an incomplete
10946         type.
10947
10948 2007-08-14  Pascal Obry  <obry@adacore.com>
10949
10950         * s-fileio.adb (Is_Open): Add check for usability of the underlying
10951         file stream.
10952
10953 2007-08-14  Cyrille Comar  <comar@adacore.com>
10954
10955         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10956         since it is potentially used in cases implying double finalization of
10957         the same object.
10958
10959 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
10960
10961         * s-tasini.adb (Get_Stack_Info): Move this function to
10962         System.Soft_Links.Tasking because it is common to the full and the
10963         restricted run times.
10964         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10965         in SSL.Tasking.Init_Tasking_Soft_Links.
10966
10967         * s-solita.adb (Get_Stack_Info): Function moved from
10968         System.Tasking.Initialization because it is common to the full and the
10969         restricted run times.
10970         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10971
10972 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
10973
10974         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10975         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10976         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10977         parameter.
10978
10979         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10980         guard to 12K.
10981
10982 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10983
10984         * s-veboop.adb (SU): New named number initialized to
10985         System.Storage_Unit.
10986         (True_Val): The initialization expression is revised to use SU (=
10987         Storage_Unit) rather than assuming 8 for the component size of an
10988         unpacked Boolean array.
10989
10990 2007-08-14  Tristan Gingold  <gingold@adacore.com>
10991
10992         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10993
10994         * tb-ivms.c: New file.
10995
10996         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10997
10998 2007-08-14  Geert Bosch  <bosch@adacore.com>
10999
11000         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11001         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11002         Add required linker pragmas for automatically linking with the gnalasup
11003         linear algebra support library, and the systems math library.
11004         Rename cdot to cdotu and zdot to zdotu.
11005         Update header comment to describe purpose of package.
11006
11007 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11008
11009         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11010         an explicitly specified Associated_Final_Chain, use that list.
11011         (Expand_N_Package_Body): Build dispatch tables of library level tagged
11012         types.
11013         (Expand_N_Package_Declaration): Build dispatch tables of library level
11014         tagged types. Minor code cleanup.
11015
11016 2007-08-14  Vincent Celier  <celier@adacore.com>
11017
11018         * gnatchop.adb (Terminate_Program): Remove exception and use
11019         Types.Terminate_Program instead.
11020
11021         * osint.ads, osint.adb (Current_Exit_Status): New global variable
11022         (Find_Program_Name): Added protection against empty name.
11023         (OS_Exit_Through_Exception): New procedure
11024
11025         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11026         (OS_Exit_Default): New procedure that contains the previous
11027         implementation of procedure OS_Exit.
11028         (Final_Value): Remove obsolete Interix stuff.
11029
11030 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11031
11032         * g-socket.ads: Reorganize example code so that it also works on
11033         Windows XP.
11034
11035 2007-08-14  Tristan Gingold  <gingold@adacore.com>
11036
11037         * g-trasym.ads: AIX now supports symbolic backtraces.
11038
11039 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11040
11041         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11042         units being loaded to detect circularities. A circularity may be
11043         present even if the current chain of pending units to load starts from
11044         a limited_with_clause.
11045
11046         * lib-load.ads: Change profile of Load_Unit to use a with_clause
11047         rather than a boolean flag, in order to detect circularities in
11048         with_clauses.
11049
11050         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11051         than propagating the From_Limited_With flag, in order to handle
11052         properly circularities involving with_clauses.
11053
11054 2007-08-14  Nicolas Setton  <setton@adacore.com>
11055
11056         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11057         warnings.
11058
11059 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
11060
11061         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11062         to build for libgnala.
11063         libgnat: Add rules to build libgnala.a
11064         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11065         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11066         Add s-osinte-vxworks-kernel.adb to the target pairs of the
11067         kernel run-time lib for VxWorks 6, which would provide a different
11068         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11069         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11070         running ZCX by default.
11071         Add g-sttsne-locking to LynxOS version.
11072         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11073         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11074
11075         * system-darwin-x86.ads: New file.
11076
11077         * Make-lang.in: Delete files before copying onto them, so if they are
11078         read-only, the copy won't fail.
11079         Update dependencies
11080
11081 2007-08-14  Pascal Obry  <obry@adacore.com>
11082
11083         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11084         naming scheme.
11085
11086 2007-08-14  Vincent Celier  <celier@adacore.com>
11087
11088         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11089         (Gcc): Initialize Gcc_Name at the first call
11090
11091 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
11092
11093         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11094         with_clauses of the enclosing unit when analyzing the package
11095         specification of a nested instance.
11096
11097 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11098
11099         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11100         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11101         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11102         layout of N_Allocator.
11103
11104 2007-08-14  Thomas Quinot  <quinot@adacore.com>
11105
11106         * rtsfind.adb (Check_RPC): Add PCS version check.
11107
11108         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11109         (Gnat_Free_Software): New function.
11110
11111         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11112         the PCS_Version value from s-parint, used to check that it is consistent
11113         with what exp_dist expects.
11114
11115         * s-parint.ads (PCS_Version): New entity for checking consistency
11116         between exp_dist and PCS.
11117
11118         * gen-soccon.c: (SO_REUSEPORT): New constant.
11119
11120 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
11121
11122         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11123         variable Sub_Second to Duration in order to accomodate a larger range
11124         of arithmetic operations.
11125
11126 2007-08-14  Bob Duff  <duff@adacore.com>
11127
11128         * g-sttsne-locking.ads: Move comments from spec to body.
11129         * g-sttsne-locking.adb: Move comments from spec to body.
11130         * g-sttsne-vxworks.ads: Removed.
11131         * g-sttsne-vxworks.adb: Removed.
11132
11133 2007-08-11  Ian Lance Taylor  <iant@google.com>
11134
11135         * misc.c (gnat_get_alias_set): Change return type to
11136         alias_set_type.
11137
11138 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11139
11140         * decl.c, utils2.c: Fix whitespace in last change.
11141
11142 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11143
11144         * decl.c (compare_field_bitpos): Constify.
11145         * utils2.c (compare_elmt_bitpos): Likewise.
11146
11147 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
11148
11149         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
11150         anonymous access type.
11151         (pthread_sigmask): Now take an access sigset_t.
11152
11153 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
11154
11155         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11156         
11157 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
11158
11159         PR tree-optimization/25737
11160         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11161
11162 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11163
11164         * trans.c (Attribute_to_gnu): When subtracting an
11165         offset from a pointer, use POINTER_PLUS_EXPR with
11166         NEGATE_EXPR instead of MINUS_EXPR.
11167         (gnat_to_gnu): Likewise.
11168         * utils.c (convert): When converting between
11169         thin pointers, use POINTER_PLUS_EXPR and sizetype
11170         for the offset.
11171         * utils2.c (known_alignment): POINTER_PLUS_EXPR
11172         have the same semantics as PLUS_EXPR for alignment.
11173         (build_binary_op): Add support for the semantics of
11174         POINTER_PLUS_EXPR's operands.
11175         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11176
11177 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
11178
11179         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11180         of get_signed_or_unsigned_type.
11181         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11182
11183 2007-06-11  Bob Duff  <duff@adacore.com>
11184             Thomas Quinot  <quinot@adacore.com>
11185
11186         * g-stsifd-sockets.adb (Create): Work around strange behavior of
11187         'bind' on windows that causes 'connect' to fail intermittently, by
11188         retrying the 'bind'.
11189         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11190
11191 2007-06-10  Duncan Sands  <baldrick@free.fr>
11192
11193         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11194         than to void, for the fields when making a new fat pointer type.
11195         (gnat_substitute_in_type): Now substitute_in_type.
11196         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
11197         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11198         * utils.c (update_pointer_to): Update fat pointers by updating the
11199         dummy node pointers used for the fields.
11200
11201 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11202             Bob Duff  <duff@adacore.com>
11203
11204         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11205         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
11206         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
11207         constant Thread_Blocking_IO, always True by default, set False
11208         on a per-runtime basis.
11209         (Need_Netdb_Buffer): New constant.
11210
11211         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11212         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11213         files.
11214
11215         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11216         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11217         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11218         child package Task_Safe_NetDB
11219         (Host_Error_Messages): Add stub body.
11220         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11221
11222         * g-soccon-mingw.ads: Add Windows-specific constants.
11223         (Need_Netdb_Buffer): New constant.
11224         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11225         wrapper and import inet_addr(3) from the standard sockets library
11226         directly instead.
11227         (In_Addr): Add alignment clause.
11228         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11229
11230 2007-06-06  Robert Dewar  <dewar@adacore.com>
11231
11232         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11233         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11234         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11235         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11236         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11237         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11238         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11239         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11240         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11241         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11242         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11243         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11244         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11245         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11246         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11247         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11248         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11249         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11250         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11251         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11252         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11253         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11254         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11255         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11256         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11257         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11258         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11259         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11260         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11261         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11262         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11263         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11264         Unchecked_* by Ada.Unchecked_*
11265
11266 2007-06-06  Robert Dewar  <dewar@adacore.com>
11267
11268         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11269         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11270         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11271         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11272         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11273         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11274
11275         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11276         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11277         s-tasloc.adb, s-tasloc.ads: New files.
11278
11279 2007-06-06  Bob Duff  <duff@adacore.com>
11280
11281         * g-expect-vms.adb: 
11282         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11283         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11284         (Send_Signal, Close): Raise Invalid_Process if the process id is
11285         invalid.
11286         (Pattern_Matcher_Access): Is now a general access type to be able to
11287         use aliased string.
11288
11289 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11290             Arnaud Charlet  <charlet@adacore.com>
11291
11292         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
11293         (SIGEMT is now used instead of SIGTERM on AIX).
11294
11295         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
11296         (Time_Slice_Supported): Set to True.
11297         Use SIGEMT instead of SIGTERM as SIGADAABORT.
11298
11299 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11300
11301         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
11302         (Time, Time)): Use To_Relative_Time rather than manual calculation to
11303         express the bounds of Duration as Time. Raise Time_Error when the
11304         result is greater or equal to the higher bound of Duration (on the
11305         margin case).
11306         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
11307         Ada_High_And_Leaps.
11308         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
11309         Ada_High_And_Leaps.
11310         ("-" (Time, Time)): Reorder code.
11311         (All_Leap_Seconds): Removed.
11312         (Arithmetic_Operations.Add): Remove sign related kludge.
11313         (Arithmetic_Operations.Difference): Control the leaps seconds processing
11314         with flag Leap_Support.
11315         (Arithmetic_Operations.Subtract): Remove sign related kludge.
11316         (Check_Within_Time_Bounds): New procedure.
11317         (Clock): Control the leap seconds processing with flag Leap_Support.
11318         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
11319         (Formatting_Operations.Split): Control the leap seconds processing with
11320         flag Leap_Support.
11321         (Formatting_Operations.Time_Of): Control the leaps seconds processing
11322         with flag Leap_Support. Adjust the year, month and day (if applicable)
11323         when the value of day seconds designates a new day.
11324         (Split): Use parameter associations for better readability. Integrate
11325         flag Is_Ada_05.
11326         (Time_Of): Use parameter associations for better readability. Integrate
11327         flag Is_Ada_05.
11328
11329         * a-calfor.adb (Split): Use parameter associations for better
11330         readability. Integrate flag Is_Ada_05.
11331         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
11332         better readability. Integrate flag Is_Ada_05.
11333
11334 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11335
11336         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
11337         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
11338         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
11339         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
11340         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
11341         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
11342         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
11343         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
11344         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
11345         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
11346         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
11347         time when entering this routine to detect a backward clock setting
11348         (manual setting or DST adjustment), to avoid waiting for a longer delay
11349         than needed.
11350         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
11351         Remove handling of deferred priority change, and replace by setting the
11352         task priority directly, as required by AI-188.
11353         Update comments.
11354         (Max_Task_Image_Length): New constant.
11355         Replace Warnings (Off) by Unreferenced pragma, cleaner.
11356         (Dynamic_Priority_Support): Removed, no longer needed.
11357         (Poll_Base_Priority_Change): Ditto.
11358         (Set_Ceiling): Add this procedure to change the ceiling priority
11359         associated to a lock. This is a dummy implementation because dynamic
11360         priority ceilings are not supported by the underlying system.
11361
11362         * a-dynpri.adb (Set_Priority): Take into account case where Target is
11363         accepting a RV with its priority boosted.
11364         Remove handling of deferred priority change, and replace by setting the
11365         task priority directly, as required by AI-188.
11366
11367         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
11368         Succeeded = True.
11369         Remove handling of deferred priority change, and replace by setting the
11370         task priority directly, as required by AI-188.
11371         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
11372         of Self_Id earlier.
11373
11374         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
11375         (Poll_Base_Priority_Change): Removed.
11376         Code clean up: use SSL.Current_Target_Exception.
11377
11378         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
11379         to run as this is a potentially dispatching point.
11380         (Call_Synchronous): Use Local_Defer_Abort.
11381         (Callable): Relax assertion.
11382         (Selective_Wait): Relax assertion in case abort is not allowed.
11383         Remove handling of deferred priority change, and replace by setting the
11384         task priority directly, as required by AI-188.
11385
11386         * s-tasuti.adb (Make_Passive): Adjust assertions.
11387         Remove handling of deferred priority change, and replace by setting the
11388         task priority directly, as required by AI-188.
11389
11390 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11391
11392         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
11393         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
11394         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
11395         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
11396         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
11397         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
11398         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
11399         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
11400         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
11401         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
11402         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
11403         This patch changes the largest non-binary modulus from 2**31-1 to
11404         2**32-1.
11405         (Compiler_System_Version): Removed, no longer used.
11406         Clean up system files by removing flags only used on a single target.
11407         Also remove obsolete flags, only used during bootstrap from system.ads
11408         (Address): Add a pragma Preelaborable_Initialization.
11409
11410         * system-aix.ads:  Ditto.
11411         (GCC_ZCX_Support): Set to true.
11412         Update priority range on AIX and map Ada priorities to target
11413         priorities appropriately for different scheduling policies.
11414
11415         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
11416
11417 2007-06-06  Vincent Celier  <celier@adacore.com>
11418
11419         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
11420         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
11421
11422         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
11423         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
11424         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
11425         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
11426         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
11427         MLib.Tgt, containing the default versions of the exported subprograms.
11428         For each platform, create a specific version of the body of new child
11429         package MLib.Tgt.Specific that contains only the body of subprograms
11430         that are different from the default.
11431         (Archive_Builder_Append_Options): New function.
11432
11433 2007-06-06  Matthew Gingell  <gingell@adacore.com>
11434
11435         * s-osinte-aix.adb: Map Ada priorities to target priorities
11436         appropriately for different scheduling policies.
11437
11438 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11439
11440         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
11441         its C counterpart.
11442         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
11443         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
11444
11445 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
11446
11447         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
11448         Noop on VMS, added for interface commonality.
11449
11450 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11451             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11452             Olivier Hainque  <hainque@adacore.com>
11453
11454         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
11455         renamed expression of a full renaming at toplevel.
11456         (gnat_to_gnu_entity, case object): If not defining, do not look inside
11457         the values the constant is initialized to if it is an N_Allocator.
11458         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
11459         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
11460         (make_aligning_type): Accept an extra ROOM argument for storage to be
11461         made available before the aligned field, and an extra BASE_ALIGN
11462         argument for callers to pass the alignment guaranteed to be honored for
11463         the whole aligning object. Avoid call to finish_record_type, which only
11464         interferes with the sizes we want to set.
11465         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
11466         make_aligning_type for super-aligned objects on stack.
11467         (components_to_record): Pass the adjusted size of the type when creating
11468         fields in the qualified union for the variant part.
11469         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
11470         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
11471         packed array type.
11472         (maybe_pad_type): Set TYPE_USER_ALIGN.
11473         (make_aligning_type): Likewise.
11474         ALIGN argument is unsigned int.
11475         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
11476         (gnat_to_gnu_param): Likewise, for parameters.
11477         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
11478         if it is constant and stems from a function call.
11479         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
11480         of the record is specified.  Adjust accordingly.
11481         (adjust_packed): New static function.
11482         (gnat_to_gnu_field): Use it to adjust the packedness setting.
11483         (components_to_record): Likewise.
11484         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
11485         side-effects if the object is deemed constant.
11486         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
11487         type instead of merely finalizing it.  Tidy.
11488         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
11489         <E_Access_Type>: Likewise.
11490         (defer_debug_incomplete_list): Rename to defer_finalize_list.
11491         (defer_debug_level): Delete.
11492         (gnat_to_gnu_entity) <debug_deferred>: Likewise
11493         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
11494         type.
11495         <E_Record_Type>: Do not explicitly defer finalizing the type.
11496         Adjust for write_record_type_debug_info renaming.
11497         <E_Subprogram_Type>: Likewise.
11498         Finalize deferred types right after deferred incomplete types are
11499         expanded.
11500         (rest_of_type_decl_compilation): New global function.
11501         (components_to_record): Rename defer_debug parameter to do_not_finalize.
11502         (components_to_record): Propagate the packedness to the fields of the
11503         qualified union type if there is a variant part.
11504         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
11505         instead of inline code to adjust the XUT field offsets.
11506         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
11507         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
11508         and write the debug info if the type derives from a discriminated one.
11509         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
11510         <E_Array_Subtype>: Likewise.
11511         <E_String_Literal_Subtype>: Likewise.
11512         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
11513         an alignment clause.
11514         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
11515         before giving warning.
11516         (prepend_one_attribute_to): New function, helper to prepend an attribute
11517         to an attribute list.
11518         (gnat_to_gnu_entity) <E_Procedure>: Use it.
11519         (prepend_attributes): Likewise.
11520         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
11521         <E_Array_Type>: Declare the padding type for the element type, if any.
11522         <E_Array_Subtype>: Likewise.
11523         (defer_limited_with): New variable.
11524         (Gigi_Equivalent_Type): New function.
11525         (gnat_to_gnu_entity): Use it at start and use result throughout.
11526         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
11527         Gigi_Equivalent_Type, support Limited_With, allow two levels of
11528         indirection, precompute if unconstrained array to simplify logic, and
11529         use defer_limited_with to defer elaboration of some types from limited
11530         with.
11531         (finalize_from_with_types): New function.
11532
11533 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
11534             Eric Botcazou  <ebotcazou@adacore.com>
11535             Tristan Gingold  <gingold@adacore.com>
11536             Olivier Hainque  <hainque@adacore.com>
11537
11538         * trans.c (Identifier_to_gnu): Change test for deferred constant by
11539         adding guard that the entity is an E_Constant before testing presence
11540         of Full_view (and remove unnecessary test that entity is not a type).
11541         For a CONST_DECL used by reference, manually retrieve
11542         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
11543         (struct language_function): Move from utils.c to here.
11544         (struct parm_attr): New structure.
11545         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
11546         (f_parm_attr_cache): New macro.
11547         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
11548         expressions for the 'First, 'Last and 'Length attributes of the
11549         unconstrained array IN parameters.
11550         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
11551         Allocate the information structure for the function earlier, as well
11552         as the language-specific part.
11553         If the parameter attributes cache has been populated, evaluate the
11554         cached expressions on entry.
11555         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
11556         N_Procedure_Call_Statement and N_Indexed_Component.
11557         (Pragma_to_gnu): Translate inspection_point to an asm statement
11558         containaing a comment and a reference to the object (either its address
11559         for BLKmode or its value).
11560         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
11561         to go to DECL_INITIAL. Together with the size constraint relaxation
11562         in create_var_decl, enlarges the set of situations in which an
11563         identifier may be used as an initializer without implying elaboration
11564         code.
11565         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
11566         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
11567         node.
11568         (maybe_stabilize_reference): Remove lvalues_only parameter.
11569         (gnat_stabilize_reference): Adjust for above change.
11570         (gnat_to_gnu): Do not set location information on the result
11571         if it is a reference.
11572         (add_cleanup): Add gnat_node parameter and set the location of the
11573         cleanup to it.
11574         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
11575         (Exception_Handler_to_gnu_zcx): Likewise.
11576         (gigi): Remove the cgraph node if the elaboration procedure is empty.
11577         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
11578         the former right after the latter.
11579         (start_stmt_group): Make global.
11580         (end_stmt_group): Likewise.
11581         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
11582         vars.
11583         (gnu_program_error_label_stack): Likewise.
11584         (gigi): Initialize them.
11585         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
11586         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
11587         New cases.
11588         (push_exception_label_stack): New function.
11589         (takes_address): New function.
11590
11591         * utils.c (struct language_function): Move to trans.c from here.
11592         (unchecked_convert): Do not wrap up integer constants in
11593         VIEW_CONVERT_EXPRs.
11594         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
11595         the latter for aggregate types, unexpected by later passes, and relax an
11596         arbitrary size constraint on the former.
11597         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
11598         to compare the sizes.
11599         (convert_vms_descriptor): When converting to a fat pointer type, be
11600         prepared for a S descriptor at runtime in spite of a SB specification.
11601         (shift_unc_components_for_thin_pointers): New function.
11602         (write_record_type_debug_info): For variable-sized fields, cap the
11603         alignment of the pointer to the computed alignment.
11604         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
11605         If REP_LEVEL is 2, do not compute the sizes.
11606         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
11607         (build_unc_object_type): Likewise.
11608         (declare_debug_type): New function.
11609
11610         * ada-tree.def: USE_STMT: removed (not emitted anymore).
11611
11612         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
11613         no statement is expandable anymore.
11614         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
11615         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
11616         when the user requested it explicitely.
11617         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
11618         to 0 for Ada.
11619         (get_alias_set): Return alias set 0 for a type if
11620         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
11621
11622         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
11623         (DECL_FUNCTION_STUB): New accessor macro.
11624         (SET_DECL_FUNCTION_STUB): New setter macro.
11625
11626         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
11627
11628         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
11629         declarations.
11630
11631 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11632
11633         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
11634         Rename to Abort_Task_Interrupt to be able to keep the same interface
11635         as the rest of the targets.
11636
11637         * s-osinte-vxworks.ads s-osinte-vxworks.adb
11638         (To_VxWorks_Priority): Remove explicit "in" mode indicator
11639
11640         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
11641         New files.
11642
11643 2007-06-06  Robert Dewar  <dewar@adacore.com>
11644
11645         * a-chahan.ads: Remove obsolescent pragmas
11646
11647         * a-chlat1.ads: Minor reformatting
11648
11649 2007-06-06  Robert Dewar  <dewar@adacore.com>
11650
11651         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
11652         for Errout
11653
11654         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
11655         implementation
11656
11657         * errout.ads (Finalize): Changed interface
11658         (Output_Messages): New procedure
11659         (Compilation_Errors): New Interface
11660
11661         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
11662         Finalize/Output_Messages interface for Errout
11663         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
11664         Errout.
11665
11666 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11667             Olivier Hainque  <hainque@adacore.com>
11668             Robert Dewar  <dewar@adacore.com>
11669
11670         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
11671         check.
11672         (Raise_Current_Excep): Call Debug_Raise_Exception just before
11673         propagation starts, to let debuggers know about the event in a reliable
11674         fashion.
11675         (Local_Raise): Moved to System.Exceptions
11676         More convenient to have this as a separate unit
11677
11678         * s-except.adb, s-except.ads: New files.
11679
11680         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
11681         Debug_Unhandled_Exception in System.Exceptions where it belongs
11682         together with a couple of other debug helpers.
11683         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
11684         the former Unhandled_Exception.
11685
11686         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
11687         (Warn_No_Exception_Propagation): New procedure
11688         (Warn_If_No_Propagation): Rewritten for new warning generation
11689         (Expand_Exception_Handlers): New warning generation
11690         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
11691         (Add_Exception_Label): Use Special_Exception_Package_Used for test
11692         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
11693         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
11694         even if restriction is set (makes life easier in Check_Returns)
11695         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
11696         checking exception identities.
11697         (Expand_Local_Exception_Handlers): Do not optimize when all others case
11698         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
11699         block for handler (used by Check_Returns)
11700         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
11701         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
11702         remove all exception handlers when optimizing local raise statements.
11703         (Find_Local_Handler): Use Get_Renamed_Entity
11704         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
11705         marked analyzed after expanding exception handlers, do not generate
11706         redundant cleanup actions, because they have been constructed already.
11707
11708 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11709
11710         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
11711         presence of this categorization pragma is mandated by the language.
11712         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
11713         for this type.
11714
11715 2007-06-06  Vincent Celier  <celier@adacore.com>
11716             Robert Dewar  <dewar@adacore.com>
11717
11718         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
11719         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
11720         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
11721         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
11722         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
11723         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
11724         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
11725         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
11726         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
11727         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
11728         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
11729         ali.ads, ali.adb: 
11730         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
11731         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
11732         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
11733         Use variables of types File_Name_Type and Unit_Name_Type in error
11734         messages.
11735         (Get_Name): Add parameter Ignore_Special, and set it reading file name
11736         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
11737         here.
11738         Define flags Flag217-Flag230 with associated subprograms
11739         (Flag_Word5): New record type.
11740         (Flag_Word5_Ptr): New access type.
11741         (To_Flag_Word5): New unchecked conversion.
11742         (To_Flag_Word5_Ptr): Likewise.
11743         (Flag216): New function.
11744         (Set_Flag216): New procedure.
11745
11746 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11747
11748         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
11749         instead of 'Size.
11750
11751         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
11752
11753 2007-06-06  Javier Miranda  <miranda@adacore.com>
11754
11755         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
11756         the package.
11757         (Object_Specific_Data_Array): This is now internal to the package.
11758         (Object_Specific_Data): This is now internal to the package.
11759         (Select_Specific_Data_Element): This is now internal to the package.
11760         (Select_Specific_Data_Array): This is now internal to the package.
11761         (Select_Specific_Data): This is now internal to the package.
11762         (Offset_To_Top_Function_Ptr): This is now public.
11763         (To_Offset_To_Top_Function_Ptr): Removed.
11764         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
11765          local to subprogram Offset_To_Top.
11766         (Predefined_DT): Removed.
11767         (Typeinfo_Ptr): Removed.
11768         (OSD): This function is now internal to this package.
11769         (SSD): This function is now internal to this package.
11770         (DT): New function that displaces the pointer to the table of primitives
11771          to get access to the enclosing wrapper record.
11772         (IW_Membership): Code cleanup.
11773         (Offset_To_Top): Code cleanup.
11774         (Predefined_DT): Removed.
11775         (Register_Interface_Tag): Removed.
11776         (Set_Interface_Table): Removed.
11777         (Set_Offset_Index): Removed.
11778         (Set_Offset_To_Top): Code cleanup.
11779         (Set_OSD): Removed.
11780         (Set_Signature): Removed.
11781         (Set_SSD): Removed.
11782         (Set_Tagged_Kind): Removed.
11783         (Typeinfo_Ptr): Removed.
11784         (TSD): Removed.
11785         (Displace): Add missing check on null actual.
11786
11787         * exp_disp.ads, exp_disp.adb
11788         (Select_Expansion_Utilities): Removed.
11789         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
11790         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
11791         the interface requires a new parameter.
11792         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11793         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
11794         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
11795         Done to remove package Select_Expansion_Utilities.
11796         (Make_DT): New implementation for statically allocated dispatch tables.
11797         (Make_Secondary_DT): Moved to the scope of Make_DT.
11798         (Register_Primitive): Code cleanup plus incoporate the use of the new
11799         function DT_Address_Attribute.
11800         (Expand_Interface_Thunk): The profile of this subprogram has been
11801         changed to return the Thunk_Id and the corresponding code.
11802         (Fill_DT_Entry): Removed. Its functionality is now provided by
11803         subprogram Register_Primitive.
11804         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
11805         subprogram Register_Primitive.
11806         (Register_Primitive): New subprogram that incorporates the previous
11807         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
11808         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
11809         was only required to call Make_DT_Access_Action, which is now removed.
11810         (Ada_Actions): Removed
11811         (Action_Is_Proc): Removed
11812         (Action_Nb_Arg): Removed
11813         Replace all the calls to Make_DT_Access_Action by direct calls to
11814         Make_Procedure_Call_Statement or Make_Function_Call.
11815         (Set_DTC_Entity_Value): New subprogram.
11816         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
11817         (Expand_Interface_Thunk): Add missing support for primitives that are
11818         functions with a controlling result (case in which there is no need
11819         to generate the thunk).
11820
11821         * exp_atag.ads, exp_atag.adb
11822         (Build_DT): New subprogram that displaces the pointer to reference the
11823         base of the wrapper record.
11824         (Build_Typeinfo_Offset): Removed.
11825         (RTE_Tag_Node): Removed.
11826         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
11827         (Build_Get_RC_Offset): Removed.
11828         (Build_Inherit_Predefined_Prims): Removed.
11829         (Build_Inherit_TSD: Removed.
11830         (Build_New_TSD): Removed.
11831         (Build_Set_External_Tag): Removed.
11832         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
11833         (Build_Set_Prim_Op_Address): Add documentation.
11834         (Build_Set_TSD): Removed.
11835
11836         * rtsfind.ads, rtsfind.adb
11837         (Load_Fail): If load fails and we are not in configurable run-time
11838         mode, then raise Unrecoverable_Error.
11839         (Text_IO_Kludge): Generate an error message if a run-time library is
11840         not available in a given run-time (ie. zfp run-time).
11841         (RTE_Record_Component): Add code to check that the component we search
11842         for is not found in two records in the given run-time package.
11843         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11844         (RE_DT_Predef_Prims_Offset): New entity
11845         (RE_Static_Offset_To_Top): New entity
11846         (RE_HT_Link): New entity.
11847         (System_Address_Image): Addition of this run-time package.
11848         (RE_Address_Image): New entity.
11849         (RE_Abstract_Interface): Removed.
11850         (RE_Default_Prim_Op_Count): Removed.
11851         (RE_DT_Entry_Size): Removed.
11852         (RE_DT_Min_Prologue_Size): Removed.
11853         (RE_DT_Prologue_Size): Removed.
11854         (RE_Ifaces_Table_Ptr): Removed.
11855         (RE_Interface_Data_Ptr): Removed.
11856         (RE_Type_Specific_Data): Removed.
11857         (RE_Primary_DT): Removed.
11858         (RE_Register_Interface_Tag): Removed.
11859         (RE_Set_Offset_Index): Removed.
11860         (RE_Set_OSD): Removed.
11861         (RE_Set_SSD): Removed.
11862         (RE_Set_Signature): Removed.
11863         (RE_Set_Tagged_Kind): Removed.
11864         (RE_Address_Array): New entity.
11865         (RE_DT): New entity.
11866         (RE_Iface_Tag): New entity.
11867         (RE_Interfaces_Table): New entity.
11868         (RE_No_Dispatch_Table): New entity.
11869         (RE_NDT_Prims_Ptr): New entity.
11870         (RE_NDT_TSD): New entity.
11871         (RE_Num_Prims): New entity.
11872         (RE_Offset_To_Top_Function_Ptr): New entity.
11873         (RE_OSD_Table): New entity.
11874         (RE_OSD_Num_Prims): New entity.
11875         (RE_Predef_Prims): New entity
11876         (RE_Predef_Prims_Table_Ptr): New entity.
11877         (RE_Primary_DT): New entity.
11878         (RE_Signature): New entity.
11879         (RE_SSD): New entity.
11880         (RE_TSD): New entity.
11881         (RE_Type_Specific_Data): New entity.
11882         (RE_Tag_Kind): New entity.
11883
11884 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11885
11886         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11887         C imported variable.
11888         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11889         on entry.
11890
11891 2007-06-06  Robert Dewar  <dewar@adacore.com>
11892
11893         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11894         character
11895
11896 2007-06-06  Vincent Celier  <celier@adacore.com>
11897
11898         * a-tifiio.adb (Put, internal): For negative numbers, check that there
11899         is room for at least one digit and the minus sign.
11900         (Put.Put_Character): Never put a character outside of the range of
11901         string To.
11902
11903 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11904             Eric Botcazou  <ebotcazou@adacore.com>
11905
11906         * utils2.c (build_allocator): Provide the extra arguments to
11907         make_aligning_type for super-aligned objects allocated from the default
11908         pool. Leave enough room for a pointer before the aligning field, and
11909         store the system's allocator return value there.
11910         (build_call_alloc_dealloc): When releasing a super-aligned object,
11911         retrieve the system's allocator return value from where build_allocator
11912         has stored it, just ahead of the adjusted address we are passed.
11913         (build_call_raise): Handle properly the generation of line numbers when
11914         the node is marked No_Location.
11915         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
11916         by using DECL_UID on ties.
11917         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11918         main variant.
11919         (build_call_raise): Handle converting exception into goto; support new
11920         argument KIND.
11921         (build_component_ref): Add new arg to build_call_raise.
11922
11923 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11924
11925         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11926         "." in the case of nnn.xxx when nnn terminates with an underscore.
11927         Parse the remaining "#" or ":" in the case of nnn#.xxx#
11928
11929 2007-06-06  Robert Dewar  <dewar@adacore.com>
11930
11931         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11932
11933 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11934             Vincent Celier  <celier@adacore.com>
11935             Robert Dewar  <dewar@adacore.com>
11936
11937         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11938         needed.
11939         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11940         ((destructor)) for adafinal, even when switch -a is used.
11941         Do not issue pragma Linker_Destructor for adafinal when switch -a is
11942         used.
11943         (Gen_Object_Files_Options): Add formatting of Linker Options, when
11944         Output_Linker_Option_List is set. Suppress this formatting when
11945         Zero_Formatting is set.
11946         Add case for CLI_Target.
11947         (System_Restrictions_Used): New flag, used to avoid generating with of
11948         System_Restrictions and initialization of the data unless there is
11949         some use of System.Restrictions in the partition.
11950         (Check_System_Restrictions_Used): New procedure
11951
11952         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11953         since we only with this unit in the binder file if it is used elsewhere
11954         in the partition.
11955
11956 2007-06-06  Vincent Celier  <celier@adacore.com>
11957
11958         * bindusg.adb: Add line for @<response file>
11959         Add lines for new switches -R and -Z
11960
11961         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11962         hierarchy in the list of files of the closure when -R is used
11963         (Gnatbind): Accept arguments starting with '@' to indicate response
11964         files and take the arguments from the response files.
11965         If List_Closure is set, display the referenced files
11966
11967 2007-06-06  Javier Miranda  <miranda@adacore.com>
11968             Robert Dewar  <dewar@adacore.com>
11969             Ed Schonberg  <schonberg@adacore.com>
11970
11971         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11972         which the address-clause is applied to in-mode actuals (allowed by
11973         13.1(22)).
11974         (Apply_Discriminant_Check): Do not generate a check if the type is
11975         constrained by a current instance.
11976         (Activate_Division_Check): New procedure
11977         (Activate_Overflow_Check): New procedure
11978         (Activate_Range_Check): New procedure
11979         Call these new Activate procedures instead of setting flags directly
11980         (Apply_Array_Size_Check): Removed, no longer needed.
11981         Code clean up: remove obsolete code related to GCC 2.
11982         (Get_E_Length): Protect against bomb in case scope is standard
11983         (Selected_Range_Checks): If the node to be checked is a conversion to
11984         an unconstrained array type, and the expression is a slice, use the
11985         bounds of the slice to construct the required constraint checks.
11986         Improve NOT NULL error messages
11987         (Apply_Constraint_Check): If the context is a null-excluding access
11988         type, diagnose properly the literal null.
11989
11990 2007-06-06  Pascal Obry  <obry@adacore.com>
11991
11992         * clean.adb (Clean_Archive): Use untouched casing for the archive name
11993         and the corresponding .deps file.
11994         (Clean_Interface_Copy_Directory): Use untouched casing for the library
11995         src directory. Minor code-clean-up. Use untouched casing for files
11996         read into the library src dir.
11997         (Clean_Library_Directory): Idem.
11998         (Parse_Cmd_Line): Accept new switch -aP
11999
12000 2007-06-06  Javier Miranda  <miranda@adacore.com>
12001             Ed Schonberg  <schonberg@adacore.com>
12002             Robert Dewar  <dewar@adacore.com>
12003             Eric Botcazou  <ebotcazou@adacore.com>
12004             Arnaud Charlet  <charlet@adacore.com>
12005
12006         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12007         applicable to types that have the With_Type flag set. Returns the
12008         non-limited view of the type, if available, otherwise the type itself.
12009         For class-wide types, there is no direct link in the tree, so we have
12010         to retrieve the class-wide type of the non-limited view of the Etype.
12011         New attributes Static_Initialization and Static_Elaboration_Desired.
12012         Remove the pragma Thread_Body, and the associated flag
12013         Is_Thread_Body in entities, and all related code.
12014         (Suppress_Value_Tracking_On_Call): New flag
12015         E_Exception has Esize and Alignment fields
12016         (Universal_Aliasing): New function.
12017         (Set_Universal_Aliasing): New procedure.
12018         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12019         (Check_Nested_Access): New procedure.
12020         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12021         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12022         (Related_Interface): New attribute. Present in dispatch table pointer
12023         components of records. Set to point to the entity of the corresponding
12024         interface type.
12025         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12026         (Original_Access_Type): Remove, not needed.
12027         (Root_Type): Handle properly subtypes of class-wide-types.
12028         Update comments.
12029
12030         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12031         class-wide types visible through limited-with clauses.
12032         (Try_Primitive_Operation): When examining all primitive operations of a
12033         tagged type, do not consider subprograms labeled as hidden unless they
12034         belong to a private generic type with a tagged parent.
12035         (Try_Object_Operation): Extensive rewriting, to handle properly various
12036         overloading cases, when several ancestors may have class-wide operations
12037         that are possible candidates, and when the overloaded functions return
12038         array types and have defaulted parameters so that the call may be
12039         interpreted as an indexing.
12040         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12041         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12042         successive actuals before analyzing the call itself.
12043         (Try_Primitive_Operation): A primitive operation is compatible with the
12044         prefix if the prefix has a synchronized type and the type of the formal
12045         is its corresponding record, as can be the case when the primitive
12046         operation is declared outside of the body of the type.
12047         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12048         perform homonym traversal, looking for class-wide operation matches
12049         (formerly done in statements of Try_Class_Wide_Operation). Matches on
12050         access parameters are now restricted to anonymous access types.
12051         (Mark_Allocator): An allocator with a discriminant association parent is
12052         a coextension.
12053         (Try_One_Prefix_Interpretation): If the type of the object is
12054         incomplete, as can be happen when it is a limited view obtained through
12055         a limited_with_clause, the selected component is not part of a prefixed
12056         call.
12057         (Complete_Object_Operation): Diagnose properly an object that is not
12058         aliased when the corresponding controlling formal is an access
12059         parameter.
12060         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12061         ambiguous calls in prefixed notation, where two primitives differ only
12062         in that the controlling argument of one is an access parameter.
12063
12064         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12065         whether a function that returns an unconstrained type can be inlined.
12066         (Process_Formals): Diagnose properly the illegal use of an incomplete
12067         type in the profile of an access_to_subprogram declaration.
12068         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12069         operations are attached to the corresponding record.
12070         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12071         When processing a primitive of a concurrent type which implements an
12072         interface change the type of all controlling formals to that of the
12073         corresponding record type.
12074         (Check_Synchronized_Overriding): Relax the conditional logic when trying
12075         to determine the tagged type to which a primitive belongs.
12076         (Check_Conventions): Capture condition to ignore a primitive operation
12077         (which is shared between the loop in Check_Conventions and the one in
12078         Check_Convention) in a new local function Skip_Check.
12079         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12080         confusion with Check_Conventions' own Prim_Op local variable.
12081         (Create_Extra_Formals): Test for a tagged result type rather than a
12082         controlling result when determining whether to add a BIP_Alloc_Form
12083         formal and a BIP_Final_List formal to the function.
12084         (Check_Conformance); For parameters that are anonymous access types,
12085         subtype conformance requires that the not null and the constant
12086         indicators must match
12087         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12088         to retrieve the appropriate type when processing a concurrent type
12089         declared within a generic. Minor comment reformatting. Change invocation
12090         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12091         mitive.
12092         (Analyze_Subprogram_Body): If the return type of a function is an
12093         anonymous access to the limited view of a class-wide type, and the
12094         non-limited view of the type is available, update the type of the
12095         function so that code can be generated.
12096         (Process_Formals): In case of access-subtype itype whose designated
12097         type is also an itype (situation that happens now with access to
12098         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12099         attribute to avoid backend problems.
12100         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12101         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12102         anonymous types' designated types are same before testing
12103         Subtypes_Statically_Match.
12104         (Create_Extra_Formals): Test for a named access parameter that is a
12105         controlling formal as an additional condition for adding an
12106         accessibility level formal. This can occur in the subp type created for
12107         dispatching calls in Expand_Dispatching_Call, and allows calling
12108         Create_Extra_Formals from that procedure rather than special-casing the
12109         extra formals there.
12110         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12111         when the function has a controlling result.
12112         (Check_Returns): Add much more knowledge of the optimization of local
12113         raise statements to gotos, to retain proper warnings in this case.
12114         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12115         nodes when looking for last statement.
12116
12117         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12118         class-wide types visible through limited with clauses.
12119         (Add_One_Interp): If the operands are anonymous access types, the
12120         predefined operator on universal_access is immediately visibles
12121         (Find_Unique_Type): Handle anonymous access to subprogram types just as
12122         other anonymous access types.
12123         (Disambiguate): Take into account CIL convention.
12124         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12125
12126 2007-06-06  Robert Dewar  <dewar@adacore.com>
12127
12128         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12129         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12130         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12131         Fix lower bound of tables.
12132         Add rep clauses.
12133
12134         * nlists.adb: Ditto.
12135         (Prev_Node, Next_Node): Change index type to Int so that it properly
12136         covers the range First_Node_Id - 1 up.
12137
12138 2007-06-06  Javier Miranda  <miranda@adacore.com>
12139             Ed Schonberg  <schonberg@adacore.com>
12140             Bob Duff  <duff@adacore.com>
12141             Hristian Kirtchev  <kirtchev@adacore.com>
12142
12143         * exp_aggr.ads, exp_aggr.adb: 
12144         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12145         in extension aggregates.
12146         (Flatten): Other conditions being met, an aggregate is static if the
12147         low bound given by component associations is different from the low
12148         bound of the base index type.
12149         (Packed_Array_Aggregate_Handled): If the component type is itself a
12150         packed array or record, the front-end must expand into assignments.
12151         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12152         Init_Pr, instead of Ancestor_Is_Expression.
12153         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12154         coextension chain root, either generate a list controller or use the
12155         already existing one.
12156         (Static_Array_Aggregate): New procedure to construct a positional
12157         aggregate that can be handled by the backend, when all bounds and
12158         components are compile-time known constants.
12159         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12160         types covering interface types into assignments.
12161         (Replace_Type): move to Build_Record_Aggr_Code.
12162         (Expand_Record_Aggr_Code): if the target of the aggregate is an
12163         interface type, convert to the definite type of the aggregate itself,
12164         so that needed components are visible.
12165         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12166         components and the context is an extended return statement do not
12167         create a transient block for it, to prevent premature finalization
12168         before the return is executed.
12169         (Gen_Assign): Do not generate a call to deep adjust routine if the
12170         component type is itself an array of controlled (sub)-components
12171         initialized with an inner aggregate.
12172         (Component_Check): New name for Static_Check. This name is now more
12173         appropriate, and documentation is added which was missing.
12174         (Component_Check): Add test for bit aligned component value
12175         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12176         Tagged_Comps, name is more appropriate given added function below.
12177         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12178
12179 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12180             Javier Miranda  <miranda@adacore.com>
12181             Robert Dewar  <dewar@adacore.com>
12182
12183         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12184         Terminated: Add unchecked type conversion from System.Address to
12185         System.Tasking.Task_Id when calling the predefined primitive
12186         _disp_get_task_id.
12187         Disable new Ada 05 accessibility check for JVM.NET targets, which
12188         cannot be implemented in a practical way.
12189         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12190         the sources always references the tag of the actual object. Therefore,
12191         if 'Tag is applied in the sources to class-wide interface objects we
12192         generate code that displaces "this" to reference the base of the object.
12193         (Expand_N_Attribute_Reference, case Size): Return specified size if
12194         known to front end.
12195         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12196         has code that displaces the pointer of the object to manage interface
12197         types. However this code must not be executed when the prefix is a
12198         subprogram. This bug caused the wrong expansion of the internally
12199         generated assignment that fills the dispatch table when the primitive
12200         is a function returning a class-wide interface type.
12201         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12202         Set_Attribute_Name for Name_Unaligned_Valid.
12203
12204 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12205             Gary Dismukes  <dismukes@adacore.com>
12206
12207         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12208         If the initialization is the equivalent aggregate of the initialization
12209         procedure of the type, do not remove it.
12210         (Expand_N_Attribute_Definition_Clause): Exclude access variables
12211         initialized to null from having their expression reset to empty and
12212         note this exception in the comment.
12213
12214 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12215             Robert Dewar  <dewar@adacore.com>
12216             Ed Schonberg  <schonberg@adacore.com>
12217             Gary Dismukes  <dismukes@adacore.com>
12218
12219         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12220         Add "with" and "use" clauses for Sem_Attr.
12221         (Expand_Current_Value): Do not replace occurences of attribute
12222         references where the prefix must be a simple name.
12223
12224         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12225         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12226         Attribute_Requires_Simple_Name_Prefix.
12227         (Name_Modifies_Prefix): Body of new function.
12228         (Requires_Simple_Name_Prefix): Body of new function.
12229         (Resolve_Attribute, case Access): Improve error message for case of
12230         mismatched conventions.
12231         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12232         incomplete type.
12233         (Analyze_Attribute, case 'Access): If the type of the prefix is a
12234         constrained subtype for a nominal unconstrained type, use its base type
12235         to check for conformance with the context.
12236         (Resolve_Attribute): Remove test of the access type being associated
12237         with a return statement from condition for performing accessibility
12238         checks on access attributes, since this case is now captured by
12239         Is_Local_Anonymous_Access.
12240         (Analyze_Access_Attribute): Set Address_Taken on entity
12241         (Analyze_Attribute, case Address): Set Address_Taken on entity
12242         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12243         validating an access attribute whose prefix is a current instance.
12244         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12245         applied to dispatching operations, if freezing is required then we set
12246         the attribute Has_Delayed_Freeze in the prefix's entity.
12247         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12248         current scope if access of local subprogram taken
12249         (Analyze_Access_Attribute): Check legality of self-reference even if the
12250         expression comes from source, as when a single component association in
12251         an aggregate has a box association.
12252         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12253         the prefix if it is a protected operation and the attribute is
12254         Unrestricted_Access.
12255         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12256         reference to the base type of the context, to force a constraint check
12257         when the context is an access subtype with an explicit constraint.
12258         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12259         node is rewritten as an interface conversion. leave unanalyzed after
12260         resolution, to ensure that type checking against the context will take
12261         place.
12262
12263 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12264             Javier Miranda  <miranda@adacore.com>
12265             Robert Dewar  <dewar@adacore.com>
12266
12267         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12268         wrapper when the full view of the controlling type of an inherited
12269         function that dispatches on result implements interfaces.
12270         (Expand_N_Object_Declaration): In cases where the type of the
12271         declaration is anonymous access, create finalization list for it.
12272         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12273         if the object has no explicit initialization, to match description of
12274         functionality of pragam Persistent_BSS.
12275         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12276         new function to build static aggregates, to replace initialization call
12277         when static initialization is desired.
12278         (Freeze_Type): Generate a list controller for an access type whenever
12279         its designated type has controlled anonymous access discriminants.
12280         (Build_Equivalent_Aggregate): New procedure to compute a static
12281         aggregate to be used as default initialization for composite types,
12282         instead of a generating a call to the initialization procedure for the
12283         type.
12284         (Build_Initialization_Call): When available, replace a call to the
12285         initialization procedure with a copy of the equivalent static aggregate
12286         for the type.
12287         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
12288         declarations for objects of a class-wide interface type, rather than
12289         just identifiers, to prevent visibility problems.
12290         (Expand_N_Object_Declaration): When expanding the declaration for an
12291         object of a class-wide interface type, preserve the homonym chain of
12292         the original entity before exchanging it with that of the generated
12293         renaming declaration.
12294         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
12295         active, because there is no way to handle the exception.
12296         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
12297         to do a minimum decoration of the Access_Disp_Table list.
12298         (Expand_Record_Controller): Avoid the addition of the controller between
12299         the component containing the tag of a secondary dispatch table and its
12300         adjacent component that stores the offset to the base of the object.
12301         This latter component is only generated when the parent type has
12302         discriminants ---documented in Add_Interface_Tag_Components).
12303         (Apply_Array_Size_Check): Removed, no longer needed.
12304         (Expand_N_Full_Type_Declaration): If the type has anonymous access
12305         components, create a Master_Entity for it only if it contains tasks.
12306         (Build_Init_Procedure): Suppress the tag assignment compiling under
12307         no run-time mode.
12308         (Freeze_Record_Type): Remove code associated with creation of dispatch
12309         table.
12310         (Init_Secondary_Tags): Update type of actuals when generating calls to
12311         Ada.Tags.Set_Offset_To_Top
12312         (Stream_Operation_OK): Disable use of streams compiling under no
12313         run-time mode
12314         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
12315         if Has_Init_Expression set.
12316         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
12317         Register_Primitive, which provides the same functionality.
12318         (Requires_Init_Proc): Return false in case of interface types.
12319         (Add_Secondary_Tables): Use the new attribute Related_Interface to
12320         cleanup the code.
12321         (Predefined_Primitive_Freeze): Do not assume that an internal entity
12322         is always associated with a predefined primitive because the internal
12323         entities associated with interface types are not predefined primitives.
12324         Therefore, the call to Is_Internal is replaced by a call to the
12325         function Is_Predefined_Dispatching_Operation.
12326         (Make_Eq_If): When generating the list of comparisons for the
12327         components of a given variant, omit the controller component that is
12328         present if the variant has controlled components.
12329
12330 2007-06-06  Javier Miranda  <miranda@adacore.com>
12331             Hristian Kirtchev  <kirtchev@adacore.com>
12332             Bob Duff  <duff@adacore.com>
12333
12334         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
12335         handle the creation of finalization lists and calls for nested
12336         coextensions when the root of the chains is part of a return statement.
12337         (Inside_A_Return_Statement): New function inside Complete_Coextension_
12338         Finalization.
12339         (Expand_Record_Equality): Skip components that are interface types.
12340         (Displace_Allocator_Pointer): Add missing support for interface subtypes
12341         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
12342         with Rewrite_Coextension. Change the condition for detecting coextension
12343         root nodes.
12344         (Is_Local_Access_Discriminant): Removed.
12345         (Rewrite_Coextension): New routine which rewrites a static coextension
12346         as a temporary and uses its unrestricted access in the construction of
12347         the outer object.
12348         (Complete_Coextension_Finalization): New routine. Generate finalization
12349         attachment calls to all delayed coextensions.
12350         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
12351         the allocator is not a coextension itself and has delayed coextensions.
12352         If the current allocator is controlled, but also a coextension, delay
12353         the generation of the finalization attachment call.
12354         Rename local variable "Node" to "Nod" in order to avoid confusion with
12355         "Elists.Node".
12356         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
12357         limited types that are not inherently limited. Such an allocator is
12358         illegal, but is generated by the expander for a return statement, to
12359         copy the result onto the secondary stack. This is the only case where a
12360         limited object can be copied. Generate code to displace the pointer
12361         to the object if the qualified expression is a class-wide interface
12362         object. Such displacement was missing and hence the copy of the object
12363         was wrong.
12364         (Apply_Accessibility_Check): Handle allocated objects initialized in
12365         place.
12366         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
12367         and Expand_Allocator_Expression. Allocating class-wide interface objects
12368         this routine displaces the pointer to the allocated object to reference
12369         the component referencing the corresponding secondary dispatch table.
12370         Expand_Allocator_Expression): Add missing support to allocate class-wide
12371         interface objects initialized with a qualified expression.
12372         (Get_Allocator_Final_List): Test for an anonymous access type that is a
12373         function result type, and use the finalization list associated with the
12374         function scope in that case (such an anonymous type should not be
12375         treated like an access parameter's type).
12376
12377 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12378             Gary Dismukes  <dismukes@adacore.com>
12379             Javier Miranda  <miranda@adacore.com>
12380
12381         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
12382         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
12383         required exception handler.
12384         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
12385         properly the case of a function whose return type is a limited
12386         class-wide interface type. Modify the code of the accessibility
12387         check to handle class-wide interface objects. In this case we need to
12388         displace "this" to reference the primary dispatch table to get access
12389         to the TSD of the object (to evaluate its accessibility level).
12390         (Expand_N_Extended_Return_Statement): Test for a tagged result type
12391         rather than a controlling result as one of the conditions for
12392         generating tests of the implicit BIP_Alloc_Form formal. The
12393         initialization assignment is also handled according to whether the
12394         result is tagged instead of controlling.
12395         In the case where the init assignment is inserted in the "then" part of
12396         the allocation conditional, rewrite the target to be a dereference of
12397         the implicit BIP_Object_Access formal.
12398         If the returned value is unconstrained and created on the secondary
12399         stack, mark the enclosing block and function so that the secondary
12400         stack is not reclaimed on return.
12401         Treat returns from functions with controlling results similarly to
12402         returns from functions with unconstrained result subtypes.
12403         If the object returned is unconstrained, and an allocator must be
12404         created for it, analyze the allocator once the block for the extended
12405         return is installed, to ensure that finalizable components
12406         of the expression use the proper finalization list. Guard the call to
12407         Move_Final_List with a check that there is something to finalize.
12408         (Make_Tag_Ctrl_Assignment): Use "old" handling
12409         of controlled type assignment for virtual machines, since new code uses
12410         unsupported features (such as direct access to bytes in memory).
12411
12412 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12413             Ed Schonberg  <schonberg@adacore.com>
12414
12415         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
12416         accessibility actual, check for the case of an aliased object that has
12417         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
12418         we fall into processing for the attribute rather than the name of the
12419         object.
12420         (Expand_Inline_Call): If an actual is a literal, and the corresponding
12421         formal has its address taken in the body, create a temporary to capture
12422         value.  If the return type is a limited interface, do not treat the
12423         return value as Controlled.
12424         (Is_In_Place_Function):  If the return type is a limited interface,
12425         treat as returning in place. The actual returned object may not always
12426         be limited, but the caller has to assume that it is returned in place.
12427         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
12428         context of an allocator, use the correct finalization chain (that is,
12429         the chain belonging to the access type, rather than the chain belonging
12430         to the current scope).
12431         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
12432         result type rather than a controlling result as a precondition for
12433         adding an allocation form actual to a build-in-place call.
12434         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
12435         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
12436         primitive in the dispatch tables. This work is now done by Make_DT when
12437         the type is frozen.
12438         (Register_Predefined_DT_Entry): Removed.
12439         (Add_Return): If end label is not present, use sloc of last statement
12440         for generated return statement in procedure, for better gdb behavior
12441         on expanded code.
12442         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
12443         object address nodes to ensure proper processing by routines like
12444         Insert_After*.
12445         (Expand_Call): Fix generation of validity check for parameter
12446         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
12447         the allocation form parameter if the result subtype is constrained,
12448         except when the function has a controlling result.
12449         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
12450         rather than Is_Controlled and Has_Controlled_Component, since we want to
12451         include class-wide result types in this treatment. Also test for a
12452         controlling result, since that also requires passing a finalization
12453         list.
12454         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
12455         even when the result subtype is constrained, to handle calls involving
12456         controlling results.
12457         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
12458         is now called even when the result subtype is constrained, to handle
12459         calls involving controlling results.
12460         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
12461         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
12462         now performs the test).
12463         (Make_Build_In_Place_Call_In_Object_Declaration):
12464         Add_Alloc_Form_Actual_* is now called even when the result subtype is
12465         constrained, to handle calls involving controlling results.
12466         (Add_Return): Accomodate rewritten pattern from local raise to goto
12467         transformation, so that we still recognize an transfer statement
12468         and do the right thing here in that case.
12469         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
12470         and end of subprogram code.
12471         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
12472         support for primitives that are functions (without formals) with a
12473         controlling result.
12474         (Inherited_From_Formal): If the actual subtype has not generic parent
12475         type, it is not an actual for a formal derived type, and there is no
12476         operation to inherit from the formal.
12477
12478 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12479             Thomas Quinot  <quinot@adacore.com>
12480
12481         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
12482         inserted cleanup code appropriately for GDB use.
12483         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
12484         exception handler for Deep_Adjust or Deep_Finalize.
12485         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
12486         Raise_From_Controlled_Operation is available, use a call to that
12487         subprogram instead of a plain "raise Program_Error" node to raise
12488         Program_Error if an exception is propagated from an Adjust or Finalize
12489         operation.
12490         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
12491         appears in the optional statement list of a triggering alternative, the
12492         scope actions can be inserted directly there, and not in the list that
12493         includes the asynchronous select itself.
12494
12495 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12496             Robert Dewar  <dewar@adacore.com>
12497             Hristian Kirtchev  <kirtchev@adacore.com>
12498
12499         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
12500         generated exception handler appropriately when debugging generated code.
12501         Deal properly with No_Exception_Propagation restriction mode.
12502         (Expand_N_Abort_Statement): Add an unchecked type conversion from
12503         System.Address to System.Tasking.Task_Id when processing the result of
12504         the predefined primitive _disp_get_task_id.
12505         (Expand_N_Asynchronous_Select): Clarify comment.
12506         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
12507         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
12508         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
12509         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
12510         privals and for generated call to Complete_Entry_Body, for better gdb
12511         behavior.
12512         (Copy_Result_Type): Utility to construct a parameter and result profile
12513         for protected functions whose return type is an anonymous access to
12514         subprogram.
12515         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
12516         call the above.
12517         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
12518         point when the local-raise-to-goto transformation has taken place.
12519
12520 2007-06-06  Javier Miranda  <miranda@adacore.com>
12521             Nicolas Setton  <setton@adacore.com>
12522
12523         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
12524         functionality when the backend is generating code.
12525         Otherwise any serious error
12526         reported by the backend calling the frontend routine Error_Msg
12527         changes the Compilation_Mode to Check_Semantics, disables the
12528         functionality of this routine and causes the generation of
12529         spureous additional errors.
12530
12531         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
12532         debugging information now generated by the compiler for fat-pointer
12533         types.
12534         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
12535         DWARF2/3.
12536         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
12537
12538 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12539
12540         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
12541         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12542         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12543         For a remote call to a function with a classwide return type, apply an
12544         E.4(18) check to the returned value.
12545         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
12546         stream attributes of the designated type of an RACW, as they are not
12547         dispatching primitive operations.
12548
12549 2007-06-06  Geert Bosch  <bosch@adacore.com>
12550
12551         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
12552         negative literal
12553         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
12554         positive
12555         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
12556         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
12557         positive
12558         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
12559
12560 2007-06-06  Javier Miranda  <miranda@adacore.com>
12561
12562         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
12563         attribute compiling package Ada.Tags under No_Run_Time_Mode.
12564
12565 2007-06-06  Javier Miranda  <miranda@adacore.com>
12566
12567         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
12568         deallocation of class-wide interface objects.
12569         (Expand_Dispatching_Constructor_Call): Take into account that if the
12570         result of the dispatching constructor is an interface type, the
12571         function returns a class-wide interface type; otherwise the returned
12572         object would be actual. The frontend previously accepted returning
12573         interface types because Expand_Interface_Actuals silently performed
12574         the management of the returned type "as if" it were a class-wide
12575         interface type.
12576         (Expand_Dispatching_Constructor_Call): Replace call to
12577         Make_DT_Access_Action by direct call to Make_Function_Call.
12578
12579 2007-06-06  Robert Dewar  <dewar@adacore.com>
12580             Ed Schonberg  <schonberg@adacore.com>
12581
12582         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
12583         compute masking constant, since we now set Esize properly to the
12584         underlying size.
12585         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
12586         to match the alignment.
12587         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
12588         packed arrays of 8 bits or less.
12589
12590         * freeze.adb (Freeze_Entity): When freezing the formals of a
12591         subprogram, freeze the designated type of a parameter of an access type
12592         only if it is an access parameter.
12593         Increase size of C convention enumeration object
12594         (Freeze_Entity, array type case): Make sure Esize value is properly
12595         adjusted for the alignment if it is known.
12596         (Freeze_Entity, array type case): When checking bit packed arrays for
12597         the size being incorrect, check RM_Size, not Esize.
12598         (Freeze_Record_Type): Check for bad discriminated record convention
12599         (In_Exp_Body): Return true if the body is generated for a subprogram
12600         renaming, either an attribute renaming or a renaming as body.
12601         (Check_Itype): If the designated type of an anonymous access component
12602         is a non-protected subprogram type, indicate that it is frozen, to
12603         prevent out-of-scope freeze node at some subsequent call.
12604         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
12605         only if the subprogram is neither imported nor exported, as well as the
12606         NCA descriptor class if the subprogram is exported.
12607
12608 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12609             Arnaud Charlet  <charlet@adacore.com>
12610             Robert Dewar  <dewar@adacore.com>
12611             Gary Dismukes  <dismukes@adacore.com>
12612
12613         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
12614         default initialization on an imported object, when there is no
12615         initialization call generated for it.
12616         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
12617         restriction
12618
12619         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
12620         Static_Elaboration_Desired.
12621         Remove pragma Thread_Body.
12622         Implement a new pragma No_Body
12623         Removes the Explicit_Overriding pragma
12624         Remove Optional_Overriding pragma
12625         (Prag): Deal with Universal_Aliasing.
12626         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12627         Pragma_CIL_Constructor): New names.
12628
12629         * sem_cat.adb (Validate_Object_Declaration): An initialization that
12630         uses the equivalent aggregate of a type must be treated as an implicit
12631         initialization.
12632         (Get_Categorization): Check a unit for pragma Preelaborate only if it
12633         has none of the other categories.
12634         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
12635         to apply Import to an object renaming declaration.
12636
12637         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
12638         from a C++ class should be declared as limited and that it will be
12639         considererd limited.
12640         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
12641         should be declared as limited and that it will be considererd limited.
12642         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
12643         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
12644         (Analyze_Pragma): Deal with Universal_Aliasing.
12645         (Sig_Flags): Likewise.
12646         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
12647         (Overflow_Checks_Unsuppressed): New flag.
12648         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12649         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
12650         case of JVM or .NET targets, and compiling user code.
12651         Add debugging convenience routine rv
12652
12653 2007-06-06  Robert Dewar  <dewar@adacore.com>
12654
12655         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
12656         are interface type.
12657         (Build_Elementary_Input_Call): For floating-point use right type in the
12658         absence of strange size or stream size clauses.
12659         (Build_Elementary_Write_Call): Same fix
12660         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
12661         set to value that does not match base type size.
12662
12663 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12664
12665         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
12666         object of a limited type can be initialized with a call to a function
12667         that returns in place. If the limited type has unknown discriminants,
12668         and the underlying type is a constrained composite type, build an actual
12669         subtype from the function call, as is done for private types.
12670         (Side_Effect_Free): An expression that is the renaming of an object or
12671         whose prefix is the renaming of a object, is not side-effect free
12672         because it may be assigned through the renaming and its value must be
12673         captured in a temporary.
12674         (Has_Controlled_Coextensions): New routine.
12675         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
12676         as is done for other limited types.
12677         (Non_Limited_Designated_Type): new predicate.
12678         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
12679         objects.
12680         Remove all handling of with_type clauses.
12681
12682         * par-ch10.adb: Remove all handling of with_type clauses.
12683
12684         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
12685         checksum if the main source could not be parsed.
12686         (Loat_Unit): When processing a child unit, determine properly whether
12687         the parent unit is a renaming when the parent is itself a child unit.
12688         Remove handling of with_type clauses.
12689
12690         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
12691         (Set_Is_Static_Coextension): New procedure.
12692         (Has_Local_Raise): New function
12693         (Set_Has_Local_Raise): New procedure
12694         (Renaming_Exception): New field
12695         (Has_Init_Expression): New flag
12696         (Delay_Finalize_Attach): Remove because flag is obsolete.
12697         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
12698         Remove all handling of with_type clauses.
12699         (Exception_Junk): Can now be set in N_Block_Statement
12700
12701 2007-06-06  Vincent Celier  <celier@adacore.com>
12702             Robert Dewar  <dewar@adacore.com>
12703
12704         * frontend.adb (Frontend): Return immediately if the main source could
12705         not be parsed, because of preprocessing errors.
12706
12707         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
12708         (Gnat1drv): Exit with errors if the main source could not be parsed,
12709         because of preprocessing errors.
12710         (Check_Rep_Info): New procedure
12711
12712 2007-06-06  Robert Dewar  <dewar@adacore.com>
12713
12714         * g-hesorg.ads, g-heasor.ads,
12715         g-busorg.ads, g-bubsor.ads: Update documentation
12716         GNAT.Heap/Bubble_Sort_G is now pure
12717
12718 2007-06-06  Robert Dewar  <dewar@adacore.com>
12719
12720         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
12721
12722 2007-06-06  Robert Dewar  <dewar@adacore.com>
12723             Ed Schonberg  <schonberg@adacore.com>
12724
12725         * g-comlin.ads, g-comlin.adb: 
12726         Add new warning for renaming of function return objects
12727
12728         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
12729         (Tree_Read): Use size of object instead of type'object_size, since the
12730         latter is incorrect for packed array types.
12731         (Tree_Write): Same fix
12732
12733         * opt.ads: Add new warning for renaming of function return objects
12734         (Generating_Code): New boolean variable used to indicate that the
12735         frontend as finished its work and has called the backend to process
12736         the tree and generate the object file.
12737         (GCC_Version): Is now private
12738         (Static_Dispatch_Tables): New constant declaration.
12739         (Overflow_Checks_Unsuppressed): New flag.
12740         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12741         (List_Closure): New flag for gnatbind (-R)
12742         Zero_Formatting: New flag for gnatbind (-Z)
12743         (Special_Exception_Package_Used): New flag.
12744         (Warn_On_Unrepped_Components): New flag.
12745
12746         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
12747         unit is a compilation unit, rather than relying on its scope, so that
12748         Standard can be renamed.
12749         (Analyze_Object_Renaming): Add new warning for renaming of function
12750         return objects.
12751         Also reject attempt to rename function return object in Ada 83 mode.
12752         (Attribute_Renaming): In case of tagged types, add the body of the
12753         generated function to the freezing actions of the type.
12754         (Find_Type): A protected type is visible right after the reserved word
12755         "is" is encountered in its type declaration. Set the entity and type
12756         rather than emitting an error message.
12757         (New_Scope): Properly propagate Discard_Names to inner scopes
12758         (Check_Nested_Access): New procedure.
12759         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
12760         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12761
12762         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
12763         Add new warning for renaming of function return objects
12764         (Check_References): Suppress warnings for objects whose type or
12765         base type has Warnings suppressed.
12766         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
12767         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
12768
12769 2007-06-06  Vincent Celier  <celier@adacore.com>
12770             Emmanuel Briot  <briot@adacore.com>
12771             Olivier Hainque  <hainque@adacore.com>
12772
12773         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
12774         absolute value of Header.Block_Size when displaying the freed physical
12775         memory in traces.
12776         (Allocate): Compute Storage_Address using Integer_Address, not
12777         Storage_Offset, because the range of Storage_Offset may not be large
12778         enough.
12779         (Configure): New parameter Low_Level_Traces
12780         (Allocate, Deallocation, Free_Physically): Added low-level traces
12781         (Configure): new parameter Errors_To_Stdout.
12782         (Output_File): new subprogram
12783         (Deallocate, Dereference): Send error messages to the proper stream
12784         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
12785         documented. Previous code would send it to the current output file
12786         defined in GNAT.IO, which might not be stdout
12787         (Is_Valid): Adjust comment to mention that a positive reply means that
12788         Header_Of may be used to retrieve the allocation header associated with
12789         the subprogram Storage address argument. Return False early if this
12790         address argument is misaligned.
12791
12792 2007-06-06  Vincent Celier  <celier@adacore.com>
12793
12794         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
12795         switch -P
12796         (ASIS_Main): New global variable
12797         (Get_Closure): New procedure
12798         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
12799         check, metric or pretty. Call Get_Closure in this case.
12800         (Check_Files): For GNAT LIST, check all sources of all projects when
12801         All_Projects is True.
12802         (GNATCmd): Accept -U for GNAT LIST
12803
12804 2007-06-06  Vincent Celier  <celier@adacore.com>
12805
12806         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
12807         has been specified
12808         Correct error message when invocation of the linker fails
12809         Add explicit size clause for the C imported variables
12810         Object_List_File_Supported and Using_GNU_Linker to emphasize that
12811         we expect char size.
12812         Read target parameters earlier, since this is needed to set
12813         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
12814         targets.
12815
12816 2007-06-06  Vincent Celier  <celier@adacore.com>
12817
12818         * gnatls.adb: 
12819         Add 3 spaces before the default project directory when displaying
12820         the project search path.
12821         Add new command line switch '-l' to display license information.
12822
12823 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12824
12825         * gmem.c: Add support for timestamps on memory operations.
12826
12827         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
12828         operations (not used currently, just foundation for future
12829         enhancements). Add possibility to perform full dump of gmem.out file.
12830         (Print_Back_Traces): Declare accesses to root arrays constants since
12831         they aren't modified.
12832         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
12833
12834 2007-06-06  Vincent Celier  <celier@adacore.com>
12835
12836         * gnatsym.adb: Update Copyright notice
12837         (Parse_Cmd_Line): Accept new switch -D
12838         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
12839          file.
12840
12841         * prj.ads (Policy): New policy Direct
12842         (Yes_No_Unknown): New enumeration type
12843         (Project_Data): New component Libgnarl_Needed
12844
12845         * prj-nmsc.adb (Check_For_Source): When recording a source file make
12846         use the untouched pathname casing.
12847         (Get_Directories): Ensure that the Display_Exec_Directory is using the
12848         proper casing on non case-sensitive platforms like Windows.
12849         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12850         on all platforms, as it is not possible to know which one is allowed
12851         before processing the project files.
12852         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12853         specified when symbol policy is Direct. Check that when there is a
12854         symbol file defined (either by default or with attribute
12855         Library_Symbol_File) it is not the same as the reference symbol file.
12856         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12857         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12858         extending projects.
12859         (Record_Ada_Source): Record a source that has been locally removed in an
12860         imported project.
12861
12862         * symbols.ads (Policy): New policy Direct
12863
12864         * symbols-vms.adb (Initialize): Take new policy Direct in case
12865         statement
12866
12867 2007-06-06  Vincent Celier  <celier@adacore.com>
12868
12869         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12870         Correct obvious bug (return Dir; instead of return Directory;).
12871         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12872
12873 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12874
12875         * g-pehage.adb (Produce): Open output files in Binary mode, so that
12876         they have UNIX line endings (LF only) even on Windows, and thus pass
12877         all GNAT style checks.
12878
12879 2007-06-06  Emmanuel Briot  <briot@adacore.com>
12880
12881         * g-regpat.adb (Quote): Fix improper quoting of '.'
12882
12883 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12884
12885         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12886         default, set False on a per-runtime basis.
12887         (Need_Netdb_Buffer): New constant.
12888
12889         * g-socket.ads, g-socket.adb: Import new package
12890         GNAT.Sockets.Thin.Task_Safe_NetDB.
12891         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12892         binding to obtain proper message.
12893         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12894         Replace various occurrences of Arry (Arry'First)'Address with the
12895         equivalent Arry'Address (GNAT always follows implementation advice from
12896         13.3(14)).
12897         (Get_Host_By_Address, Get_Host_By_Name,
12898         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12899         instead, rely on platform-specific task safe netdb operations provided
12900         by g-socthi.
12901
12902         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12903         parameter Process_Blocking_IO.
12904         (Host_Error_Messages): Add stub body.
12905         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12906         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12907         Safe_Getservbyport): Move functions into new child package
12908         Task_Safe_NetDB.
12909         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12910         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12911         (In_Addr): Add alignment clause.
12912
12913 2007-06-06  Robert Dewar  <dewar@adacore.com>
12914
12915         * g-trasym.ads, g-traceb.ads: Update list of supported targets
12916         Add note about symbolic traceback
12917
12918 2007-06-06  Pascal Obry  <obry@adacore.com>
12919
12920         * hostparm.ads (Normalized_CWD): Use the host directory separator
12921         instead of the hardcoded forward slash which is not the proper
12922         character on Windows for example.
12923         (Java_VM): Removed.
12924
12925 2007-06-06  Vincent Celier  <celier@adacore.com>
12926             Arnaud Charlet  <charlet@adacore.com>
12927
12928         * a-clrefi.adb, a-clrefi.ads: New files
12929
12930         * impunit.adb: Add s-os_lib in the list of user visible units.
12931         (Non_Imp_File_Names_95): Add a-clrefi to this list
12932         Remove obsolete run-time entries.
12933         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12934          "a-exetim" -- Ada.Execution_Time
12935          "a-extiti" -- Ada.Execution_Time.Timers
12936
12937         * mlib-prj.ads, mlib-prj.adb
12938         (Build_Library): Use untouched object dir and library dir. At the
12939         same time makes sure that the checks are done using the canonical
12940         form. Removes hard-coded directory separator and use the proper host
12941         one instead.
12942         (Process_Project): Do not look in object directory to check if libgnarl
12943         is needed for a library, if there is no object directory.
12944         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12945         linking.
12946         (Build_Library): When invoking gnatbind, use a response file if the
12947         total size of the arguments is too large.
12948
12949         * Makefile.rtl: (g-sttsne): New object file.
12950         Add entry for a-clrefi, s-utf_32, System.Exceptions
12951
12952         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12953         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12954         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12955         Change g-string to s-string, g-os_lib to s-os_lib
12956         Change all g-utf_32 references to s-utf_32
12957
12958 2007-06-06  Tristan Gingold  <gingold@adacore.com>
12959             Olivier Hainque  <hainque@adacore.com>
12960
12961         * init.c: Do not adjust IP of an imported VMS exception of ia64.
12962         LIB$STOP is called to raise an exception and the IP of the exception
12963         is the instruction right after the call.
12964         (__gnat_adjust_context_for_raise, AIX): Implement.
12965         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12966          adjust_context_for_raise before Raise_From_Signal_Hanler.
12967         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12968         siginfo is passed to the handler, necessary to let the zcx propagation
12969         engine unwind past it.
12970
12971 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12972
12973         * initialize.c (__gnat_initialize for vxworks):  Update documentation
12974         on the ZCX support, using different sets of crtstuff objects than with
12975         GCC 3.4.
12976
12977 2007-06-06  Robert Dewar  <dewar@adacore.com>
12978
12979         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12980         spec from body
12981         (Layout_Type): Fix recomputation of size from alignment.
12982
12983 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12984             Javier Miranda  <miranda@adacore.com>
12985
12986         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12987         association in an instance.
12988         (Copy_Generic_Node): If the node is a string literal, no need to copy
12989         its descendants.
12990         (Is_Generic_Formal): For a formal subprogram, the declaration is the
12991         grandparent of the entity.
12992         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12993         to simplify handling of formal interfaces that derive from other formal
12994         interfaces.
12995         (Instantiate_Subprogram_Body): The defining unit name of the body of
12996         the instance should be a defining identifier.
12997         (Install_Formal_Packages): make global to the package, for use in
12998         instantiations of child units.
12999         (Analyze_Package_Instantiation): Do not attempt to set information on an
13000         enclosing master of an entry when expansion is disabled.
13001         (Instantiate_Type): If the actual is a tagged synchronized type and the
13002         generic ancestor is an interface, create a generic actual for the
13003         corresponding record.
13004         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13005         declaration, to ensure that the interface list is processed correctly.
13006         (Inline_Instance_Body): If enclosing scope is an instance body, remove
13007         its entities from visibiility as well.
13008         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
13009         given with a named association, analyze the expression only, not the
13010         discriminant association itself.
13011         (Reset_Entity): If the analysis of a selected component is transformed
13012         into an expanded name in the prefix of a call with parameters, do not
13013         transform the original node into an expanded name, to prevent visibility
13014         errors in the case of nested generics.
13015         (Check_Private_View): For an array type, check whether the index types
13016         may need exchanging.
13017
13018 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13019             Vincent Celier  <celier@adacore.com>
13020
13021         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13022         since both are separated.
13023         Add support for imported CIL packages.
13024         Add further special handling of "value_type" for CIL.
13025         Add special handling of pragma Import for CIL.
13026
13027         * make.ads, make.adb: When switch -eS is used, direct all outputs to
13028         standard output instead of standard error, except errors.
13029         (Absolute_Path): Use untouched casing for the parent directory.
13030         (Add_Library_Search_Dir): Use the untouched directory name.
13031         (Add_Source_Search_Dir): Idem.
13032         (Change_To_Object_Directory): Update output to use proper casing.
13033         (Create_Binder_Mapping_File): Use the untouched filename to set
13034         ALI_Name.
13035         (Gnatmake): Use untouched library and executable directory names.
13036         (Insert_Project_Sources): Use untouched filename for spec and body.
13037         (Is_In_Object_Directory): Use untouched object directory.
13038         (Mark_Directory): Idem.
13039         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13040         contains the non-canonical filename in all cases.
13041         (Change_To_Object_Directory): In verbose mode, display the name of the
13042         object directory we're changing to.
13043         (Compile_Sources): Make sure, when a project file is used, to compile
13044         the body of the unit, when there is one, even when only the spec is
13045         recorded in an ALI file.
13046         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13047         spec to the body.
13048         (Report_Compilation_Failed): New procedure
13049         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13050         procedures moved from the spec to the body.
13051         (Extract_Failure): Removed, not used
13052         Replace explicit raises of exception Bind_Failed and Link_Failed with
13053         calls to Make_Failed with the proper message.
13054         Replace explicit raises of exception Compilation_Failed with calls to
13055         procedure Report_Compilation_Failed.
13056         (Initialize): Create mapping files unconditionally when using project
13057         files.
13058
13059         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13060         Pragma_CIL_Constructor): New names.
13061
13062         * targparm.ads, targparm.adb
13063         (Compiler_System_Version): Removed, no longer used.
13064         (Get_Target_Parameters): Relax checks on system.ads validity. Add
13065         handling of two new system flags: JVM and CLI.
13066
13067 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13068             Arnaud Charlet  <charlet@adacore.com>
13069
13070         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13071         time, use the default s-interr body that provides interrupt support
13072         based on signals.
13073         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13074         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13075         g-soccon.ads, and s-taprop.adb for the marte run time.
13076         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13077         timers are supported on marte.
13078         (EH_MECHANISM for marte): Do not use ZCX.
13079         (THREADSLIB for marte): Use -lmarte.
13080         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13081         Add mlib-tgt-specific.o to gnatmake objects
13082         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13083         longer of MLib.Tgt.
13084         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13085         6, either kernel or rtp, use a specialized version of s-osinte.ads.
13086
13087 2007-06-06  Pascal Obry  <obry@adacore.com>
13088
13089         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13090
13091 2007-06-06  Vincent Celier  <celier@adacore.com>
13092
13093         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13094         separator, use instead the proper host directory separator.
13095         (Copy_ALI_Files): Make sure that an already existing ALI file in the
13096         ALI copy dir is writable, before doing the copy.
13097
13098         * mlib-utl.ads, mlib-utl.adb: 
13099         (Gcc): If length of command line is too long, put the list of object
13100         files in a response file, if this is supported by the platform.
13101         (Ar): If invocation of the archive builder is allowed to be done in
13102         chunks and building it in one shot would go above an OS dependent
13103         limit on the number of characters on the command line, build the archive
13104         in chunks.
13105
13106 2007-06-06  Vincent Celier  <celier@adacore.com>
13107
13108         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13109         of specified object file is not equal to base name of source.
13110
13111 2007-06-06  Javier Miranda  <miranda@adacore.com>
13112             Hristian Kirtchev  <kirtchev@adacore.com>
13113             Ed Schonberg  <schonberg@adacore.com>
13114
13115         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13116         the full type declaration.
13117         (Analyze_Component_Declaration): Add local variable E to capture the
13118         initialization expression of the declaration. Replace the occurences of
13119         Expression (N) with E.
13120         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13121         limited interface object with a function call.
13122         (Array_Type_Declaration): If the declaration lacks subtype marks for
13123         indices, create a simple index list to prevent cascaded errors.
13124         (Is_Null_Extension): Ignore internal components created for secondary
13125         tags when checking whether a record extension is a null extension.
13126         (Check_Abstract_Interfaces): Add missing support for interface subtypes
13127         and generic formals.
13128         (Derived_Type_Declaration): Add missing support for interface subtypes
13129         and generic formals.
13130         (Analyze_Object_Declaration): If an initialization expression is
13131         present, traverse its subtree and mark all allocators as static
13132         coextensions.
13133         (Add_Interface_Tag_Component): When looking for components that may be
13134         secondary tags, ignore pragmas that can appear within a record
13135         declaration.
13136         (Check_Abstract_Overriding): an inherited function that dispatches on
13137         result does not need to be overriden if the controlling type is a null
13138         extension.
13139         (Mentions_T): Handle properly a 'class attribute in an anonymous access
13140         component declaration, when the prefix is an expanded name.
13141         (Inherit_Component): If the derivation is for a private extension,
13142         inherited components remain visible and their ekind should not be set
13143         to Void.
13144         (Find_Type_Of_Object): In the case of an access definition, always set
13145         Is_Local_Anonymous_Access. We were previously not marking the anonymous
13146         access type of a return object as a local anonymous type.
13147         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13148         range with character literal bounds.
13149         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13150         (Access_Subprogram_Declaration): Indicate that the type declaration
13151         depends on an incomplete type only if the incomplete type is declared
13152         in an open scope.
13153         (Analyze_Subtype_Declaration): Handle properly subtypes of
13154         synchronized types that are tagged, and that may appear as generic
13155         actuals.
13156         (Access_Subprogram_Declaration): An anonymous access to subprogram can
13157         appear as an access discriminant in a private type declaration.
13158         (Add_Interface_Tag_Components): Complete decoration of the component
13159         containing the tag of a secondary dispatch table and the component
13160         containing the offset to the base of the object (this latter component
13161         is only generated when the parent type has discriminants --as documented
13162         in this routine).
13163         (Inherit_Components): Use the new decoration of the tag components to
13164         improve the condition that avoids inheriting the components associated
13165         with secondary tags of the parent.
13166         (Build_Discriminanted_Subtype): Indicate to the backend that the
13167         size of record types associated with dispatch tables is known at
13168         compile time.
13169         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13170         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13171         to include task, protected, and synchronized interfaces as limited
13172         interfaces.
13173         (Process_Discriminants): Remove the setting of
13174         Is_Local_Anonymous_Access on the type of (anonymous) access
13175         discriminants of nonlimited types.
13176         (Analyze_Interface_Type_Declaration): Complete the decoration of the
13177         class-wide entity it is is already present. This situation occurs if
13178         the limited-view has been previously built.
13179         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13180         field.
13181         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13182         Related_Interface.
13183
13184 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13185
13186         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13187         of the type that specify the position of interface tags when the type
13188         inherits discriminated array components from the parent type.
13189         If a component is initialized with a box, check for the presence of a
13190         default expression in its declaration before using its default
13191         initialization procedure.
13192         (Resolve_Record_Aggregate): If a component is box-initialized, and the
13193         component type has a discriminants, create a partial aggregate for it
13194         by copying the discriminants of the component subtype.
13195         Reject attempt to initialize a discriminant with a box.
13196         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13197         associated with dispatch tables is known at compile time.
13198         (Get_Value): If an association in a record aggregate has a box
13199         association, and the corresponding record component has a default
13200         expression, always copy the default expression, even when the
13201         association has a single choice, in order to create a proper
13202         association for the expanded aggregate.
13203
13204 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13205             Robert Dewar  <dewar@adacore.com>
13206
13207         * par-ch12.adb (P_Generic_Associations): The source position of an
13208         Others association is that of the others keyword, not that of the token
13209         that follows the box.
13210         (P_Formal_Type_Definition): Handle formal access types that carry a
13211         not null indicator.
13212
13213         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13214         multiple identifier are present, save Scan_State before scanning the
13215         colon, to ensure that separate trees are constructed for each
13216         declaration.
13217         (P_Identifier_Declarations): For object declaration, set new flag
13218         Has_Init_Expression if initialization expression present.
13219         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13220         Improve NOT NULL error messages
13221
13222 2007-06-06  Robert Dewar  <dewar@adacore.com>
13223
13224         * par-ch4.adb: (P_Name): Recover from literal used as name
13225
13226 2007-06-06  Vincent Celier  <celier@adacore.com>
13227
13228         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13229         defaulted to False.
13230         In the "not" case, recursive call with Complemented set to True.
13231         Do not allow "or" or "and" operators when Complemented is True.
13232
13233 2007-06-06  Vincent Celier  <celier@adacore.com>
13234
13235         * prj.adb (Project_Empty): Gives default value for new component
13236         Libgnarl_Needed
13237
13238         * prj-attr.ads: Minor reformatting
13239
13240         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13241         directory using the untouched casing.
13242         (For_All_Source_Dirs): Idem.
13243
13244         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13245         directories specified with switches -aP.
13246         (Add_Search_Project_Directory): New procedure
13247         (Initialize_Project_Path): Put the directories in table
13248         Search_Directories in the project search path.
13249         (Initialize_Project_Path): For VMS, transform into canonical form the
13250         project path.
13251
13252 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13253
13254         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13255         true if configurable run-time or No_Run_Time is set.
13256         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13257         processing an unit which is not the one being compiled.
13258
13259 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13260
13261         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13262         Replace UC by Ada.UC
13263
13264         * s-bitops.adb: Get rid of System.Pure_Exceptions.
13265         Replace UC by Ada.UC
13266
13267 2007-06-06  Robert Dewar  <dewar@adacore.com>
13268
13269         * scng.adb: (Check_End_Of_Line): Deal with very long lines
13270
13271 2007-06-06  Robert Dewar  <dewar@adacore.com>
13272
13273         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13274         Remove no longer used nodes.
13275
13276 2007-06-06  Javier Miranda  <miranda@adacore.com>
13277             Ed Schonberg  <schonberg@adacore.com>
13278             Robert Dewar  <dewar@adacore.com>
13279
13280         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13281         on obsolescent withed unit in case of limited-withed units.
13282         (Analyze_Compilation_Unit): Add guard to code that removed an
13283         instantiation from visibility, to prevent compiler aborts when
13284         instantiation is abandoned early on.
13285         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13286         current unit being analyzed, and Distinguish local incomplete types
13287         from limited views of types declared elsewhere.
13288         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
13289         to state that the class-wide entity is shared by the limited-view
13290         and the full-view.
13291         (Analyze_With_Clause): Improve placement of flag for case of
13292         unimplemented unit.
13293         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
13294         manner similar to GNAT.Current_Exception. This is a violation of
13295         restriction (No_Exception_Propagation), and also inhibits the
13296         optimization of local raise to goto.
13297         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
13298         and if so set Most_Recent_Exception_Used flag in Opt, and also check
13299         for violation of restriction No_Exception_Propagation.
13300
13301 2007-06-06  Javier Miranda  <miranda@adacore.com>
13302             Hristian Kirtchev  <kirtchev@adacore.com>
13303             Gary Dismukes  <dismukes@adacore.com>
13304
13305         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
13306         use of entity Exception_Occurrence if it is not available in the
13307         target run-time.
13308
13309         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
13310         concurrent types are declared within an Ada 2005 generic, build their
13311         corresponding record types since they are needed for overriding-related
13312         semantic checks.
13313         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
13314         protected type does not implement a task interface or a nonlimited
13315         interface.
13316         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
13317         type does not implement a protected interface or a nonlimited interface.
13318         (Single_Task_Declaration, Single_Protected_Declaration): use original
13319         entity for variable declaration, to ensure that debugging information
13320         is correcty generated.
13321         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
13322         routines if the expander is not active.
13323         (Analyze_Task_Body): Mark all handlers to stop optimization of local
13324         raise, since special things happen for task exception handlers.
13325
13326         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
13327         concurrent types declared within a generic.
13328         (Check_Dispatching_Operation): Do not emit warning about late interface
13329         operations in the context of an instance.
13330         (Check_Dispatching_Call): Remove restriction against calling a
13331         dispatching operation with a limited controlling result.
13332         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
13333         Register_Interface_DT_Entry by calls to Register_Primitive.
13334         (Check_Dispatching_Formals): Handle properly a function with a
13335         controlling access result.
13336
13337 2007-06-06  Robert Dewar  <dewar@adacore.com>
13338             Arnaud Charlet  <charlet@adacore.com>
13339
13340         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
13341         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
13342         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
13343         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
13344         message when using a VM, since this attribute is not supported.
13345         (Analyze_Record_Representation_Clause): Give unrepped component warnings
13346
13347         * usage.adb: Add new warning for renaming of function return objects
13348         Indicate that -gnatwp and -gnatwP concern front-end inlining
13349         Add line for -gnatyg
13350         Add usage information for -gnatw.c/C
13351
13352 2007-06-06  Robert Dewar  <dewar@adacore.com>
13353             Ed Schonberg  <schonberg@adacore.com>
13354
13355         * sem_ch5.adb
13356         (Find_Var): Do not consider function call in test for infinite loop
13357         warning if warnings set off for function entity.
13358         (One_Bound): Do not create a temporary for a loop bound if it is a
13359         character literal.
13360         (Analyze_Assignment): Traverse the right hand side of an assignment and
13361         mark all allocators as static coextensions.
13362         (Analyze_Assignment): Exempt assignments involving a dispatching call
13363         to a function with a controlling access result from the check requiring
13364         the target to be class-wide.
13365
13366 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13367             Ed Schonberg  <schonberg@adacore.com>
13368             Robert Dewar  <dewar@adacore.com>
13369             Javier Miranda  <miranda@adacore.com>
13370
13371         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
13372         chain of coextensions when an allocator serves as the root of such a
13373         chain.
13374         (Propagate_Coextensions): Remove the test for the root being an
13375         allocator.
13376         (Resolve_Allocator): Add condition to ensure that all future decoration
13377         occurs on an allocator node. Add processing and cleanup for static
13378         coextensions.
13379         (Valid_Conversion): If the operand type is the limited view of a
13380         class-wide type, use the non-limited view is available to determine
13381         legality of operation.
13382         (Ambiguous_Character): move to spec, for use elsewhere.
13383         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
13384         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
13385         character literals.
13386         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
13387         Do_Division_Check flag explicitly.
13388         (Resolve_Actuals): If the actual is of a synchronized type, and the
13389         formal is of the corresponding record type, this is a call to a
13390         primitive operation of the type, that is declared outside of the type;
13391         the actual must be unchecked-converted to the type of the actual
13392         (Resolve_Call): Kill all current values for any subprogram call if
13393         flag Suppress_Value_Tracking_On_Call is set.
13394         (Resolve_Type_Conversion): Generate error message the the operand
13395         or target of interface conversions come from a limited view.
13396         (Check_Infinite_Recursion): Ignore generated calls
13397         (Check_Allocator_Discrim_Accessibility): New procedure for checking
13398         that an expression that constrains an access discriminant in an
13399         allocator does not denote an object with a deeper level than the
13400         allocator's access type.
13401         (Resolve_Allocator): In the case of an allocator initialized by an
13402         aggregate of a discriminated type, check that associations for any
13403         access discriminants satisfy accessibility requirements by calling
13404         Check_Allocator_Discrim_Accessibility.
13405         (Resolve_Equality_Op): Handle comparisons of anonymous access to
13406         subprogram types in the same fashion as other anonymous access types.
13407         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
13408         message that is not a continuation message.
13409         (Resolve_Type_Conversion): Add missing support for conversion to
13410         interface type.
13411         (Resolve_Actuals): Introduce a transient scope around the call if an
13412         actual is a call to a function returning a limited type, because the
13413         resulting value must be finalized after the call.
13414         (Resolve_Actuals): If the call was given in prefix notations, check
13415         whether an implicit 'Access reference or implicit dereference must be
13416         added to make the actual conform to the controlling formal.
13417
13418 2007-06-06  Robert Dewar  <dewar@adacore.com>
13419             Javier Miranda  <miranda@adacore.com>
13420
13421         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
13422         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
13423         overriding of an inherited private subprogram now there is no need to
13424         inherit its dispatching slot and reduce the size of the dispatch table.
13425         Set_All_DT_Position now ensures that the same slot is now assigned to
13426         both entities. This is required to statically build the dispatch table.
13427         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
13428         of calling Set_All_DT_Position to re-evaluate the position of the
13429         entries in the dispatch table. Such reevaluation is not desired if
13430         the tagged type is already frozen.
13431
13432 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13433             Gary Dismukes  <dismukes@adacore.com>
13434             Robert Dewar  <dewar@adacore.com>
13435             Javier Miranda  <miranda@adacore.com>
13436
13437         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
13438         reference acts as an lvalue when the attribute name modifies the prefix
13439         (Is_Coextension_Root): New routine.
13440         (Mark_Static_Coextensions): New routine.
13441         (Type_Access_Level): Revise code for checking the level of the
13442         anonymous access type of a return object.
13443         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
13444         (Matches_Prefixed_View_Profile): Remove the no longer necessary
13445         retrieval of the corresponding controlling record type.
13446         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
13447         concurrent types declared within a generic as well as class wide types.
13448         Emit a mode incompatibility error whenever a protected entry or routine
13449         override an interface routine whose first parameter is not of mode
13450         "out", "in out" or access to variable.
13451         (Overrides_Synchronized_Primitive): Rename to
13452         Find_Overridden_Synchronized_Primitive.
13453         (Collect_Interface_Components): New subprogram that collects all the
13454         components of a tagged record containing tags of secondary dispatch
13455         tables.
13456         (Add_Global_Declaration): New procedure
13457         (Abstract_Interface_List): Handle properly the case of a subtype of a
13458         private extension.
13459         (Type_Access_Level): In the case of a type whose parent scope is a
13460         return statement, call Type_Access_Level recursively on the enclosing
13461         function's result type to determine the level of the return object's
13462         type.
13463         (Build_Elaboration_Entity): Build name of elaboration entity from the
13464         scope chain of the entity, rather than the unit name of the file name.
13465         (Check_Nested_Access): New procedure.
13466         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13467         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13468         (Get_Renamed_Entity): Utility routine for performing common operation
13469         of chasing the Renamed_Entity field of an entity.
13470
13471 2007-06-06  Robert Dewar  <dewar@adacore.com>
13472
13473         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
13474         elaboration model
13475         (Check_A_Call): Add check for entry call which was causing blowup
13476
13477 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13478
13479         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
13480         special code on ia64-vms to handle major incompatibilities between the
13481         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
13482         this routine with a very different set of arguments and expectations on
13483         the return value.
13484
13485 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13486
13487         * socket.c (__gnat_close_signalling_fd): New function.
13488         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
13489         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
13490         New supporting functions for task safe Netdb operations.
13491
13492 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13493             Olivier Hainque  <hainque@adacore.com>
13494
13495         * a-except-2005.ads, a-except-2005.adb
13496         (Raise_From_Controlled_Operation): New procedure in
13497         (private part of) Ada.Exceptions (standard runtime version). Used to
13498         provide informational exception message when Program_Error is raised as
13499         a result of an Adjust or Finalize operation propagating an exception.
13500         (Rmsg_28): Fix description for E.4(18) check.
13501         (Raise_Current_Excep): Call Debug_Raise_Exception just before
13502         propagation starts, to let debuggers know about the event in a reliable
13503         fashion.
13504         Take the address of E and dereference to make sure it is homed on stack
13505         and prevent the stores from being deleted, necessary for proper
13506         debugger behavior on "break exception" hits.
13507         (Local_Raise): Moved to System.Exceptions
13508
13509         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
13510         exception message from the current occurrence and raise Program_Error
13511         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
13512
13513 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13514             Arnaud Charlet  <charlet@adacore.com>
13515
13516         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
13517         lock, if needed.
13518
13519         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
13520         priority associated to a lock.
13521
13522         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
13523         assertion to take into account case of no abort restriction.
13524         (Initialize_Protection_Entries): Add initialization for the field
13525         New_Ceiling associated to the protected object.
13526         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
13527         needed.
13528
13529         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13530         since this function needs to be set consistently with Update_Exception.
13531
13532         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13533         since this function needs to be set consistently with Update_Exception.
13534
13535         * s-taskin.ads: Update comments on
13536         Interrupt_Server_Blocked_On_Event_Flag.
13537         (Unbind_Handler): Fix handling of server_task wakeup
13538         (Server_Task): Set self's state so that Unbind_Handler can take
13539         appropriate actions.
13540         (Common_ATCB): Now use a constant from System.Parameters to determine
13541         the max size of the Task_Image field.
13542
13543         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
13544         Initialize_Analyzer function.
13545         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
13546         take into account case of no abort restriction.
13547         ([Vulnerable_]Complete_Master): Modify assertion.
13548
13549         * s-tataat.adb (Finalize): Use the nestable versions of
13550         Defer/Undefer_Abort.
13551
13552         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
13553
13554         * s-tpobop.ads: Update comments.
13555
13556         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
13557         of locking the object manually, to avoid inconsistencies between
13558         Lock/Unlock_Entry assertions.
13559
13560         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
13561         terminating
13562         application and System.Parameters.No_Abort is True.
13563         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
13564         (Unbind_Handler): Fix handling of server_task wakeup
13565         (Server_Task): Set self's state so that Unbind_Handler can take
13566         appropriate actions.
13567
13568 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13569
13570         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
13571         declarations instead of an explicit null body, for conciseness.
13572
13573 2007-06-06  Robert Dewar  <dewar@adacore.com>
13574
13575         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
13576         illegal aggregate and the type is still Any_Composite.
13577         (Subtypes_Statically_Match): Fix problem of empty discriminant list
13578
13579 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13580
13581         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
13582         to prevent subsequent expansion.
13583
13584 2007-06-06  Robert Dewar  <dewar@adacore.com>
13585
13586         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
13587
13588 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13589             Robert Dewar  <dewar@adacore.com>
13590
13591         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
13592         exceptions.
13593         (Write_Itype): Handle case of string literal subtype, which
13594         comes up in this context.
13595         (Update_Itype): when debugging expanded code, update sloc of itypes
13596         associated with defining_identifiers and ranges, for gdb use.
13597         (Sprint_Node_Actual): Add static keyword to object or exception
13598         declaration output if Is_Statically_Allocated is True.
13599         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
13600         or task body, so that the tree carries the proper Sloc information for
13601         debugging use.
13602         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
13603
13604 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13605
13606         * s-secsta.adb (Chunk): Ensure this object has a static size known at
13607         compile time, to avoid dynamic memory allocation
13608         (Elaboration code): Only use dynamic memory allocation when needed.
13609
13610 2007-06-06  Quentin Ochem  <ochem@adacore.com>
13611
13612         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
13613         "Overflow_Guard".
13614         (Stack_Analyzer): Added field "Overflow_Guard"
13615         (Task_Result): Added field "Overflow_Guard".
13616         (Index_Str): New constant.
13617         (Task_Name_Str): New constant.
13618         (Actual_Size_Str): New constant.
13619         (Pattern_Array_Element_Size): New constant.
13620         (Get_Usage_Range): New subprogram.
13621         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
13622         Now align the output.
13623         Added comments.
13624         (Initialize): Added value for Overflow_Guard.
13625         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
13626         Update the value of the overflow guard according to the actual
13627         beginning of the pattern array.
13628         (Initialize_Analyzer): Added parameter Overflow_Guard.
13629         Take this parameter into accound when computing the max size.
13630         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
13631         (Report_Result): Removed extra useless procedure.
13632         Updated call to Output_Result.
13633         Moved full computation of the Task_Result here.
13634
13635 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13636
13637         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
13638         Thread_Blocking_IO, always True by default, set False on a per-runtime
13639         basis.
13640         Add Windows-specific constants
13641         Add new constant Need_Netdb_Buffer.
13642         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13643         not, whether to use getXXXbyYYY_r.
13644
13645         * gsocket.h: Add new constant Need_Netdb_Buffer.
13646         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13647         not, whether to use getXXXbyYYY_r.
13648
13649 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13650
13651         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
13652         than their first call.
13653         Add type Dummy_Communication_Block used in the generation of the pre-
13654         defined dispatching primitive _disp_asynchronous_select.
13655         (Storage_Element): Put Pragma Universal_Aliasing on it.
13656
13657 2007-06-06  Vincent Celier  <celier@adacore.com>
13658
13659         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
13660         function.
13661
13662         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
13663         letter if it is not followed by a '/' or a '\'.
13664         (Windows): New Boolean function
13665
13666         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
13667         Ada 2005.
13668         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
13669         drive letter.
13670         (Containing_Directory): Raise Use_Error when the directory is a root
13671         directory.
13672         (Extension): When returning the result, use a conversion to Result_Type,
13673         not a qualification.
13674
13675 2007-06-06  Robert Dewar  <dewar@adacore.com>
13676
13677         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
13678         (Set_Style_Check_Options): Recognize new -gnatyg style switch
13679
13680         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
13681         Warn_On_Non_Local_Exception to False, to turn off warnings for
13682         No_Exception_Propagation in ZFP runtime.
13683         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
13684         back-ends.
13685         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
13686
13687 2007-06-06  Vincent Celier  <celier@adacore.com>
13688
13689         * switch-b.adb (Scan_Binder_Switches): Add processing for new
13690         switches -R and -Z
13691
13692         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
13693         (Scan_Make_Switches): Recognize new switch -aP
13694
13695 2007-06-06  Matthew Gingell  <gingell@adacore.com>
13696             Jose Ruiz  <ruiz@adacore.com>
13697
13698         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
13699         VxWorks task descriptor in the Ada run time, call a C subprogram
13700         (__gnat_get_stack_info) that extracts the required information.
13701
13702         * sysdep.c: Back out temporary lynxos workaround.
13703         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
13704         time the stack information associated to the currently executing task.
13705         Only VxWorks systems require this function.
13706
13707 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13708
13709         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
13710         add the stack bias if the offset is computed from a frame address.
13711         (__gnat_backtrace): Adjust for above change.
13712
13713 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13714
13715         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
13716         PE_Non_Transportable_Actual.
13717         (By_Descriptor_Last): New constant.
13718         (By_Copy_Return): Likewise.
13719
13720 2007-06-06  Vincent Celier  <celier@adacore.com>
13721
13722         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
13723         is.
13724
13725         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
13726         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
13727         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
13728         Add missing comment for /OPTIMIZE=SPACE
13729         Add entry for OPTIMIZE=SPACE
13730         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
13731         Add documentation for new qualifiers corresponding to -gnatw.c/.C
13732
13733 2007-06-06  Vincent Celier  <celier@adacore.com>
13734             Robert Dewar  <dewar@adacore.com>
13735
13736         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
13737         -gnatw.C)
13738
13739         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
13740         Document gnatbind switch -a
13741         (case Constructions): Document that variables declarations are allowed
13742         for previously declared variables.
13743         Fix external lib project example
13744         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
13745         Indicate that "#if not X or Y then" is not allowed in input files to
13746         gnatprep.
13747         Document gnatw.x and gnatw.X warning flags
13748         Mention -Winline switch to activate warnings when back-end inlining is
13749         ineffective.
13750         Add gnatcheck rule descriptions
13751         Describe how to use the GNAT driver to call a tool on a closure.
13752         Describe how to run project-wide checks or metrics.
13753         Document gnatbind's -R option
13754         Updated to account for Ada 2005 support
13755
13756         * gnat_rm.texi (Case Construction): Allow variable declarations for
13757         previously declared variables.
13758         (Representation Clauses and Pragmas): Lift restriction on alignment
13759         clauses for record types.
13760         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
13761         Document No_Exception_Propagation restriction
13762         Document No_Body pragma
13763         Updated to account for Ada 2005 support; corrected some typos
13764         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
13765
13766         * gnat-style.texi: Make it clear that we never use mode IN for
13767         procedures or functions
13768
13769         * ug_words: Add entries for -gnatw.x and -gnatw.X
13770         Add entries for -gnatw.c/.C
13771
13772 2007-06-06  Pascal Obry  <obry@adacore.com>
13773             Vincent Celier  <celier@adacore.com>
13774
13775         * makegpr.adb (Add_Archive_Path): Use untouched object and library
13776         dirs and library name.
13777         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
13778         comments.
13779         (Build_Library): Idem.
13780         (Compile_Individual_Sources): Idem.
13781         (Compile_Link_With_Gnatmake): Idem.
13782         (Compile_Sources): Idem.
13783         (Get_Imported_Directories): Idem.
13784         (Link_Executables): Idem. Same change for the executable dir.
13785         (Check_Compilation_Needed): C_Source_Path new variable containing
13786         the canonical form of Source_Path to check against the source names
13787         in the dependency file.
13788         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
13789         verbose mode, display the name of the object directory we're changing
13790         to.
13791         (Saved_Switches): New name of table X_Switches
13792         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
13793         (Usage): New line for switch -aP
13794         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
13795         testing if a directory should be added to the search path.
13796
13797 2007-06-06  Javier Miranda  <miranda@adacore.com>
13798
13799         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
13800         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
13801         declaration after freezing point of all its associated tagged types;
13802         otherwise such types are frozen too early.
13803
13804 2007-06-06  Robert Dewar  <dewar@adacore.com>
13805
13806         * a-reatim.adb: Documentation addition
13807
13808         * g-cgideb.adb: Minor code reorganization
13809
13810         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
13811         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
13812         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
13813
13814         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
13815         function.  Change name New_Scope to Push_Scope
13816         (Get_Debug_Flag_K): Remove unused obsolete function.
13817
13818         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
13819         Push_Scope.
13820
13821         * makeusg.adb: Update Copyright notice
13822         Add line for switch -aP
13823
13824         * makeusg.adb: Fix wording of some usage messages
13825
13826         * s-assert.adb (Raise_Assert_Failure): Add call to
13827         Debug_Raise_Assert_Failure.
13828
13829         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
13830         (2, Standard'Alignment) for compatibility with AAMP (where alignment
13831         is restricted to 1).
13832
13833         * s-wchjis.adb: Remove use of System.Pure_Exceptions
13834
13835         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
13836         node location to No_Location when we're not debugging the expanded
13837         code.
13838
13839 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
13840
13841         * misc.c (enumerate_modes): Consider log2_b to always be one.
13842
13843 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
13844
13845         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13846
13847 2007-05-02  Pascal Obry  <obry@adacore.com>
13848
13849         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13850         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13851         encoding support of Stream_IO.
13852         (Write_Unit): Idem.
13853
13854         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13855         filename and corresponding encoding to match the OS requirement.
13856         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13857         routine will fail on specific devices like CON: AUX: ...
13858
13859         PR ada/29856: Add missing braces
13860
13861 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13862
13863         PR ada/31660
13864         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13865
13866 2007-04-21  Jan Hubicka  <jh@suse.cz>
13867
13868         * misc.c (gnat_expand_body): Don't call target for destructors,
13869         avoid redundant check on syntax errors.
13870
13871 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13872
13873         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13874         instead of checking GIMPLE_STMT_P in chain_next.
13875
13876 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13877
13878         PR ada/31576
13879         * system-linux-alpha.ads: Disable constant condition warning for the
13880         Default_Bit_Order variable.
13881         * system-linux-s390.ads: Likewise.
13882         * system-linux-s390x.ads: Likewise.
13883         * system-linux-sparc.ads: Likewise.
13884
13885 2007-04-06  Javier Miranda  <miranda@adacore.com>
13886             Matt Heaney  <heaney@adacore.com>
13887             Robert Dewar  <dewar@adacore.com>
13888
13889         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13890         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13891         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13892         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13893         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13894         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13895         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13896         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13897         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13898         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13899         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13900         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13901         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13902         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13903         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13904         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13905         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13906         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13907         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13908         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13909         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13910         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13911         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13912         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13913         s-taprop-tru64.adb, s-taprop-irix.adb,
13914         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13915         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13916         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13917         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
13918         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
13919         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
13920         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
13921         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
13922         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
13923         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
13924         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
13925         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
13926         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
13927         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
13928         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
13929         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
13930         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
13931         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13932         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
13933         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13934         access types.
13935         Update documentation.
13936         Minor rewording.
13937
13938 2007-04-06  Robert Dewar  <dewar@adacore.com>
13939
13940         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13941         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13942         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13943         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13944         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13945         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13946         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13947         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13948         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13949         system-hpux-ia64.ads, targparm.adb,
13950         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13951
13952         * system.ads: Move Functions_Return_By_DSP to obsolete section,
13953         kept for bootstrap purposes only.
13954
13955 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13956
13957         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13958         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13959         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13960         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13961
13962 2007-04-06  Robert Dewar  <dewar@adacore.com>
13963
13964         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13965         (Local_Raise): New dummy procedure called when a raise is converted
13966         to a local goto. Used for debugger to detect that the exception
13967         is raised.
13968
13969         * debug.adb: Document new d.g flag (expand local raise statements to
13970         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13971
13972         * exp_sel.adb: Use Make_Implicit_Exception_Handler
13973
13974         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13975         suppress warnings for unused handlers.
13976         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
13977         warnings for raise statements not handled locally.
13978         (Get_RT_Exception_Entity): New function
13979         (Get_Local_Call_Entity): New function
13980         (Find_Local_Handler): New function
13981         (Warn_If_No_Propagation): New procedure
13982         (Expand_At_End_Handler): Call Make_Implicit_Handler
13983         (Expand_Exception_Handlers): Major additions to deal with local handlers
13984         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13985         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13986         for local raise
13987
13988         * exp_ch11.ads (Get_RT_Exception_Entity): New function
13989         (Get_Local_Call_Entity): New function
13990
13991         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13992         of restrictions that the binder will never suggest adding.
13993
13994         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13995         to No_Elist.
13996
13997         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13998         be with'ed in the presence of pragma Restriction
13999         (No_Exception_Propagation).
14000
14001         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14002
14003         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14004         parameter, then the handler is not a suitable target for a local raise,
14005         and this is a violation of restriction No_Exception_Propagation.
14006         (Analyze_Handled_Statements): Analyze choice parameters in exception
14007         handlers before analyzing statement sequence (needed for proper
14008         detection of local raise statements).
14009         (Analyze_Raise_Statement): Reraise statement is a violation of the
14010         No_Exception_Propagation restriction.
14011
14012         * s-rident.ads: Add new restriction No_Exception_Propagation
14013
14014         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14015         function, like Make_Exception_Handler but sets Local_Raise_Statements
14016         to No_List.
14017         (Add_Unique_Serial_Number): Deal with case where this is called during
14018         processing of configuration pragmas.
14019
14020 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14021             Pat Rogers  <rogers@adacore.com>
14022             Pascal Obry  <obry@adacore.com>
14023
14024         * g-stsifd-sockets.adb: New file.
14025
14026         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14027         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14028         g-socthi-vms.adb: Move signalling
14029         fd management to a nested package, so that they can conveniently be
14030         moved to a subunit that is shared across Windows, VMS, and VxWorks
14031         (Ada implementation) or completed with imported bodies from socket.c
14032         (UNIX case).
14033         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14034         subprograms.
14035         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14036         the signalling file descriptor.
14037         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14038         signalling file descriptor.
14039         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14040         instead of creating a pair of sockets for signalling here.
14041
14042         * g-socthi.adb: Ditto.
14043         Set the runtime process to ignore SIGPIPEs on platforms that support
14044         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14045
14046         * g-socthi-mingw.adb: Ditto.
14047         (WS_Version): Use Windows 2.2.
14048         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14049
14050         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14051         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14052
14053         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14054         added GNAT byte swapping facility
14055         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14056
14057         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14058
14059         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14060         New subprograms.
14061         (__gnat_create_signalling_fds): New subprogram.
14062         Set the runtime process to ignore SIGPIPEs on platforms that support
14063         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14064
14065 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
14066             Vincent Celier  <celier@adacore.com>
14067
14068         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14069         New version of Ada.Calendar which supports the new upper bound of Ada
14070         time (2399-12-31 86_399.999999999).
14071         The following modifications have been made to the package:
14072          - New representation of time as count of nanoseconds since the start of
14073            Ada time (1901-1-1 0.0).
14074          - Target independent Split and Time_Of routines which service both
14075            Ada 95 and Ada 2005 code.
14076          - Target independent interface to the Ada 2005 children of Calendar.
14077          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14078          - Handling of non-leap centenial years.
14079          - Updated clock function.
14080          - Updated arithmetic and comparison operators.
14081
14082         * a-caldel.adb (To_Duration): Add call to target independent routine in
14083         Ada.Calendar to handle the conversion of time to duration.
14084
14085         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14086         (UTC Offset).
14087         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14088         set off to 0.
14089         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14090         targets do not have a natural time zone, GMT is used as a default.
14091         (__gnat_get_task_options): New.
14092
14093         * a-direct.adb (Modification_Time): Add with and use clauses for
14094         Ada.Calendar and Ada.
14095         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14096         since it is no longer needed.
14097         (Duration_To_Time): Removed.
14098         (OS_Time_To_Long_Integer): Removed.
14099         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14100         Formatting Time_Of routines which automatically handle time zones,
14101         buffer periods and leap seconds.
14102
14103         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14104         target independent routines in Ada.Calendar.
14105
14106         * a-calfor.ads, a-calfor.adb: 
14107         Code cleanup and addition of validity checks in various routines.
14108         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14109         Ada.Calendar.
14110
14111         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14112         independent routine in Ada.Calendar.
14113
14114 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14115
14116         * adaint.c: 
14117         (convert_addresses): Adjust prototype and dummy definition to expect an
14118          extra file_name argument.
14119
14120         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14121         filling the now expected file_name argument with the appropriate
14122         argv[0] expansion.
14123         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14124         (tracebk): Array of void * instead of char *, corresponding to what
14125          convert_addresses expects.
14126         (exename): New static global, to hold the executable file name to be
14127         used in all convert_addresses invocations.
14128         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14129         change.
14130         (__gnat_gmem_a2l_initialize): Resolve exename.
14131         (__gnat_convert_addresses): Use exename as the convert_addresses
14132         file_name argument.
14133
14134         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14135         "convert_addresses", now expecting a filename argument. Import the
14136         necessary entities to compute the filename to use and pass it to
14137         convert_addresses.
14138
14139 2007-04-06  Matt Gingell  <gingell@adacore.com>
14140
14141         * system-aix.ads: Back out previous change.
14142         (Functions_Return_By_DSP): Removed
14143
14144 2007-04-06  Pascal Obry  <obry@adacore.com>
14145
14146         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14147         or the monotonic used by Ada.Real_Time) to compute the sleep duration
14148         on Windows.
14149
14150 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14151
14152         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14153         function. Its value changes in different VxWorks versions, and it is
14154         now handled by the function __gnat_get_task_options.
14155
14156         * s-taprop-vxworks.adb (Create_Task): Call the function
14157         __gnat_get_task_options to get the required options for creating a task.
14158
14159 2007-04-06  Pascal Obry  <obry@adacore.com>
14160             Thomas Quinot  <quinot@adacore.com>
14161
14162         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14163         dealing with filename.
14164         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14165         filename from a standard string to a wide-string depending on the
14166         encoding value.
14167         (__gnat_freopen): Idem.
14168         (__gnat_current_time): New function (wrapper for time(3) standard C
14169         function).
14170
14171         * g-os_lib.ads (Current_Time): New function. Returns the current
14172         system time as an OS_Time value.
14173
14174         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14175         (Monotonic_Clock): Same.
14176
14177 2007-04-06  Quentin Ochem  <ochem@adacore.com>
14178
14179         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14180         not on a natural.
14181         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14182
14183 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14184
14185         * a-retide.adb: Add elaboration code to ensure that the tasking run
14186         time is initialized when using delay operations even when no task is
14187         created.
14188
14189 2007-04-06  Javier Miranda  <miranda@adacore.com>
14190
14191         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14192         component Num_Prim_Ops.
14193         (Set_Num_Prim_Ops): Removed.
14194         Remove all the assertions because all the routines of this
14195         package are inline always.
14196         (Get_Offset_Index): Add support to primary dispatch tables.
14197         Move the documentation about the dispatch table to a-tags.ads
14198         (Set_External_Tag): Removed
14199         (Inherit_TSD): Removed.
14200         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14201         moved to a-tags.ads
14202         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14203         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14204         of the TSD field "Table" because this field has been renamed to
14205         "Ifaces_Table".
14206         (Inherit_CPP_DT): Removed.
14207         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14208         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14209         declarations have been moved to a-tags.ads
14210         (Check_Size): Removed.
14211         (Expanded_Name): Updated to get access to the new field of TSD
14212         containing the address of the expanded name.
14213         (Get_Access_Level/Set_Access_Level): Removed.
14214         (Get_Predefined_Prim_Op_Address): Removed.
14215         (Set_Predefined_Prim_Op_Address): Removed.
14216         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14217         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14218         (Set_Expanded_Name): Removed.
14219         (Inherit_DT): Removed.
14220         (Inherit_CPP_DT): Removed.
14221         (Set_RC_Offset): Removed.
14222         (Set_TSD): Removed.
14223         (Base_Address): New function that displaces "this" to point to the base
14224         of the object (that is, to point to the primary tag of the object).
14225
14226 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14227             Javier Miranda  <miranda@adacore.com>
14228
14229         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14230         anonymous access component, do not create a master_id if type already
14231         has one, as may happen if the type is a subcomponent of a packed array
14232         type.
14233         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14234         Initialize_Tag): Remove code associated with the old CPP pragmas.
14235         CPP_Virtual and CPP_Vtable are no longer supported.
14236         (Build_Offset_To_Top_Internal): Add support for concurrent record types
14237         (Build_Offset_To_Top_Functions): Add support for concurrent record types
14238         (Freeze_Record_Type): Remove call to
14239         Init_Predefined_Interface_Primitives.
14240         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14241         code required to initialize the tags of the secondary dispatch tables.
14242         This leaves the algoritm more clear.
14243         (Init_Secondary_Tags): Add support for concurrent record types
14244         (Make_Predefined_Primitive_Specs): Code cleanup.
14245         (Predefined_Primitive_Bodies): Code cleanup.
14246         (Build_Master_Renaming): New local subprogram.
14247         (Expand_N_Full_Type_Declaration): Build the master_id associated with
14248         anonymous access to task type components.
14249         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14250         subtype indication are resolved during analysis, and must not be done
14251         here.
14252         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14253
14254 2007-04-06  Geert Bosch  <bosch@adacore.com>
14255             Ed Schonberg  <schonberg@adacore.com>
14256             Javier Miranda  <miranda@adacore.com>
14257             Bob Duff  <duff@adacore.com>
14258
14259         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14260         for conversion of a Float_Type'Truncation to integer.
14261
14262         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14263         check if a node is an attribute that can be handled directly by the
14264         back end.
14265         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14266         attributes that can be handled directly by the back end.
14267         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14268         use new predicate Is_Access_Protected_Subprogram_Type.
14269         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14270         and Unchecked_Union if it is generated as part of the default  Output
14271         procedure for a type with default discriminants.
14272         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14273         if we are compiling under restriction No_Dispatching_Calls.
14274         (Constrained): Use Underlying_Type, in case the type is private without
14275         discriminants, but the full type has discriminants.
14276         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14277         call to Build_Get_Access_Level.
14278         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14279         interface objects requires a call to the run-time subprogram that
14280         returns the base address of the object.
14281         (Valid_Conversion): Improve error message on illegal attempt to store
14282         an anonymous access to subprogram value into a record component.
14283
14284         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14285         null".
14286         (Simplify_Type_Conversion): New procedure that performs simplification
14287         of Int_Type (Float_Type'Truncation (X)).
14288         (Resolve_Type_Conversion): Call above procedure after resolving operand
14289         and before performing checks. This replaces the existing ineffective
14290         code in Exp_Ch4.
14291         (Set_String_Literal_Subtype): When creating the internal static lower
14292         bound subtype for a string literal, use a newly created copy of the
14293         subtree representing the lower bound.
14294         (Resolve_Call): Exclude build-in-place function calls from transient
14295         scope treatment. Update comments to describe this exception.
14296         (Resolve_Equality_Op): In case of dispatching call check violation of
14297         restriction No_Dispatching_Calls.
14298         (Resolve_Call): If the call returns an array, the context imposes the
14299         component type of the array, and the function has one non-defaulted
14300         parameter, rewrite the call as the indexing of a call with a single
14301         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
14302         in prefix form.
14303         (Resolve_Actuals): If an actual is an allocator for an access parameter,
14304         the master of the created object is the innermost enclosing statement.
14305         (Remove_Conversions): For a binary operator, check if type of second
14306         formal is numeric, to check if an abstract interpretation is present
14307         in the case of exponentiation as well.
14308
14309 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14310             Bob Duff  <duff@adacore.com>
14311
14312         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
14313         copying a parameter list in a call, set properly the First_Named_Formal
14314         and Next_Named_Formal fields in the new list and in the enclosing call.
14315         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
14316         names, to ease typing in the debugger. Improve comments.
14317         (Watch_Node): New variable, intended to be set in the debugger.
14318         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
14319         called when the watched node is created.
14320         (New_Node_Debugging_Output): Combined version of local procedures
14321         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
14322         with a parameter so that conditional breakpoints like "if Node = 12345"
14323         work.
14324         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
14325         Add Elist1 function
14326
14327 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14328             Ed Schonberg  <schonberg@adacore.com>
14329             Gary Dismukes  <dismukes@adacore.com>
14330
14331         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
14332         required for a conversion between two access-to-unconstrained-array
14333         types.
14334         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
14335         to discriminant constraints on discriminant objects. This rule must
14336         apply as well to discriminants of protected types in private components.
14337         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
14338         object of a null-excluding access type then don't require the
14339         the object declaration to have an expression and don't emit a
14340         run-time check.
14341
14342 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14343             Eric Botcazou  <botcazou@adacore.com>
14344
14345         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
14346         and made constant.
14347
14348         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
14349         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
14350         carry any.
14351
14352         * fe.h (Compiler_Abort): Add third parameter.
14353
14354         * misc.c (internal_error_function): Build third argument from current
14355         input location and pass it to Compiler_Abort.
14356
14357 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
14358
14359         * cstand.adb (Create_Standard): When the target's storage unit size is
14360         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
14361         Standard_String.
14362
14363 2007-04-06  Nicolas Roche  <roche@adacore.com>
14364
14365         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
14366         absolute path can have the following form: device:/a/b. In this case
14367         '/' should be inserted between the path and the filename.
14368
14369 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14370             Eric Botcazou  <botcazou@adacore.com>
14371
14372         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
14373         VAR_DECL to a CONST_DECL we make for a public constant when we know the
14374         corresponding definition has created the so made visible variable.
14375         Handle anonymous access to protected subprogram.
14376         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
14377         object with an address clause volatile.  Re-enable original fix.
14378         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
14379         too.
14380         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
14381         associated with either the Equivalent or Root type, instead of the
14382         naked type node.
14383         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
14384         subtree for every field of a global record type.
14385         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
14386         discriminants, invoke again variable_size on its newly computed sizes.
14387
14388 2007-04-06  Robert Dewar  <dewar@adacore.com>
14389             Thomas Quinot  <quinot@adacore.com>
14390             Ed Schonberg  <schonberg@adacore.com>
14391             Bob Duff  <duff@adacore.com>
14392
14393         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
14394         (Next_Component_Or_Discriminant): New function and procedure
14395         (First_Index, First_Literal, Master_Id,
14396         Set_First_Index, Set_First_Literal, Set_Master_Id):
14397         Add missing Ekind assertions.
14398         (Is_Access_Protected_Subprogram_Type): New predicate.
14399         (Has_RACW): New entity flag, set on package entities to indicate that
14400         the package contains the declaration of a remote accecss-to-classwide
14401         type.
14402         (E_Return_Statement): This node type has the Finalization_Chain_Entity
14403         attribute, in case the result type has controlled parts.
14404         (Requires_Overriding): Add this new flag, because "requires
14405         overriding" is subtly different from "is abstract" (see AI-228).
14406         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
14407         Is_Abstract_Type. Make sure these are called only when appropriate.
14408         (Has_Pragma_Unreferenced_Objects): New flag
14409
14410         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
14411         class-wide, the tag of the right-hand side must be an exact match, not
14412         an ancestor of that of the object on left-hand side.
14413         (Move_Activation_Chain): New procedure to create the call to
14414         System.Tasking.Stages.Move_Activation_Chain.
14415         (Expand_N_Extended_Return_Statement): Generate code to call
14416         System.Finalization_Implementation.Move_Final_List at the end of a
14417         return statement if the function's result type has controlled parts.
14418         Move asserts to Build_In_Place_Formal.
14419         (Move_Final_List): New function to create the call statement.
14420         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
14421         tagged type, replace generation of call to the run-time subprogram
14422         CW_Membership by call to Build_CW_Membership.
14423         (Expand_N_Return_Statement): Replace generation of call to the run-time
14424         subprogram Get_Access_Level by call to Build_Get_Access_Level.
14425         (Expand_N_Simple_Function_Return): Replace generation of call to the
14426         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14427
14428         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
14429         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
14430         access to protected operations.
14431         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
14432         master and chain actual parameters to a build-in-place function call
14433         involving tasks.
14434         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
14435         statement.
14436         (Make_Build_In_Place_Call_In_Allocator,
14437         Make_Build_In_Place_Call_In_Anonymous_Context,
14438         Make_Build_In_Place_Call_In_Assignment,
14439         Make_Build_In_Place_Call_In_Object_Declaration): Call
14440         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
14441         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
14442         stubbed procedure with a null body, replace the call with a null
14443         statement without using the full inlining machinery, for efficiency
14444         and to avoid invalid values in source file table entries.
14445
14446         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
14447         renamings of calls to build-in-place functions.
14448
14449         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
14450         provides the functionality of RTE_Available to record components.
14451         (RTU_Entity): The function Entity has been renamed to RTU_Entity
14452         to avoid undesired overloading.
14453         (Entity): New subprogram that returns the entity for the referened
14454         unit. If this unit has not been loaded, it returns Empty.
14455         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
14456         Remove no longer used entities.
14457         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
14458         (RE_Type_Specific_Data): New entity.
14459         (RE_Move_Any_Value): New entity.
14460         (RE_TA_A, RE_Get_Any_Type): New entities.
14461         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
14462          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
14463          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
14464         (Entity): New subprogram that returns the entity for the referened
14465         unit. If this unit has not been loaded, it returns Empty.
14466         (RTE): Addition of a new formal that extends the search to the scopes
14467         of the record types found in the chain of the package.
14468
14469         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
14470         "abstract subprograms must be visible" message, whether or not the type
14471         is an interface; that is, remove the special case for interface types.
14472         (Analyze_Function_Return): Remove error message "return of task objects
14473         is not yet implemented" because this is now implemented.
14474         (Create_Extra_Formals): Add the extra master and activation chain
14475         formals in case the result type has tasks.
14476         Remove error message "return of limited controlled objects is not yet
14477         implemented".
14478         (Create_Extra_Formals): Add the extra caller's finalization list formal
14479         in case the result type has controlled parts.
14480         (Process_Formals): In case of access formal types there is no need
14481         to continue with the analysis of the formals if we already notified
14482         errors.
14483         (Check_Overriding_Indicator): Add code to check overriding of predefined
14484         operators.
14485         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
14486         flags for formals that do not require them,.
14487         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
14488         hidden entity is use visible or directly visible.
14489         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
14490         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
14491         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
14492         New_Overloaded_Entity): Split Is_Abstract flag into
14493         Is_Abstract_Subprogram and Is_Abstract_Type.
14494
14495         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
14496         a return statement's finalization list to the caller's list, used for
14497         build-in-place functions with result type with controlled parts.
14498         Remove no longer used entities.
14499
14500         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
14501         longer needed, because the full type is now limited, and therefore a
14502         pass-by-reference type.
14503         (Foreign_Task_Level): New constant.
14504
14505         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
14506         move tasks from the activation chain belonging to a return statement to
14507         the one passed in by the caller, and update the master to the one
14508         passed in by the caller.
14509         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
14510         of unactivated tasks, so we don't kill the ones that are being returned
14511         by a build-in-place function.
14512         (Create_Task): Ignore AI-280 for foreign threads.
14513
14514 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14515             Robert Dewar  <dewar@adacore.com>
14516             Bob Duff  <duff@adacore.com>
14517             Gary Dismukes  <dismukes@adacore.com>
14518
14519         * errout.adb (Unwind_Internal_Type): Use predicate
14520         Is_Access__Protected_Subprogram_Type.
14521
14522         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
14523         (Freeze_Entity, packed array case): Do not override explicitly set
14524         alignment and size clauses.
14525         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
14526         the enclosing subprogram is a child unit body that acts as a spec.
14527         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
14528         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
14529         Remove all code for DSP option
14530
14531         * layout.adb (Layout_Record_Type): Use First/
14532         Next_Component_Or_Discriminant
14533         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
14534         to handle properly the anonymous access case.
14535
14536         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
14537         for all access attributes, because overload resolution should work the
14538         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
14539         causes the error message for the ambiguous "X'Access = Y'Access" and
14540         "X'Unrestricted_Access = Y'Access" and so forth to match.
14541         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
14542         now that anonymous access to protected operations have their own kind.
14543         (Resolve_Attribute): In case of dispatching call check the violation of
14544         restriction No_Dispatching_Calls.
14545         (Check_Array_Type): Check new -gnatyA array index style option
14546
14547         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
14548         attempt to derive from a synchronized tagged type.
14549         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
14550         type, inherit the class-wide type already created, because it may
14551         already have been used in a self-referential anonymous access component.
14552         (Mentions_T): Recognize self-referential anonymous access components
14553         that use (a subtype of) the class-wide type of the enclosing type.
14554         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
14555         Derived_Type for Prev formal on call to
14556         Check_Anonymous_Access_Components rather than Empty.
14557         (Make_Incomplete_Type_Declaration): Add test for case where the type has
14558         a record extension in deciding whether to create a class-wide type,
14559         rather than just checking Tagged_Present.
14560         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
14561         to stand-alone object declarations as well as component declarations.
14562         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
14563         prevent accidental overwriting when enclosing package appears in
14564         a limited_with_clause.
14565         (Array_Type_Declaration): If the component type is an anonymous access,
14566         the associated_node for the itype is the type declaration itself.
14567         (Add_Interface_Tag_Components): Modified to support concurrent
14568         types with abstract interfaces.
14569         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
14570         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
14571         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
14572         to complete the decoration of synchronized interface types. Add also
14573         a call to Check_Abstract_Interfaces to verify the ARM rules.
14574         (Derive_Interface_Subprograms): Modified to support concurrent types
14575         with abstract interfaces.
14576         (Analyze_Subtype_Indication): Resolve the range with the given subtype
14577         mark, rather than delaying the full resolution depending on context.
14578         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
14579         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
14580         Array_Type_Declaration,Build_Derived_Record_Type,
14581         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
14582         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
14583         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
14584         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14585         called only when appropriate.
14586         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
14587         to private type.
14588         (Analyze_Subtype_Declaration): For an access subtype declaration, create
14589         an itype reference for the anonymous designated subtype, to prevent
14590         scope anonmalies in gigi.
14591         (Build_Itype_Reference): New utility, to simplify construction of such
14592         references.
14593
14594 2007-04-06  Vincent Celier  <celier@adacore.com>
14595
14596         * errutil.adb (Initialize): Initialize warnings table, if all warnings
14597         are suppressed, supply an initial dummy entry covering all possible
14598         source locations.
14599
14600         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
14601         and start with only one, such as "-RTS=none".
14602         (Collect_Arguments): Do not check for sources outside of projects.
14603         Do not collect arguments if project is externally built.
14604         (Compile_Sources): Do nothing, not even check if the source is up to
14605         date, if its project is externally built.
14606         (Compile): When compiling a predefined source, add -gnatpg
14607         as the second switch, after -c.
14608         (Compile_Sources): Allow compilation of Annex J renames without -a
14609         (Is_In_Object_Directory): Check if the ALI file is in the object
14610         even if there is no project extension.
14611         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
14612         gnatbind if the ALI file effectively exists.
14613         (Initialize): Add the directory where gnatmake is invoked in front of
14614         the path if it is invoked from a bin directory, even without directory
14615         information, so that the correct GNAT tools will be used when spawned
14616         without directory information.
14617
14618         * makeusg.adb: Change switch -S to -eS
14619         Add lines for new switches -we, -wn and -ws
14620         Add line for new switch -p
14621
14622         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
14623         Treat_As_Error and there are warnings.
14624
14625         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
14626         -gnatww Change gnatmake switch -S to -eS
14627         (Scan_Make_Switches): Code reorganisation. Process separately multi
14628         character switches and single character switches.
14629         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
14630         False when switch is not recognized by gnatmake.
14631         (Scan_Make_Switches): Set Setup_Projects True when -p or
14632         --create-missing-dirs is specified.
14633
14634         * fname.adb (Is_Predefined_File_Name): Return True for annex J
14635         renamings Calendar, Machine_Code, Unchecked_Conversion and
14636         Unchecked_Deallocation only when Renamings_Included is True.
14637
14638         * par.adb: Allow library units Calendar, Machine_Code,
14639         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
14640         when -gnatg is not specified.
14641         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14642         there is no need to generate always a record_definition_node in case
14643         of synchronized interface types.
14644         (SIS_Entry_Active): Initialize global variable to False
14645         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
14646         indicate cases where AI-447 says "not null" is legal.
14647
14648         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
14649
14650         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
14651         files with with several lines starting with the object fileb name.
14652         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
14653         is specified.
14654         (Initialize): Add the directory where gprmake is invoked in front of the
14655         path, if it is invoked from a bin directory or with directory
14656         information, so that the correct GNAT tools will be used when invoked
14657         directly.
14658         (Check_Compilation_Needed): Process correctly backslashes on Windows.
14659
14660         * vms_data.ads: Update switches/qualifiers
14661
14662 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14663             Thomas Quinot  <quinot@adacore.com>
14664
14665         * exp_aggr.adb:
14666         If the array component is a discriminated record, the array aggregate
14667         is non-static even if the component is given by an aggregate with
14668         static components.
14669         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
14670         (Convert_Aggr_In_Allocator): If the allocator is for an access
14671         discriminant and the type is controlled. do not place on a finalization
14672         list at this point. The proper list will be determined from the
14673         enclosing object.
14674         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
14675         initialize record controller if needed, before the components, to ensure
14676         that they are properly finalized.
14677         (Build_Record_Aggr_Code): For the case of an array component that has a
14678         corresponding array aggregate in the record aggregate, perform sliding
14679         if required.
14680
14681 2007-04-06  Javier Miranda  <miranda@adacore.com>
14682             Gary Dismukes  <dismukes@adacore.com>
14683             Ed Schonberg  <schonberg@adacore.com>
14684
14685         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
14686         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
14687
14688         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
14689         accessibility on class-wide allocators if the allocator occurs at the
14690         same scope level as the allocator's type. The check is guaranteed to
14691         succeed in that case, even when the expression originates from a
14692         parameter of the containing subprogram.
14693         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
14694         under No_Dispatching_Calls restriction. During the semantic analysis
14695         we already notified such violation.
14696         (Tagged_Membership): Constant folding. There is no need to check
14697         the tag at run-time if the type of the right operand is non
14698         class-wide abstract.
14699         Replace call to Is_Ancestor by call to Is_Parent
14700         to support concurrent types with interface types.
14701         (Expand_N_Allocator): Add an assertion associated with the generation
14702         of the master_id.
14703         (Expand_N_Slice): Do not enable range check to nodes associated
14704         with the frontend expansion of the dispatch table.
14705         (Is_Local_Access_Discriminant): Subsidiary function to
14706         Expand_N_Allocator.
14707         (Tagged_Membership): Replace generation of call to the run-time
14708         subprogram CW_Membership by call to Build_CW_Membership.
14709         (Expand_Allocator_Expression): Replace generation of call to the
14710         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14711
14712         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
14713         initialize most the TSD components by means of an aggregate.
14714         Modify the declaration of the object containing the TSD
14715         because we now expand code that has a higher level of abstraction.
14716         The TSD has a discriminant containing the Inheritance Depth Level,
14717         value that is used in the membership test but also to fix the size
14718         of the table of ancestors.
14719         (Expand_Interface_Conversion): Insert function body at the closest place
14720         to the conversion expression, to prevent access-before-elaboration
14721         errors in the backend.
14722         Code improved to reduce the size of the dispatch table if
14723         compiling under restriction No_Dispatching_Calls plus code cleanup.
14724         Code reorganization plus removal of calls to Set_Num_Prim_Ops
14725         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
14726         (Expand_Dispatching_Call): Minor code reorganization plus addition of
14727         code to return immediately if compiling under No_Dispatching_Calls
14728         restriction.
14729         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
14730         CPP_Virtual and CPP_Vtable are no longer supported.
14731         (Expand_Interface_Conversion): Add missing support for interface type
14732         derivations.
14733         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
14734         Is_Parent to support concurrent types with interfaces.
14735         (Init_Predefined_Interface_Primitives): Removed.
14736         (Make_Secondary_DT): Modified to support concurrent record types.
14737         (Set_All_DT_Position): Modified to support concurrent record types.
14738         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14739         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
14740         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
14741         with CW_Membership.
14742         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14743         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
14744         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
14745         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
14746         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
14747         (Expand_Dispatching_Call): Replace generation of call to the run-time
14748         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
14749         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
14750         Address.
14751         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
14752         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
14753         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
14754         Build_Set_Prim_Op_Address.
14755         (Get_Remotely_Callable): Subprogram removed.
14756         (Init_Predefined_Interface_Primitives): Replace generation of call to
14757         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
14758         Prims.
14759
14760         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
14761         First (Parameter_Associations ()) with the call to First_Actual that
14762         returns an actual parameter expression for both named and positional
14763         associations.
14764
14765         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
14766         check violation of restriction No_Dispatching_Calls.
14767         (Check_Controlling_Type): A formal of a tagged incomplete type is a
14768         controlling argument.
14769
14770         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
14771         First/Next_Component_Or_Discriminant
14772         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
14773         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14774         specify Any_Limited_Interface, and this functionality is already
14775         provided by the function Has_Abstract_Interfaces.
14776         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
14777         support concurrent types implementing interfaces.
14778         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14779         specify kind Any_Limited_Interface, and this functionality is already
14780         provided by the function Has_Abstract_Interfaces.
14781         (Remove_Side_Effects): replace Controlled_Type by
14782         CW_Or_Controlled_Type whenever the issue is related to
14783         using or not the secondary stack.
14784
14785         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
14786         P_Interface_Type_Definition to fulfill the new interface (the formal
14787         Is_Synchronized is no longer required).
14788
14789         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
14790         Update dependencies.
14791
14792         * exp_atag.ads, exp_atag.adb: New file
14793
14794 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14795             Bob Duff  <duff@adacore.com>
14796             Cyrille Comar  <comar@adacore.com>
14797
14798         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
14799         anonymous, use finalization list of enclosing dynamic scope.
14800         (Expand_N_Package_Declaration): For a library package declaration
14801         without a corresponding body, generate RACW subprogram bodies in the
14802         spec (just as we do for the task activation call).
14803         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
14804         Is_Abstract_Type. Make sure these are called only when appropriate.
14805         Remove all code for DSP option
14806         (CW_Or_Controlled_Type): new subprogram.
14807
14808 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14809             Ed Schonberg  <schonberg@adacore.com>
14810             Gary Dismukes  <dismukes@adacore.com>
14811
14812         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
14813         parameter. If it is set to true, return a result capped according to
14814         the global upper bound for the index of an entry family.
14815         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
14816         (Build_Find_Body_Index): Adjust for above change.
14817         (Entry_Index_Expression): Likewise.
14818         (Is_Potentially_Large_Family): New function extracted from...
14819         (Collect_Entry_Families): ...here. Call it to detect whether the family
14820         is potentially large.
14821         (Build_Entry_Count_Expression): If the family is potentially large, call
14822         Family_Size with 'Cap' set to true.
14823         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
14824         a protected version of an operation declared in the private part of
14825         a protected object, because they may be invoked through a callback.
14826         (Set_Privals): If the type of a private component is an anonymous access
14827         type, do not create a new itype for each protected body.
14828         If the body of a protected operation creates
14829         controlled types (including allocators for class-widetypes), the
14830         body of the corresponding protected subprogram must include a
14831         finalization list.
14832         (Build_Activation_Chain_Entity): Build the chain entity for extended
14833         return statements.
14834         (Type_Conformant_Parameters): Use common predicate Conforming_Types
14835         to determine whether operation overrides an inherited primitive.
14836         (Build_Wrapper_Spec): Add code to examine the parents while looking
14837         for a possible overriding candidate.
14838         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
14839         hold an actual parameter value since its initialization is separated
14840         from the the declaration. Prevents errors on null-excluding access
14841         formals.
14842
14843 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14844             Pablo Oliveira  <oliveira@adacore.com>
14845
14846         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14847         Do an Unchecked_Conversion to handle the passage from the Underlying
14848         Type to the Base Type when calling Build_To_Any_Call and
14849         Build_From_Any_Call.
14850         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14851         E_Constant, depending upon Variable formal.
14852         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14853         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14854         parameter that requires an extra constrained parameter, declare
14855         temporary for actual as a variable, not a constant.
14856         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14857         the unit being compiled is the one that contains the stub type.
14858         Change primitive operation name for the RACW associated with a RAS
14859         from Call to _Call so it cannot clash with any legal identifier.
14860         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14861         Is_RAS.
14862         (Append_RACW_Bodies): New subprogram.
14863         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14864         Add_Receiving_Stubs_To_Declarations functions.
14865         When expanding a package body, this list correspond to the
14866         statements in the HSS at the end of the pacakge.
14867         When expanding a package spec, this list correspond to the
14868         spec declarations.
14869         (Add_Receiving_Stubs_To_Declarations): Append the function
14870         registering the receiving stubs at the end of the 'Stmts' list.
14871         (RCI_Package_Locator): Pass the new Version generic formal when
14872         instantiating a RCI_Locator package.
14873         (Build_From_Any_Function): To compute the High bound for an
14874         unconstrained array actual, we add the Low bound with the length.
14875         Thus we must convert the low bound and the length to an appropriate
14876         type before doing the sum.
14877         (Build_Subprogram_Receiving_Stubs, PolyORB):
14878          * Retrieve the extra formals parameters at the
14879            end of the parameter stream.
14880          * Use Move_Any_Value to write back out parameters
14881            after executing the request as it is more efficient
14882            than Copy_Any_Value.
14883          * Build the any containing Extra Formals with the
14884            appropriate typecode.
14885         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14886         empty Component_List.
14887         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14888         the tree the declaration for an object that serves as actual parameter
14889         in server-side stubs.
14890         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14891         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14892         Use Build_Actual_Object_Declaration to prepare the actuals.
14893         (Add_Parameter_To_NVList): Set the parameter mode to In for
14894         Extra Constrained Parameters.
14895         (Build_General_Calling_Stubs): Set the parameter type to boolean for
14896         Extra Constrained parameters.
14897         (Build_To_Any_Function, Build_From_Any_Function,
14898         Built_TypeCode_Function): When Typ is implicit, call the correct
14899         function with the first not implicit parent type.
14900         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14901         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14902         typecode from the Etype. Therefore we retrieve the correct typecode
14903         with a call to Get_Any_Type.
14904         (Copy_Specification): Do controlling formal type substitution based on
14905         Is_Controlling_Formal flag, instead of caller-provided object type.
14906         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14907         a RACW primitive operation, we might get a subprogram declaration for an
14908         ancestor of the RACW designated type (not for the designated type
14909         itself), in the case where this operation is inherited. In this case we
14910         have no easy means of determining the original tagged type for which
14911         the primitive was declared, so instead we now rely on
14912         Copy_Specification to use the Is_Controlling_Formal flag to determine
14913         which formals require type substitution.
14914
14915 2007-04-06  Robert Dewar  <dewar@adacore.com>
14916             Ed Schonberg  <schonberg@adacore.com>
14917
14918         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14919         GNAT.Current_Exception are not allowed if pragma Restrictions
14920         (No_Exception_Propagation) is set and in any case make the associated
14921         handler unsuitable as a target for a local raise statement.
14922         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14923         run-time subprogram CW_Membership by call to Build_CW_Membership.
14924         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14925         by a function call, a temporary must be created before expanding the
14926         Constructor_Call itself, to prevent out-of-order elaboration in the
14927         back-end when stack checking is enabled..
14928
14929 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14930
14931         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14932         result are the bounds of the left operand, not the right.
14933
14934 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14935
14936         * exp_strm.adb
14937         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14938          discriminant defaults.
14939         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14940         (Make_Component_List_Attributes): Ditto.
14941
14942 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14943             Bob Duff  <duff@adacore.com>
14944
14945         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14946         an association with a box as providing a value even though the
14947         initialization procedure for the type is not available.
14948         (Resolve_Record_Aggregate): Check that a choice of an association with a
14949         box corresponds to a component of the type.
14950         (Resolve_Record_Aggregate): Split Is_Abstract flag into
14951         Is_Abstract_Subprogram and Is_Abstract_Type.
14952
14953         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14954         assert.
14955
14956         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14957         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14958         called only when appropriate.
14959
14960 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14961
14962         * g-alleve.ads (Low Level Vector type definitions): Map each to the
14963         associated vector view instead of all to the unsigned char view.
14964
14965         * g-altcon.adb (Generic_Conversions): New internal generic package,
14966         offering facilities for all the Vector/View conversion routines
14967         implemented by this unit.
14968         (To_View/To_Vector - all versions): Reimplemented in a systematic
14969         manner, using the internal Generic_Conversions facilities.
14970
14971 2007-04-06  Pascal Obry  <obry@adacore.com>
14972
14973         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14974         string.
14975         (Create): Free the source string before storing the new one.
14976
14977 2007-04-06  Vincent Celier  <celier@adacore.com>
14978
14979         * g-debpoo.adb (Validity): New package with a complete new
14980         implementation of subprograms Is_Valid and Set_Valid.
14981         (Is_Valid): Move to local package Validity
14982         (Set_Valid): Move to local package Validity
14983
14984 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14985             Pablo Oliveira  <oliveira@adacore.com>
14986
14987         * g-expect.adb (Get_Command_Output): When expanding the output buffer
14988         we must ensure that there is enough place for the new data we are going
14989         to copy in.
14990
14991 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14992
14993         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14994         computation.
14995
14996 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14997             Vincent Celier  <celier@adacore.com>
14998
14999         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15000         (Stack_String): Add this String that contains the name of the Stack
15001         package in the project file.
15002         (Packages_To_Check_By_Stack): Add this list that contains the packages
15003         to be checked by gnatstack, which are the naming and the stack packages.
15004         (Check_Files): If no .ci files were specified for gnatstack we add all
15005         the .ci files belonging to the projects, including binder generated
15006         files.
15007         (Non_VMS_Usage): Document that gnatstack accept project file switches.
15008         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15009         Add gnatstack to the list of commands that use project file related
15010         switches, and get the single attribute Switches from the stack package
15011         in a project file when calling gnatstack. Parse the -U flag for
15012         processing files belonging to all projects in the project tree.
15013         Remove all processing for command Setup
15014
15015         * prj-attr.adb: Add new package Stack with single attribute Switches
15016
15017         * vms_conv.ads (Command_Type): Add command Stack.
15018         Move to body declarations that are only used in the body: types Item_Id,
15019         Translation_Type, Item_Ptr, Item and its subtypes.
15020
15021         * vms_conv.adb: (Initialize): Add data for new command Stack.
15022         Add declarations moved from the spec: types Item_Id, Translation_Type,
15023         Item_Ptr, Item and its subtypes.
15024         (Cargs_Buffer): New table
15025         (Cargs): New Boolean global variable
15026         (Process_Buffer): New procedure to create arguments
15027         (Place): Put character in table Buffer or Cargs_Buffer depending on the
15028          value of Cargs.
15029         (Process_Argument): Set Cargs when processing qualifiers for GNAT
15030         COMPILE
15031         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15032         empty, for table Cargs_Buffer.
15033         (Initialize): Remove component Setup in Command_List
15034
15035 2007-04-06  Vincent Celier  <celier@adacore.com>
15036
15037         * gprep.adb (Process_Files.Process_One_File): Use full file name when
15038         issuing pragma Source_Reference.
15039
15040 2007-04-06  Emmanuel Briot  <briot@adacore.com>
15041
15042         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15043         [[:xdigit:]] character class.
15044         Also raise an exception when an invalid character class is used.
15045
15046 2007-04-06  Pascal Obry  <obry@adacore.com>
15047
15048         * i-cstrea.ads: (fopen): Add encoding parameter.
15049         (freopen): Idem.
15050         Change reference from a-sysdep.c to sysdep.c in comment.
15051         Update copyright notice.
15052         This set of patch add support for the encoding form parameter.
15053
15054         * mingw32.h (S2WSU): New macro to convert from a string to a
15055         wide-string using the UTF-8 encoding. The S2WS macro supports now only
15056         standard 8bits encoding.
15057         (WS2SU): As above but converting from wide-sring to string.
15058         This is needed as it is necessary to have access to both versions in the
15059         runtime for the form parameter encoding support.
15060         This set of patch add support for the encoding form parameter.
15061         (S2WS): Improve implementation to handle cases where the filename is not
15062         UTF-8 encoded. In this case we default to using the current code page
15063         for the conversion.
15064
15065         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15066         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15067         the constants defined in adaint.h.
15068         (fopen): Add encoding parameter.
15069         (freopen): Idem.
15070
15071         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15072         encoding. This is needed for the Reset routine (freopen low level-call).
15073
15074         * s-fileio.adb (Open): Decode encoding form parameter and set the
15075         corresponding encoding value into AFCB structure.
15076         (Reset): Pass the encoding value to freopen.
15077         (Close): Move the call to Lock_Task to the beginning of the procedure.
15078
15079 2007-04-06  Geert Bosch  <bosch@adacore.com>
15080             Robert Dewar  <dewar@adacore.com>
15081
15082         * i-fortra.ads: Add Double_Complex type.
15083
15084         * impunit.adb: (Is_Known_Unit): New function
15085         Add Gnat.Byte_Swapping
15086         Add GNAT.SHA1
15087         Add new Ada 2005 units
15088         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15089         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15090         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15091         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15092
15093         * impunit.ads (Is_Known_Unit): New function
15094
15095         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15096         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15097         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15098         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15099         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15100         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15101         New files.
15102
15103         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15104
15105         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15106
15107 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15108             Arnaud Charlet  <charlet@adacore.com>
15109
15110         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15111         __gnat_adjust_context_for_raise.
15112         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15113         implementation of floating point operations as native x86 targets.
15114         So the FPU should be initialized in the same way using finit. Fix
15115         floating point operations accuracy issues.
15116         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15117         member in struct sigaction, so as to avoid warning for incompatible
15118         pointer types.
15119
15120 2007-04-06 Serguei Rybin  <rybin@adacore.com>
15121
15122         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15123         switches from previously loaded tree
15124
15125 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15126
15127         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15128         cases where a given dependency has a body or not.
15129         (Write_With_File_Names): New subprogram, common code for the two cases
15130         above.
15131
15132 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15133             Javier Miranda  <miranda@adacore.com>
15134
15135         * lib-xref.ads, lib-xref.adb: 
15136         Modify the loop that collects type references, to include interface
15137         types that the type implements. List each of these interfaces when
15138         building the entry for the type.
15139         (Generate_Definition): Initialize component Def and Typ of new entry
15140         in table Xrefs, to avoid to have these components unitialized.
15141         (Output_References): Split Is_Abstract flag into
15142         Is_Abstract_Subprogram and Is_Abstract_Type.
15143         (Generate_Reference): Add barrier to do not generate the warning
15144         associated with Ada 2005 entities with entities generated by the
15145         expander.
15146
15147 2007-04-06  Robert Dewar  <dewar@adacore.com>
15148             Arnaud Charlet  <charlet@adacore.com>
15149             Vincent Celier  <celier@adacore.com>
15150
15151         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15152         Update 'Exception Handling Control' chapter which was outdated.
15153         Minor fix to documentation of -gnatwq
15154         Remove section "Adapting the Run Time to a New C++ Compiler" because
15155         it is now obsolete.
15156         Add passage on need of -nostart-files in some non-ada-main cases.
15157         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15158         Update documentation about Interfacing with C++
15159         Add documentation for new gnatmake switch -p
15160         Add missing protocol part in URLs.
15161         Document -gnatyA
15162         Document pragma Compile_Time_Error
15163         Add documentation for Object_Size indicating that stand alone
15164         objects can have a larger size in some cases.
15165         Add node for GNAT.Byte_Swapping, GNAT.SHA1
15166         Update reference to the Ravenscar profile.
15167         Document pragma Unreferenced_Objects
15168
15169         * gnat-style.texi: Fix typo
15170
15171 2007-04-06  Vincent Celier  <celier@adacore.com>
15172
15173         * mlib.adb (Building_Library): Only output "building a library..." in
15174         verbose mode
15175
15176         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15177         files in verbose mode.
15178
15179         * mlib-utl.adb (Ar): Only output the first object files when not in
15180         verbose mode.
15181         (Gcc): Do not display all the object files if not in verbose mode, only
15182         the first one.
15183
15184 2007-04-06  Robert Dewar  <dewar@adacore.com>
15185
15186         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15187         it no longer destroys the contents of Name_Buffer or Name_Len and
15188         non-standard and invalid names are handled better.
15189         (Get_Decoded_Name_String): Improve performance by using
15190         Name_Has_No_Encodings flag in the name table.
15191         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15192         Used for debugging printouts.
15193
15194 2007-04-06  Robert Dewar  <dewar@adacore.com>
15195             Javier Miranda  <miranda@adacore.com>
15196             Bob Duff  <duff@adacore.com>
15197
15198         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15199         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15200         there is no need to generate always a record_definition_node in case
15201         of synchronized interface types.
15202         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15203         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15204         illegal in Ada 95, in cases where it is legal. Change the warnings to
15205         errors in other cases. Don't give the error unless the "not null"
15206         parses properly. Correct the source position at which the error occurs.
15207         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15208         P_Null_Exclusion, to suppress "not null" warnings.
15209         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15210         associated goto statements.
15211
15212         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15213         of END RECORD
15214
15215         * scans.ads (Type_Token_Location): New flag
15216
15217         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15218         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15219         P_Null_Exclusion, to suppress "not null" warnings.
15220
15221 2007-04-06  Robert Dewar  <dewar@adacore.com>
15222             Javier Miranda  <miranda@adacore.com>
15223             Bob Duff  <duff@adacore.com>
15224             Vincent Celier  <celier@adacore.com>
15225
15226         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15227         (Extensions_Allowed): No longer sets Ada_Version
15228         Entry for pragma Unreferenced_Objects
15229
15230         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15231         system.tasking if pragma priority used in a procedure
15232         (Analyze_Pragma, case Warning): Handle dot warning switches
15233         (Process_Compile_Time_Warning_Or_Error): New procedure
15234         (Analyze_Pragma): Add processing for Compile_Time_Error
15235         Add support for extra arguments External_Name and Link_Name.
15236         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15237         (Process_Import_Or_Interface): Add support for the use of pragma Import
15238         with tagged types.
15239         (Extensions_Allowed): No longer affects Ada_Version
15240         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15241         Is_Abstract_Type. Make sure these are called only when appropriate.
15242         Add processing for pragma Unreferenced_Objects
15243
15244         * snames.h, snames.ads, snames.adb: Add entry for pragma
15245         Compile_Time_Error
15246         Add new standard name Minimum_Binder_Options for new gprmake
15247         Add new standard names for gprmake: Archive_Suffix,
15248         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15249         Library_Support, Library_Version_Options,
15250         Shared_Library_Minimum_Options,
15251         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15252         Change Name_Call to Name_uCall so that it cannot clash with a legal
15253         subprogram name.
15254         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15255         Append C_Plus_Plus to convention identifiers as synonym for CPP
15256         Add new standard names Stack and Builder_Switches
15257         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15258         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15259         Run_Path_Option, Toolchain_Version.
15260         Entry for pragma Unreferenced_Objects
15261
15262         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15263         switches, without repetition of "eD". Make sure that last character of
15264         -gnatep= switch is not taken as -gnat switch character.
15265         Complete rewrite of circuit for handling saving compilation options
15266         Occasioned by need to support dot switchs for -gnatw, but cleans up
15267         things in general.
15268         -gnatX does not affect Ada_Version
15269         Include -gnatyA in -gnatg style switches
15270
15271         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15272         warnings on return objects.
15273         (Warn_On_Useless_Assignment): Exclude warnings on return objects
15274         (Set_Dot_Warning_Switch): New procedure
15275         (Check_References): Add missing case of test for
15276         Has_Pragma_Unreferenced_Objects
15277         (Output_Unreferenced_Messages): Implement effect of new pragma
15278         Unreferenced_Objects, remove special casing of limited controlled
15279         variables.
15280
15281 2007-04-06  Vincent Celier  <celier@adacore.com>
15282
15283         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15284         the default project path, initially done during elaboration of the
15285         package.
15286         If the prefix returned by Sdefault is null, get the prefix from a call
15287         to Executable_Prefix_Path.
15288         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
15289         null.
15290
15291         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
15292         canonical directory name to open the directory from which files are
15293         retrieved.
15294         (Record_Other_Sources): Idem.
15295         (Locate_Directory): Add the possibility to create automatically missing
15296         directories when Setup_Projects is True.
15297         Call Locate_Directory so that the directory will be created when
15298         Setup_Projects is True, for object dir, library dir, library ALI dir,
15299         library source copy dir and exec dir.
15300
15301         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
15302         versions of GNAT.
15303
15304 2007-04-06  Robert Dewar  <dewar@adacore.com>
15305
15306         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
15307         Use First/Next_Component_Or_Discriminant
15308         (Analyze_Record_Representation_Clause):
15309         Use First/Next_Component_Or_Discriminant
15310         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
15311         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
15312         definition if type is unconstrained.
15313         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15314         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
15315         Is_Abstract_Subprogram and Is_Abstract_Type.
15316         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15317
15318         * repinfo.adb (List_Record_Info): Use First/
15319         Next_Component_Or_Discriminant.
15320
15321         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
15322         New procedure.
15323
15324         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
15325         Include -gnatyA in default switches
15326
15327         * opt.ads: (Warn_On_Non_Local_Exception): New flag
15328         (Warn_On_Reverse_Bit_Order): New flag
15329         (Extensions_Allowed): Update the documentation.
15330         (Warn_On_Questionable_Missing_Parens): Now on by default
15331
15332         * usage.adb: Add documentation of -gnatw.x/X switches
15333         Document new -gnatyA style switch
15334         -gnatq warnings are on by default
15335
15336 2007-04-06  Ed Falis  <falis@adacore.com>
15337
15338         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
15339         full word is no longer compared twice.
15340
15341 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15342
15343         * sem_ch10.adb (Install_Limited_Context_Clauses.
15344         Expand_Limited_With_Clause): Use a new copy of selector name in the
15345         call to Make_With_Clause. This fixes the tree structure for ASIS
15346         purposes. Nothing is changed in the compiler behaviour.
15347         (Process_Body_Clauses): Handle properly use clauses whose prefix is
15348         a package renaming.
15349         (Install_Limited_With_Clauses): Do not install non-limited view when it
15350         is still incomplete.
15351
15352 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15353             Gary Dismukes  <dismukes@adacore.com>
15354
15355         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
15356         when capturing size information, instead of base type, which for a
15357         formal array type will be the unconstrained type.
15358         (Analyze_Formal_Object_Declaration): Add check for illegal default
15359         expressions for a formal in object of a limited type.
15360         (Instantiate_Object): Ditto.
15361         (Check_Formal_Package_Instance): Skip entities that are formal objects,
15362         because they were defaulted in the formal package and no check applies
15363         to them.
15364         (Check_Formal_Package_Instance): Extend conformance check to other
15365         discrete types beyond Integer.
15366         (Process_Default): Copy directly the unmatched formal. A generic copy
15367         has already been performed in Analyze_Formal_Package.
15368         (Analyze_Associations): If a formal subprogram has no match, check for
15369         partial parametrization before looking for a default, to prevent
15370         spurious errors.
15371         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
15372         not set the instantiation environment before analyzing the actuals.
15373         Fixes regression on 8515-003 with implementation of AI-133.
15374         Set_Instance_Env checks whether the generic unit is a predefined
15375         unit, in which case the instance must be analyzed with the latest Ada
15376         mode. This setting must take place after analysis of the actuals,
15377         because the actuals must be analyzed and frozen in the Ada mode extant
15378         outside of the current instantiation.
15379         (Save_Env, Restore_Env): Preserve and restore the configuration
15380         parameters so that predefined units can be compiled in the proper Ada
15381         mode.
15382         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
15383         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
15384         and Is_Abstract_Type.
15385         (Analyze_Formal_Package): For better error recovery, Add exception
15386         handler to catch Instantion_Error, which can be raised in
15387         Analyze_Associations
15388
15389 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15390             Bob Duff  <duff@adacore.com>
15391             Gary Dismukes  <dismukes@adacore.com>
15392
15393         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
15394         prefix type is a discriminated subtype of the type of the formal.
15395         (Analyze_Allocator): Collect all coextensions regardless of the context.
15396         Whether they can be allocated statically is determined in exp_ch4.
15397         (Analyze_Selected_Component): If the prefix is a limited view and the
15398         non-limited view is available, use the non-limited one.
15399         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
15400         therefore illegal), suggest a qualified expression rather than a type
15401         conversion, because a type conversion would be illegal in this context.
15402         (Anayze_Allocator): Trace recursively all nested allocators so that all
15403         coextensions are on the corresponding list for the root. Do no mark
15404         coextensions if the root allocator is within a declaration for a stack-
15405         allocated object, because the access discriminants will be allocated on
15406         the stack as well.
15407         (Analyze_Call): Remove restriction on calls to limited functions for the
15408         cases of generic actuals for formal objects, defaults for formal objects
15409         and defaults for record components.
15410         (Analyze_Allocator): Before analysis, chain coextensions on the proper
15411         element list. Their expansion is delayed until the enclosing allocator
15412         is processed and its finalization list constructed.
15413         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
15414         for an operation with the given name among the primitive operations of
15415         the corresponding record type.
15416         (Analyze_Selected_Component): If the prefix is a task type that
15417         implements an interface, and there is no entry with the given name,
15418         check whether there is another primitive operation (e.g. a function)
15419         with that name.
15420         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
15421         properly the indexing of a function call written in prefix form, where
15422         the function returns an array type, and all parameters of the function
15423         except the first have defaults.
15424         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
15425         the original operands, rather than relocating them, for efficiency and
15426         to work properly when an operand is overloaded.
15427         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
15428         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
15429         (Analyze_Selected_Component): If the prefix is a private extension, only
15430         scan the visible components, not those of the full view.
15431         (Try_Primitive_Operation): If the operation is a procedure, collect all
15432         possible interpretations, as for a function, because in the presence of
15433         classwide parameters several primitive operations of the type can match
15434         the given arguments.
15435
15436 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15437             Robert Dewar  <dewar@adacore.com>
15438
15439         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
15440         tag-indeterminate call to an abstract function, when the left-hand side
15441         is not classwide.
15442         (Analyze_Loop_Statement): Improve detection of infinite loops
15443
15444 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15445             Thomas Quinot  <quinot@adacore.com>
15446
15447         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
15448         out of Analyze_Package_Declaration, because processing must be applied
15449         to package bodies as well, for deferred constants completed by pragmas.
15450         (Analyze_Package_Declaration): When the package declaration being
15451         analyzed does not require an explicit body, call Check_Completion.
15452         (May_Need_Implicit_Body): An implicit body is required when a package
15453         spec contains the declaration of a remote access-to-classwide type.
15454         (Analyze_Package_Body): If the package contains RACWs, append the
15455         pending subprogram bodies generated by exp_dist at the end of the body.
15456         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
15457         Is_Abstract_Subprogram and Is_Abstract_Type.
15458         (Preserve_Full_Attributes): The full entity list is not an attribute
15459         that must be preserved from full to partial view.
15460
15461         * sem_dist.adb (Add_RAS_Dereference_TSS):
15462         Change primitive name to _Call so it cannot clash with any legal
15463         identifier, and be special-cased in Check_Completion.
15464         Mark the full view of the designated type for the RACW associated with
15465         a RAS as Comes_From_Source to get proper view switching when installing
15466         private declarations.
15467         Provite a placeholder nested package body along with the nested spec
15468         to have a place for Append_RACW_Bodies to generate the calling stubs
15469         and stream attributes.
15470
15471 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15472             Robert Dewar  <dewar@adacore.com>
15473
15474         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
15475         that is a limited view, check the non-limited view if available.
15476         (Undefined): Refine error message for missing with of Text_IO
15477         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
15478         to distinguish real missing with cases.
15479         Fix format of all missing with messages
15480         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
15481         renaming as body when renamed entity is abstract.
15482
15483 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15484             Javier Miranda  <miranda@adacore.com>
15485
15486         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
15487         predicate recursive, to handle complex expressions on literals whose
15488         spurious ambiguity comes from the abstract interpretation of some
15489         subexpression.
15490         (Interface_Present_In_Ancestor): Add support to concurrent record
15491         types.
15492         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
15493         Is_Abstract_Subprogram and Is_Abstract_Type.
15494
15495 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15496             Javier Miranda  <miranda@adacore.com>
15497
15498         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
15499         dereference of a local object R created as a reference to another
15500         object O, use the access level of O.
15501         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
15502         rather than local Same_Formal_Type, to check whether protected operation
15503         overrides an inherited one.
15504         (Same_Formal_Type): New predicate, used when matching signatures of
15505         overriding synchronized operations, to handle the case when a formal
15506         has a type that is a generic actual.
15507         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
15508         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
15509         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
15510         syntactic ambiguities involving indexing of function calls that return
15511         arrays.
15512         (Abstract_Interface_List): New subprogram that returns the list of
15513         abstract interfaces associated with a concurrent type or a
15514         concurrent record type.
15515         (Interface_Present_In_Parent): New subprogram used to check if a
15516         given type or some of its parents implement a given interface.
15517         (Collect_Abstract_Interfaces): Add support for concurrent types
15518         with interface types.
15519         (Has_Abstract_Interfaces): Add support for concurrent types with
15520         interface types.
15521         (Is_Parent): New subprogram that determines whether E1 is a parent
15522         of E2. For a concurrent type its parent is the first element of its
15523         list of interface types; for other types this function provides the
15524         same result than Is_Ancestor.
15525         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
15526         (Collect_Synchronized_Interfaces): Removed because the subprogram
15527         Collect_Abstract_Interfaces provides this functionality.
15528         (Collect_Abstract_Interfaces): Minor update to give support to
15529         concurrent types and thus avoid undesired code duplication.
15530         (Get_Subprogram_Entity): Handle entry calls.
15531         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
15532         entry calls.
15533         (Enter_Name): Do not give -gnatwh hiding warning for record component
15534         entities, they never result in hiding.
15535
15536 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15537             Robert Dewar  <dewar@adacore.com>
15538
15539         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
15540         to chain nested components that are allocators for access discriminants
15541         of the enclosing object.
15542         Add N_Push and N_Pop nodes
15543         New field Exception_Label added
15544         (Local_Raise_Statements): New field in N_Exception_Handler_Node
15545         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
15546         (Is_Coextension): New flag for allocators, to mark allocators that
15547         correspond to access discriminants of dynamically allocated objects.
15548         (N_Block_Statement): Document the fact that the corresponding entity
15549         can be an E_Return_Statement.
15550         (Is_Coextension): New flag for allocators.
15551         Remove all code for DSP option
15552
15553         * sprint.ads, sprint.adb: Display basic information for class_wide
15554         subtypes. Add handling of N_Push and N_Pop nodes
15555
15556 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15557
15558         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
15559         before propagating exception.
15560
15561 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15562
15563         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
15564         an address always within the call instruction from a return address.
15565
15566 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15567             Eric Botcazou  <botcazou@adacore.com>
15568
15569         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
15570         expression with a COMPOUND_EXPR including the call instead of emitting
15571         the call directly here.
15572         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
15573         high bound is constant and the slice is empty.  Tidy.
15574         (tree_transform, case N_Op_Not): Handle properly the case where the
15575         operation applies to a private type whose full view is a modular type.
15576         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
15577         Address_Clause, use the associated Expression as the GNAT tree
15578         representing the choice value to ensure the corresponding GCC tree is
15579         of the proper kind.
15580         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
15581         instead of just the operands, as the base GCC stabilize_reference does.
15582         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
15583         requested; otherwise fail.
15584         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
15585
15586 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15587
15588         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
15589         implementation of UI_Div.
15590         (UI_Div): Reimplement as a call to UI_Div_Rem.
15591         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
15592         remainder, avoiding the cost of a multiplication and a subtraction.
15593         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
15594         provides both quotient and remainder in a single computation.
15595         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
15596         functions for uint.
15597         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
15598         is undefined if the given n is not inversible.
15599
15600 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15601
15602         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
15603         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
15604         opcodes.
15605
15606 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15607             Olivier Hainque  <hainque@adacore.com>
15608
15609         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
15610         when updating the contents of the old pointer to an unconstrained array.
15611         (end_subprog_body): Set error_gnat_node to Empty.
15612         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
15613         (unchecked_convert): For subtype to base type conversions, require that
15614         the source be a subtype if it is an integer type.
15615         (builtin_decls): New global, vector of available builtin functions.
15616         (gnat_pushdecl): Add global builtin function declaration nodes to the
15617         builtin_decls list.
15618         (gnat_install_builtins): Adjust comments.
15619         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
15620         calling gnat_pushdecl, so that it knows when it handed a builtin
15621         function declaration node.
15622         (builtin_decl_for): Search the builtin_decls list.
15623
15624 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15625
15626         * s-stchop-vxworks.adb: 
15627         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
15628
15629 2007-04-06  Robert Dewar  <dewar@adacore.com>
15630             Arnaud Charlet  <charlet@adacore.com>
15631
15632         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
15633
15634         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
15635         of files
15636         Add mention of -Sev (set initialize_scalars option from environment
15637         variable at run time) in gnatbind usage message.
15638
15639         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
15640
15641         * fname-uf.ads: Minor comment fix
15642
15643         * osint.ads: Change pragma Elaborate to Elaborate_All
15644
15645         * par-load.adb: Add documentation.
15646
15647         * sem_cat.ads, sem_cat.adb: Minor code reorganization
15648
15649         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
15650
15651         * s-secsta.ads: Extra comments
15652
15653         * s-soflin.ads: Minor comment fixes
15654
15655         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
15656
15657         * s-wchcon.ads: Minor comment addition
15658
15659         * treepr.adb: Minor change in message
15660         (Print_Name,Print_Node): Make these debug printouts more robust: print
15661         "no such..." instead of crashing on bad input.
15662
15663 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
15664
15665         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
15666         instead of gnat_signed_or_unsigned_type.
15667         * utils.c (gnat_signed_or_unsigned_type): Remove.
15668         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
15669         * gigi.h (gnat_signed_or_unsigned_type): Remove
15670
15671 2007-03-09  Roger Sayle  <roger@eyesopen.com>
15672
15673         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
15674         fold with the result of buildN.
15675         * decl.c (gnat_to_gnu_entity): Likewise.
15676         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
15677         * utils.c (finish_record_type, merge_sizes, max_size, convert):
15678         Likewise.
15679         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
15680         nonbinary_modular_operation, build_binary_op, build_unary_op,
15681         build_cond_expr): Likewise.
15682
15683         * utils.c (convert): Use fold_build1 when casting values to void.
15684         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
15685         fold_convert instead of convert when appropriate.
15686
15687 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
15688
15689         * Make-lang.in: Add install-pdf target as copied from
15690         automake v1.10 rules.
15691
15692 2007-02-28  Andreas Schwab  <schwab@suse.de>
15693
15694         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
15695         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
15696         (doc/gnat-style.info): Likewise.
15697
15698 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
15699
15700         * gnat-style.texi: Standardize title page.
15701         * gnat_rm.texi: Likewise.
15702         * gnat_ugn.texi: Likewise.
15703
15704 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
15705
15706         * decl.c (annotate_value): Adjust for refactoring of tree_map
15707         hierarchy.
15708
15709 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
15710
15711         * decl.c (annotate_value): Adjust for refactoring of tree_map
15712         hierarchy.
15713
15714 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
15715
15716         PR ada/18819
15717         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
15718         untagged derived type, add hidden components to keep discriminant
15719         layout consistent, when a given discriminant of the derived type
15720         constraints several discriminants of the parent type.
15721
15722 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
15723             Sandra Loosemore  <sandra@codesourcery.com>
15724
15725         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
15726         build the call expression.
15727         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
15728         * utils.c (max_size) <tcc_exceptional>: Delete.
15729         <tcc_vl_exp>: New case.
15730         <tcc_expression>: Delete CALL_EXPR subcase.
15731         (build_global_cdtor): Use build_call_nary instead of build3.
15732         * utils2.c (build_call_1_expr): Likewise.
15733         (build_call_2_expr): Likewise.
15734         (build_call_0_expr): Likewise.
15735         (build_call_alloc_dealloc): Likewise.
15736
15737 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15738
15739         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
15740         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
15741         and _Unwind_SWord with _sleb128_t.
15742
15743 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
15744
15745         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
15746         * decl.c: Include gt-ada-decl.h.
15747         (annotate_value_cache): New.
15748         (annotate_value): Use it instead of TREE_COMPLEXITY.
15749
15750 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
15751
15752         * misc.c, utils2.c: Fix comment typos.
15753
15754 2007-01-24  Roger Sayle  <roger@eyesopen.com>
15755
15756         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15757         TREE_CONSTANT_OVERFLOW.
15758         (allocatable_size_p, annotate_value): Likewise.
15759         * trans.c (gnat_to_gnu): Likewise.
15760         * utils.c (unchecked_convert): Likewise.
15761         * utils2.c (build_simple_component_ref): Likewise.
15762
15763 2007-01-23  Richard Guenther  <rguenther@suse.de>
15764
15765         PR bootstrap/30541
15766         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
15767         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
15768         (gnatboot3): Likewise.
15769         (GNATBIND): Do not define.
15770         * Makefile.in (GNATBIND): Do not define.
15771
15772 2007-01-08  Richard Guenther  <rguenther@suse.de>
15773
15774         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
15775         * trans.c (gnat_to_gnu): Likewise.
15776
15777 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
15778
15779         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
15780         * adaint.c: Likewise.
15781
15782 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
15783
15784         Merge from gimple-tuples-branch:
15785         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
15786
15787         * ada-tree.h (lang_tree_node): Handle gimple tuples.
15788         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
15789         GIMPLE_MODIFY_STMT.
15790
15791 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
15792
15793         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
15794         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
15795         Fix typos.
15796
15797 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
15798
15799         PR ada/27936
15800         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
15801         if the initializer takes into account the padding.
15802
15803 2006-11-11  Richard Guenther  <rguenther@suse.de>
15804
15805         * trans.c (maybe_stabilize_reference): Remove handling of
15806         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
15807
15808 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
15809
15810         PR ada/29707
15811         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
15812         (To_Target_Priority): New function.
15813
15814 2006-10-31  Robert Dewar  <dewar@adacore.com>
15815
15816         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
15817         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
15818         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
15819         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
15820         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
15821         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
15822         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
15823         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
15824         a-szbzha.adb: Minor reformatting. Fix header.
15825
15826         * a-numaux-x86.adb: Add parentheses for use of unary minus
15827         * a-ngcefu.adb: Supply missing parentheses for unary minus
15828         * a-ngcoty.adb: Add parens for use of unary minus
15829         * a-ngelfu.adb: Add missing parens for unary minus
15830         * a-tifiio.adb: Add parentheses for uses of unary minus
15831
15832 2006-10-31  Robert Dewar  <dewar@adacore.com>
15833             Bob Duff  <duff@adacore.com>
15834             Ed Schonberg  <schonberg@adacore.com>
15835
15836         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
15837         with multiplying operator.
15838         (Expected_Type_Is_Any_Real): New function to determine from the Parent
15839         pointer whether the context expects "any real type".
15840         (Resolve_Arithmetic_Op): Do not give an error on calls to the
15841         universal_fixed "*" and "/" operators when they are used in a context
15842         that expects any real type. Also set the type of the node to
15843         Universal_Real in this case, because downstream processing requires it
15844         (mainly static expression evaluation).
15845         Reword some continuation messages
15846         Add some \\ sequences to continuation messages
15847         (Resolve_Call): Refine infinite recursion case. The test has been
15848         sharpened to eliminate some false positives.
15849         Check for Current_Task usage now includes entry barrier, and is now a
15850         warning, not an error.
15851         (Resolve): If the call is ambiguous, indicate whether an interpretation
15852         is an inherited operation.
15853         (Check_Aggr): When resolving aggregates, skip associations with a box,
15854         which are priori correct, and will be replaced by an actual default
15855         expression in the course of expansion.
15856         (Resolve_Type_Conversion): Add missing support for conversion from
15857         a class-wide interface to a tagged type. Minor code cleanup.
15858         (Valid_Tagged_Converion): Add support for abstact interface type
15859         conversions.
15860         (Resolve_Selected_Component): Call Generate_Reference here rather than
15861         during analysis, and use May_Be_Lvalue to distinguish read/write.
15862         (Valid_Array_Conversion): New procedure, abstracted from
15863         Valid_Conversion, to incorporate accessibility checks for arrays of
15864         anonymous access types.
15865         (Valid_Conversion): For a conversion to a numeric type occurring in an
15866         instance or inlined body, no need to check that the operand type is
15867         numeric, since this has been checked during analysis of the template.
15868         Remove legacy test for scope name Unchecked_Conversion.
15869
15870         * sem_res.ads: Minor reformatting
15871
15872         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15873         (PE_Current_Task_In_Entry_Body): New exception code
15874         (SE_Restriction_Violation): Removed, not used
15875
15876         * a-except.ads:  Update comments.
15877
15878         * types.h, types.ads: Add definition for Validity_Check
15879         (PE_Current_Task_In_Entry_Body): New exception code
15880         (SE_Restriction_Violation): Removed, not used
15881
15882 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15883
15884         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15885         error status.
15886
15887 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15888             Jose Ruiz  <ruiz@adacore.com>
15889
15890         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15891         part of Ada.Calendar: all subprogram raise Unimplemented.
15892         (Split_W_Offset): Temp function body, raising Unimplemented
15893
15894         * a-calend.ads, a-calend-vms.ads: 
15895         Add imported variable Invalid_TZ_Offset used to designate targets unable
15896         to support time zones.
15897         (Unimplemented): Temporary function raised by the body of new
15898         subprograms below.
15899         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15900         unit provides handling of leap seconds and is used by the new Ada 2005
15901         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15902         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15903         version returns an extra value which is the offset to UTC.
15904
15905         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15906         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15907         (Split_W_Offset): New function body.
15908         (Time_Of): When a date is close to UNIX epoch, compute the time for
15909         that date plus one day (that amount is later substracted after
15910         executing mktime) so there are no problems with time zone adjustments.
15911
15912         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15913
15914         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15915         a-catizo.ads, a-catizo.adb: New files.
15916
15917         * impunit.adb: Add new Ada 2005 entries
15918
15919         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15920         Rename all occurences of "__gnat_localtime_r" to
15921         "__gnat_localtime_tzoff".
15922         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15923         zone data and calculate the GMT offset.
15924         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15925         Use the field "tm_gmtoff" to extract the GMT offset.
15926         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15927         the external variable "timezone" to calculate the GMT offset.
15928
15929 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15930             Jose Ruiz  <ruiz@adacore.com>
15931
15932         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
15933         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
15934         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15935         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15936         System.Any_Priority to a POSIX priority on the target.
15937
15938         * system-linux-ia64.ads: 
15939         Extend range of Priority types on Linux to use the whole range made
15940         available by the system.
15941
15942         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15943         function maps from System.Any_Priority to a POSIX priority on the
15944         target.
15945         (PTHREAD_PRIO_PROTECT): Set real value.
15946         (PTHREAD_PRIO_INHERIT): Now a function.
15947         (SIGCPUFAIL): New signal.
15948         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15949         are documented as reserved by the OS.
15950
15951         * system-aix.ads: Use the full range of priorities provided by the
15952         system on AIX.
15953
15954         * s-taprop-posix.adb: Call new function To_Target_Priority.
15955         (Set_Priority): Take into account Task_Dispatching_Policy and
15956         Priority_Specific_Dispatching pragmas when determining if Round Robin
15957         must be used for scheduling the task.
15958
15959         * system-linux-x86_64.ads, system-linux-x86.ads, 
15960         system-linux-ppc.ads: Extend range of Priority types on Linux to use
15961         the whole range made available by the system.
15962
15963         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
15964         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
15965         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15966         when deallocating the TCB in order to avoid potential references to
15967         deallocated data.
15968         (Set_Priority): Take into account Task_Dispatching_Policy and
15969         Priority_Specific_Dispatching pragmas when determining if Round Robin
15970         or FIFO within priorities must be used for scheduling the task.
15971
15972         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15973         the Thread field (to be used internally by the run-time system) and the
15974         kernel-level task id in the LWP field (to be used by the debugger).
15975         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15976         instance, and propagate the current task options to the spawned task.
15977         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15978         (Initialize): Set Round Robin dispatching when the corresponding pragma
15979         is in effect.
15980
15981 2006-10-31  Robert Dewar  <dewar@adacore.com>
15982
15983         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
15984         system-linux-hppa.ads, system-hpux-ia64.ads, 
15985         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
15986         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
15987         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
15988         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
15989         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
15990         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
15991         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15992         Default_Bit_Order) to kill constant condition warnings for references
15993         to this switch.
15994
15995 2006-10-31  Vincent Celier  <celier@adacore.com>
15996             Eric Botcazou  <ebotcazou@adacore.com>
15997
15998         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15999         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16000         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16001         Ext_To, when building the library file name
16002
16003         * mlib-tgt-vxworks.adb: ditto.
16004         (Get_Target_Suffix): Add support for x86 targets.
16005
16006         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16007
16008         * mlib-tgt-darwin.adb: 
16009         Use Append_To, instead of Ext_To, when building the library file name
16010         (Flat_Namespace): New global variable.
16011         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16012         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16013         (Link_Shared_Libgcc): Delete.
16014         (Build_Dynamic_Library): Adjust for above changes.
16015         Use Opt package.
16016         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16017
16018 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16019
16020         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16021         (Initialize): Add type conversions required by above change.
16022
16023 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16024
16025         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
16026         (getpid): New body for this function that uses the underlying taskIdSelf
16027         function for VxWorks 5 and VxWorks 6 in kernel mode.
16028         (unsigned_int): New type, modular to allow logical bit operations.
16029         (taskOptionsGet): New imported function.
16030
16031         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16032         field to be compliant with the type used by the corresponding operating
16033         system primitive.
16034
16035 2006-10-31  Pascal Obry  <obry@adacore.com>
16036             Eric Botcazou  <ebotcazou@adacore.com>
16037             Vincent Celier  <celier@adacore.com>
16038
16039         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16040         ASCII version of the registry API. This is needed as the GNAT runtime
16041         is now UNICODE by default.
16042         Include version.h.
16043         (get_gcc_version): Do not hardcode the return value.
16044         (__gnat_file_time_name): On Windows properly set the default returned
16045         value to -1 which corresponds to Invalid_Time.
16046         (__gnat_fopen): New routine. A simple wrapper on all plateforms
16047          except on Windows where it does conversion for unicode support.
16048         (__gnat_freopen): Idem.
16049         (__gnat_locate_exec_on_path): If environment variable PATH does not
16050         exist, return a NULL pointer
16051
16052         * adaint.h: (__gnat_fopen): Declare.
16053         (__gnat_freopen): Likewise.
16054
16055         * mingw32.h (_tfreopen): Define this macro here for older MingW
16056         version.
16057         Activate the unicode support on platforms using a MingW runtime
16058         version 3.9 or newer.
16059
16060         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16061         This is needed for proper unicode support on Windows.
16062         (freopen): Idem.
16063
16064 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
16065             Nicolas Setton  <setton@adacore.com>
16066             Olivier Hainque  <hainque@adacore.com>
16067             Gary Dismukes  <dismukes@adacore.com>
16068
16069         * gigi.h: (tree_code_for_record_type): Declare.
16070         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16071         (get_global_renaming_pointers): Rename to
16072         invalidate_global_renaming_pointers.
16073         (static_ctors): Delete.
16074         (static_dtors): Likewise.
16075         (gnat_write_global_declarations): Declare.
16076         (create_var_decl): Adjust descriptive comment to indicate that the
16077         subprogram may return a CONST_DECL node.
16078         (create_true_var_decl): Declare new function, similar to
16079         create_var_decl but forcing the creation of a VAR_DECL node.
16080         (get_global_renaming_pointers): Declare.
16081         (add_global_renaming_pointer): Likewise.
16082
16083         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16084
16085         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16086         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16087         processing.
16088         (gnat_to_gnu_entity): Remove From_With_Type from computation for
16089         imported_p.
16090         <E_Access_Type>: Use the Non_Limited_View as the full view of the
16091         designated type if the pointer comes from a limited_with clause.  Make
16092         incomplete designated type if it is in the main unit and has a freeze
16093         node.
16094         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16095         Underlying_Full_View similarly.  Return earlier if the full view already
16096         has an associated tree.
16097         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16098         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16099         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16100         reference type built for objects with an address clause.
16101         Use create_true_var_decl with const_flag set for
16102         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16103         TREE_READONLY set.
16104         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16105         for Character and Wide_Character types. This info is read by the
16106         dwarf-2 writer, and is needed to be able to use the command "ptype
16107         character" in the debugger.
16108         (gnat_to_gnu_entity): When generating a type representing
16109         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16110         so that debug writers can distinguish it from ordinary integers.
16111         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16112         addition to TREE_READONLY to assert the constantness of variables for
16113         elaboration purposes.
16114         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16115         parameters to call new Einfo function First_Formal_With_Extras.
16116         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16117         protected type with its corresponding discriminant, to obtain a usable
16118         declaration
16119         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16120         for a multiple elaboration of the "equivalent" type.
16121         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16122         into record_global_renaming_pointer.
16123         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16124         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16125         <E_Array_Subtype>: Likewise.
16126         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16127         incomplete subtypes and incomplete subtypes of incomplete types visible
16128         through a limited with clause.
16129         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16130         the base index type for the maximum size of the array only if they are
16131         constant.
16132         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16133         expression into a SAVE_EXPR if stabilization failed.
16134
16135         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16136         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16137         by lower level compilation passes.
16138         (gnat_genericize): New function, lowering a function body to GENERIC.
16139         Turn the type of RESULT_DECL into a real reference type if the decl
16140         has been marked DECL_BY_REFERENCE, and adjust references to the latter
16141         accordingly.
16142         (gnat_genericize_r): New function. Tree walking callback for
16143         gnat_genericize.
16144         (convert_from_reference, is_byref_result): New functions. Helpers for
16145         gnat_genericize_r.
16146         (create_type_decl): Call gnat_pushdecl before calling
16147         rest_of_decl_compilation, to make sure that field TYPE_NAME of
16148         type_decl is properly set before calling the debug information writers.
16149         (write_record_type_debug_info): The heuristics which compute the
16150         alignment of a field in a variant record might not be accurate. Add a
16151         safety test to make sure no alignment is set to a smaller value than
16152         the alignment of the field type.
16153         (make_dummy_type): Use the Non_Limited_View as the underlying type if
16154         the type comes from a limited_with clause. Do not loop on the full view.
16155         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16156         (dummy_node_table): New global variable, moved from decl.c.
16157         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16158         (save_gnu_tree): Use above macros.
16159         (get_gnu_tree): Likewise.
16160         (present_gnu_tree): Likewise.
16161         (init_dummy_type): New function, moved from decl.c. Use above macros.
16162         (make_dummy_type): Likewise.
16163         (tree_code_for_record_type): New function extracted from make_dummy_type
16164         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16165         (static_ctors): Change it to a vector, make static.
16166         (static_dtors): Likewise.
16167         (end_subprog_body): Adjust for above change.
16168         (build_global_cdtor): Moved from trans.c.
16169         (gnat_write_global_declarations): Emit global constructor and
16170         destructor, and call cgraph_optimize before emitting debug info for
16171         global declarations.
16172         (global_decls): New global variable.
16173         (gnat_pushdecl): Store the global declarations in global_decls, for
16174         later use.
16175         (gnat_write_global_declarations): Emit debug information for global
16176          declarations.
16177         (create_var_decl_1): Former create_var_decl, with an extra argument to
16178          state whether the creation of a CONST_DECL is allowed.
16179         (create_var_decl): Behavior unchanged. Now a wrapper around
16180         create_var_decl_1 allowing CONST_DECL creation.
16181         (create_true_var_decl): New function, similar to create_var_decl but
16182         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16183         (create_field_decl): Do not always mark the field as addressable
16184         if its type is an aggregate.
16185         (global_renaming_pointers): New static variable.
16186         (add_global_renaming_pointer): New function.
16187         (get_global_renaming_pointers): Likewise.
16188
16189         * misc.c (gnat_dwarf_name): New function.
16190         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16191         (gnat_post_options): Add comment about structural alias analysis.
16192         (gnat_parse_file): Do not call cgraph_optimize here.
16193         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16194
16195         * trans.c (process_freeze_entity): Don't abort if we already have a
16196         non dummy GCC tree for a Concurrent_Record_Type, as it might
16197         legitimately have been elaborated while processing the associated
16198         Concurrent_Type prior to this explicit freeze node.
16199         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16200         exception handler volatile if it is of variable size.
16201         (process_type): Remove bypass for types coming from a limited_with
16202         clause.
16203         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16204         actual, convert the corresponding gnu_actual to the real destination
16205         type when necessary.
16206         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16207         originally TREE_READONLY but whose elaboration cannot be performed
16208         statically.
16209         Part of fix for F504-021.
16210         (tree_transform, subprogram cases): Change loops on formal parameters to
16211         call new Einfo function First_Formal_With_Extras.
16212         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16213         stemming from type conversion for the lhs.
16214         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16215         number of bits per unit for components of records.
16216         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16217         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16218         with At_End_Proc after the SJLJ EH cleanup.
16219         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16220         compilation unit.
16221         (elaborate_all_entities): Do not retest type_annotate_only.
16222         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16223         result type of an abstract subprogram, which may be an itype associated
16224         with an anonymous access result (related to AI-318-02).
16225         (build_global_cdtor): Move to utils.c.
16226         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16227         this choice is not a null tree nor an integer constant.
16228         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16229         on the body of elaboration routines instead of mark_unvisited.
16230         (add_stmt): Do not mark the tree.
16231         (add_decl_expr): Tweak comment.
16232         (mark_unvisited): Delete.
16233         (unshare_save_expr): New static function.
16234         (call_to_gnu): Issue an error when making a temporary around a
16235         procedure call because of non-addressable actual parameter if the
16236         type of the formal is by_reference.
16237         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16238         after building the elaboration routine.
16239
16240 2006-10-31  Bob Duff  <duff@adacore.com>
16241
16242         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16243         as finalization-started, so we can raise Program_Error on 'new'.
16244
16245         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16246         collection has already started.
16247
16248         * s-finimp.ads (Collection_Finalization_Started): Added new special
16249         flag value for indicating that a collection's finalization has started.
16250
16251         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16252         create a task whose master has already waited for dependent tasks.
16253
16254 2006-10-31  Robert Dewar  <dewar@adacore.com>
16255
16256         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16257
16258         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
16259         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
16260         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
16261         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
16262         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
16263         a-except-2005.ads: Add pragma Preelaborable_Warning
16264
16265 2006-10-31  Robert Dewar  <dewar@adacore.com>
16266             Jose Ruiz  <ruiz@adacore.com>
16267
16268         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16269
16270         * ali.adb (Get_Name): Properly handle scanning of wide character names
16271         encoded with brackets notation.
16272         (Known_ALI_Lines): Add S lines to this list.
16273         (Scan_ALI): Acquire S (priority specific dispatching) lines.
16274         New flag Elaborate_All_Desirable in unit table
16275
16276         * ali.ads (Priority_Specific_Dispatching): Add this range of
16277         identifiers to be used for Priority_Specific_Dispatching table entries.
16278         (ALIs_Record): Add First_Specific_Dispatching and
16279         Last_Specific_Dispatching that point to the first and last entries
16280         respectively in the priority specific dispatching table for this unit.
16281         (Specific_Dispatching): Add this table for storing each S (priority
16282         specific dispatching) line encountered in the input ALI file.
16283         New flag Elaborate_All_Desirable in unit table
16284
16285         * bcheck.adb: (Check_Configuration_Consistency): Add call to
16286         Check_Consistent_Dispatching_Policy.
16287         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
16288         verifying that the use of Priority_Specific_Dispatching,
16289         Task_Dispatching_Policy, and Locking_Policy is consistent across the
16290         partition.
16291
16292         * bindgen.adb: (Public_Version_Warning): function removed.
16293         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
16294         required information from ALI files in order to initialize the table
16295         containing the specific dispatching policy.
16296         (Gen_Adainit_Ada): Generate the variables required for priority specific
16297         dispatching entries (__gl_priority_specific_dispatching and
16298         __gl_num_specific_dispatching).
16299         (Gen_Adainit_C): Generate the variables required for priority specific
16300         dispatching entries (__gl_priority_specific_dispatching and
16301         __gl_num_specific_dispatching).
16302         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
16303         pragma entries.
16304         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
16305         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
16306         (Tab_To): Removed.
16307         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
16308         a call to gnat_set_globals.
16309         Generate a string containing settings from
16310         Priority_Specific_Dispatching pragma entries.
16311         (Gen_Object_Files_Options): Do not include the runtime libraries when
16312         pragma No_Run_Time is specified.
16313
16314         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
16315         consistency with s-intman-posix.adb.
16316         (__gnat_error_handler, case FreeBSD): Account for the fact that the
16317         handler is installed with SA_SIGINFO.
16318         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
16319         FreeBSD ZCX support, copied from Linux version.
16320         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
16321         sigfillset, and sigemptyset so the routines defined by MaRTE.
16322         (__gl_priority_specific_dispatching): Add this variable that stores the
16323         string containing priority specific dispatching policies in the
16324         partition.
16325         (__gl_num_specific_dispatching): Add this variable that indicates the
16326         highest priority for which a priority specific dispatching pragma
16327         applies.
16328         (__gnat_get_specific_dispatching): Add this routine that returns the
16329         priority specific dispatching policy, as set by a
16330         Priority_Specific_Dispatching pragma appearing anywhere in the current
16331         partition. The input argument is the priority number, and the result
16332         is the upper case first character of the policy name.
16333         (__gnat_set_globals): Now a dummy function.
16334         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
16335         mechargs instead of sigargs, as the latter can be retrieved from the
16336         former and sigargs is not what we want on ia64.
16337         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
16338         mechargs argument.
16339         (__gnat_adjust_context_for_raise, ia64-vms): New function.
16340         (tasking_error): Remove unused symbol.
16341         (_abort_signal): Move this symbol to the IRIX specific part since this
16342         is the only target that uses this definition.
16343         (Check_Abort_Status): Move this symbol to the IRIX specific part since
16344         this is the only target that uses this definition.
16345         (Lock_Task): Remove unused symbol.
16346         (Unlock_Task): Remove unused symbol.
16347
16348         * lib-writ.adb (Write_ALI): Output new S lines for
16349         Priority_Specific_Dispatching pragmas.
16350         Implement new flag BD for elaborate body desirable
16351
16352         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
16353         (Specific_Dispatching): Add this table for storing the entries
16354         corresponding to Priority_Specific_Dispatching pragmas.
16355         Document new BD flag for elaborate body desirable
16356
16357         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
16358         of known pragmas.
16359
16360 2006-10-31  Javier Miranda  <miranda@adacore.com>
16361
16362         * a-tags.ads, a-tags.adb: 
16363         (Predefined_DT): New function that improves readability of the code.
16364         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
16365         Inherit_DT): Use the new function Predefined_DT to improve code
16366         readability.
16367         (Register_Interface_Tag): Update assertion.
16368         (Set_Interface_Table): Update assertion.
16369         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
16370         determining progenitor interfaces in Tags.
16371         (Inherit_CPP_DT): New subprogram.
16372
16373         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
16374         analysis of the thunk code.
16375         (Expand_Interface_Conversion): Handle run-time conversion of
16376         access to class wide types.
16377         (Expand_Dispatching_Call): When generating the profile for the
16378         subprogram itype for a dispatching operation, properly terminate the
16379         formal parameters chaind list (set the Next_Entity of the last formal
16380         to Empty).
16381         (Collect_All_Interfaces): Removed. This routine has been moved to
16382         sem_util and renamed as Collect_All_Abstract_Interfaces.
16383         (Set_All_DT_Position): Hidden entities associated with abstract
16384         interface primitives are not taken into account in the check for
16385         3.9.3(10); this check is done with the aliased entity.
16386         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
16387         interfacing with CPP by default.
16388         (Expand_Interface_Conversion): Add missing support for static conversion
16389         from an interface to a tagged type.
16390         (Collect_All_Interfaces): Add new out formal containing the list of
16391         abstract interface types to cleanup the subprogram Make_DT.
16392         (Make_DT): Update the code to generate the table of interfaces in case
16393         of abstract interface types.
16394         (Is_Predefined_Dispatching_Alias): New function that returns true if
16395         a primitive is not a predefined dispatching primitive but it is an
16396         alias of a predefined dispatching primitive.
16397         (Make_DT): If the ancestor of the type is a CPP_Class and we are
16398         compiling under full ABI compatibility mode we avoid the generation of
16399         calls to run-time services that fill the dispatch tables because under
16400         this mode we currently inherit the dispatch tables in the IP subprogram.
16401         (Write_DT): Emit an "is null" indication for a null procedure primitive.
16402         (Expand_Interface_Conversion): Use an address as the type of the formal
16403         of the internally built function that handles the case in which the
16404         target type is an access type.
16405
16406 2006-10-31  Robert Dewar  <dewar@adacore.com>
16407
16408         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
16409
16410 2006-10-31  Robert Dewar  <dewar@adacore.com>
16411
16412         * bindusg.ads, bindusg.adb:
16413         Change to package and rename procedure as Display, which
16414         now ensures that it only outputs usage information once.
16415
16416 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16417
16418         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
16419         using RTPs.
16420
16421         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
16422         when using RTPs.
16423
16424 2006-10-31  Robert Dewar  <dewar@adacore.com>
16425             Ed Schonberg  <schonberg@adacore.com>
16426
16427         * treepr.adb: Use new subtype N_Membership_Test
16428
16429         * checks.ads, checks.adb: Add definition for Validity_Check
16430         (Range_Or_Validity_Checks_Suppressed): New function
16431         (Ensure_Valid): Test Validity_Check suppressed
16432         (Insert_Valid_Check): Test Validity_Check suppressed
16433         (Insert_Valid_Check): Preserve Do_Range_Check flag
16434         (Validity_Check_Range): New procedure
16435         (Expr_Known_Valid): Result of membership test is always valid
16436         (Selected_Range_Checks): Range checks cannot be applied to discriminants
16437         by themselves. Disabling those checks must also be done for task types,
16438         where discriminants may be used for the bounds of entry families.
16439         (Apply_Address_Clause_Check): Remove side-effects if address expression
16440         is non-static and is not the name of a declared constant.
16441         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
16442         Code cleanup and new error messages.
16443         (Enable_Range_Check): Test for some cases of suppressed checks
16444         (Generate_Index_Checks): Suppress index checks if index checks are
16445         suppressed for array object or array type.
16446         (Apply_Selected_Length_Checks): Give warning for compile-time detected
16447         length check failure, even if checks are off.
16448         (Ensure_Valid): Do not generate a check on an indexed component whose
16449         prefix is a packed boolean array.
16450         * checks.adb: (Alignment_Checks_Suppressed): New function
16451         (Apply_Address_Clause_Check): New procedure, this is a completely
16452         rewritten replacement for Apply_Alignment_Check
16453         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
16454         we request a discriminal value only in case of discriminants.
16455         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
16456         assignments where the target subtype is unconstrained and the target
16457         object is a parameter or dereference (other aliased cases are known
16458         to be unconstrained).
16459
16460 2006-10-31  Robert Dewar  <dewar@adacore.com>
16461
16462         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
16463         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
16464         vms_conv.adb: Fix bad table increment values (much too small)
16465
16466         * table.adb (Realloc): Make sure we get at least some new elements
16467         Defends against silly small values for table increment
16468
16469 2006-10-31  Robert Dewar  <dewar@adacore.com>
16470             Ed Schonberg  <schonberg@adacore.com>
16471             Bob Duff  <duff@adacore.com>
16472
16473         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
16474         entities. Move other fields around to make this possible
16475         (Is_Derived_Type): Add missing call to Is_Type.
16476         (Extra_Formals): New function for subprograms, entries, subprogram
16477         types.
16478         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
16479         (First_Formal_With_Extras): New function for subprogs, entries, subp
16480         types.
16481         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
16482         Add node information for E_Return_Statement.
16483         (Elaborate_Body_Desirable): New flag
16484         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
16485         to be Is_Inherently_Limited_Type, because return-by-reference has
16486         no meaning in Ada 2005.
16487         (E_Return_Statement): New entity kind.
16488         (Return_Applies_To): Field of E_Return_Statement.
16489         (Is_Return_Object): New flag in object entities.
16490         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
16491         (Must_Have_Preelab_Init): New flag
16492         (Known_To_Have_Preelab_Init): New flag
16493         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
16494         (Is_Visible_Formal): New flag on entities in formal packages.
16495         (Low_Bound_Known): New flag
16496         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
16497         Incomplete_Kind.
16498         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
16499         output when Id is an incomplete subtype.
16500
16501 2006-10-31  Robert Dewar  <dewar@adacore.com>
16502
16503         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
16504         Avoid abbreviation Creat
16505         (Finalize): List all sources in extended mail source if -gnatl
16506         switch is active.
16507         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
16508         (Finalize): Implement new -gnatl=xxx switch to output listing to file
16509         (Set_Specific_Warning_On): New procedure
16510         (Set_Specific_Warning_Off): New procedure
16511         Add implementation of new insertion \\
16512         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
16513         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
16514         types.
16515         (Error_Msg_Internal): Make sure that we set Last_Killed to
16516         True when a message from another package is suppressed.
16517         Implement insertion character ~ (insert string)
16518         (First_Node): Minor adjustments to get better placement.
16519
16520         * frontend.adb: 
16521         Implement new -gnatl=xxx switch to output listing to file
16522
16523         * gnat1drv.adb: 
16524         Implement new -gnatl=xxx switch to output listing to file
16525
16526         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
16527         (Commands_To_Stdout): New flag
16528         Implement new -gnatl=xxx switch to output listing to file
16529         New switch Dump_Source_Text
16530         (Warn_On_Deleted_Code): New warning flag for -gnatwt
16531         Define Error_Msg_Line_Length
16532         (Warn_On_Assumed_Low_Bound): New switch
16533
16534         * osint.ads, osint.adb
16535         (Normalize_Directory_Name): Fix bug.
16536         Implement new -gnatl=xxx switch to output listing to file
16537         (Concat): Removed, replaced by real concatenation
16538         Make use of concatenation now allowed in compiler
16539         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
16540         we find the 'lib' or 'bin' directory even when the tool has been
16541         invoked with a relative path.
16542         (Executable_Name): New function taking string parameters.
16543
16544         * osint-c.ads, osint-c.adb: 
16545         Implement new -gnatl=xxx switch to output listing to file
16546
16547         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
16548
16549         * switch-c.adb: 
16550         Implement new -gnatl=xxx switch to output listing to file
16551         Recognize new -gnatL switch
16552         (no longer keep in old warning about old style usage)
16553         Use concatenation to simplify code
16554         Recognize -gnatjnn switch
16555         (Scan_Front_End_Switches): Clean up handling of -gnatW
16556         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
16557
16558 2006-10-31  Robert Dewar  <dewar@adacore.com>
16559
16560         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
16561         (Set_Specific_Warning_Off): New procedure
16562         (Warning_Specifically_Suppressed): New function
16563         (Validate_Specific_Warnings): New procedure
16564         (Output_Msg_Text): Complete rewrite to support -gnatjnn
16565
16566         * err_vars.ads: Implement insertion character ~ (insert string)
16567
16568 2006-10-31  Bob Duff  <duff@adacore.com>
16569             Ed Schonberg  <schonberg@adacore.com>
16570
16571         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
16572         the parent part is a build-in-place function call, generate assignments.
16573         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
16574         are build-in-place function calls.
16575         (Replace_Self_Reference): New subsidiary of
16576         Make_OK_Assignment_Statement, to replace an access attribute that is a
16577         self-reference into an access to the appropriate component of the
16578         target object. Generalizes previous mechanism to handle self-references
16579         nested at any level.
16580         (Is_Self_Referential_Init): Remove, not needed.
16581         (Is_Self_Referential_Init): New predicate to simplify handling of self
16582         referential components in record aggregates.
16583         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
16584         check for presence of entity before checking for self-reference.
16585         (Has_Default_Init_Comps): Return True if a component association is a
16586         self-reference to the enclosing type, which can only come from a
16587         default initialization.
16588         (Make_OK_Assignment_Statement): If the expression is of the form
16589         Typ'Acc, where Acc is an access attribute, the expression comes from a
16590         default initialized self-referential component.
16591         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
16592         that has been derived from several abstract interfaces we must also
16593         initialize the tags of the secondary dispatch tables.
16594
16595 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16596             Thomas Quinot  <quinot@adacore.com>
16597             Javier Miranda  <miranda@adacore.com>
16598             Robert Dewar  <dewar@adacore.com>
16599
16600         * exp_attr.adb: 
16601         (Expand_Access_To_Protected_Op): If the context indicates that an access
16602         to a local operation may be transfered outside of the object, create an
16603         access to the wrapper operation that must be used in an external call.
16604         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
16605         target, pass the Valid attribute applied to a floating-point prefix on
16606         to the back end without expansion.
16607         (Storage_Size): Use the new run-time function Storage_Size to retrieve
16608         the allocated storage when it is specified by a per-object expression.
16609         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
16610         Nothing to do here, the attribute has been rewritten during semantic
16611         analysis.
16612         (Expand_Attribute_Reference): Handle expansion of the new Priority
16613         attribute
16614         (Find_Fat_Info): Handle case of universal real
16615         (Expand_Access_To_Protected_Op): Fix use of access to protected
16616         subprogram from inside the body of a protected entry.
16617         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
16618         'Access and 'Unrestricted_Access, to transform the attribute reference
16619         into a fat pointer.
16620         (Is_Constrained_Aliased_View): New predicate to help determine whether a
16621         subcomponent's enclosing variable is aliased with a constrained subtype.
16622         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
16623         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
16624         an aliased prefix must be known to be constrained in order to use True
16625         for the attribute value, and now it's possible for some aliased views
16626         to be unconstrained.
16627
16628 2006-10-31  Robert Dewar  <dewar@adacore.com>
16629
16630         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
16631         (Expand_Entity_Reference): Correct error of not handling subprogram
16632         formals in current_value processing.
16633
16634 2006-10-31  Javier Miranda  <miranda@adacore.com>
16635             Robert Dewar  <dewar@adacore.com>
16636             Ed Schonberg  <schonberg@adacore.com>
16637             Gary Dismukes  <dismukes@adacore.com>
16638
16639         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
16640         register in the final list objects containing class-wide interfaces;
16641         otherwise we incorrectly register the tag of the interface in the final
16642         list.
16643         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
16644         generate the wrapper if the parent primitive is abstract. This is
16645         required to report the correct error message.
16646         (Expand_N_Subtype_Indication): Do validity checks on range
16647         (Clean_Task_Names): If an initialization procedure includes a call to
16648         initialize a task (sub)component, indicate that the procedure will use
16649         the secondary stack.
16650         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
16651         compatibility for interfacing with CPP by default.
16652         (Expand_N_Object_Declaration): Only build an Adjust call when the
16653         object's type is a nonlimited controlled type.
16654         * exp_ch3.adb: Add with and use of Exp_Ch6.
16655         (Expand_N_Object_Declaration): Check for object initialization that is a
16656         call to build-in-place function and apply Make_Build_In_Place_Call_In_
16657         Object_Declaration to the call.
16658         (Freeze_Type): When the designated type of an RACW was not frozen at the
16659         point where the RACW was declared, validate the primitive operations
16660         with respect to E.2.2(14) when it finally is frozen.
16661         (Build_Initialization_Call,Expand_Record_Controller): Rename
16662         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
16663         return-by-reference has no meaning in Ada 2005.
16664         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
16665         to register tag of the immediate ancestor interfaces in the
16666         run-time structure.
16667         (Init_Secondary_Tags): Moved to the specification to allow the
16668         initialization of extension aggregates with abstract interfaces.
16669         (Build_Master_Renaming): Make public, for use by function declarations
16670         whose return type is an anonymous access type.
16671         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
16672         Insert_List_Before_And_Analyze after the generation of the specs
16673         associated with null procedures.
16674         (Expand_Tagged_Root): Update documentation in its specification.
16675         (Init_Secondary_Tags): Update documentation.
16676         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
16677         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
16678         then generate code to inherit the contents of the dispatch table
16679         directly from the ancestor.
16680         (Expand_Record_Controller): Insert controller component after tags of
16681         implemented interfaces.
16682         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
16683         create null procedure overridings when null procedures are inherited
16684         from interfaces.
16685         (Make_Null_Procedure_Specs): New procedure to generate null procedure
16686         declarations for overriding null primitives inherited from interfaces.
16687         (Is_Null_Interface_Procedure): New function in
16688         Make_Null_Procedure_Specs.
16689         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
16690         immediate ancestor of a tagged type is an abstract interface type we
16691         must generate the specification of the predefined primitives associated
16692         with controlled types (because the dispatch table of the ancestor is
16693         null and hence these entries cannot be inherited). This is required to
16694         elaborate well the dispatch table.
16695
16696 2006-10-31  Javier Miranda  <miranda@adacore.com>
16697             Ed Schonberg  <schonberg@adacore.com>
16698             Bob Duff  <duff@adacore.com>
16699             Gary Dismukes  <dismukes@adacore.com>
16700             Robert Dewar  <dewar@adacore.com>
16701
16702         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
16703         conversion.
16704         (Expand_N_In): Do validity checks on range
16705         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
16706         (Expand_N_Allocator): For "new T", if the object is constrained by
16707         discriminant defaults, allocate the right amount of memory, rather than
16708         the maximum for type T.
16709         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
16710         when the allocator is initialized by a build-in-place call, since the
16711         allocator is already rewritten as a reference to the function result,
16712         and this prevents an unwanted duplication of the function call.
16713         Add with and use of Exp_Ch6.
16714         (Expand_Allocator_Expresssion): Check for an allocator whose expression
16715         is a call to build-in-place function and apply
16716         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
16717         untagged designated types).
16718         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
16719         optimization if source or target is biased.
16720         (Expand_N_Allocator): Add comments for case of an allocator within a
16721         function that returns an anonymous access type designating tasks.
16722         (Expand_N_Allocator): apply discriminant checks for access
16723         discriminants of anonymous access types (AI-402, AI-416)
16724
16725 2006-10-31  Bob Duff  <duff@adacore.com>
16726             Robert Dewar  <dewar@adacore.com>
16727             Gary Dismukes  <dismukes@adacore.com>
16728             Ed Schonberg  <schonberg@adacore.com>
16729
16730         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
16731
16732         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
16733         (Expand_N_Assignment_Statement): Call
16734         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
16735         build-in-place function call. Currently, this can happen only for
16736         assignments that come from aggregates.
16737         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16738         in order to alleviate the upward compatibility introduced by AI-318.
16739         (Expand_N_Extended_Return_Statement): Add support for handling the
16740         return object as a build-in-place result.
16741         (Expand_Non_Function_Return): Implement simple return statements nested
16742         within an extended return.
16743         (Enable_New_Return_Processing): Turn on the new processing of return
16744         statements.
16745         (Expand_Non_Function_Return): For a return within an extended return,
16746         don't raise Program_Error, because Sem_Ch6 now gives a warning.
16747         (Expand_N_Extended_Return_Statement): Implement AI-318
16748         (Expand_Simple_Function_Return): Ditto.
16749         (Expand_N_If_Statement): Handle new -gnatwt warning
16750         (Expand_N_Case_Statement): Handle new -gnatwt warning
16751         (Expand_N_Assignment): Handle assignment to the Priority attribute of
16752         a protected object.
16753         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
16754         validity checking of assignments to elementary record components.
16755         (Expand_N_Return_Statement): return Class Wide types on the secondary
16756         stack independantly of their controlled status since with HIE runtimes,
16757         class wide types are not potentially controlled anymore.
16758
16759         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
16760         node kind.
16761
16762         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
16763         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
16764         it expects a block, procedure, or task. The return statement will get
16765         turned into a block, and Expand_Cleanup_Actions will happen then.
16766
16767 2006-10-31  Robert Dewar  <dewar@adacore.com>
16768             Ed Schonberg  <schonberg@adacore.com>
16769             Bob Duff  <duff@adacore.com>
16770             Gary Dismukes  <dismukes@adacore.com>
16771
16772         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
16773         capability.
16774         (Expand_Inlined_Call): Tagged types are by-reference types, and
16775         therefore should be replaced by a renaming declaration in the expanded
16776         body, as is done for limited types.
16777         (Expand_Call): If this is a call to a function with dispatching access
16778         result, propagate tag from context.
16779         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
16780         CPP by default.
16781         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
16782         build-in-place when the right-hand side of an assignment is a
16783         build-in-place function call.
16784         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
16785         of the explicit dereference of the allocator to the result subtype of
16786         the build-in-place function. This is needed to satisfy type checking
16787         in cases where the caller's return object is created by an allocator for
16788         a class-wide access type and the type named in the allocator is a
16789         specific type.
16790         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
16791         conversion of the reference to the declared object to the result subtype
16792         of the build-in-place function. This is needed to satisfy type checking
16793         in cases where the declared object has a class-wide type. Also, in the
16794         class-wide case, change the type of the object entity to the specific
16795         result subtype of the function, to avoid passing a class-wide object
16796         without explicit initialization to the back end.
16797         (Register_Interface_DT_Entry): Moved outside the body of
16798         Freeze_Subprogram because this routine is now public; it is called from
16799         Check_Dispatching_Overriding to handle late overriding of abstract
16800         interface primitives.
16801         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
16802         adding an implicit access actual on a call to a build-in-place function.
16803         (Expand_Actuals): Test for an actual parameter that is a call to a
16804         build-in-place function and apply
16805         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
16806         (Is_Build_In_Place_Function): New function to determine whether an
16807         entity is a function whose calls should be handled as build-in-place.
16808         (Is_Build_In_Place_Function_Call): New function to determine whether an
16809         expression is a function call that should handled as build-in-place.
16810         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
16811         calls to build-in-place functions as the initialization of an allocator.
16812         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
16813         handling calls to build-in-place functions in contexts that do not
16814         involve init of a separate object (for example, actuals of subprogram
16815         calls).
16816         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
16817         handling calls to build-in-place functions as the initialization of an
16818         object declaration.
16819         (Detect_Infinite_Recursion): Add explicit parameter Process to
16820         instantiation of Traverse_Body to avoid unreferenced warning.
16821         (Check_Overriding_Inherited_Interfaces): Removed.
16822         (Register_Interface_DT_Entry): Code cleanup.
16823         (Register_Predefined_DT_Entry): Code cleanup.
16824         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
16825         inlined statements if within a transient scope.
16826         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
16827         formal parameters with occurrences of actuals in inlined body, establish
16828         visibility on the proper view of the actual's subtype for the body's
16829         context.
16830         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
16831         compatibility mode and we have an imported CPP subprogram because
16832         for now we assume that imported CPP primitives correspond with
16833         objects whose constructor is in the CPP side (and therefore we
16834         don't need to generate code to register them in the dispatch table).
16835         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
16836         aligned selected component.
16837         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
16838         the actual of an in-mode parameter is a type conversion.
16839         (Expand_Actuals): If the call does not come from source and the actual
16840         is potentially misaligned, let gigi handle it rather than rejecting the
16841         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
16842         Class Wide types as returning by reference independantly of their
16843         controlled status since with HIE runtimes class wide types are not
16844         potentially controlled anymore.
16845
16846 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16847
16848         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
16849         references that are private components of the protected object.
16850         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16851         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16852         instantiation to deal with warnings.
16853         (Initialize_Protection): If expression for priority is non-static, use
16854         System_Priority as its expected type, in case the expression has not
16855         been analyzed yet.
16856
16857 2006-10-31  Robert Dewar  <dewar@adacore.com>
16858
16859         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16860         initialization of Homonym_Len.
16861         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16862         names from fully qualified name. Fixes problem of duplicate
16863         external names differing only in the presence of such a block name.
16864
16865 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16866             Pablo Oliveira  <oliveira@adacore.com>
16867
16868         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
16869         subprogram Ids, even if they are not yet assigned.
16870         (Build_Subprogram_Id): It is now this function that will take care of
16871         calling Assign_Subprogram_Ids if necessary.
16872         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16873         should be done only once they are assigned.
16874         (Build_From_Any_Function, case of tagged types): Add missing call to
16875         Allocate_Buffer.
16876         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16877         type for an RACW type.
16878         (Add_RACW_Features): When processing an RACW declaration for which the
16879         designated type is already frozen, enforce E.2.2(14) rules immediately.
16880         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16881         special reordering of controlling formals.
16882
16883         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16884         associated stub type for an RACW type.
16885
16886 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16887
16888         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16889         fixed-point operations in an integer context, i.e. as operands of a
16890         conversion to an integer type, indicate that result must be rounded.
16891
16892 2006-10-31  Robert Dewar  <dewar@adacore.com>
16893
16894         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16895         cases, pass the encoding method, since it is now required by the run
16896         time.
16897
16898         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16899         assumption that Str'First = 1.
16900         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16901         it on to the Value_Wide_Wide_Character call.
16902         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16903         properly handles a string of the form quote-encoded_wide_char-quote.
16904
16905         * s-wchcnv.adb: Minor reformatting
16906
16907 2006-10-31  Javier Miranda  <miranda@adacore.com>
16908
16909         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16910         run-time membership test to ensure that the constructed object
16911         implements the target abstract interface.
16912
16913 2006-10-31  Robert Dewar  <dewar@adacore.com>
16914
16915         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16916         Machine_Attribute pragma internally to implement the user pragma.
16917         Add processing for pragma Interface so that it is now completely
16918         equivalent to pragma Import.
16919
16920         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16921         so that it can be applied to all entities, including record components
16922         and enumeration literals.
16923         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16924         priority ranges are correct, verify compatibility against task
16925         dispatching and locking policies, and if everything is correct an entry
16926         is added to the table containing priority specific dispatching entries
16927         for this compilation unit.
16928         (Delay_Config_Pragma_Analyze): Delay processing
16929         Priority_Specific_Dispatching pragmas because when processing the
16930         pragma we need to access run-time data, such as the range of
16931         System.Any_Priority.
16932         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16933         Allow pragma Unreferenced as a context item
16934         Add pragma Preelaborable_Initialization
16935         (Analyze_Pragma, case Interface): Interface is extended so that it is
16936         now syntactically and semantically equivalent to Import.
16937         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16938         insertion characters.
16939         Add handling for Pragma_Wide_Character_Encoding
16940         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16941         never supercedes a real restriction, and that a real restriction
16942         always supercedes a warning.
16943         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16944         appropriate form.
16945
16946 2006-10-31  Bob Duff  <duff@adacore.com>
16947             Ed Schonberg  <schonberg@adacore.com>
16948             Robert Dewar  <dewar@adacore.com>
16949
16950         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16951         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16952         Is_Inherently_Limited_Type, because return-by-reference has no meaning
16953         in Ada 2005.
16954         (Find_Node_To_Be_Wrapped): Use new method of determining the result
16955         type of the function containing a return statement, because the
16956         Return_Type field was removed. We now use the Return_Applies_To field.
16957
16958         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
16959         (Build_Task_Image_Decl): If procedure is not called from an
16960         initialization procedure, indicate that function that builds task name
16961         uses the sec. stack. Otherwise the enclosing initialization procedure
16962         will carry the indication.
16963         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16964         N_Object_Declaration instead.
16965         (Kill_Dead_Code): New interface to implement -gnatwt warning for
16966         conditional dead code killed, and change implementation accordingly.
16967         (Insert_Actions): Add N_Return_Object_Declaration case.
16968         Correct comment to mention N_Extension_Aggregate node.
16969         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16970         attempts to save information for global variables which cannot be
16971         safely tracked.
16972         (Get_Current_Value_Condition): Handle conditions the other way round
16973         (constant on left). Also handle right operand of AND and AND THEN
16974         (Set_Current_Value_Condition): Corresponding changes
16975         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16976         (Get_Current_Value_Condition): Handle simple boolean operands
16977         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16978         (Get_Current_Value_Condition): If the variable reference is within an
16979         if-statement, does not appear in the list of then_statments, and does
16980         not come from source, treat it as being at unknown location.
16981         (Get_Current_Value_Condition): Enhance to allow while statements to be
16982         processed as well as if statements.
16983         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16984         come from source.
16985         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16986         of loop. This is safe now that we fixed Kill_Current_Values.
16987         (OK_To_Do_Constant_Replacement): Check whether current scope is
16988         Standard, before examining outer scopes.
16989
16990 2006-10-31  Vincent Celier  <celier@adacore.com>
16991
16992         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16993         When True, apply VMS treatment to children of packages A, G, I and S.
16994         For F320-016
16995
16996         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16997
16998 2006-10-31  Robert Dewar  <dewar@adacore.com>
16999             Ed Schonberg  <schonberg@adacore.com>
17000
17001         * freeze.adb: Add handling of Last_Assignment field
17002         (Warn_Overlay): Supply missing continuation marks in error msgs
17003         (Freeze_Entity): Add check for Preelaborable_Initialization
17004
17005         * g-comlin.adb: Add Warnings (Off) to prevent new warning
17006
17007         * g-expect.adb: Add Warnings (Off) to prevent new warning
17008
17009         * lib-xref.adb: Add handling of Last_Assignment field
17010         (Generate_Reference): Centralize handling of pragma Obsolescent here
17011         (Generate_Reference): Accept an implicit reference generated for a
17012         default in an instance.
17013         (Generate_Reference): Accept a reference for a node that is not in the
17014         main unit, if it is the generic body corresponding to an subprogram
17015         instantiation.
17016
17017         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17018
17019         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17020         -gnatwq/Q.
17021         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17022         exception handler.
17023         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17024         use clauses, to avoid messages on packages used to qualify, and also
17025         to avoid messages from obsolescent units.
17026         (Warn_On_Useless_Assignments): Don't generate messages for imported
17027         and exported variables.
17028         (Warn_On_Useless_Assignments): New procedure
17029         (Output_Obsolescent_Entity_Warnings): New procedure
17030         (Check_Code_Statement): New procedure
17031
17032         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17033         Change name Is_Ada_2005 to Is_Ada_2005_Only
17034         (Last_Assignment): New field for useless assignment warning
17035
17036 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17037
17038         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17039         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17040
17041 2006-10-31  Bob Duff  <duff@adacore.com>
17042             Robert Dewar  <dewar@adacore.com>
17043             Ed Schonberg  <schonberg@adacore.com>
17044
17045         * g-awk.adb (Default_Session, Current_Session): Compile this file in
17046         Ada 95 mode, because it violates the new rules for AI-318.
17047
17048         * g-awk.ads: Use overloaded subprograms in every case where we used to
17049         have a default of Current_Session. This makes the code closer to be
17050         correct for both Ada 95 and 2005.
17051
17052         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17053         code, relying on the fact that the compiler generates a warning
17054         instead of an error in -gnatg mode.
17055
17056         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17057         E_Return_Statement entity kind.
17058         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17059
17060         * par.adb (P_Interface_Type_Definition): Addition of one formal to
17061         report an error if the reserved word abstract has been previously found.
17062         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17063
17064         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17065         parenthesized range attribute usage
17066         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17067
17068         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17069         in the syntax for extended_return_statement. This is not in the latest
17070         RM, but the ARG is expected to issue an AI allowing this.
17071         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17072         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17073         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17074         P_Return_Statement): Parse the new syntax for extended_return_statement.
17075
17076         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17077         Output_End_Missing): Add error-recovery code for the new
17078         extended_return_statement syntax; that is, the new E_Return entry on
17079         the scope stack.
17080
17081         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17082         limited to nonlimited, because otherwise we violate the new Ada 2005
17083         rules about returning limited types in function Create_AST_Handler in
17084         s-asthan.adb.
17085
17086         * sem.adb (Analyze): Add cases for new node kinds
17087         N_Extended_Return_Statement and N_Return_Object_Declaration.
17088
17089         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17090         type is in the same category as type of context before applying check,
17091         to prevent anomalies in instantiations.
17092         (Resolve_Aggregate): Remove test for limited components in aggregates.
17093         It's unnecessary in Ada 95, because if it has limited components, then
17094         it must be limited. It's wrong in Ada 2005, because limited aggregates
17095         are now allowed.
17096         (Resolve_Record_Aggregate): Move check for limited types later, because
17097         OK_For_Limited_Init requires its argument to have been resolved.
17098         (Get_Value): When copying the component default expression for a
17099         defaulted association in an aggregate, use the sloc of the aggregate
17100         and not that of the original expression, to prevent spurious
17101         elaboration errors, when the expression includes function calls.
17102         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17103         were missing. We also didn't handle qualified expressions. Now also
17104         allow function calls. Use new common routine OK_For_Limited_Init.
17105         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17106         with space can upper case letter).
17107
17108         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17109         Has_Static_Discriminants flag
17110         (Record_Type_Declaration): Diagnose an attempt to declare an interface
17111         type with discriminants.
17112         (Process_Range_Expr_In_Decl): Do validity checks on range
17113         (Build_Discriminant_Constraints): Use updated form of
17114         Denotes_Discriminant.
17115         (Process_Subtype): If the subtype is a private subtype whose full view
17116         is a concurrent subtype, introduce an itype reference to prevent scope
17117         anomalies in gigi.
17118         (Build_Derived_Record_Type, Collect_Interface_Primitives,
17119         Record_Type_Declaration):  The functionality of the subprograms
17120         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17121         is now performed by a single routine.
17122         (Build_Derived_Record_Type): If the type definition includes an explicit
17123         indication of limitedness, then the type must be marked as limited here
17124         to ensure that any access discriminants will not be treated as having
17125         a local anonymous access type.
17126         (Check_Abstract_Overriding): Issue a detailed error message when an
17127         abstract subprogram was not overridden due to incorrect mode of its
17128         first parameter.
17129         (Analyze_Private_Extension_Declaration): Add support for the analysis of
17130         synchronized private extension declarations. Verify that the ancestor is
17131         a limited or synchronized interface or in the generic case, the ancestor
17132         is a tagged limited type or synchronized interface and all progenitors
17133         are either limited or synchronized interfaces.
17134         Derived_Type_Declaration): Check for presence of private extension when
17135         dealing with synchronized formal derived types.
17136         Process_Full_View): Enchance the check done on the usage of "limited" by
17137         testing whether the private view is synchronized.
17138         Verify that a synchronized private view is completed by a protected or
17139         task type.
17140         (OK_For_Limited_Init_In_05): New function.
17141         (Analyze_Object_Declaration): Move check for limited types later,
17142         because OK_For_Limited_Init requires its argument to have been resolved.
17143         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17144         in order to alleviate the upward compatibility introduced by AI-318.
17145         (Constrain_Corresponding_Record): If the constraint is for a component
17146         subtype, mark the itype as frozen, to avoid out-of-scope references to
17147         discriminants in the back-end.
17148         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17149         this subprogram against wrong sources.
17150         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17151         discriminant of limited type completed with a protected type, when the
17152         discriminant is used to constrain a private component of the type, and
17153         expansion is disabled.
17154         (Find_Type_Of_Object): Do not treat a return subtype that is an
17155         anonymous subtype as a local_anonymous_type, because its accessibility
17156         level is the return type of the enclosing function.
17157         (Check_Initialization): In -gnatg mode, turn the error "cannot
17158         initialize entities of limited type" into a warning.
17159         (OK_For_Limited_Init): Return true for generated nodes, since it
17160         sometimes violates the legality rules.
17161         (Make_Incomplete_Declaration): If the type for which an incomplete
17162         declaration is created happens to be the currently visible entity,
17163         preserve the homonym chain when removing it from visibility.
17164         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17165         inherited subprograms.
17166         (Access_Definition): If this is an access to function that is the return
17167         type of an access_to_function definition, context is a type declaration
17168         and the scope of the anonymous type is the current one.
17169         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17170         incomplete subtype to the set of private dependents of the original
17171         incomplete type.
17172         (Constrain_Discriminated_Type): Emit an error message whenever an
17173         incomplete subtype is being constrained.
17174         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17175         corresponding subtype of the full view of the original incomplete type.
17176         (Check_Incomplete): Properly detect invalid usage of incomplete types
17177         and subtypes.
17178
17179 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17180
17181         * g-catiio.ads, g-catiio.adb (Value): New function.
17182         Given an input String, try and parse a valid Time value.
17183
17184 2006-10-31  Vincent Celier  <celier@adacore.com>
17185
17186         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17187         Integer_Address arithmetic, as in Set_Valid.
17188
17189 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17190             Robert Dewar  <dewar@adacore.com>
17191
17192         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17193         handling executable extension manually and duplicating code.
17194
17195         * make.adb: Implement new -S switch
17196         (Gnatmake): Use new function Osint.Executable_Name instead
17197         of handling executable extension manually.
17198
17199         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17200         is specified, the executable name ends with this suffix.
17201         Take advantage of Osint.Executable_Name instead of duplicating code.
17202
17203         * switch-m.adb: Recognize new gnatmake -S switch
17204
17205         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17206         variable.
17207         (Get_Target_Parameters): Set Executable_Extension_On_Target if
17208         available.
17209
17210         * makeusg.adb: Add line for gnatmake -S switch
17211
17212 2006-10-31  Vincent Celier  <celier@adacore.com>
17213
17214         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17215         call it with -static-libgcc, as there are some platforms, such as
17216         Darwin, where one of these two switches is compulsory to link.
17217
17218 2006-10-31  Vincent Celier  <celier@adacore.com>
17219
17220         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17221         instead of ADA_PROJECT_PATH, for the project path.
17222         (Gnatls): When displaying the project path directories, use host dir
17223         specs.
17224
17225         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17226         names in the project path, as absolute paths may correspond to
17227         multi-valued VMS logical names.
17228
17229 2006-10-31  Vincent Celier  <celier@adacore.com>
17230
17231         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17232         absolute path name.
17233         (Locate_Regular_File): Ditto
17234         (Change_Dir): Remove, no longer used
17235         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17236         on Windows. Get it calling Get_Current_Dir.
17237         (OpenVMS): Remove imported boolean, no longer needed.
17238         (Normalize_Pathname)[VMS]: Do not resolve directory names.
17239         (Pid_To_Integer): New function to convert a Process_Id to  Integer
17240
17241 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17242
17243         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17244         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17245         to No_Socket.
17246         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17247         W_Sig_Socket.
17248
17249 2006-10-31  Robert Dewar  <dewar@adacore.com>
17250
17251         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17252         initial letter o as a zero.
17253
17254 2006-10-31  Robert Dewar  <dewar@adacore.com>
17255
17256         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17257
17258 2006-10-31  Robert Dewar  <dewar@adacore.com>
17259
17260         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17261         variant records
17262         (Layout_Variant_Record): Retrieve the discriminants from the entity
17263         rather than from the type definition, because in the case of a full
17264         type for a private type we need to take the discriminants from the
17265         partial view.
17266         (Layout_Component_List): When applying the Max operator to variants with
17267         a nonstatic size, check whether either operand is static and scale that
17268         operand from bits to storage units before applying Max.
17269         (Layout_Type): In VMS, if a C-convention access type has no explicit
17270         size clause (and does not inherit one in the case of a derived type),
17271         then the size is reset to 32 from 64.
17272
17273 2006-10-31  Vincent Celier  <celier@adacore.com>
17274
17275         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17276         its file has already been loaded, according to the unit being loaded,
17277         not to the current value of Multiple_Unit_Index.
17278
17279 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17280             Eric Botcazou  <ebotcazou@adacore.com>
17281             Arnaud Charlet  <charlet@adacore.com>
17282
17283         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17284         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17285         possible.
17286         (a-except.o): Pass it to the compiler.
17287         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
17288         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
17289         a-calend-mingw.adb version.
17290
17291         * Makefile.rtl: Added s-dsaser.
17292         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
17293         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
17294         Ada.Dispatching.Round_Robin.
17295         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
17296
17297         * Make-lang.in: Remove all references to gt-ada-decl.h.
17298         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
17299         sources.
17300         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
17301         Update dependencies.
17302
17303         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
17304
17305 2006-10-31  Vincent Celier  <celier@adacore.com>
17306
17307         * mlib-utl.adb (Initialized): Remove, no longer used
17308         (Initialize): Remove, no longer used
17309         (Ar): If Ar_Exec is null, get the location of the archive builder and,
17310         if there is one, the archive indexer. Fail if the archive builder cannot
17311         be found.
17312         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
17313         be found.
17314
17315 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17316
17317         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
17318         Process_Body_Clauses): If the context of a body includes a use clause
17319         for P.Q then a with_clause for P in the same body is not redundant,
17320         even if the spec also has a with_clause on P.
17321         Add missing continuation mark to error msg
17322         (Build_Limited_Views): A limited view of a type is tagged if its
17323         declaration includes a record extension.
17324         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
17325         node, even if the subunit has errors. This avoids malfunction by
17326         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
17327         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
17328         generation of obsolescent messages for with statements (cannot do
17329         this too early, or we cannot implement avoiding the messages in the
17330         case of obsolescent units withing obsolescent units).
17331         (Install_Siblings): If the with_clause is on a remote descendant of
17332         an ancestor of the current compilation unit, find whether there is
17333         a sibling child unit that is immediately visible.
17334         (Remove_Private_With_Clauses): New procedure, invoked after completing
17335         the analysis of the private part of a nested package, to remove from
17336         visibility the private with_clauses of the enclosing package
17337         declaration.
17338         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
17339         now centralized in Generate_Reference.
17340         (Install_Limited_Context_Clauses): Remove superfluous error
17341         message associated with unlimited view visible through use
17342         and renamings. In addition, at the point in which the error
17343         is reported, we add the backslash to the text of the error
17344         to ensure that it is reported as a single error message.
17345         Use new // insertion for some continuation messages
17346         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
17347         to create implicit with_clause for parent unit mentioned in original
17348         limited_with_clause.
17349         (Install_Limited_With_Unit): Set entity of parent identifiers if the
17350         unit is a child unit. For ASIS queries.
17351         (Analyze_Subunit): If the subunit appears within a child unit, make all
17352         ancestor child units directly visible again.
17353
17354 2006-10-31  Robert Dewar  <dewar@adacore.com>
17355
17356         * par-ch10.adb (P_Context_Clause): Minor error message fix
17357
17358 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17359             Javier Miranda  <miranda@adacore.com>
17360
17361         * par-ch12.adb: Grammar update and cleanup.
17362         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
17363         support for synchronized derived type definitions.
17364         Add the new actual Abstract_Present to every call to
17365         P_Interface_Type_Definition.
17366         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
17367         a formal object declaration with an access definition or a subtype mark
17368         with a null exclusion.
17369         (P_Generic_Association): Handle association with box, and others_choice
17370         with box, to support Ada 2005 partially parametrized formal packages.
17371
17372 2006-10-31  Robert Dewar  <dewar@adacore.com>
17373             Javier Miranda  <miranda@adacore.com>
17374
17375         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
17376         (P_Type_Declaration): Remove barrier against the reserved word "limited"
17377         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
17378         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
17379         private extensions.
17380         (P_Type_Declaration): Add the new actual Abstract_Present to every call
17381         to P_Interface_Type_Definition.
17382         (P_Interface_Type_Definition): Addition of one formal to report an error
17383         if the reserved word abstract has been previously found.
17384         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
17385         object renaming declaration with an access definition or subtype mark
17386         with a possible null exclusion.
17387
17388         * par-ch9.adb: Minor error msg fix
17389
17390         * par-load.adb: Add missing continuation mark to error msg
17391
17392         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
17393
17394 2006-10-31  Vincent Celier  <celier@adacore.com>
17395
17396         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
17397         unknown attribute in unknown package or in package that does not need
17398         to be checked.
17399         (Parse_Package_Declaration): Do not issue warning for unknown package in
17400         quiet output.
17401
17402 2006-10-31  Vincent Celier  <celier@adacore.com>
17403
17404         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
17405         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
17406         Packages_To_Check.
17407
17408 2006-10-31  Vincent Celier  <celier@adacore.com>
17409
17410         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
17411         on VMS, change "__" to '.' before checking the name.
17412         (Record_Ada_Source): Always add the source file name in the list of
17413         of sources, even if it is not the first time, as it is for another
17414         source index.
17415         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
17416         dot, instead of replacing only the first '_'.
17417
17418         * prj-part.adb (Parse): Convert project file path to canonical form
17419
17420         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
17421         extended, the project id of the project extending it is recorded in its
17422         data, even when it has already been processed as an imported project.
17423
17424 2006-10-31  Robert Dewar  <dewar@adacore.com>
17425
17426         * repinfo.adb (List_Entities): Don't list entities from renaming
17427         declarations.
17428
17429 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17430             Robert Dewar  <dewar@adacore.com>
17431
17432         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
17433         only a restriction warning is active for the given restriction. This is
17434         desirable because we do not want to modify code in the case where only
17435         a warning is set.
17436         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
17437         causes overriding of real restrictions.
17438         Take advantage of new No_Restrictions constant.
17439
17440         * raise.h: (__gnat_set_globals): Change profile.
17441
17442 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17443
17444         * rtsfind.adb: Remove s-polint from comment as it exists no more.
17445
17446         * rtsfind.ads: 
17447         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
17448         Move all the entities in obsolete package System.PolyORB_Interface to
17449         System.Partition_Interface.
17450         (RE_Storage_Size): New function in System.Tasking.
17451         (RE_Get_Ceiling): New entity.
17452         (RE_Set_Ceiling): New entity.
17453         (RO_PE_Get_Ceiling): New entity.
17454         (RO_RE_Set_Ceiling): New entity.
17455         (Inherit_CPP_DT): New entity
17456
17457 2006-10-31  Robert Dewar  <dewar@adacore.com>
17458
17459         * scng.adb (Scan, case of numeric literal): Better msg for identifier
17460         starting with a digit.
17461
17462 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17463             Thomas Quinot  <quinot@adacore.com>
17464             Javier Miranda  <miranda@adacore.com>
17465             Gary Dismukes  <dismukes@adacore.com>
17466
17467         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
17468         properly an attempt to apply Unchecked_Access to a protected operation.
17469         (OK_Self_Reference): New subprogram to check the legality of an access
17470         attribute whose prefix is the type of an enclosing aggregate.
17471         Generalizes previous mechanism to handle attribute references nested
17472         arbitrarily deep within the aggregate.
17473         (Analyze_Access_Attribute): An access attribute whose prefix is a type
17474         can appear in an aggregate if this is a default-initialized aggregate
17475         for a self-referential type.
17476         (Resolve_Attribute, case Access): Ditto.
17477         Add support for new implementation defined attribute Stub_Type.
17478         (Eval_Attribute, case Attribute_Stub_Type): New case.
17479         (Analyze_Attribute, case Attribute_Stub_Type): New case.
17480         (Stream_Attribute_Available): Implement using new subprogram from
17481         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
17482         Has_Specified_Stream_Attribute flag.
17483         Disallow Storage_Size and Storage_Pool for access to subprogram
17484         (Resolve_Attribute, case 'Access et al): Take into account anonymous
17485         access types of return subtypes in extended return statements. Remove
17486         accessibility checks on anonymous access types when Unchecked_Access is
17487         used.
17488         (Analyze_Attribute): Add support for the use of 'Class to convert
17489         a class-wide interface to a tagged type.
17490         Add support for the attribute Priority.
17491         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
17492         whether the designated type is discriminated with a constrained partial
17493         view and require static matching in that case.
17494         Add local variable Des_Btyp. The Designated_Type
17495         of an access to incomplete subtype is either its non-limited view if
17496         coming from a limited with or its etype if regular incomplete subtype.
17497
17498         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
17499         Fix predicate to identify and allow cases of (expander-generated)
17500         references to tag of designated object of a RACW.
17501         (Validate_Static_Object_Name): In Ada 2005, a formal object is
17502         non-static, and therefore cannot appear as a primary in a preelaborable
17503         package.
17504         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
17505         Has_Read_Write_Attributes.
17506         (Has_Read_Write_Attributes): Reimplement in termes of
17507         Has_Stream_Attribute_Definition.
17508         (Missing_Read_Write_Attributes): When checking component types in a
17509         record, unconditionally call Missing_Read_Write_Attributes recursively
17510         (remove guard checking for Is_Record_Type / Is_Access_Type).
17511
17512 2006-10-31  Robert Dewar  <dewar@adacore.com>
17513
17514         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
17515         useless assignments here and conditionalize it on absence of exception
17516         handlers.
17517         (Analyze_Exception_Handlers): Small code reorganization of error
17518         detection code, for new handling of formal packages.
17519
17520 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17521             Hristian Kirtchev  <kirtchev@adacore.com>
17522
17523         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
17524         that has been constant-folded, preserve information of original tree,
17525         for ASIS uses.
17526         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
17527         generated private extension declaration if the formal derived type is
17528         synchronized. Carry synchronized present over to the generated private
17529         extension.
17530         (Validate_Derived_Type_Instance): Ensure that the actual of a
17531         synchronized formal derived type is a synchronized tagged type.
17532         (Instantiate_Formal_Package): When creating the instantiation used to
17533         validate the actual package of a formal declared without a box, check
17534         whether the formal itself depends on a prior actual.
17535         (Instantiate_Formal_Subprogram): Create new entities for the defining
17536         identifiers of the formals in the renaming declaration, for ASIS use.
17537         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
17538         a renaming declaration or a subtype declaration for an actual in an
17539         instance, capture location information of declaration in generic, for
17540         ASIS use.
17541         (Instantiate_Formal_Package): Add comments on needed additional tests.
17542         AI-317 (partial parametrization) is fully implemented.
17543         (Validate_Private_Type_Instance): Add check for actual which
17544         must have preelaborable initialization
17545         Use new // insertion for some continuation messages
17546         (Analyze_Formal_Object_Declaration): Change usage of Expression to
17547         Default_Expression. Add type retrieval when the declaration has an
17548         access definition. Update premature usage of incomplete type check.
17549         (Check_Access_Definition): New subsidiary routine. Check whether the
17550         current compilation version is Ada 05 and the supplied node has an
17551         access definition.
17552         (Instantiate object): Alphabetize local variables. Handle the creation
17553         of new renaming declarations with respect to the kind of definition
17554         used - either an access definition or a subtype mark. Guard against
17555         unnecessary error message in the context of anonymous access types after
17556         they have been resolved. Add check for required null exclusion in a
17557         formal object declaration.
17558         (Switch_View): A private subtype of a non-private type needs to be
17559         switched (the base type can have been switched without its private
17560         dependents because of the last branch of Check_Private_View.
17561         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
17562         value from BT.
17563         (Instantiate_Type): Emit an error message whenever a class-wide type of
17564         a tagged incomplete type is used as a generic actual.
17565         (Find_Actual_Type): Extend routine to handle a component type in a child
17566         unit that is imported from a formal package in a parent.
17567         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
17568         agree on constrainedness, rather than checking against ultimate ancestor
17569         (Instantiate_Subprogram_Body): Create a cross-reference link to the
17570         generic body, for navigation purposes.
17571
17572 2006-10-31  Robert Dewar  <dewar@adacore.com>
17573             Thomas Quinot  <quinot@adacore.com>
17574
17575         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
17576         type.
17577         (New_Stream_Subprogram): When processing an attribute definition clause
17578         for a stream-oriented subprogram, record an entity node occurring at
17579         the point of clause to use for checking the visibility of the clause,
17580         as defined by 8.3(23) as amended by AI-195.
17581         (New_Stream_Subprogram): New procedure, factoring behaviour from both
17582          New_Stream_Function and New_Stream_Procedure.
17583         (New_Stream_Function, New_Stream_Procedure): Removed.
17584         (Analyze_Attribute_Definition_Clause, case Address): Check new
17585         Alignment_Check check
17586
17587 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17588             Javier Miranda  <miranda@adacore.com>
17589             Robert Dewar  <dewar@adacore.com>
17590
17591         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
17592         generate the same errors compiling under -gnatc.
17593         (Try_Object_Operation): If no candidate interpretation succeeds, but
17594         there is at least one primitive operation with the right name, report
17595         error in call rather than on a malformed selected component.
17596         (Analyze_Selected_Component): If the prefix is an incomplete type from
17597         a limited view, and the full view is available, use the full view to
17598         determine whether this is a prefixed call to a primitive operation.
17599         (Operator_Check): Verify that a candidate interpretation is a binary
17600         operation before checking the type of its second formal.
17601         (Analyze_Call): Add additional warnings for function call contexts not
17602         yet supported.
17603         (Analyze_Allocator): Move the check for "initialization not allowed for
17604         limited types" after analyzing the expression. This is necessary,
17605         because OK_For_Limited_Init looks at the structure of the expression.
17606         Before analysis, we don't necessarily know what sort of expression it
17607         is. For example, we don't know whether F(X) is a function call or an
17608         indexed component; the former is legal in Ada 2005; the latter is not.
17609         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
17610         were missing. We also didn't handle qualified expressions. Now also
17611         allow function calls. Use new common routine OK_For_Limited_Init.
17612         (Analyze_Type_Conversion): Do not perform some legality checks in an
17613         instance, because the error message will be redundant or spurious.
17614         (Analyze_Overloaded_Selected_Component): Do not do style check when
17615         setting an entity, since we do not know it is the right entity yet.
17616         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
17617         (Analyze_Overloaded_Selected_Component): Same change
17618         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
17619         since regular incomplete subtypes are transformed into corresponding
17620         subtypes of their full views.
17621         (Complete_Object_Operation): Treat name of transformed subprogram call
17622         as coming from source, for browsing purposes.
17623         (Try_Primitive_Operation): If formal is an access parameter, compare
17624         with base type of object to determine whether it is a primitive
17625         operation.
17626         (Operator_Check): If no interpretation of the operator matches, check
17627         whether a use clause on any candidate might make the operation legal.
17628         (Try_Class_Wide_Operation): Check whether the first parameter is an
17629         access type whose designated type is class-wide.
17630
17631 2006-10-31  Robert Dewar  <dewar@adacore.com>
17632             Ed Schonberg  <schonberg@adacore.com>
17633             Gary Dismukes  <dismukes@adacore.com>
17634
17635         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
17636         warn on infinite loops.
17637         Add \\ to some continuation messages
17638         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
17639         (Process_Bounds): If the bounds are integer literals that result from
17640         constant-folding, and they carry a user-defined type, preserve that type
17641         rather than treating this as an integer range.
17642         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
17643         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
17644         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
17645         left hand side of assignment.
17646         (Analyze_Assignment): Add suport to manage assigments to the attribute
17647         priority of a protected object.
17648         (Check_Possible_Current_Value_Condition): Allow fully qualified names
17649         not just identifiers.
17650         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
17651         or AND THEN for possible tracking.
17652         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
17653         case of while loops so we can track values in the loop body.
17654
17655 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17656             Hristian Kirtchev  <kirtchev@adacore.com>
17657             Bob Duff  <duff@adacore.com>
17658
17659         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
17660         procedure cannot be a protected operation (it is a basic_declaration,
17661         not a subprogram_declaration).
17662         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
17663         Subp. Add logic for entry processing.
17664         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
17665         Determine whether an entry or subprogram of a protected or task type
17666         override an inherited primitive of an implemented interface.
17667         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
17668         Update the actual used in calls to Check_Overriding_Indicator.
17669         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
17670         generate the proper reference to the parent unit, for cross-reference.
17671         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
17672         Is_Formal.
17673         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17674         (Add_Extra_Formal): Revise procedure to allow passing in associated
17675         entity, scope, and name suffix, and handle setting of the new
17676         Extra_Formals field.
17677         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
17678         pass new parameters. Add support for adding the new extra access formal
17679         for functions whose calls are treated as build-in-place.
17680         (Analyze_A_Return_Statement): Correct casing in error message.
17681         Move Pop_Scope to after Analyze_Function_Return, because an extended
17682         return statement really is a full-fledged scope. Otherwise, visibility
17683         doesn't work right. Correct use of "\" for continuation messages.
17684         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
17685         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
17686         the node doesn't get properly marked as analyzed.
17687         (Analyze_Subprogram_Body): If subprogram is a function that returns
17688         an anonymous access type that denotes a task, build a Master Entity
17689         for it.
17690         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
17691         proper usage of null exclusion in a result definition.
17692         (Process_Formals): Code cleanup and new error message.
17693         (Process_Formals): Detect incorrect application of null exclusion to
17694         non-access types.
17695         (Conforming_Types): Handle conformance between [sub]types and itypes
17696          generated for entities that have null exclusions applied to them.
17697         (Maybe_Primitive_Operation): Add an additional type retrieval when the
17698          base type is an access subtype. This case arrises with null exclusions.
17699         (New_Overloaded_Entity): Do not remove the overriden entity from the
17700         homonym chain if it corresponds with an abstract interface primitive.
17701         (Process_Formals): Replace membership test agains Incomplete_Kind with a
17702         call to the synthesized predicate Is_Incomplete_Type.
17703         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
17704         primitives.
17705         (Analyze_Subprogram_Declaration): Check that abstract interface
17706         primitives are abstract or null.
17707         (Analyze_Subprogram_Specification): Remove previous check for abstract
17708         interfaces because it was not complete.
17709         (Has_Interface_Formals): Removed.
17710
17711 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17712             Javier Miranda  <miranda@adacore.com>
17713
17714         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
17715         of Analyze_Package_Body, to create Itype references for anonymous
17716         access types created in the package declaration, whose designated types
17717         may have only a limited view.
17718         (Analyze_Package_Specification): For the private part of a nested
17719         package, install private_with_clauses of enclosing compilation unit if
17720         we are in its visible part.
17721         (Declare_Inherited_Private_Subprograms): Complete barrier
17722         to ensure that the primitive operation has an alias to some parent
17723         primitive. This is now required because, after the changes done for the
17724         implementation of abstract interfaces, the contents of the list of
17725         primitives has entities whose alias attribute references entities of
17726         such list of primitives.
17727         (Analyze_Package_Specification): Simplify code that handles parent units
17728         of instances and formal packages.
17729         (Uninstall_Declarations): Check the convention consistency among
17730         primitive overriding operations of a tagged record type.
17731
17732 2006-10-31  Robert Dewar  <dewar@adacore.com>
17733             Hristian Kirtchev  <kirtchev@adacore.com>
17734             Javier Miranda  <miranda@adacore.com>
17735             Ed Schonberg  <schonberg@adacore.com>
17736
17737         * sem_ch8.adb: Minor error msg rewording
17738         (Undefined): When checking for misspellings, invert arguments (to get
17739         expected and found set right)
17740         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
17741         (Analyze_Generic_Renaming): Same fix
17742         (Use_One_Package): Do not take into account the internal entities of
17743         abstract interfaces during the analysis of entities that are marked
17744         as potentially use-visible.
17745         (Find_Type): Handle the case of an attribute reference for
17746         implementation defined attribute Stub_Type (simply let the analysis of
17747         the attribute reference rewrite it).
17748         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
17749         type that appears in a Use_Type clause.
17750         (Analyze_Object_Renaming): Add support for renaming of the Priority
17751         attribute.
17752         (Find_Type): In Ada 2005, a task type can be used within its own body,
17753         when it appears in an access definition.
17754         (Analyze_Object_Renaming): Remove warning on null_exclusion.
17755         (Analyze_Object_Renaming): Introduce checks for required null exclusion
17756          in a formal object declaration or in a subtype declaration.
17757         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
17758         (Check_Null_Exclusion): New local routine to
17759         Analyze_Subprogram_Renaming. Check whether the formals and return
17760         profile of a renamed subprogram have required null exclusions when
17761         their counterparts of the renaming already impose them.
17762         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
17763         Determine whether an entity is inside a generic scope.
17764         (In_Open_Scope): First pass of documentation update.
17765         (Find_Expanded_Name): Add support for shadow entities associated with
17766         limited withed packages. This is required to handle nested packages.
17767         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
17768         that makes a renaming of a limited withed package illegal.
17769
17770 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17771             Ed Schonberg  <schonberg@adacore.com>
17772
17773         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
17774         Check_Overriding_Indicator.
17775         (Analyze_Task_Definition): Ditto.
17776         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
17777         (Check_Overriding_Indicator): To find overridden interface operation,
17778         examine only homonyms that have an explicit subprogram declaration, not
17779         inherited operations created by an unrelated type derivation.
17780         (Check_Overriding_Indicator): When checking for the presence of "null"
17781         in a procedure, ensure that the queried node is a procedure
17782         specification.
17783         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
17784         type when the formal is an access to variable.
17785         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
17786         (Analyze_Task_Type): Same addition
17787         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
17788         provide navigation capabilities for entries.
17789
17790 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17791             Ed Schonberg  <schonberg@adacore.com>
17792             Javier Miranda  <miranda@adacore.com>
17793             Gary Dismukes  <dismukes@adacore.com>
17794
17795         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
17796         inherited from an interface ancestor by another interface in the
17797         context of an instance as 'late'.
17798         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
17799         of a call to a function that dispatches on access result.
17800         (Check_Dispatching_Operation): In case of late overriding of a primitive
17801         that covers abstract interface subprograms we register it in all the
17802         secondary dispatch tables associated with abstract interfaces.
17803         (Check_Dispatching_Call): Add check that a dispatching call is not made
17804         to a function with a controlling result of a limited type. This is a
17805         current implementation restriction.
17806         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
17807         (Check_Dispatching_Operation): Do no emit a warning if the controlling
17808         argument is an interface type that is a generic formal.
17809         (Is_Interface_Subprogram): Removed.
17810         (Check_Dispatching_Operation): If the subprogram is not a dispatching
17811         operation, check the formals to handle the case in which it is
17812         associated with an abstract interface type.
17813
17814 2006-10-31  Robert Dewar  <dewar@adacore.com>
17815             Ed Schonberg  <schonberg@adacore.com>
17816
17817         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
17818         Add new calls to this procedure during traversal
17819         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
17820         another unit if expansion is disabled.
17821
17822 2006-10-31  Robert Dewar  <dewar@adacore.com>
17823
17824         * sem_eval.adb (Compile_Time_Compare): Make use of information from
17825         Current_Value in the conditional case, to evaluate additional
17826         comparisons at compile time.
17827
17828 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17829             Hristian Kirtchev  <kirtchev@adacore.com>
17830             Javier Miranda  <miranda@adacore.com>
17831
17832         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
17833         subprogram type to provide better diagnostics in case of ambiguity.
17834         (Covers): Handle coverage of formal and actual anonymous access types in
17835         the context of generic instantiation.
17836         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
17837         abstract interface types; this is required to handle concurrent types
17838         with discriminants and abstract interface types.
17839         (Covers): Include type coverage of both regular incomplete subtypes and
17840         incomplete subtypes of incomplete type visibles through a limited with
17841         clause.
17842
17843 2006-10-31  Robert Dewar  <dewar@adacore.com>
17844             Hristian Kirtchev  <kirtchev@adacore.com>
17845             Ed Schonberg  <schonberg@adacore.com>
17846
17847         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
17848         messages for entities in packages which are not used.
17849         (Collect_Synchronized_Interfaces): New procedure.
17850         (Overrides_Synchronized_Primitive): New function.
17851         (Denotes_Discriminant): Extend predicate to apply to task types.
17852         Add missing continuation marks in error msgs
17853         (Unqualify): New function for removing zero or more levels of
17854         qualification from an expression. There are numerous places where this
17855         ought to be used, but we currently only deal properly with zero or one
17856         level.
17857         (In_Instance); The analysis of the actuals in the instantiation of a
17858         child unit is not within an instantiation, even though the parent
17859         instance is on the scope stack.
17860         (Safe_To_Capture_Value): Exclude the case of variables that are
17861         renamings.
17862         (Check_Obsolescent): Removed
17863         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17864         is an aliased view, even when rewritten as a reference to the target
17865         object in an assignment.
17866         (Get_Subprogram_Entity): New function
17867         (Known_To_Be_Assigned): New function
17868         (Type_Access_Level): Compute properly the access level of a return
17869         subtype that is an anonymous access type.
17870         (Explain_Limited_Type): Correct use of "\" for continuation messages.
17871         (Is_Transfer): The new extended_return_statement causes a transfer of
17872         control.
17873         (Has_Preelaborable_Initialization): New function
17874         (Has_Null_Exclusion): New function. Given a node N, determine whether it
17875         has a null exclusion depending on its Nkind.
17876         Change Is_Lvalue to May_Be_Lvalue
17877         (May_Be_Lvalue): Extensive additional code to deal with subprogram
17878         arguments (IN parameters are not Lvalues, IN OUT parameters are).
17879         (Safe_To_Capture_Value): Extend functionality so it can be used for
17880         the current value condition case.
17881         (Has_Compatible_Alignment): New function
17882         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17883         objects to handle the Ada 2005 case, where aliasedness no longer implies
17884         that the object is constrained. In particular, for dereferenced names,
17885         the designated object must be assumed to be unconstrained.
17886         (Kill_Current_Values): Properly deal with the case where we encounter
17887         a loop in the scope chain.
17888         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17889         a value.
17890         (Compile_Time_Constraint_Error): Improve error message in error case
17891
17892         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17893         associated with entities of abstract interface primitives.
17894         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17895
17896 2006-10-31  Robert Dewar  <dewar@adacore.com>
17897
17898         * s-osinte-tru64.adb: 
17899         Mark Asm statements Volatile to prevent warnings (seems a
17900         reasonable change anyway)
17901         Fixes new warnings
17902
17903         * s-mastop-irix.adb: Add Volatile to Asm statements
17904         Suppresses warning, and seems appropriate in any case
17905
17906         * s-osinte-vms.adb: Add Volatile to Asm statement
17907
17908         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17909
17910         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17911         returned.
17912         Add call to Check_Code_Statement
17913
17914 2006-10-31  Robert Dewar  <dewar@adacore.com>
17915             Ed Schonberg  <schonberg@adacore.com>
17916             Bob Duff  <duff@adacore.com>
17917
17918         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17919         Synchronized_Present): Add Formal_Derived_Type_Definition and
17920         Private_Extension_Declaration to the list of assertions.
17921         (Is_Entry_Barrier_Function): New flag
17922         (Has_Self_Reference): New flag on aggregates, to indicate that they
17923         contain a reference to the enclosing type, inserted through a default
17924         initialization.
17925         (Next_Rep_Item): Move from Node4 to Node5.
17926         (Entity): Add this field for N_Attribute_Definition_Clause.
17927         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17928         (N_Return_Object_Declaration): Remove this node kind. We now use
17929         N_Object_Declaration instead.
17930         (Actual_Designated_Subtype): Move to a different place to make room in
17931         N_Extended_Return_Statement.
17932         (Procedure_To_Call): Move to a different place to make room in
17933         N_Extended_Return_Statement.
17934         (Return_Type): Removed this field to make room in return statements
17935         (both kinds).
17936         (Return_Statement_Entity): New field in return statements, in part to
17937         replace Return_Type, and in part to support the fact that return
17938         statements are now pushed on the scope stack during semantic analysis.
17939         (Return_Object_Declarations): New field to support extended return
17940         statements.
17941         (N_Extended_Return_Statement): New node for extended_return_statement
17942         nonterminal.
17943         (N_Return_Object_Declaration): New node for part of
17944         extended_return_statement nonterminal. Needed because all the necessary
17945         fields won't fit in N_Extended_Return_Statement.
17946         Generic_associations now carry the Box_Present flag, to indicate a
17947         default for an actual in a partially parametrized formal package.
17948
17949         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
17950         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17951         and for the new predefined dispatching policies: EDF_Across_Priorities,
17952         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17953         Introduce new name Stub_Type for implementation defined attribute.
17954         Add pragma Preelaborable_Initialization
17955         Add entry for Priority attribute.
17956         Add Pragma_Wide_Character_Encoding
17957         (Get_Convention_Name): Given a convention id, this function returns the
17958         corresponding name id from the names table.
17959
17960 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17961             Robert Dewar  <dewar@adacore.com>
17962             Bob Duff  <duff@adacore.com>
17963
17964         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17965         print null exclusion twice in the case of an access definition,
17966         Implement new -gnatL switch
17967         Remove N_Return_Object_Declaration. We now use
17968         N_Object_Declaration instead. Implement the case for
17969         N_Extended_Return_Statement. Alphabetize the cases.
17970         Add cases for new nodes N_Extended_Return_Statement and
17971         N_Return_Object_Declaration. The code is not yet written.
17972         Update the output for N_Formal_Object_Declaration
17973         and N_Object_Renaming_Declaration.
17974         (Write_Itype): Account for the case of a modular integer subtype whose
17975         base type is private.
17976
17977 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17978
17979         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17980         Remove elaboration code, now done in the binder.
17981
17982         * s-rident.ads: Make this unit Preelaborate.
17983         (No_Restrictions): New constant used to clean up code and follow
17984         preelaborate constraints.
17985
17986         * s-stalib.adb: 
17987         Add System.Restrictions dependence, referenced directly from the
17988         binder generated file.
17989
17990 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
17991
17992         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17993         True when AAMP extended floating-point is in use (48-bit). Change type
17994         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17995         the two byte array types on AFloat. Change type of IV_Ilf overlay
17996         variable from Byte8 to ByteLF. Add appropriate initializations of
17997         floating-point overlays for AAMP cases.
17998
17999 2006-10-31  Javier Miranda  <miranda@adacore.com>
18000
18001         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18002         (Get_Ceiling): New subprogram that returns
18003         the ceiling priority of the protected object.
18004         (Set_Ceiling): New subprogram that sets the new ceiling priority of
18005         the protected object.
18006
18007         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18008
18009         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18010
18011 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
18012
18013         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18014         requeuing to the same protected object to give higher priority tasks
18015         the opportunity to execute.
18016
18017 2006-10-31  Robert Dewar  <dewar@adacore.com>
18018
18019         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18020         add more precise check for the character sequence that follows '[' to
18021         avoid possible confusion in case if '[' is the last character of a
18022         string literals.
18023         (Scan_Wide): Always allow brackets encoding
18024
18025 2006-10-31  Olivier Hainque  <hainque@adacore.com>
18026
18027         * s-stchop.ads: make this unit preelaborate. This is desirable in
18028         general and made mandatory by the use of this unit by s-taprop which
18029         is itself preelaborate.
18030
18031         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18032         Td_Events component.
18033
18034 2006-10-31  Vincent Celier  <celier@adacore.com>
18035
18036         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18037         in file names.
18038
18039 2006-10-31  Vincent Celier  <celier@adacore.com>
18040
18041         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18042
18043 2006-10-31  Vincent Celier  <celier@adacore.com>
18044
18045         * makegpr.adb (Check_Compilation_Needed): Take into account path names
18046         with spaces.
18047         (Check_Compilation_Needed): When checking a C or C++ source, do not
18048         resolve symbolic links.
18049         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18050         When not in verbose mode and Ellipse is True, display "..." for the
18051         first argument with Display set to False.
18052         (Build_Global_Archive): Always set Display True for the first object
18053         file. Call Display_Command with Ellipse set to True.
18054
18055 2006-10-31  Matt Heaney  <heaney@adacore.com>
18056
18057         * a-crbtgo.ads: Commented each subprogram
18058
18059         * a-crbtgo.adb: Added reference to book from which algorithms were
18060         adapted.
18061
18062         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18063         indicate which child.
18064         (Generic_Conditional_Insert): changed parameter name from "Success" to
18065         "Inserted".
18066         (Generic_Unconditional_Insert_With_Hint): improved algorithm
18067
18068         * a-coorse.adb (Replace_Element): changed parameter name in call to
18069         conditional insert operation.
18070
18071         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18072
18073         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18074         Generic_Iteration
18075
18076         * a-ciorse.adb (Replace_Element): changed parameter name in call to
18077         conditional insert operation.
18078
18079         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18080         Generic_Iteration.
18081
18082         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18083         instead of mode inout.
18084
18085         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18086         draft
18087         (Generic_Read): preserve existing buckets array if possible
18088         (Generic_Write): don't send buckets array length anymore
18089
18090         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18091         instead of mode inout.
18092
18093         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18094         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18095
18096         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18097         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18098         (Replace_Element): local operation is now an instantiation
18099
18100         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18101         check current length.
18102         (Generic_Replace_Element): new operation
18103
18104 2006-10-31  Doug Rupp  <rupp@adacore.com>
18105
18106         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18107         Call TBK$SYMBOLIZE without omitting parameters.
18108
18109 2006-10-31  Vincent Celier  <celier@adacore.com>
18110
18111         * symbols-processing-vms-ia64.adb,
18112         symbols-processing-vms-alpha.adb (Process): Do not include symbols
18113         that come from generic instantiations in bodies.
18114
18115 2006-10-31  Pat Rogers  <rogers@adacore.com>
18116
18117         * a-rttiev.ads, a-rttiev.adb: 
18118         This is a significant redesign primarily for the sake of automatic
18119         timer task termination but also to fix a design flaw.
18120         Therefore we are now using an RTS lock, instead of a protected
18121         object, to provide mutual exclusion to the queue of pending events
18122         and the type Timing_Event is no longer a protected type.
18123
18124 2006-10-31  Robert Dewar  <dewar@adacore.com>
18125             Cyrille Comar  <comar@adacore.com>
18126             Ben Brosgol  <brosgol@adacore.com>
18127
18128         * debug.adb:  Update flags documentation
18129
18130         * gnat_ugn.texi: Add documentation for new -gnatwq switch
18131         Clean up documentation for several other warning switches
18132         Clarify how task stack size can be specified with various
18133         versions of Windows.
18134         Add note that -gnatVo includes ranges including loops
18135         Add documentation for -gnatL switch
18136         Add note on elaboration warning for initializing variables
18137         Add documentation for new -gnatwt warning switch
18138         Document new form of pragma Warnings (On|Off, string)
18139         Add comment on use of pragma Warnings to control warnings
18140         Add documentation for -gnatjnn switch
18141         Modify section on interfacing with C for VMS 64-bit.
18142         Add doc for -gnatVe/E
18143         Add documentation of new warning flags -gnatww/-gnatwW
18144         Add warnings about address clause overlays to list of warnings
18145         (Exception Handling Control): Document that the option --RTS must be
18146         used consistently for gcc and gnatbind.
18147         Clarify that inlining is not always possible
18148         Update documentation on pragma Unchecked_Union.
18149
18150         * gnat_rm.texi: 
18151         Add documentation for new extended version of pragma Obsolescent
18152         Add documentation for implementation defined attribute 'Stub_Type.
18153         Add note on use of Volatile in asm statements
18154         Add documentation on use of pragma Unreferenced in context clause
18155         Document new form of pragma Warnings (On|Off, pattern)
18156         Document pragma Wide_Character_Encoding
18157         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18158         enforced if code generation is active.
18159         Add section on pragma Suppress to document GNAT specific check
18160         Alignment_Check
18161         Clarify difference between No_Dispatching_Calls & No_Dispatch.
18162         Add documentation for pragma Restrictions (No_Elaboration_Code)
18163
18164         * gnat-style.texi: 
18165         Add comments on layout of subprogram local variables in the
18166         presence of nested subprograms.
18167
18168         * ug_words: Resync.
18169
18170         * elists.ads: Minor reformatting
18171         Node returns Node_Or_Entity_Id (doc change only)
18172
18173         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18174
18175         * g-arrspl.ads (Create): Update comments.
18176
18177         * sem.ads: Add details on the handling of the scope stack.
18178
18179         * usage.adb: Update documentation.
18180
18181         * validsw.ads, validsw.adb: 
18182         Add definition of Validity_Check_Components and implement -gnatVe/E
18183
18184         * vms_data.ads: Add missing VMS qualifiers.
18185
18186         * s-addope.ads: Add documentation on overflow and divide by zero
18187
18188 2006-10-31  Robert Dewar  <dewar@adacore.com>
18189             Thomas Quinot  <quinot@adacore.com>
18190             Arnaud Charlet  <charlet@adacore.com>
18191
18192         * fmap.adb: Put routines in alpha order
18193
18194         * g-boumai.ads: Remove redundant 'in' keywords
18195
18196         * g-cgi.adb: Minor reformatting
18197
18198         * g-cgi.ads: Remove redundant 'in' keywords
18199
18200         * get_targ.adb: Put routines in alpha order
18201
18202         * prj-attr.ads: Minor reformatting
18203
18204         * s-atacco.ads: Minor reformatting
18205
18206         * scn.adb: Put routines in alpha order
18207
18208         * sinput-l.adb: Minor comment fix
18209
18210         * sinput-p.adb: Minor comment fix
18211
18212         * s-maccod.ads: Minor reformatting
18213
18214         * s-memory.adb: Minor reformatting
18215
18216         * s-htable.adb: Fix typo in comment.
18217
18218         * s-secsta.adb: Minor comment update.
18219
18220         * s-soflin.adb: Minor reformatting
18221
18222         * s-stoele.ads: 
18223         Add comment about odd qualification in Storage_Offset declaration
18224
18225         * s-strxdr.adb: 
18226         Remove unnecessary 'in' keywords for formal parameters.
18227
18228         * treeprs.adt: Minor reformatting
18229
18230         * urealp.adb: Put routines in alpha order
18231
18232         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18233         taking string.
18234
18235         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18236
18237         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18238
18239         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18240         workaround as on other platforms.
18241
18242         * g-eacodu-vms.adb: Remove redundant 'in' keywords
18243         * g-expect-vms.adb: Remove redundant 'in' keywords
18244
18245         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18246         clear error message if the list-of-files file cannot be opened.
18247
18248         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18249         equality operator is always visible.
18250
18251         * lang.opt: Woverlength-strings: New option.
18252
18253         * nmake.adt: 
18254         Update copyright, since nmake.ads and nmake.adb have changed.
18255
18256         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18257         (Binder_Output_Time_Stamps_Set): removed.
18258         (Old_Binder_Output_Time_Stamp): idem.
18259         (New_Binder_Output_Time_Stamp): idem.
18260         (Recording_Time_From_Last_Bind): idem.
18261         (Recording_Time_From_Last_Bind): Make constant.
18262
18263         * output.ads, output.adb (Write_Str): Allow LF characters
18264         (Write_Spaces): New procedure
18265
18266         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18267
18268         * inline.adb: Minor reformatting
18269
18270         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18271
18272         * s-mastop-vms.adb: Remove redundant 'in' keywords
18273
18274         * s-osprim-vms.adb: Remove redundant 'in' keywords
18275
18276         * s-trafor-default.adb: Remove redundant 'in' keywords
18277
18278         * 9drpc.adb: Remove redundant 'in' keywords
18279
18280         * s-osinte-mingw.ads: Minor reformatting
18281
18282         * s-inmaop-posix.adb: Minor reformatting
18283
18284         * a-direio.ads: Remove quotes from Compile_Time_Warning message
18285
18286         * a-exexda.adb: Minor code reorganization
18287
18288         * a-filico.adb: Minor reformatting
18289
18290         * a-finali.adb: Minor reformatting
18291
18292         * a-nudira.ads: Remove quote from Compile_Time_Warning message
18293
18294         * a-numeri.ads: Minor reformatting
18295
18296         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
18297
18298         * exp_pakd.ads: Fix obsolete comment
18299
18300         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
18301         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
18302         Probably not a bug, but certainly neater and more efficient.
18303
18304         * a-tienio.adb: Minor reformatting
18305
18306         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
18307         Avoid assuming low bound of string is 1.
18308
18309         * gnatbind.adb: Change Bindusg to package and rename procedure as
18310         Display, which now ensures that it only outputs usage information once.
18311         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
18312
18313         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
18314         Table'First.
18315
18316         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
18317         warning.
18318         (Match): Add pragma Assert to ensure that Matches'First is zero
18319
18320         * g-regpat.ads (Match): Document that Matches lower bound must be zero
18321
18322         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
18323         documented preconditions (also kills warnings about bad indexes).
18324
18325         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
18326         is 1.
18327         (Build_Import_Library): Ditto;
18328
18329         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
18330
18331         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
18332
18333         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
18334         lower bound of choice table is 1.
18335
18336         * sem_case.ads (Analyze_Choices): Document that lower bound of
18337         Choice_Table is 1.
18338
18339         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
18340         string is 1.
18341
18342         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
18343         and add appropriate Assert pragma to suppress warnings.
18344
18345         * atree.h, atree.ads, atree.adb
18346         Change Elist24 to Elist25
18347         Add definitions of Field28 and Node28
18348         (Traverse_Field): Use new syntactic parent table in sinfo.
18349
18350         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18351
18352         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18353
18354         * exp_tss.adb: Put routines in alpha order
18355
18356         * fe.h: Remove redundant declarations.
18357
18358 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
18359
18360         * utils.c (builtin_function): Rename to gnat_builtin_function.
18361         Move common code to add_builtin_function.
18362         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
18363         gnat_builtin_function.
18364         * gigi.h (builtin_function): Rename to gnat_builtin_function.
18365         Change the signature.
18366
18367 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
18368
18369         * Makefile.in: Add TEXI2PDF definition.
18370         * Make-lang.in: Add "ada.pdf" target.
18371
18372 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
18373
18374         * decl.c, utils.c: Fix comment typos.
18375         * utils.c: Fix a typo.
18376
18377 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
18378
18379         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
18380         on "pure" Ada subprograms if SJLJ exceptions are used.
18381         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
18382         on the declaration node of JMPBUF_SAVE.
18383         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
18384         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
18385         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
18386
18387 2006-08-20  Laurent Guerby  <laurent@guerby.net>
18388
18389         PR ada/28716
18390         g-socket.adb (Bind_Socket): Call Set_Address.
18391
18392 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
18393
18394         PR ada/15802
18395         * decl.c (same_discriminant_p): New static function.
18396         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
18397         subtype and we have discriminants, fix up the COMPONENT_REFs
18398         for the discriminants to make them reference the corresponding
18399         fields of the parent subtype after it has been built.
18400
18401 2006-09-15  Roger Sayle  <roger@eyesopen.com>
18402
18403         PR ada/18817
18404         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
18405         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
18406
18407 2006-09-13  Olivier Hainque  <hainque@adacore.com>
18408
18409         PR ada/29025
18410         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
18411         of a SAVE_EXPR, just make the operand addressable/not-readonly and
18412         let the common gimplifier code make and propagate a temporary copy.
18413         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
18414         out/in-out actuals and defer setting the addressable/readonly bits
18415         to the gimplifier.
18416
18417 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
18418
18419         PR ada/28591
18420         * decl.c (components_to_record): Defer emitting debug info for the
18421         record type associated with the variant until after we are sure to
18422         actually use it.
18423
18424 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
18425
18426         PR ada/21952
18427         * gigi.h (gnat_internal_attribute_table): Declare.
18428         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
18429         * utils.c (gnat_internal_attribute_table): New global variable.
18430         (builtin_function): Always call decl_attributes on the builtin.
18431         (handle_const_attribute): New static function.
18432         (handle_nothrow_attribute): Likewise.
18433
18434 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18435
18436         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
18437
18438 2006-06-23  Olivier Hainque  <hainque@adacore.com>
18439
18440         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
18441         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
18442
18443 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
18444             Eric Botcazou  <ebotcazou@adacore.com>
18445
18446         PR ada/18692
18447         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
18448         check-gnat into check-acats.
18449
18450 2006-06-17  Karl Berry  <karl@gnu.org>
18451
18452         * gnat-style.texi (@dircategory): Use "Software development"
18453         instead of "Programming", following the Free Software Directory.
18454
18455 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18456
18457         PR ada/27944
18458         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
18459
18460 2006-06-06  Laurent Guerby  <laurent@guerby.net>
18461
18462         PR ada/27769
18463         mlib-utl.adb: Use Program_Name.
18464
18465 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
18466
18467         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
18468         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
18469         trans.c, utils.c: Fix comment typos.  Follow spelling
18470         conventions.
18471         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
18472         conventions.
18473
18474 2006-05-19  Nicolas Setton  <setton@adacore.com>
18475
18476         * misc.c (gnat_dwarf_name): New function.
18477         (LANG_HOOKS_DWARF_NAME): Define to it.
18478
18479 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18480
18481         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
18482         (ada/misc.o): Likewise.
18483         (ada/utils.o): Likewise.
18484
18485 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
18486
18487         * Makefile.in: Add Ada support for GNU/kFreeBSD.
18488         * s-osinte-kfreebsd-gnu.ads: New file.
18489
18490 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
18491
18492         * Make-lang.in: Rename docdir to gcc_docdir.
18493
18494 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
18495
18496         * gigi.h (get_ada_base_type): Delete.
18497         * utils2.c (get_ada_base_type): Likewise.
18498         * trans.c (convert_with_check): Operate in the real base type.
18499
18500 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18501
18502         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
18503
18504 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
18505
18506         * utils.c (create_var_decl): Use have_global_bss_p when deciding
18507         whether to make the decl common.
18508
18509 2006-02-20  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
18510
18511         * Make-lang.in (Ada): Remove.
18512         (.PHONY): Remove Ada
18513
18514 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18515
18516         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
18517         aggregate, check the interpretations of the other operand to find one
18518         that may be a boolean array.
18519
18520         (Analyze_Selected_Component): Fix flow-of-control typo in case where
18521         the prefix is a private extension.
18522
18523 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
18524
18525         PR ada/26315
18526         * utils2.c (find_common_type): If both input types are BLKmode and
18527         have the same constant size, keep using the first one.
18528
18529         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
18530
18531         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
18532
18533         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
18534
18535 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
18536
18537         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
18538         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
18539         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
18540         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
18541         Abort_Defer/Undefer pairs to avoid the possibility of a task being
18542         aborted while owning a lock.
18543
18544 2006-02-17  Javier Miranda  <miranda@adacore.com>
18545             Robert Dewar  <dewar@adacore.com>
18546
18547         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
18548         through an access to class-wide interface we force the displacement of
18549         the pointer to the allocated object to reference the corresponding
18550         secondary dispatch table.
18551         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
18552         if Long_Shifts are supported on the target, even if 64 bit divides
18553         are not supported (configurable run time mode).
18554         (Expand_N_Type_Conversion): Do validity check if validity checks on
18555         operands are enabled.
18556         (Expand_N_Qualified_Expression): Do validity check if validity checks
18557         on operands are enabled.
18558
18559 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18560
18561         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
18562         must be materialized when the renamed expression is an explicit
18563         dereference.
18564
18565 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18566
18567         * freeze.adb (Statically_Discriminated_Components): Return false if
18568         the bounds of the type of the discriminant are not static expressions.
18569
18570         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
18571         the bounds of the discriminant type are not static.
18572
18573 2006-02-17  Robert Dewar  <dewar@adacore.com>
18574
18575         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
18576         then we close To if it is valid.
18577
18578 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
18579
18580         * init.c (facility_resignal_table): new array
18581         (__gnat_default_resignal_p): enhance default predicate to resignal if
18582         VMS condition has one of the predefined facility codes.
18583
18584 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
18585
18586         * Makefile.in: Use VMS64 specialized versions of several units in
18587         Interfaces.C hierarchy to be compatible with HP C default size choices.
18588         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
18589
18590 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18591
18592         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
18593         instantiation, the corresponding entity is the related_instance of the
18594         wrapper package created for the instance.
18595
18596 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18597
18598         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
18599         the current instance is nested within another instance in a child unit.
18600
18601 2006-02-17  Javier Miranda  <miranda@adacore.com>
18602             Ed Schonberg  <schonberg@adacore.com>
18603
18604         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
18605         type we cannot inherit the primitive operations; we inherit the
18606         Corresponding_Record_Type (which has the list of primitive operations).
18607         (Check_Anonymous_Access_Types): When creating anonymous access types for
18608         access components, use Rewrite in order to preserve the tree structure,
18609         for ASIS use.
18610         (Analyze_Object_Declaration): For limited types with access
18611         discriminants with defaults initialized by an aggregate, obtain
18612         subtype from aggregate as for other mutable types.
18613         (Derived_Type_Declaration): If the derived type is a limited interface,
18614         set the corresponding flag (Is_Limited_Record is not sufficient).
18615
18616 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18617
18618         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
18619         to inline a function that returns an unconstrained type, the return
18620         expression must be the first variable declared in the body of the
18621         function.
18622
18623 2006-02-17  Javier Miranda  <miranda@adacore.com>
18624
18625         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
18626         abstract interface type, the static analysis is not enough to know if
18627         the interface is implemented or not by the source tagged type. Hence
18628         we must pass the work to the expander to generate the required code to
18629         evaluate the conversion at run-time.
18630         (Resolve_Equality_Op): Do not apply previous
18631         transformation if expansion is disasbled, to prevent anomalies when
18632         locating global references in a generic unit.
18633
18634 2006-02-17  Vincent Celier  <celier@adacore.com>
18635
18636         * snames.ads, snames.adb: New standard names for new project attributes:
18637         archive_builder, archive_indexer, compiler_pic_option,
18638         config_body_file_name, config_body_file_name_pattern,
18639         config_file_switches, config_file_unique, config_spec_file_name,
18640         config_spec_file_name_pattern, default_builder_switches,
18641         default_global_compiler_switches, default_language,
18642         dependency_file_kind, global_compiler_switches, include_path,
18643         include_path_file, language_kind, linker_executable_option,
18644         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
18645         roots, runtime_project.
18646
18647 2006-02-17  Matthew Heaney  <heaney@adacore.com>
18648
18649         * a-convec.ads, a-convec.adb: 
18650         (operator "&"): handle potential overflow for large index types
18651         (Insert): removed Contraint_Error when using large index types
18652         (Insert_Space): removed Constraint_Error for large index types
18653         (Length): moved constraint check from Length to Insert
18654
18655         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
18656         as not null access.
18657         Explicit raise statements now include an exception message.
18658         (operator "&"): handle potential overflow for large index types
18659         (Insert): removed Contraint_Error when using large index types
18660         (Insert_Space): removed Constraint_Error for large index types
18661         (Length): moved constraint check from Length to Insert
18662
18663 2006-02-17  Robert Dewar  <dewar@adacore.com>
18664
18665         * s-wchcnv.adb: Document handling of [ on output (we do not change
18666         this to ["5B"] and the new comments say why not.
18667
18668         * gnat_ugn.texi: 
18669         Add note for -gnatVo that this now includes the cases of type
18670         conversions and qualified expressions.
18671         Add comments on handling of brackets encoding for Text_IO
18672
18673 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
18674             Thomas Quinot  <quinot@adacore.com>
18675             Robert Dewar  <dewar@adacore.com>
18676             Javier Miranda  <miranda@adacore.com>
18677
18678         * expander.adb: Fix typo in comment
18679
18680         * exp_pakd.adb: Fix typo
18681         Minor comment reformatting.
18682
18683         * g-dyntab.adb: Minor reformatting
18684
18685         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
18686         aliased subprograms to look for the abstract interface subprogram.
18687
18688 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
18689
18690         * env.c (__gnat_setenv): Use size_t.
18691         (__gnat_unsetenv): Likewise.
18692         (__gnat_clearenv): Likewise.
18693
18694 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
18695
18696         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
18697
18698 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18699
18700         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
18701         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
18702         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
18703         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
18704         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
18705         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
18706         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
18707         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
18708         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
18709         no longer used.
18710
18711 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
18712
18713         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
18714         protection against race conditions is not needed.
18715         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
18716         fallback handler.
18717         (Set_Specific_Handler): Add mutual exclusive access to the specific
18718         handler.
18719         (Specific_Handler): Add mutual exclusive access for retrieving the
18720         specific handler.
18721
18722         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
18723         back handler.
18724
18725         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
18726         Fall_Back_Handler and Specific_Handler.
18727
18728         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
18729         termination handlers.
18730         Set two different owerflow depending on the maximal stack size.
18731
18732         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
18733         protection against race conditions is not needed when executing the
18734         task termination handler.
18735
18736 2006-02-13  Robert Dewar  <dewar@adacore.com>
18737
18738         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
18739         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
18740         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18741         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
18742         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
18743         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
18744         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
18745         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
18746         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
18747         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18748         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
18749         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
18750         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
18751         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
18752         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
18753         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
18754         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
18755         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
18756         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
18757         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
18758         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
18759         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
18760         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
18761         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
18762         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
18763         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
18764         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
18765         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
18766         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
18767         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
18768         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
18769         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
18770         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
18771         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
18772         reformatting.
18773
18774 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
18775
18776         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
18777         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
18778         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
18779         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
18780         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
18781         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
18782         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
18783         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
18784         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
18785
18786 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18787
18788         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
18789         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
18790         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
18791         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
18792         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
18793         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
18794         replaced by anonymous access type.
18795         (pthread_sigmask): Now take an access sigset_t
18796
18797         * s-osinte-hpux.ads:  Ditto.
18798         (pthread_mutex_t, pthread_cond_t): Update definitions to support
18799         properly 32 and 64 bit ABIs.
18800
18801 2006-02-13  Pascal Obry  <obry@adacore.com>
18802
18803         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
18804         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
18805         s-taprop-linux.adb, s-taprop-solaris.adb,
18806         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
18807         adjustement is already done when calling this routine.
18808
18809 2006-02-13  Pascal Obry  <obry@adacore.com>
18810
18811         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
18812         table to take advantage of the 16 priority levels available on Windows
18813         2000 and XP. On NT4 there are only 7 priority levels, this is properly
18814         supported by this new mapping.
18815
18816 2006-02-13  Nicolas Setton  <setton@adacore.com>
18817
18818         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
18819         (get_encoding): New subprogram. Extracts the encodings from an encoded
18820         Ada name.
18821
18822 2006-02-13  Pascal Obry  <obry@adacore.com>
18823             Nicolas Roche  <roche@adacore.com>
18824             Arnaud Charlet  <charlet@adacore.com>
18825
18826         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
18827         support.
18828         (__gnat_try_lock): Add unicode support by using a specific section on
18829         Windows.
18830         (__gnat_get_current_dir): Idem.
18831         (__gnat_open_read): Idem.
18832         (__gnat_open_rw): Idem.
18833         (__gnat_open_create): Idem.
18834         (__gnat_create_output_file): Idem.
18835         (__gnat_open_append): Idem.
18836         (__gnat_open_new): Idem.
18837         (__gnat_file_time_name): Idem.
18838         (__gnat_set_file_time_name): Idem.
18839         (__gnat_stat): Idem.
18840         (win32_no_block_spawn): Idem.
18841         (__gnat_locate_exec_on_path): Idem.
18842         (__gnat_opendir): New routine.
18843         (__gnat_closedir): Idem.
18844         (__gnat_readdir): Add new parameter length (pointer to int). Update
18845         implementation to use it and add specific Win32 code for Unicode
18846         support.
18847         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18848         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18849         (convert_addresses): Do not define this dummy routine on VMS.
18850
18851         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18852         runtime Unicode support will be activated.
18853         (S2WS): String to Wide-String conversion. This version just copy a
18854         string in non Unicode version.
18855         (WS2S): Wide-String to String conversion. This version just copy a
18856         string in non Unicode version.
18857
18858         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18859         (Open): Now import __gnat_opendir from adaint.c.
18860         (Read): Change the implementation to support unicode characters. It is
18861         not possible to use strlen() on Windows as this version supports only
18862         standard ASCII characters. So the length of the directory entry is now
18863         returned from the imported __gnat_readdir routine.
18864         Update copyright notice.
18865
18866         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18867         (opendir): Moved to adaint.c.
18868
18869         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18870         (Get_Directory): Fix wrong indexing.
18871         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18872         __gnat_getenv from env.c
18873         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18874         from env.c
18875
18876         * env.h, env.c: New file.
18877
18878         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18879         adaint.c by __gnat_getenv from env.c
18880
18881         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18882         adaint.c by __gnat_getenv from env.c
18883
18884         * Make-lang.in: Add env.o in the list of C object needed by gnat1
18885         and gnatbind.
18886         Update dependencies.
18887
18888 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18889             Olivier Hainque  <hainque@adacore.com>
18890             Eric Botcazou  <ebotcazou@adacore.com>
18891
18892         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18893         
18894         * gigi.h (value_factor_p): Add prototype and description, now public.
18895
18896         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18897         promotion for field with rep clause if the associated size was proven
18898         to be in error.
18899         Expand comments describing attempts to use a packable type.
18900         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18901         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18902         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18903         necessary since these are not different types and pointers may
18904         actually designate any subtype in this hierarchy.
18905         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18906         discriminants but put them into record only if not Unchecked_Union;
18907         pass flag to components_to_record showing Unchecked_Union.
18908         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18909         components before variants; don't set TYPE_UNCHECKED_UNION_P.
18910         (components_to_record): New argument UNCHECKED_UNION.
18911         Remove special case code for Unchecked_Union and instead use main code
18912         with small changes.
18913
18914         PR ada/26096
18915         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18916         variable with the expression being built, only its inner field.
18917
18918         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18919         emit_sequence_entry_statements.
18920         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18921         (establish_gnat_vms_condition_handler): Move before
18922         Subprogram_Body_to_gnu.
18923         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18924         for a subprogram if it has a foreign convention or is exported.
18925         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18926         substituted for a CONST_DECL.
18927         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18928         Etype to assoc_to_constructor.
18929         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18930         discriminants of Unchecked_Union.
18931         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18932         don't need cluttering preprocessor directives.
18933         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18934         condition handler as current in the compiled function.
18935         (body_with_handlers_p): New function. Tell whether a given sequence of
18936         statements node is attached to a package or subprogram body and involves
18937         exception handlers possibly nested within inner block statements.
18938         (emit_sequence_entry_statements): New function, to emit special
18939         statements on entry of sequences when necessary. Establish GNAT
18940         condition handler in the proper cases for VMS.
18941         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18942         emit_sequence_entry_statements.
18943
18944         * utils2.c (find_common_type): If both input types are BLKmode and
18945         have a constant size, use the smaller one.
18946         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18947         the same.
18948
18949         * utils.c (value_factor_p): Make public, to allow uses from other gigi
18950         units.
18951         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18952         (convert, case UNION_TYPE): Remove special treatment for unchecked
18953         unions.
18954
18955         PR ada/18659
18956         (update_pointer_to): Update variants of pointer types to unconstrained
18957         arrays by attaching the list of fields of the main variant.
18958
18959 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18960             Robert Dewar  <dewar@adacore.com>
18961
18962         * a-exexpr.adb, a-exexpr-gcc.adb
18963         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18964         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18965         Remove code unused for exception propagation for the compiler itself
18966         from a-except.adb and update to still share separate packages.
18967
18968         * a-except.ads, a-except.adb: Ditto.
18969         Add comments that this version is now used only by the compiler and
18970         other basic tools. The full version that includes the Ada 2005 stuff
18971         is in separate files a-except-2005.ads/adb. The reason is that we do
18972         not want to cause bootstrap problems with compilers not recognizing
18973         Wide_Wide_String.
18974         Add exception reason code PE_Implicit_Return
18975         Add new exception reason code (Null Exception_Id)
18976
18977         * a-except-2005.adb, a-except-2005.ads: New files.
18978
18979         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18980
18981         * s-wchcon.adb: New file.
18982
18983         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18984         (traceback.o deps): Likewise.
18985         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18986         Activate build of GMEM instrumentation library on VMS targets.
18987         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18988         Use a-except-2005.ads/adb for all run-time library builds unless
18989         specified otherwise.
18990         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18991         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18992         Use s-parame.adb on all native platforms.
18993         Use s-parame-vxworks.adb on all vxworks platforms.
18994         Add env.c env.h in LIBGNAT_SRCS
18995         Add env.o in LIBGNAT_OBJS
18996         (GNATMAKE_OBJS): Remove ctrl_c.o object.
18997         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18998         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18999         supports VxWorks 6 RTPs.
19000         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19001         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19002
19003         * types.h, types.ads (Terminate_Program): New exception
19004         Add comment on modifying multiple versions of a-except.adb when the
19005         table of exception reasons is modified.
19006         Add exception reason code PE_Implicit_Return
19007         Add new exception reason code (Null Exception_Id)
19008
19009         * clean.adb (Initialize): Get the target parameters before checking
19010         if target is OpenVMS. Move the OpenVMS specific code here from package
19011         body elaboration code.
19012
19013 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19014             Vincent Celier  <celier@adacore.com>
19015             Robert Dewar  <dewar@adacore.com>
19016
19017         * ali-util.adb (Get_File_Checksum): Update to account for change in
19018         profile of Initialize_Scanner.
19019
19020         * gprep.adb (Gnatprep): Update to account for change in profile of
19021         Initialize_Scanner.
19022         (Process_One_File): Same.
19023
19024         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19025         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19026         that behaviour using the new Unit information recorded in the source
19027         files table, rather than going through all units every time.
19028         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19029         (Get_Source_Unit): Same.
19030
19031         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19032         change in profile of Initialize_Scanner.
19033         (Prepare_To_Preprocess): Same.
19034
19035         * lib.ads: Fix typo in comment (templace -> template).
19036
19037         * prj-part.adb (Parse_Single_Project): Update to account for change in
19038         profile of Initialize_Scanner.
19039
19040         * scn.adb (Initialize_Scanner): Account for change in profile of
19041         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19042         Also record the association of the given Source_File_Index to the
19043         corresponding Unit_Number_Type.
19044
19045         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19046         procedure.
19047         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19048         Remove Unit formal for generic scanner: this formal
19049         is only relevant to Scn (the scanner instance used to parse Ada source
19050         files), not to other instances. Update comment accordingly.
19051         (Scan): Use new function Snames.Is_Keyword_Name.
19052
19053         * sinfo-cn.adb: Fix typo in comment.
19054
19055         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19056         Unit.
19057
19058         * sinput.ads (Source_File_Record): New component Unit, used to capture
19059         the unit identifier (if any) associated to a source file.
19060
19061         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19062         Unit in Source_File_Record.
19063
19064         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19065         in profile of Initialize_Scanner.
19066
19067         * scans.adb (Initialize_Ada_Keywords): New procedure
19068
19069         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19070         Ada keywords in the Namet table, without the need to call
19071         Initialize_Scanner.
19072
19073         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19074         (Is_Keyword_Name): New function
19075
19076         * snames.ads: Add subtype Configuration_Pragma_Names
19077         Add pragma Ada_2005 (synonym for Ada_05)
19078         (Is_Keyword_Name): New function
19079
19080         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19081
19082 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19083
19084         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19085         index.
19086
19087         * a-stwima.adb (To_Set): Add extra check when N = 0.
19088
19089         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19090
19091 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19092
19093         * s-parame-mingw.adb, s-parame-linux.adb,
19094         s-parame-solaris.adb: Removed, replaced by s-parame.adb
19095
19096         * s-parame-vxworks.ads: Fix typo.
19097
19098         * s-parame-vxworks.adb: New file.
19099
19100         * s-parame.adb: Version now used by all native platforms.
19101         (Default_Stack_Size): Use 2 megs for default stack size and use
19102         __gl_default_stack_size when available.
19103         (Minimum_Stack_Size): Use 12K.
19104
19105         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19106         (Create_Task): Refine implementation taking advantage of the XP stack
19107         size support. On XP, we now create the thread using the flag
19108         STACK_SIZE_PARAM_IS_A_RESERVATION.
19109
19110         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19111
19112         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19113         XP and 0 on older Windows versions.
19114
19115         * interfac-vms.ads: Removed, no longer used.
19116
19117 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19118
19119         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
19120         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
19121         a-cohase.adb: All explicit raise statements now include an exception
19122         message.
19123
19124         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19125         (Update_Element_Preserving_Key): renamed op to just Update_Element.
19126         Explicit raise statements now include an exception message
19127
19128         * a-cihase.ads, a-cohase.ads: Removed comment.
19129
19130         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19131         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19132         a-szbzha.adb, a-szfzha.ads: New files.
19133
19134 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19135
19136         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19137         quicksort.
19138
19139 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19140
19141         * lang.opt: Wvariadic-macros: New option.
19142         Wold-style-definition: Likewise.
19143         Wmissing-format-attribute: Likewise.
19144
19145         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19146         -Wold-style-definition and -Wmissing-format-attribute.
19147
19148 2006-02-13  Robert Dewar  <dewar@adacore.com>
19149
19150         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19151
19152         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19153
19154 2006-02-13  Nicolas Roche  <roche@adacore.com>
19155
19156         * a-envvar.adb, a-envvar.ads: New files.
19157
19158 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19159
19160         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19161
19162         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19163
19164 2006-02-13  Pat Rogers  <rogers@adacore.com>
19165
19166         * a-rttiev.adb, a-rttiev.ads: New files.
19167
19168 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19169
19170         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19171         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
19172
19173         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19174
19175 2006-02-13  Robert Dewar  <dewar@adacore.com>
19176
19177         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
19178         sem_case.adb: Minor code reorganization (not Present should be No)
19179
19180 2006-02-13  Geert Bosch  <bosch@adacore.com>
19181             Gary Dismukes  <dismukes@adacore.com>
19182
19183         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19184         0, since the lower bound of the actual string may be greater than one.
19185
19186         PR ada/20753
19187         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19188         layout is requested.
19189
19190 2006-02-13  Vincent Celier  <celier@adacore.com>
19191
19192         * back_end.adb (Scan_Compiler_Arguments): Check if
19193         Search_Directory_Present is True and, if it is, add the argument in
19194         the source search directory path.
19195
19196         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19197         Search_Directory_Present to True.
19198
19199 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
19200
19201         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19202         volatile, to tell the compiler to preserve this variable at any level
19203         of optimization.
19204         (Gen_Versions_Ada): Temporarily work around codegen bug.
19205
19206 2006-02-13  Vincent Celier  <celier@adacore.com>
19207
19208         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19209         gcc to link with option -shared-libgcc.
19210         (Gnatlink): Remove duplicate switches -shared-libgcc
19211
19212 2006-02-13  Robert Dewar  <dewar@adacore.com>
19213
19214         * gnatvsn.ads (Current_Year): New constant, used to easily update
19215         copyright on all GNAT tools.
19216
19217         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19218         copyright notice.
19219
19220 2006-02-13  Robert Dewar  <dewar@adacore.com>
19221
19222         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19223         after hyphen (small aesthetic change useful for a range of numbers
19224         using ^-^.
19225         Suppress range checks for a couple of assignments which otherwise
19226         cause validity checks with validity checking turned on.
19227
19228         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19229         Improvement in error message for object.
19230         (Rep_Item_Too_Late): Remove '!' in warning message.
19231
19232 2006-02-13  Robert Dewar  <dewar@adacore.com>
19233             Eric Botcazou  <ebotcazou@adacore.com>
19234
19235         * err_vars.ads: Suppress range checks for a couple of assignments
19236         which otherwise cause validity checks with validity checking turned on.
19237         Update comments.
19238
19239         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19240         Make message unconditional if it is a warning.
19241         (Error_Msg_NEL): Always output warning messages.
19242         Suppress range checks for a couple of assignments which otherwise
19243         cause validity checks with validity checking turned on.
19244
19245         * errout.ads (Message Insertion Characters): Document that '!' is
19246         implied by '?' in error messages.
19247
19248         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19249         (Gnat1drv): Use a goto to end of main subprogram instead of
19250         Exit_Program (E_Success) so that finalization can occur normally.
19251
19252 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19253
19254         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19255         wrapped around.
19256
19257 2006-02-13  Vincent Celier  <celier@adacore.com>
19258
19259         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19260         Unchecked_Conversion functions.
19261         (Modification_Time): Use direct conversion of OS_Time to Calendar time
19262         when OpenVMS returns False.
19263
19264         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19265         a-dirval.adb (OpenVMS): New Boolean function
19266
19267 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19268             Thomas Quinot  <quinot@adacore.com>
19269
19270         * checks.adb (Build_Discriminant_Checks): If the expression being
19271         checks is an aggregate retrieve the values of its discriminants to
19272         generate the check, rather than creating a temporary and a reference
19273         to it.
19274         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19275         (Install_Null_Excluding_Check): Ditto
19276         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19277         not for the renamed object, so that the actual itype is attached in the
19278         proper context.
19279
19280 2006-02-13  Robert Dewar  <dewar@adacore.com>
19281             Vincent Celier  <celier@adacore.com>
19282
19283         * debug.adb: Eliminate numeric switches for binder/gnatmake
19284
19285         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19286         switches for the compiler.
19287         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
19288         (Scan_Make_Switches): When failing with an illegal switch, output an
19289         error message with the full switch.
19290         Eliminate numeric switches for binder/gnatmake
19291
19292         * switch.ads, switch.adb (Bad_Switch): New procedure
19293
19294         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
19295         Remove 0-9 as debug flag character possibilities
19296         -d is now controlling the primary stack size when its value is a
19297         positive. Also add checks against invalid values, and support for kb,
19298         mb. Ditto for -D switch.
19299
19300 2006-02-13  Robert Dewar  <dewar@adacore.com>
19301             Serguei Rybin  <rybin@adacore.com>
19302
19303         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
19304         save/restore routines.
19305         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19306         were not always properly handled previously.
19307         Since we are changing the tree format anyway, also get rid of the
19308         junk obsolete Immediate_Errors flag.
19309         (Tree_Read): Change the way of reading Tree_Version_String - now we
19310         read the version string from the tree even if its length is not the
19311         same as the length of the version string computed from Gnatvsn.
19312         (Search_Directory_Present): New Boolean flag for the compiler.
19313         Define Tree_Version_String as a dynamic string.
19314         (Default_Stack_Size): new variable, used to handle switch -d.
19315
19316         * par-prag.adb: 
19317         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
19318         only for main unit.
19319         Add pragma Ada_2005 (synonym for Ada_05)
19320         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19321         were not always properly handled previously.
19322
19323         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
19324         explicit Ada_95 to Ada_2005.
19325
19326 2006-02-13  Javier Miranda  <miranda@adacore.com>
19327             Robert Dewar  <dewar@adacore.com>
19328             Ed Schonberg  <schonberg@adacore.com>
19329
19330         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
19331         against errors in the source program: a private types for which the
19332         corresponding full type declaration is missing and pragma CPP_Virtual
19333         is used.
19334         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
19335         (Is_Known_Null): New flag
19336         (Has_Pragma_Pure): New flag
19337         (No_Return): Present in all entities, set only for procedures
19338         (Is_Limited_Type): A type whose ancestor is an interface is limited if
19339         explicitly declared limited.
19340         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
19341         entities. Only used for component marked Is_Tag. If present it stores
19342         the Offset_To_Top function used to provide this value in tagged types
19343         whose ancestor has discriminants.
19344
19345         * exp_ch2.adb: Update status of new Is_Known_Null flag
19346
19347         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
19348
19349         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
19350         the categorization sense if Is_Pure was set by pragma Pure_Function.
19351
19352 2006-02-13  Quentin Ochem  <ochem@adacore.com>
19353             Olivier Hainque  <hainque@adacore.com>
19354
19355         * bindusg.adb: Updated documentation for -d and -D switches.
19356
19357         * raise.h (__gnat_set_globals): added new parameter for
19358         Default_Stack_Size.
19359
19360         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
19361         (__gnat_handle_vms_condition): Adjust context before raise.
19362         (__gnat_install_handler): Restore the global vector setup for GCC
19363         versions before 3.4, as the frame based circtuitry is not available
19364         in this case.
19365         (__gnat_set_globals): added a parameter default_stack_size
19366         (__gl_default_stack_size): new variable.
19367
19368 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19369
19370         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
19371         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
19372         does not exist in the Ada RM.
19373         (Compatible_Int_Bounds): Determine whether two integer range bounds
19374         are of equal length and have the same start and end values.
19375         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
19376         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
19377         aggregate when it is part of an object declaration.
19378         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
19379         constrains discriminants of its parent, add explicitly the discriminant
19380         constraints of the ancestor by retrieving them from the
19381         stored_constraint of the parent.
19382
19383 2006-02-13  Robert Dewar  <dewar@adacore.com>
19384
19385         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
19386         attribute Mechanism_Code is applied to renamed subprogram, modify
19387         prefix to point to base subprogram.
19388         Max/Min attributes now violate Restriction No_Implicit_Conditionals
19389
19390         * sinfo.ads: Document that Mechanism_Code cannot be applied to
19391         renamed subprograms so that the front-end must replace the prefix
19392         appropriately.
19393
19394 2006-02-13  Javier Miranda  <miranda@adacore.com>
19395             Gary Dismukes  <dismukes@adacore.com>
19396
19397         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
19398         availability of RE_Interface_Tag.
19399         (Build_Initialization_Call): Fix wrong access to the discriminant value.
19400         (Freeze_Record_Type): Do not generate the tables associated with
19401         timed and conditional dispatching calls through synchronized
19402         interfaces if compiling under No_Dispatching_Calls restriction.
19403         When compiling for Ada 2005, for a nonabstract
19404         type with a null extension, call Make_Controlling_Function_Wrappers
19405         and insert the wrapper function declarations and bodies (the latter
19406         being appended as freeze actions).
19407         (Predefined_Primitive_Bodies): Do not generate the bodies of the
19408         predefined primitives associated with timed and conditional
19409         dispatching calls through synchronized interfaces if we are
19410         compiling under No_Dispatching_Calls.
19411         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
19412         service is available before generating a call.
19413         (Make_Controlling_Function_Wrappers): New procedure.
19414         (Expand_N_Full_Type_Declaration): Create a class-wide master for
19415         access-to-limited-interfaces because they can be used to reference
19416         tasks that implement such limited interface.
19417         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
19418         procedure spec and body of the Offset_To_Top function that is generated
19419         when the parent of a type with discriminants has secondary dispatch
19420         tables.
19421         (Init_Secondary_Tags): Handle the case in which the parent of the type
19422         containing secondary dispatch tables has discriminants to generate the
19423         correct arguments to call Set_Offset_To_Top.
19424         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
19425
19426         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
19427         Add Wide_[Wide_]Expanded_Name.
19428         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
19429         the same functionality of Get_Prim_Op_Address but applied to predefined
19430         primitive operations because the pointers to the predefined primitives
19431         are now saved in a separate table.
19432         (Parent_Size): Modified to get access to the separate table of primitive
19433         operations or the parent type.
19434         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
19435         functionality of Set_Prim_Op_Address but applied to predefined primitive
19436         operations.
19437         (Set_Signature): New subprogram used to store the signature of a DT.
19438         (Displace): If the Offset_To_Top value is not static then call the
19439         function generated by the expander to get such value; otherwise use
19440         the value stored in the table of interfaces.
19441         (Offset_To_Top): The type of the actual has been changed to Address to
19442         give the correct support to tagged types with discriminants. In this
19443         case this value is stored just immediately after the tag field.
19444         (Set_Offset_To_Top): Two new formals have been added to indicate if the
19445         offset_to_top value is static and hence pass this value to the run-time
19446         to store it in the table of interfaces, or else if this value is dynamic
19447         and then pass to the run-time the address of a function that is
19448         generated by the expander to provide this value for each object of the
19449         type.
19450
19451         * rtsfind.ads (Default_Prin_Op_Count): Removed.
19452         (Default_Prim_Op_Count): New entity
19453         (Get_Predefined_Prim_Op_Address): New entity
19454         (Set_Predefined_Prim_Op_Address): New entity
19455         (RE_Set_Signature): New entity
19456
19457 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19458             Ed Schonberg  <schonberg@adacore.com>
19459
19460         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
19461         Make_Adjust_Call done for a newly-allocated object.
19462
19463         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
19464         in a subprogram are wrapped in a cleanup block, indicate that the
19465         subprogram contains an inner block with an exception handler.
19466         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
19467         Adjust call is for a newly-allocated object. In that case we must not
19468         assume that the finalization list chain pointers are correct (since they
19469         come from a bit-for-bit copy of the original object's pointers) so if
19470         the attach level would otherwise be zero (no change), we set it to 4
19471         instead to cause the pointers to be reset to null.
19472
19473         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
19474         reset chain pointers to null.
19475
19476 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19477
19478         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
19479         string, and the context requires a loop for the assignment (e.g.
19480         because the left-hand side is packed), generate a unique name for the
19481         temporary that holds the string, to prevent spurious name clashes.
19482
19483 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19484             Javier Miranda  <miranda@adacore.com>
19485             Robert Dewar  <dewar@adacore.com>
19486             Gary Dismukes  <dismukes@adacore.com>
19487
19488         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
19489         return unconstrained arrays.
19490         Update comments.
19491         (Expand_Call):  An indirect call through an access parameter of a
19492         protected operation is not a protected call.
19493         Add circuit to raise CE in Ada 2005 mode following call
19494         to Raise_Exception.
19495         (Register_DT_Entry): Do nothing if
19496         the run-time does not give support to abstract interfaces.
19497         (Freeze_Subprogram): In case of dispatching operations, do not generate
19498         code to register the operation in the dispatch table if the source
19499         is compiled with No_Dispatching_Calls.
19500         (Register_Predefined_DT_Entry): Generate code that calls the new
19501         run-time subprogram Set_Predefined_Prim_Op_Address instead of
19502         Set_Prim_Op_Address.
19503
19504         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
19505         on array assignments if the right-hand side is a function call that has
19506         been inlined. Check is performed on the assignment in the block.
19507         (Process_Bounds): If bounds and range are overloaded, apply preference
19508         rule for root operations to disambiguate, and diagnose true ambiguity.
19509         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
19510         a tag-indeterminate right-hand side even when Expander_Active is True.
19511         Needed to ensure that dispatching calls to T'Input are allowed and
19512         get the tag of the target class-wide object.
19513
19514         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
19515         an inherited primitive operation that already overrides several
19516         abstract interface primitives. For transitivity, the new entity must
19517         also override all the abstract interface primitives covered by the
19518         inherited overriden primitive.
19519         Emit warning if new entity differs from homograph in same scope only in
19520         that one has an access parameter and the other one has a parameter of
19521         a general access type with the same designated type, at the same
19522         position in the signature.
19523         (Make_Inequality_Operator): Use source locations of parameters and
19524         subtype marks from corresponding equality operator when creating the
19525         tree structure for the implicit declaration of "/=". This does not
19526         change anything in behaviour except that the decoration of the
19527         components of the subtree created for "/=" allows ASIS to get the
19528         string images of the corresponding identifiers.
19529         (Analyze_Return_Statement): Remove '!' in warning message.
19530         (Check_Statement_Sequence): Likewise.
19531         (Analyze_Subprogram_Body): For an access parameter whose designated type
19532         is an incomplete type imported through a limited_with clause, use the
19533         type of the corresponding formal in the body.
19534         (Check_Returns): Implicit return in No_Return procedure now raises
19535         Program_Error with a compile time warning, instead of beging illegal.
19536         (Has_Single_Return):  Function returning unconstrained type cannot be
19537         inlined if expression in unique return statement is not an identifier.
19538         (Build_Body_To_Inline): It is possible to inline a function call that
19539         returns an unconstrained type if all return statements in the function
19540         return the same local variable. Subsidiary procedure Has_Single_Return
19541         verifies that the body conforms to this restriction.
19542
19543         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
19544         same type, and  one of them is of an anonymous access type, convert
19545         the other operand to it, so that this is a valid binary operation for
19546         gigi.
19547         (Resolve_Type_Conversion): Handle subtypes of protected types and
19548         task types when accessing to the corresponding record type.
19549         (Resolve_Allocator): Add '\' in 2-line warning message.
19550         Remove '!' in warning message.
19551         (Resolve_Call): Add '\' in 2-line warning message.
19552         (Valid_Conversion): Likewise.
19553         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
19554         resulting type may be an access type with an implicit dereference.
19555         Obtain the proper component from the designated type.
19556         (Make_Call_Into_Operator): Handle properly a call to predefined equality
19557         given by an expanded name with prefix Standard, when the operands are
19558         of an anonymous access type.
19559         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
19560         Explicit_Dereference and Resolve_Selected_Component, to verify that the
19561         prefix of the expression is not of an incomplete type. Allows full
19562         diagnoses of all semantic errors.
19563         (Resolve_Actuals): If the actual is an allocator whose directly
19564         designated type is a class-wide interface we build an anonymous
19565         access type to use it as the type of the allocator. Later, when
19566         the subprogram call is expanded, if the interface has a secondary
19567         dispatch table the expander will add a type conversion to force
19568         the displacement of the pointer.
19569         (Resolve_Call): If a function that returns an unconstrained type is
19570         marked Inlined_Always and inlined, the call will be inlined and does
19571         not require the creation of a transient scope.
19572         (Check_Direct_Boolean_Op): Removed
19573         (Resolve_Comparison_Op): Remove call to above
19574         (Resolve_Equality_Op): Remove call to above
19575         (Resolve_Logical_Op): Inline above, since this is only call.
19576         (Valid_Conversion): Handle properly conversions between arrays of
19577         convertible anonymous access types.
19578
19579         PR ada/25885
19580         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
19581         the literal in an unchecked conversion, because GCC 4.x needs a static
19582         value for a string bound.
19583
19584 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19585             Hristian Kirtchev  <kirtchev@adacore.com>
19586
19587         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
19588         components of the corresponding record, take into account component
19589         definitions that are access definitions.
19590         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
19591         procedure is not considered a dispatching call and will be expanded
19592         properly.
19593
19594 2006-02-13  Javier Miranda  <miranda@adacore.com>
19595
19596         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
19597         controlling argument of the dispatching call is an abstract interface
19598         class-wide type then we use it directly.
19599         Check No_Dispatching_Calls restriction.
19600         (Default_Prim_Op_Position): Remove the code that looks for the last
19601         entity in the list of aliased subprograms. This code was wrong in
19602         case of renamings.
19603         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
19604         when the source is compiled with the No_Dispatching_Calls restriction.
19605         (Init_Predefined_Interface_Primitives): No need to inherit primitives
19606         if we are compiling with restriction No_Dispatching_Calls.
19607         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
19608         subprograms if we are compiling under No_Dispatching_Calls restriction.
19609         (Make_DT): Generate a dispatch table with a single dummy entry if
19610         we are compiling with the No_Dispatching_Calls restriction. In
19611         addition, in this case we don't generate code that calls to the
19612         following run-time subprograms: Set_Type_Kind, Inherit_DT.
19613         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
19614         of this subprogram if compiling with the No_Dispatching_Calls
19615         restriction.
19616         (Expand_Type_Conversion): Instead of using the actual parameter,
19617         the argument passed as parameter to the conversion function was
19618         erroneously referenced by the expander.
19619         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
19620         Set_Predefined_Primitive_Op_Address and Set_Signature.
19621         (Expand_Dispatching_Call): Generate call to
19622         Get_Predefined_Prim_Op_Address for predefined primitives.
19623         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
19624         predefined primitives.
19625         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
19626         primitives we reserve one dummy entry to ensure that the tag does not
19627         point to some memory that is associated with some other object. In
19628         addition, remove all the old code that generated the assignments
19629         associated with the signature of the dispatch table and replace them
19630         by a call to the new subprogram Set_Signature.
19631         (Set_All_DT_Position): Change the algorithm because now we have a
19632         separate dispatch table associated with predefined primitive operations.
19633         (Expand_Interface_Conversion): In case of non-static offset_to_top
19634         add explicit dereference to get access to the object after the call
19635         to displace the pointer to the object.
19636         (Expand_Interface_Thunk): Modify the generation of the actual used
19637         in the calls to the run-time function Offset_To_Top to fulfil its
19638         new interface.
19639         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
19640
19641 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19642
19643         * exp_dist.adb (Copy_Specification): For access parameters, copy
19644         Null_Exclusion flag, which will have been set for stream subprograms
19645         in Ada2005 mode.
19646
19647 2006-02-13  Pascal Obry  <obry@adacore.com>
19648
19649         * expect.c (__gnat_expect_portable_execvp): New implementation. The
19650         previous implementation was using the C runtime spawnve routine but
19651         the corresponding wait was using directly the Win32 API. This was
19652         causing some times a lock when waiting for an event using
19653         WaitForSingleObject in __gnat_waitpid. This new implementation uses
19654         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
19655         API fixes this problem.
19656
19657 2006-02-13  Robert Dewar  <dewar@adacore.com>
19658
19659         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
19660         call.
19661
19662 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19663
19664         * exp_pakd.ads: Fix typos in comments.
19665
19666         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
19667         array reference that is an explicit dereference, mark the converted
19668         (packed) array reference as analyzed to prevent a forthcoming
19669         reanalysis from resetting its type to the original (non-packed) array
19670         type.
19671
19672 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19673             Javier Miranda  <miranda@adacore.com>
19674             Eric Botcazou  <ebotcazou@adacore.com>
19675
19676         * exp_util.ads, exp_util.adb (Find_Prim_Op,
19677         Is_Predefined_Primitive_Operation): When
19678         searching for the predefined equality operator, verify that operands
19679         have the same type.
19680         (Is_Predefined_Dispatching_Operation): Remove the code that looks
19681         for the last entity in the list of aliased subprograms. This code
19682         was wrong in case of renamings.
19683         (Set_Renamed_Subprogram): New procedure
19684         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
19685         Exp_Type constant computed when entering this subprogram.
19686         (Known_Null): New function
19687         (OK_To_Do_Constant_Replacement): New function
19688         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
19689         (Side_Effect_Free): An attribute reference 'Input is not free of
19690         side effect, unlike other attributes that are functions. (from code
19691         reading).
19692         (Remove_Side_Effects): Expressions that involve packed arrays or records
19693         are copied at the point of reference, and therefore must be marked as
19694         renamings of objects.
19695         (Is_Predefined_Dispatching_Operation): Return false if the operation is
19696         not a dispatching operation.
19697
19698         PR ada/18819
19699         (Remove_Side_Effects): Lift enclosing type conversion nodes for
19700         elementary types in all cases.
19701
19702 2006-02-13  Javier Miranda  <miranda@adacore.com>
19703
19704         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
19705         task types when accessing to the corresponding record type.
19706         Remove '!' in warning message.
19707
19708 2006-02-13  Olivier Hainque  <hainque@adacore.com>
19709
19710         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
19711         to avoid useless and space inefficient overalignments on targets where
19712         Max_Alignment is larger than 16.
19713
19714 2006-02-13  Pascal Obry  <obry@adacore.com>
19715
19716         * g-catiio.adb (Sec_Number): New type used to compute the number of
19717         seconds since 1-1-1970.
19718         (Image) [Natural]: The parameter was an Integer, as we can't deal with
19719         negative numbers (years, months...) it is better to have a Natural here.
19720         Code clean-up.
19721         (Image) [Number]: Change parameter from Long_Integer to Number.
19722         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
19723         overflow for dates past year 2038.
19724
19725 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19726
19727         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
19728         Constraint_Error.
19729
19730 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19731
19732         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
19733         native platforms.
19734         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
19735         finalization can occur normally.
19736
19737 2006-02-13  Vincent Celier  <celier@adacore.com>
19738
19739         * gnatcmd.adb (Rules_Switches): New table
19740         (Add_To_Rules_Switches): New procedure
19741         (GNATCmd): For command CHECK, put all options following "-rules" in the
19742         Rules_Switches table. Append these -rules switches after the -cargs
19743         switches.
19744
19745 2006-02-13  Robert Dewar  <dewar@adacore.com>
19746
19747         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
19748         These two cases were generating incorrect output, and if this unit
19749         was built with checks on, generated a discriminant mismatch constraint
19750         error.
19751
19752 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19753             Robert Dewar  <dewar@adacore.com>
19754
19755         * lib-xref.adb (Get_Type_Reference): For a private type whose full
19756         view is an array type, indicate the component type as well, for
19757         navigation purposes.
19758         (Generate_Reference): Don't consider array ref on LHS to be a case
19759         of violating pragma Unreferenced.
19760         Do not give Ada 2005 warning except on real reference.
19761
19762 2006-02-13  Vincent Celier  <celier@adacore.com>
19763
19764         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
19765         main source, add switch -mdebug-main=_ada_ so that the executable can
19766         be debugged by the standard VMS debugger.
19767         (Gnatmake): Set No_Main_Subprogram to True when there is no main
19768         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
19769         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
19770         of the last source, as the binding and linking phases are never
19771         performed.
19772         Set all executable obsolete when rebuilding a library.
19773
19774         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
19775         options.
19776
19777 2006-02-13  Javier Miranda  <miranda@adacore.com>
19778
19779         PR ada/23973
19780         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
19781         code to improve the error message reported when the program has
19782         declarations of abstract interface types and it is not compiled with
19783         the -gnat05 switch.
19784         (P_Access_Definition): Reorganize the code to improve the error
19785         message reported when the new Ada 2005 syntax for anonymous
19786         access types is used and the program is not compiled with the
19787         -gnat05 switch.
19788
19789 2006-02-13  Robert Dewar  <dewar@adacore.com>
19790
19791         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
19792         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
19793         (MODE_IN)
19794
19795 2006-02-13  Javier Miranda  <miranda@adacore.com>
19796
19797         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
19798         against source containing syntax errors.
19799
19800 2006-02-13  Vincent Celier  <celier@adacore.com>
19801
19802         * prj.adb (Reset): Initialize the first element of table Namings with
19803         the standard naming data.
19804
19805 2006-02-13  Vincent Celier  <celier@adacore.com>
19806
19807         * prj.ads (Error_Warning): New enumeration type
19808
19809         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
19810         unknown, use the location of the project to report the error.
19811         (When_No_Sources): New global variable
19812         (Report_No_Ada_Sources): New procedure
19813         (Check): New parameter When_No_Sources. Set value of global variable
19814         When_No_Sources,
19815         (Find_Sources): Call Report_No_Ada_Sources when appropriate
19816         (Get_Sources_From_File): Ditto
19817         (Warn_If_Not_Sources): Better warning messages indicating the unit name
19818         and the file name.
19819
19820         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
19821         Call Prj.Proc.Process with parameter When_No_Sources.
19822
19823         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
19824         Call Recursive_Check with parameter When_No_Sources.
19825         (Recursive_Check): New parameter When_No_Sources. Call itself and
19826         Prj.Nmsc.Check with parameter When_No_Sources.
19827         (Process): New parameter When_No_Sources. Call Check with parameter
19828         When_No_Sources.
19829         (Copy_Package_Declarations): New procedure to copy renamed parameters
19830         and setting the location of the declared attributes to the location
19831         of the renamed package.
19832         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
19833         packages.
19834
19835 2006-02-13  Vincent Celier  <celier@adacore.com>
19836
19837         * prj-makr.adb (Make): Preserve the comments from the original project
19838         file.
19839         When removing nodes (attributes Source_Dirs, Source_Files,
19840         Source_List_File and package Naming), save the comments and attach the
19841         saved comments to the newly created nodes.
19842         Do not add a with clause for the naming package if one already exists.
19843
19844 2006-02-13  Javier Miranda  <miranda@adacore.com>
19845             Gary Dismukes  <dismukes@adacore.com>
19846             Robert Dewar  <dewar@adacore.com>
19847
19848         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19849
19850         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19851         aliased entities to look for the overriden abstract interface
19852         subprogram.
19853         (Is_Interface_Subprogram): Complete documentation.
19854         (Check_Dispatching_Operation): Do not generate code to register the
19855         operation in the dispatch table if the source is compiled with
19856         restriction No_Dispatching_Calls.
19857         (Override_Dispatching_Operation): Check for illegal attempt to override
19858         No_Return procedure with procedure that is not No_Return
19859         (Check_Dispatching_Call): Suppress the check for an abstract operation
19860         when the original node of an actual is a tag-indeterminate attribute
19861         call, since the attribute, which must be 'Input, can never be abstract.
19862         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19863         call to the Input attribute (even when rewritten).
19864         (Propagate_Tag): Augment comment to indicate the possibility of a call
19865         to an Input attribute.
19866
19867         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19868         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19869
19870         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19871         No_Wide_Characters is no longer partition-wide
19872         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19873         rather than GNAT
19874
19875 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19876
19877         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19878
19879 2006-02-13  Javier Miranda  <miranda@adacore.com>
19880
19881         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19882         handles default-initialized components to keep separate the management
19883         of this feature but also avoid the unrequired resolution and
19884         expansion of components that do not have partially initialized
19885         values.
19886         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19887         (Check_Bounds): Likewise.
19888         (Check_Length): Likewise.
19889
19890 2006-02-13  Javier Miranda  <miranda@adacore.com>
19891             Ed Schonberg  <schonberg@adacore.com>
19892
19893         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19894         abstract interface type call analyze_and_resolve to expand the type
19895         conversion into the corresponding displacement of the
19896         reference to the base of the object.
19897         (Eval_Attribute, case Width): For systems where IEEE extended precision
19898         is supported, the maximum exponent occupies 4 decimal digits.
19899         (Accessibility_Message): Add '\' in 2-line warning message.
19900         (Resolve_Attribute): Likewise.
19901         (case Attribute_Access): Significantly revise checks
19902         for illegal access-to-subprogram Access attributes to properly enforce
19903         the rules of 3.10.2(32/2).
19904         Diagnose use of current instance with an illegal attribute.
19905
19906         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19907         to a Node_Id.
19908         (Enclosing_Generic_Unit): New function to return a node's innermost
19909         enclosing generic declaration node.
19910         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19911         (Type_Access_Level): The accessibility level of anonymous acccess types
19912         associated with discriminants is that of the current instance of the
19913         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19914         (Compile_Time_Constraint_Error): Handle case of conditional expression.
19915         (Kill_Current_Values_For_Entity): New function
19916         (Enter_Name): Change formal type to Entity_Id
19917
19918 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19919             Ed Schonberg  <schonberg@adacore.com>
19920             Gary Dismukes  <dismukes@adacore.com>
19921
19922         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19923         Analyze_Compilation_Unit.
19924         Detect and warn on redundant with clauses detected in a package spec
19925         and/or body when -gnatwr is used.
19926         (Analyze_Context): Analyze config pragmas before other items
19927         (Install_Context_Items): Don't analyze config pragmas here
19928         (Install_Limited_Withed_Unit): Set limited entity of package in
19929         with_clause so that cross-reference information or warning messages on
19930         unused packages can be properly generated
19931         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19932         has Error_Posted set. Prevent infinite loops in illegal programs.
19933         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19934         to the point of the error test requiring the current unit to be private.
19935         This ensures that private with clauses are not exempted from the basic
19936         checking for being a descendant of the same library unit parent as a
19937         withed private descendant unit.
19938         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19939         handle private with clauses properly, as well as to account for cases
19940         where the withed unit is a public descendant of a private ancestor
19941         (in which case the current unit must be a descendant of the private
19942         ancestor's parent). The spec comments were updated accordingly. Also,
19943         the old error message in this subprogram was replaced with error
19944         messages that mirror the errors tested and reported by
19945         Check_Private_Child_Unit.
19946         Parameter and variable names improved for readability.
19947         (Install_Limited_Context_Clauses): Remove test for a withed unit being
19948         private as the precondition for calling
19949         Check_Private_Limited_Withed_Unit since that subprogram has been
19950         revised to test public units as well as private units.
19951
19952 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19953             Robert Dewar  <dewar@adacore.com>
19954             Ed Schonberg  <schonberg@adacore.com>
19955             Javier Miranda  <miranda@adacore.com>
19956
19957         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19958         that Scope_Stack.First = 1.
19959         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19960         were not always properly handled previously.
19961         (Formal_Entity): Complete rewrite, to handle properly some complex case
19962         with multiple levels of parametrization by formal packages.
19963         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19964         to the corresponding derived type declaration for proper semantics.
19965
19966         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19967         (Check_Component): Enforce restriction on components of
19968         unchecked_unions: a component in a variant cannot contain tasks or
19969         controlled types.
19970         (Unchecked_Union): Allow nested variants and multiple discriminants, to
19971         conform to AI-216.
19972         Add pragma Ada_2005 (synonym for Ada_05)
19973         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19974         were not always properly handled previously.
19975         Document that pragma Propagate_Exceptions has no effect
19976         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19977         (Set_Convention_From_Pragma): Check that if a convention is
19978         specified for a dispatching operation, then it must be
19979         consistent with the existing convention for the operation.
19980         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19981         longer required to specify an vtable-ptr component in the record. For
19982         compatibility reasons we leave the support for the previous definition.
19983         (Analyze_Pragma, case No_Return): Allow multiple arguments
19984
19985         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19986         non-overrideen inherited operation with a controlling result as
19987         illegal only its implicit declaration comes from the derived type
19988         declaration of its result's type.
19989         (Check_Possible_Deferred_Completion): Relocate the object definition
19990         node of the subtype indication of a deferred constant completion rather
19991         than directly analyzing it. The analysis of the generated subtype will
19992         correctly decorate the GNAT tree.
19993         (Record_Type_Declaration): Check whether this is a declaration for a
19994         limited derived record before analyzing components.
19995         (Analyze_Component_Declaration): Diagnose record types  not explicitly
19996         declared limited when a component has a limited type.
19997         (Build_Derived_Record_Type): Code reorganization to check if some of
19998         the inherited subprograms of a tagged type cover interface primitives.
19999         This check was missing in case of a full-type associated with a private
20000         type declaration.
20001         (Constant_Redeclaration): Check that the subtypes of the partial and the
20002         full view of a constrained deferred constant statically match.
20003         (Mentions_T): A reference to the current type in an anonymous access
20004         component declaration  must be an entity name.
20005         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20006         class_wide type to refer to full type, not to the incomplete one.
20007         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20008         available. Required to give support to the certified run-time.
20009         (Analyze_Component_Declaration): In case of anonymous access components
20010         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20011         (Process_Discriminants): For an access discriminant, use the
20012         discriminant specification as the associated_node_for_itype, to
20013         simplify accessibility checks.
20014
20015 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20016             Javier Miranda  <miranda@adacore.com>
20017
20018         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20019         abstract interpretations on an operator, remove interpretations that
20020         yield Address or a type derived from it, if one of the operands is an
20021         integer literal.
20022         (Try_Object_Operation.Try_Primitive_Operation,
20023         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20024         location when creating the new reference to a primitive or class-wide
20025         operation as a part of rewriting a subprogram call.
20026         (Try_Primitive_Operations): If context requires a function, collect all
20027         interpretations after the first match, because there may be primitive
20028         operations of the same type with the same profile and different return
20029         types. From code reading.
20030         (Try_Primitive_Operation): Use the node kind to choose the proper
20031         operation when a function and a procedure have the same parameter
20032         profile.
20033         (Complete_Object_Operation): If formal is an access parameter and prefix
20034         is an object, rewrite as an Access reference, to match signature of
20035         primitive operation.
20036         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20037         by an expanded name with prefix Standard, when the operands are of an
20038         anonymous access type.
20039         (Remove_Abstract_Operations): If the operation is abstract because it is
20040         inherited by a user-defined type derived from Address, remove it as
20041         well from the set of candidate interpretations of an overloaded node.
20042         (Analyze_Membership_Op): Membership test not applicable to cpp-class
20043         types.
20044
20045 2006-02-13  Bob Duff  <duff@adacore.com>
20046
20047         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20048         redundant use clauses.
20049         In particular, if the scope of two use clauses overlaps, but one is not
20050         entirely included in the other, we should not warn.  This can happen
20051         with nested packages.
20052         (Analyze_Subprogram_Renaming): Protect the compiler against previously
20053         reported errors. The bug was reported when the compiler was built
20054         with assertions enabled.
20055         (Find_Type): If the node is a 'Class reference and the prefix is a
20056         synchronized type without a corresponding record, return the type
20057         itself.
20058
20059 2006-02-13  Javier Miranda  <miranda@adacore.com>
20060
20061         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20062         if this is the full-declaration associated with a private declaration
20063         that implement interfaces, then the private type declaration must be
20064         limited.
20065         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20066         as aliased. The use of the 'access attribute is not available for such
20067         object (for this purpose the object should be explicitly marked as
20068         aliased, but being an anonymous type this is not possible).
20069
20070 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20071             Robert Dewar  <dewar@adacore.com>
20072
20073         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20074         compilation unit is an elaboration scope.
20075         (Add_Task_Proc): Add '\' in 2-line warning message.
20076         (Activate_All_Desirable): Deal with case of unit with'ed by parent
20077
20078 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20079             Javier Miranda  <miranda@adacore.com>
20080
20081         * sem_type.adb (Write_Overloads): Improve display of candidate
20082         interpretations.
20083         (Add_One_Interp): Do not add to the list of interpretations aliased
20084         entities corresponding with an abstract interface type that is an
20085         immediate ancestor of a tagged type; otherwise we have a dummy
20086         conflict between this entity and the aliased entity.
20087         (Disambiguate): The predefined equality on universal_access is not
20088         usable if there is a user-defined equality with the proper signature,
20089         declared in the same declarative part as the designated type.
20090         (Find_Unique_Type): The universal_access equality operator defined under
20091         AI-230 does not cover pool specific access types.
20092         (Covers): If one of the types is a generic actual subtype, check whether
20093         it matches the partial view of the other type.
20094
20095 2006-02-13  Thomas Quinot  <quinot@adacore.com>
20096
20097         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20098         line. This is necessary to allow In_Extended_Main_Unit to provide
20099         correct results for itypes while writing out expanded source.
20100         (Close_File): No need to update the source_index_table here since it's
20101         now done for each line.
20102
20103 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
20104             Robert Dewar  <dewar@adacore.com>
20105
20106         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20107         preserve the source unit where the itype is declared, and prevent a
20108         backend abort.
20109         (Note_Implicit_Run_Time_Call): New procedure
20110         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20111         E_Subprogram_Type)
20112
20113         * sprint.ads: Document use of $ for implicit run time routine call
20114
20115 2006-02-13  Quentin Ochem  <ochem@adacore.com>
20116
20117         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20118         task name.
20119
20120 2006-02-13  Bob Duff  <duff@adacore.com>
20121
20122         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20123         Scan_Unsigned, so we do not scan leading blanks and sign twice.
20124         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20125         raise Constraint_Error.
20126
20127         * s-vallli.adb (Scan_Long_Long_Integer): Call
20128         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20129         do not scan leading blanks and sign twice.
20130         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20131         raise Constraint_Error.
20132
20133         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20134         Scan_Long_Long_Unsigned): Split out most of the processing from
20135         Scan_Long_Long_Unsigned out into
20136         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20137         This prevents scanning leading blanks and sign twice.
20138         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20139         See RM-3.5(44).
20140
20141         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20142         out most of the processing from Scan_Unsigned out into
20143         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20144         This prevents scanning leading blanks and sign twice.
20145
20146         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20147         use with Modular'Value attribute.
20148         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20149         attribute.
20150
20151 2006-02-13  Robert Dewar  <dewar@adacore.com>
20152
20153         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20154
20155 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20156
20157         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20158         (PPC VxWorks): Likewise.
20159         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20160         (forced_callee): Make non-inlinable and non-pure.
20161         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20162
20163 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20164             Ben Brosgol  <brosgol@adacore.com>
20165             Robert Dewar  <dewar@adacore.com>
20166
20167         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20168         support.
20169         Document that gnatbind -M option is for cross environments only.
20170         Added description of using gnatmem to trace gnat rtl allocs and deallocs
20171         Add note on use of $ to label implicit run time calls
20172         Add documentation for -gnatyI (check mode IN)
20173         Updated chapter on compatibility with HP Ada
20174         VMS-oriented edits.
20175         Ran spell and corrected errors
20176         Add documentation for gnatbind -d and rework documentation of -D
20177         at the same time.
20178         Add subprogram/data elimination section.
20179         Minor editing of annex A.
20180         Add section for gnatcheck.
20181         Add documentation for restriction No_Dispatching_Calls
20182         Add documentation for pragma Ada_2005
20183         Remove mention of obsolete pragma Propagate_Exceptions
20184         Document that pragma Unreferenced can appear after DO in ACCEPT
20185         Clarify Pure_Function for library level units
20186         Mention Max/Min in connection with No_Implicit_Conditionals
20187         No_Wide_Characters restriction is no longer partition-wide
20188         Add a nice example for Universal_Literal_String attribute
20189         Document that pragma No_Return can take multiple arguments
20190
20191         * ug_words: Added entry for gnatcheck
20192
20193         * g-ctrl_c.ads (Install_Handler): Enhance comments
20194
20195         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20196
20197         * g-trasym.ads: Add documentation on how to do off line symbolic
20198         traceback computation.
20199
20200         * s-fatgen.adb: Add comments for Unaligned_Valid
20201
20202         * stand.ads: Fix typo in comment
20203
20204 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20205
20206         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20207
20208 2006-02-06  Roger Sayle  <roger@eyesopen.com>
20209
20210         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20211
20212 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20213
20214         PR target/25926
20215         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20216         implementation that calls __main.
20217
20218 2006-01-25  Peter O'Gorman  <peter@pogma.com>
20219
20220         PR bootstrap/25859
20221         * Makefile.in (GCC_LINK): Remove quotes.
20222         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20223         or $(GCC_LINK).
20224
20225         (powerpc-darwin): Pass -shared-libgcc when building shared library.
20226
20227 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20228
20229         PR ada/24533
20230         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20231
20232 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20233
20234         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20235
20236 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20237
20238         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20239         needed.
20240
20241 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20242
20243         * Make-lang.in: Update dependencies
20244
20245 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20246
20247         * Make-lang.in: Add rule for ada/exp_sel.o
20248
20249 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20250
20251         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20252
20253 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
20254
20255         * gnatvsn.ads (Library_Version): Bump to version 4.2
20256         (ASIS_Version_Number): Bumped.
20257
20258 2005-12-09  Doug Rupp  <rupp@adacore.com>
20259
20260         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20261         Ada bind file prefix on VMS from b$ to b__.
20262         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20263         __init.
20264
20265         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20266         Targparm.OpenVMS_On_Target.
20267         (Object_Suffix): Initialize with target object suffix.
20268         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20269
20270         * butil.adb: Change some Hostparm.OpenVMS checks to
20271         Targparm.OpenVMS_On_Target.
20272
20273         * clean.adb: Change some Hostparm.OpenVMS checks to
20274         Targparm.OpenVMS_On_Target.
20275         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20276         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20277         Ada bind file prefix on VMS from b$ to b__.
20278
20279         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20280         --GCC so that Get_Target_Parameters can find system.ads.
20281         (Gnatlink): Call Get_Target_Parameters in mainline.
20282         Initialize standard packages for Targparm.
20283         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20284         (Process_Args): Also Check for object files with target object
20285         extension.
20286         (Make_Binder_File_Names): Create with target object extension.
20287         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
20288         to b__.
20289
20290         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
20291         Targparm.OpenVMS_On_Target.
20292         ({declaration},Build_Library,Check_Library): Change Ada bind file
20293         prefix on VMS from b$ to b__.
20294
20295         * osint-b.adb: Change some Hostparm.OpenVMS checks to
20296         Targparm.OpenVMS_On_Target.
20297         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
20298         b__.
20299
20300         * targext.c: New file.
20301
20302         * Makefile.in: add support for vxworks653 builds
20303         (../../vxaddr2line): gnatlink with targext.o.
20304         (TOOLS_LIBS): Move targext.o to precede libgnat.
20305         (init.o, initialize.o): Minor clean up in dependencies.
20306         (GNATLINK_OBJS): Add targparm.o, snames.o
20307         Add rules fo building targext.o and linking it explicitly with all
20308         tools.
20309         Also add targext.o to gnatlib.
20310
20311         * Make-lang.in: Add rules for building targext.o and linking it in
20312         with gnat1 and gnatbind.
20313         Add entry for exp_sel.o.
20314
20315         * osint.adb Change some Hostparm.OpenVMS checks to
20316         Targparm.OpenVMS_On_Target.
20317         (Object_File_Name): Use target object suffix.
20318
20319         * osint.ads (Object_Suffix): Remove, no longer used.
20320         (Target_Object_Suffix): Initialize with target object suffix.
20321
20322         * rident.ads: Add special exception to license.
20323
20324         * targparm.adb (Get_Target_Parameters): Set the value of
20325         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
20326         value.
20327         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
20328         
20329         * targparm.ads: Add special exception to license.
20330
20331         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
20332         function.
20333         (Copy_File): Make sure from file is closed if error on to file
20334         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
20335
20336         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
20337         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
20338
20339         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
20340         target object suffix.
20341
20342 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
20343             Quentin Ochem  <ochem@adacore.com>
20344             Florian Villoing  <villoing@adacore.com>
20345
20346         * a-taster.ads, a-taster.adb: New files.
20347
20348         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
20349         link to the version that does nothing. This way the task termination
20350         routine is not executed twice for the environment task when finishing
20351         because of an unhandled exception.
20352
20353         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
20354         handler because of an unhandled exception.
20355
20356         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
20357         System.Tasking.Utilities instead of that in System.Tasking.Stages.
20358
20359         * s-finimp.adb (initialization code): Modify the soft link for the
20360         finalization of the global list instead of Adafinal.
20361
20362         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
20363         non-tasking version of the soft link for task termination. We do
20364         nothing since if we are using the non-tasking version it
20365         means that the task termination functionality is not used.
20366         (Null_Finalize_Global_List): Add this null version for the procedure
20367         in charge of finalizing the global list for controlled objects.
20368         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
20369         instead for handling run-time termination in a more flexible way.
20370         (Adafinal_NT): This new procedure will take care of finalizing the
20371         global list for controlled objects if needed, but no tasking
20372         finalization.
20373
20374         * s-tarest.adb (Task_Lock): Do not try to lock again the
20375         Global_Task_Lock if we already own it. Otherwise, we get blocked in
20376         some run-time operations.
20377         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
20378         until all nested locks have been released.
20379         (Task_Wrapper): Call the fall-back task termination handler. It
20380         applies to all tasks but the environment task.
20381         (Finalize_Global_Tasks): Add the call for the task termination
20382         procedure for the environment task.
20383         (Task_Wrapper): suppress warnings around declaration of
20384         Secondary_Stack_Address.
20385
20386         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
20387         moved to the Common_ATCB record.
20388         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
20389         Common_ATCB record.
20390         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
20391         Common_ATCB record.
20392
20393         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
20394         Fall_Back_Handler, and Specific_Handler.
20395
20396         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
20397         defined in Ada.Task_Termination, to avoid circular dependencies.
20398         (Termination_Handler): Redefine this type here, alredy defined in
20399         Ada.Task_Termination, for avoiding circular dependencies.
20400         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
20401         for storing task termination handlers. In addition,
20402         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
20403         Common_ATCB because it is used by both the regular and the restricted
20404         run times.
20405         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
20406         Common_ATCB because it is used by both the regular and the restricted
20407         run times.
20408         (Common_ATCB): Added a dynamic task analyzer field.
20409
20410         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
20411         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
20412         (Task_Wrapper): Call the task termination handler. It applies to all
20413         tasks but the environment task.
20414         (Finalize_Global_Tasks): Call the task termination procedure for the
20415         environment task. The call to Finalize_Global_List is now performed
20416         using the soft links mechanism.
20417         (Task_Wrapper): added dynamic stack analysis.
20418
20419         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
20420         potentially blocking operations has been moved from
20421         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
20422         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
20423         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
20424         this run-time check.
20425
20426         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
20427         of task termination procedure.
20428         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
20429         link for the task termination procedure.
20430
20431         * bindusg.adb: (Bindusg): Added documentation for -u option.
20432
20433         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
20434         (Get_Main_C): Add handling of dynamic stack analysis.
20435         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
20436
20437         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
20438         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
20439         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
20440
20441         * opt.ads: Added flags used by dynamic stack measurement.
20442         (Max_Line_Length): Remove (not used anymore)
20443
20444         * s-io.ads, s-io.adb (Standard_Error): new subprogram
20445         (Standart_Output): new subprogram
20446         (Set_Output): new subprogram
20447         (Put): now uses the value of Current_Out to know if the output has to be
20448         send to stderr or stdout.
20449         
20450         * s-stausa.ads: Complete implementation.
20451
20452         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
20453         
20454         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
20455         list of Ada 05 files.
20456         (GNAT Library Units): Add AltiVec files.
20457
20458         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
20459         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
20460         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
20461
20462 2005-12-09  Nicolas Setton  <setton@adacore.com>
20463
20464         * adaint.c (__gnat_locate_regular_file): Return immediately if
20465         file_name is empty.
20466
20467 2005-12-09  Javier Miranda  <miranda@adacore.com>
20468             Hristian Kirtchev  <kirtchev@adacore.com>
20469
20470         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
20471         to the specification because the frontend generates code that uses this
20472         subprogram.
20473         (Set_Interface_Table): Add missing assertion.
20474         Update documentation describing the run-time structure.
20475         (Displace): New subprogram that displaces the pointer to the object
20476         to reference one of its secondary dispatch tables.
20477         (IW_Membership): Modified to use the new table of interfaces.
20478         (Inherit_TSD): Modified to use the new table of interfaces.
20479         (Register_Interface_Tag): Use the additional formal to fill the
20480         contents of the new table of interfaces.
20481         (Set_Interface_Table): New subprogram that stores in the TSD the
20482         pointer to the table of interfaces.
20483         (Set_Offset_To_Top): Use the additional formal to save copy of
20484         the offset value in the table of interfaces.
20485         Update structure of GNAT Primary and Secondary dispatch table diagram.
20486         Add comment section on GNAT dispatch table prologue.
20487         (Offset_To_Signature): Update the constant value of the Signature field.
20488         (Dispatch_Table): Update comment on hidden fields in the prologue.
20489         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
20490         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
20491         the type of formal parameter T to Tag, introduce additional assertions.
20492         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
20493         conversion.
20494         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
20495
20496         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
20497         in all the calls to Expand_Interface_Thunk. Instead of referencing the
20498         record component containing the tag of the secondary dispatch table we
20499         have to use the Offset_To_Top run-time function to get this information;
20500         otherwise if the pointer to the base of the object has been displace
20501         we get a wrong value if we use the 'position attribute.
20502
20503         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
20504         all the calls to Expand_Interface_Thunk.
20505         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
20506         interfaces; hence the call to Set_Interface_Table was clearly wrong.
20507         (Collect_All_Interfaces): Modify the internal subprogram Collect to
20508         ensure that the interfaces implemented by the ancestors are placed
20509         at the header of the generated list.
20510         (Expand_Interface_Conversion): Handle the case in which the displacement
20511         associated with the interface conversion is not statically known. In
20512         this case we generate a call to the new run-time subprogram Displace.
20513         (Make_DT): Generate and fill the new table of interfaces.
20514         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
20515         Get_Tagged_Kind and Set_Tagged_Kind.
20516         (Tagged_Kind): New function that determines the tagged kind of a type
20517         with respect to limitedness and concurrency and returns a reference to
20518         RE_Tagged_Kind.
20519         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
20520         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
20521         primary dispatch table for a type.
20522         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
20523         secondary dispatch table respectively of a tagged type.
20524
20525         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
20526         (Expand_Interface_Conversion): New subprogram to indicate if the
20527         displacement of the type conversion is statically known.
20528         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
20529
20530         * rtsfind.ads (RE_Offset_To_Top): New entity
20531         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
20532         accessible to users.
20533         (Re_Displace): New entity
20534         (RE_Interface_Data): New entity
20535         (RE_Set_Interface_Data): New_Entity
20536         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
20537         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
20538         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
20539         RE_TK_Tagged, RE_TK_Task.
20540
20541         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
20542         Init_Secondary_Tags_Internal to allow its use with interface types and
20543         also to generate the code for the new additional actual required
20544         by Set_Offset_To_Top.
20545         (Build_Init_Statements): In case of components associated with abstract
20546         interface types there is no need to generate a call to its IP.
20547         (Freeze_Record_Type): Generate Select Specific Data tables only for
20548         concurrent types.
20549         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
20550         the bodies and specifications of the predefined primitive operations
20551         dealing with dispatching selects and abort, 'Callable, 'Terminated only
20552         for concurrent types.
20553
20554         * exp_sel.ads, exp_sel.adb: New files.
20555
20556         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
20557         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
20558         properly protected objects and attach handler in the case of the
20559         restricted profile.
20560         Move embeded package Select_Expansion_Utilities into a separate external
20561         package.
20562         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
20563         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
20564         (Build_K, Build_S_Assignment): New subprograms, part of the select
20565         expansion utilities.
20566         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
20567         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
20568         where the trigger is a dispatching procedure of a limited tagged type.
20569
20570 2005-12-09  Olivier Hainque  <hainque@adacore.com>
20571
20572         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
20573         pointer initialization values. Make a SAVE_EXPR instead. Add comments
20574         about the use and expansion of SAVE_EXPRs in the various possible
20575         renaming handling cases.
20576         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
20577         abusing DECL_FCONTEXT.
20578
20579 2005-12-09  Matthew Heaney  <heaney@adacore.com>
20580
20581         * a-convec.adb (Merge): Added assertions to check whether vector params
20582         are sorted.
20583
20584         * a-coinve.adb (Merge): Added assertions to check whether vector params
20585         are sorted.
20586
20587         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
20588         draft.
20589         (Cursor'Read): raises PE
20590
20591         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
20592         to its default value.
20593
20594         * a-cihama.adb: Manually check whether cursor's key and elem are
20595         non-null
20596
20597         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
20598         (Merge): Assert that target and source lists are in order
20599         (Swap): Declare non-const temporaries, to pass to Splice
20600
20601         * a-cdlili.ads: (Splice): Changed param name and param mode
20602
20603         * a-cdlili.adb: (Splice): Changed param name and param mode
20604         (Merge): Assert that target and source lists are in order
20605         (Swap): Declare non-const temporaries, to pass to Splice
20606
20607         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
20608         (Write): declare Stream param as not null
20609
20610         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
20611         an exception message.
20612
20613 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20614             Robert Dewar  <dewar@adacore.com>
20615
20616         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
20617         which is the absolute maximum length we can support.
20618
20619         * frontend.adb: For the processing of configuration pragma files,
20620         remove references to Opt.Max_Line_Length, which is not checked anymore.
20621
20622         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
20623         length.
20624
20625         * scn.adb, scng.adb: 
20626         Always check line length against the absolute supported maximum,
20627         Hostparm.Max_Line_Length.
20628
20629         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
20630         value for the maximum line length is Max_Line_Length (not
20631         Column_Number'Last).
20632         Minor error msg update
20633         (Set_Style_Check_Options): New interface returning error msg
20634         Minor code reorganization (processing for 'M' was out of alpha order)
20635
20636         * switch-c.adb: New interface for Set_Style_Check_Options
20637
20638         * stylesw.ads (Set_Style_Check_Options): New interface returning error
20639         msg.
20640
20641 2005-12-09  Javier Miranda  <miranda@adacore.com>
20642
20643         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
20644         with IP subprogram were only supported if there were limited types.
20645
20646         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
20647         records with IP subprogram were only supported if there were limited
20648         types.
20649
20650 2005-12-09  Olivier Hainque  <hainque@adacore.com>
20651             Eric Botcazou  <ebotcazou@adacore.com>
20652
20653         * trans.c (tree_transform, emit_check): Adjust calls to
20654         build_call_raise, passing the now expected GNAT_NODE argument.
20655
20656         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
20657         source line information than what the current global locus indicates
20658         when appropriate.
20659
20660         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
20661         field has overflowed.
20662         (build_call_raise): Add a GNAT_NODE argument to convey better source
20663         line information than what the current global locus indicates when
20664         appropriate.
20665         (build_component_ref): Adjust call to build_call_raise.
20666
20667 2005-12-09  Pascal Obry  <obry@adacore.com>
20668
20669         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
20670         the iterator is quitting iteration on parent directory.
20671
20672 2005-12-09  Javier Miranda  <miranda@adacore.com>
20673
20674         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
20675         and the assignment to a class-wide object, before the assignment we
20676         generate a run-time check to ensure that the tag of the Target is
20677         covered by the tag of the source.
20678
20679 2005-12-09  Robert Dewar  <dewar@adacore.com>
20680
20681         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
20682         parameter in call to Image_Wide_Character.
20683
20684         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
20685         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
20686         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
20687         annoying FFFE/FFFF inconsistency.
20688
20689 2005-12-09  Robert Dewar  <dewar@adacore.com>
20690             Javier Miranda  <miranda@adacore.com>
20691             Ed Schonberg  <schonberg@adacore.com>
20692
20693         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
20694         of type conversion.
20695         (Find_Interface): New subprogram that given a tagged type and one of its
20696         component associated with the secondary table of an abstract interface
20697         type, return the entity associated with such abstract interface type.
20698         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
20699         base type to create anonymous subtype, because entity may be a locally
20700         declared subtype or generic actual.
20701         (Find_Interface): New subprogram that given a tagged type and one of its
20702         component associated with the secondary table of an abstract interface
20703         type, return the entity associated with such abstract interface type.
20704
20705         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
20706         conversion cannot be handled at compile time. In this case we pass this
20707         information to the expander to generate the appropriate code.
20708
20709 2005-12-09  Robert Dewar  <dewar@adacore.com>
20710             Ed Schonberg  <schonberg@adacore.com>
20711             Gary Dismukes  <dismukes@adacore.com>
20712             Javier Miranda  <miranda@adacore.com>
20713             Hristian Kirtchev  <kirtchev@adacore.com>
20714
20715         * einfo.adb (Itype_Printed): New flag
20716         (Is_Limited_Type): Derived types do not inherit limitedness from
20717         interface progenitors.
20718         (Is_Return_By_Reference_Type): Predicate does not apply to limited
20719         interfaces.
20720
20721         * einfo.ads (Itype_Printed): New flag
20722         Move Is_Wrapper_Package to proper section
20723         Add missing Inline for Is_Volatile
20724
20725         * output.ads, output.adb (Write_Erase_Char): New procedure
20726         (Save/Restore_Output_Buffer): New procedures
20727         (Save/Restore_Output_Buffer): New procedures
20728
20729         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
20730         Add missing support for anonymous access type
20731         (Write_Id): Insert calls to Write_Itype
20732         (Write_Itype): New procedure to output itypes
20733
20734         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
20735         use of "limited" in declaration.
20736
20737         * sinfo.ads, sinfo.adb: 
20738         Formal derived types can carry an explicit "limited" indication.
20739
20740         * sem_ch3.adb: Add with and use of Targparm.
20741         (Create_Component): If Frontend_Layout_On_Target is True and the
20742         copied component does not have a known static Esize, then reset
20743         the size and positional fields of the new component.
20744         (Analyze_Component_Declaration): A limited component is
20745         legal within a protected type that implements an interface.
20746         (Collect_Interfaces): Do not add to the list the interfaces that
20747         are implemented by the ancestors.
20748         (Derived_Type_Declaration): If the parent of the full-view is an
20749         interface perform a transformation of the tree to ensure that it has
20750         the same parent than the partial-view. This simplifies the job of the
20751         expander in order to generate the correct object layout, and it is
20752         needed because the list of interfaces of the full-view can be given in
20753         any order.
20754         (Process_Full_View): The parent of the full-view does not need to be
20755         a descendant of the parent of the partial view if both parents are
20756         interfaces.
20757         (Analyze_Private_Extension_Declaration): If declaration has an explicit
20758         "limited" the parent must be a limited type.
20759         (Build_Derived_Record_Type): A derived type that is explicitly limited
20760         must have limited ancestor and progenitors.
20761         (Build_Derived_Type): Ditto.
20762         (Process_Full_View): Verify that explicit uses of "limited" in partial
20763         and full declarations are consistent.
20764         (Find_Ancestor_Interface): Remove function.
20765         (Collect_Implemented_Interfaces): New procedure used to gather all
20766         implemented interfaces by a type.
20767         (Contain_Interface): New function used to check whether an interface is
20768         present in a list.
20769         (Find_Hidden_Interface): New function used to determine whether two
20770         lists of interfaces constitute a set equality. If not, the first
20771         differing interface is returned.
20772         (Process_Full_View): Improve the check for the "no hidden interface"
20773         rule as defined by AI-396.
20774
20775 2005-12-09  Robert Dewar  <dewar@adacore.com>
20776
20777         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
20778         types, not on record subtypes.
20779         (Freeze_Entity): Code cleanup. Add barrier to the loop
20780         that generates the references for primitive operations. This allows to
20781         remove an unnecessary exception handler.
20782         Code reformatting and comment clean ups.
20783
20784 2005-12-09  Vincent Celier  <celier@adacore.com>
20785
20786         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
20787         If GNAT CHECK is called with a project file, but with no
20788         source on the command line, call gnatcheck with all the compilable
20789         sources of the project.
20790         Take into account the new command Check, for gnatcheck. Treat as for
20791         other ASIS tools: take into account project, specific package Check and
20792         Compiler switches.
20793         For ASIS tools, add the switches in package Compiler for
20794         the invocation of the compiler.
20795
20796         * prj-attr.adb: Add package Check and its attributes
20797
20798         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
20799
20800         * vms_conv.adb (Initialize): Change Params of command Check to
20801         unlimited files.
20802         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20803         Add data for new command Check
20804
20805         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
20806         ELIM.
20807         Add qualifiers for Check command options
20808         (Command_Type): New command Check
20809
20810 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20811
20812         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
20813         command line switch overruns the output buffer.
20814
20815 2005-12-09  Robert Dewar  <dewar@adacore.com>
20816
20817         * sem_prag.adb: Processing for new pragma Complete_Representation
20818         (Analyze_Pragma, case Debug): Implement two argument form.
20819
20820         * par-prag.adb: Entry for new pragma Complete_Representation
20821         (Prag, case Debug): Recognize two argument form of pragma Debug
20822         New interface for Set_Style_Check_Options.
20823
20824         * sem_ch13.adb: Implement new pragma Complete_Representation.
20825
20826         * snames.adb, snames.ads, snames.h: Entry for new pragma
20827         Complete_Representation.
20828
20829 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20830
20831         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
20832         available user-specified stream attributes on limited parameters to
20833         also test the type directly rather than only its underlying type (for
20834         Ada 95) and, in the case of Ada 2005, to check that the user-specified
20835         attributes are visible at the point of the subprogram declaration.
20836         For Ada 2005, the error message is modified to indicate that the
20837         type's stream attributes must be visible (again, only for -gnat05).
20838
20839 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20840
20841         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
20842         anonymous access types.
20843
20844         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20845         matching of anonymous access types and anonymous access to subprogram
20846         types. 'R'M 4.9.1 (2/2).
20847
20848 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20849
20850         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20851         rule prematurely when operands are universal, remaining ambiguities
20852         will be removed during resolution.
20853         Code cleanup.
20854
20855         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20856         that are Ada 2005 functions.
20857         (Has_Abstract_Interpretation): Subsidiary to
20858         Remove_Conversions, to remove ambiguities caused by abstract operations
20859         on numeric types when operands are universal.
20860
20861 2005-12-09  Robert Dewar  <dewar@adacore.com>
20862
20863         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20864         for case where spec is categorized.
20865
20866 2005-12-09  Javier Miranda  <miranda@adacore.com>
20867
20868         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20869         types use the corresponding record type. This was not needed before
20870         the implementation of Ada 2005 synchronized types because
20871         concurrent types were never tagged types in Ada 95.
20872
20873 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20874
20875         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20876         first subtype of the type of the expression to verify that it is a
20877         legal Time type.
20878
20879 2005-12-09  Robert Dewar  <dewar@adacore.com>
20880
20881         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20882         decoded names.
20883
20884 2005-12-09  Quentin Ochem  <ochem@adacore.com>
20885             Robert Dewar  <dewar@adacore.com>
20886             Ed Falis  <falis@adacore.com>
20887             Florian Villoing  <villoing@adacore.com>
20888             Thomas Quinot  <quinot@adacore.com>
20889             Arnaud Charlet  <charlet@adacore.com>
20890
20891         * gnat_ugn.texi: Created section "Stack Related Tools"
20892         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20893         "Stack Related Tools"
20894         Added subsection "Static Stack Usage Analysis"
20895         Added subsection "Dynamic Stack Usage Analysis"
20896         Include documentation of itypes in sprint listing (-gnatG)
20897         Documented gnatbind -D switch (default sec stack size for fixed sec
20898         stacks).
20899         Added Interrupt_State and Persistent_BSS to list of configuration
20900         pragmas.
20901         Add missing doc for maximum value of nnn in -gnatyMnnn
20902
20903         * gnat_rm.texi: Document the AltiVec binding.
20904         Add documentation for pragma Complete_Representation
20905         Shortened an overly long line (> 79 chars)
20906         Clarify documentation of unchecked conversion in implementation
20907         defined cases.
20908         Document two argument form of pragma Debug
20909
20910         * types.ads (Column_Number): Update documentation.
20911
20912         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20913         library level Finalize_Storage_Only objects (these are not attached to
20914         any finalization list).
20915
20916         * system-mingw.ads: (Underlying_Priorities): Update comment.
20917
20918 2005-12-09  Robert Dewar  <dewar@adacore.com>
20919
20920         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
20921         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20922         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20923         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20924         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20925         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20926         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20927         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20928         reformatting.
20929
20930 2005-12-09  Robert Dewar  <dewar@adacore.com>
20931
20932         * s-vaflop-vms-alpha.adb: (Ne_F): New function
20933         (Ne_G): New function
20934
20935         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20936         for tag assignment.
20937         (Rewrite_Comparison): Handle case where operation is not a comparison
20938         and ignore, and also handle type conversion case.
20939
20940 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20941
20942         * exp_aggr.ads: Fix typo in comment.
20943         ???-mark Convert_Aggr_In_Assignment as needing documentation.
20944
20945 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20946
20947         * layout.adb: Replace various uses of byte by storage unit throughout.
20948         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20949         static size, convert to storage units before returning, to conform to
20950         spec.
20951
20952 2005-12-09  Matthew Gingell  <gingell@adacore.com>
20953
20954         * g-exctra.ads: Fix typo in comment.
20955
20956 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20957
20958         * utils.c: Minor reformatting.
20959
20960 2005-12-09  Robert Dewar  <dewar@adacore.com>
20961
20962         * g-soccon.ads: 
20963         Further comment fixes to make the status of the default file clear
20964
20965         * s-bitops.adb: Clarify comment for Bits_Array
20966
20967 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20968
20969         * Make-lang.in (ada.install-normal): Remove.
20970
20971 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20972
20973         * Make-lang.in: Remove all dependencies on s-gtype.
20974
20975 2005-12-05  Richard Guenther  <rguenther@suse.de>
20976
20977         * utils.c (convert): Use fold_convert where appropriate.
20978
20979 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
20980
20981         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
20982         a period is meant.
20983
20984 2005-12-02  Richard Guenther  <rguenther@suse.de>
20985
20986         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20987
20988 2005-12-01  Roger Sayle  <roger@eyesopen.com>
20989
20990         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20991         nodes.
20992
20993 2005-11-23  Laurent Guerby  <laurent@guerby.net>
20994
20995         * mlib-prj.adb (Build_Library): Initialize Delete.
20996
20997 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
20998
20999         * socket.c: Add extern int h_errno for rtems since networking header
21000         files are not available at this point in a tool bootstrap. Newlib
21001         only has basic C library header files.
21002
21003 2005-11-19  Richard Guenther  <rguenther@suse.de>
21004         Roger Sayle  <roger@eyesopen.com>
21005
21006         PR ada/23717
21007         * misc.c (internal_error_function): Don't use vsprintf to format
21008         the error message text, instead use pp_format_text and the new
21009         pretty printer APIs.  This allows handling of %qs, %w, etc.
21010
21011 2005-11-18  Laurent Guerby  <laurent@guerby.net>
21012
21013         PR ada/24857
21014         * Makefile.in: Use s-auxdec-empty for RTEMS.
21015
21016 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21017
21018         PR ada/22333
21019         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21020         a temporary if taking the address of something that is neither
21021         reference, declaration, or constant, since the gimplifier
21022         can't handle that case.
21023
21024 2005-11-17  Laurent Guerby  <laurent@guerby.net>
21025
21026         PR ada/24857
21027         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21028
21029 2005-11-16  Richard Guenther  <rguenther@suse.de>
21030
21031         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21032
21033 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
21034
21035         PR ada/24855
21036         * raise-gcc.c: Add missing stdarg.h include.
21037  
21038 2005-11-16  Richard Guenther  <rguenther@suse.de>
21039
21040         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21041         (ada/misc.o): Likewise.
21042
21043 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21044
21045         * g-soccon.ads: Minor reformatting. Update comments.
21046
21047         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21048         gain visibility on the declaration of struct timeval.
21049
21050         * g-soccon-freebsd.ads,
21051         g-soccon-darwin.ads,
21052         g-soccon-tru64.ads,
21053         g-soccon-aix.ads,
21054         g-soccon-irix.ads,
21055         g-soccon-hpux.ads,
21056         g-soccon-solaris.ads,
21057         g-soccon-vms.ads,
21058         g-soccon-mingw.ads,
21059         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21060
21061         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21062         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21063         g-soccon-linux-x86.ads: New files.
21064
21065         * g-socthi-mingw.adb: 
21066         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21067
21068         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21069         (time_t, suseconds_t): New types constructed to match the tv_sec
21070         and tv_usec fields of C struct timeval.
21071         (Timeval): Construct structure in terms of the new types.
21072         (Host_Errno): New function (imported from socket.c), returns last hosts
21073         database error.
21074
21075         * g-socthi-vxworks.adb:  Add error handling circuitry.
21076
21077         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21078         components of struct timeval.
21079         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21080         (Check_Selector): In error conditions, clear internal socket sets to
21081         avoid a memory leak.
21082         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21083         Send_Timeout, Receive_Timeout.
21084
21085         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21086         the tv_sec and tv_usec fields of C struct timeval.
21087         (Timeval): Construct structure in terms of the new types.
21088         (Host_Errno): New function (imported from socket.c), returns last hosts
21089         database error.
21090
21091         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21092         hosts database last error code.
21093
21094         * gen-soccon.c: Complete value expansion should not be performed on
21095         TARGET, as it has the form of a math expression, and some components
21096         may be platform-defined macros.
21097         For VxWorks, generate the OK and ERROR values.
21098         New constants giving the sizes of the components of C struct timeval.
21099
21100 2005-11-14  Robert Dewar  <dewar@adacore.com>
21101             Ed Schonberg  <schonberg@adacore.com>
21102
21103         PR ada/18434
21104         * types.ads: Include All_Checks in Suppress_Array
21105
21106         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21107         not(a=b), since we no longer do this rewriting, and hence it is not
21108         needed.
21109         (Elaboration_Checks_Suppressed): Add special casing to
21110         deal with different cases of static and dynamic elaboration checks (all
21111         checks does not count in the first case, but does in the second).
21112         (Expr_Known_Valid): Do not assume that the result of any arbitrary
21113         function call is valid, since this is not the case.
21114         (Ensure_Valid): Do not apply validity check to a real literal
21115         in a universal or fixed context
21116
21117         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21118         elementary types using the operator in standard. It is cleaner not to
21119         modify the programmers intent, especially in the case of floating-point.
21120         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21121         it did not matter because we always rewrote a/=b to not(a=b).
21122         (Expand_Allocator_Expression): For an allocator expression whose nominal
21123         subtype is an unconstrained packed type, convert the expression to its
21124         actual constrained subtype.
21125         Implement warning for <= or >= where < or > not possible
21126         Fix to Vax_Float tests (too early in many routines, causing premature
21127         Vax_Float expansions.
21128
21129         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21130         to be used with packages and generic packages as well as with
21131         subprograms.
21132         (Suppress): Set All_Checks, but not Elaboration_Check, for case
21133         of pragma Suppress (All_Checks)
21134         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21135         a string literal for precise control over warnings.
21136         Avoid raise of pragma in case of unrecognized pragma and just return
21137         instead.
21138
21139         * sem_prag.ads: Minor reformatting
21140
21141         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21142         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21143         Switch. Do not handle any exception.
21144         Include -gnatwx as part of -gnatg (warn on redundant parens)
21145         Allow optional = after -gnatm
21146         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21147         longer sets Elaboration_Checks.
21148         Code to set warning mode moved to Sem_Warn
21149         so that it can be shared by pragma processing.
21150
21151         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21152         statement.
21153
21154         * s-taprop-solaris.adb: 
21155         Change some <= to =, to avoid new warning
21156
21157         * a-exexda.adb, prj-proc.adb: 
21158         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21159         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21160
21161 2005-11-14  Robert Dewar  <dewar@adacore.com>
21162
21163         * exp_vfpt.adb: Handle /= case
21164         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21165         so that we do not get duplicate scaling for fixed point conversions.
21166
21167         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21168
21169 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21170
21171         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
21172         Increase default priority on Lynx from 15 to 17, and meet the Ada
21173         requirement that Default_Priority be ((Priority'First +
21174         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21175
21176 2005-11-14  Vincent Celier  <celier@adacore.com>
21177
21178         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21179         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21180         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21181         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21182         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21183         mlib-tgt-lynxos.adb (DLL_Prefix): New function
21184
21185 2005-11-14  Doug Rupp  <rupp@adacore.com>
21186
21187         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21188         private part.
21189
21190 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21191
21192         * s-traces-default.adb, s-trafor-default.ads,
21193         s-tratas-default.adb: Fix compilation errors.
21194
21195 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21196
21197         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21198         raising the exception so the memory used is freed.
21199
21200 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21201
21202         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21203         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21204         (convert_address): Update comments and list of platforms using this.
21205
21206         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21207         no longer used.
21208
21209 2005-11-14  Pascal Obry  <obry@adacore.com>
21210             Vincent Celier  <celier@adacore.com>
21211
21212         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21213         GNAT.Command_Line.
21214
21215         * memroot.adb: Remove redundant with/use clause on
21216         System.Storage_Elements.
21217
21218 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21219
21220         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21221         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21222         related code to a-exexpr.adb
21223         (Save_Occurrence_And_Private): Move GCC EH related code to
21224         a-exexpr-gcc.adb
21225         (Raise_Current_Excep): Add new variable Id with pragma
21226         volatile, to ensure that the variable lives on stack.
21227
21228         * a-exexpr-gcc.adb, raise-gcc.c: New file.
21229
21230         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21231         from a-except.adb.
21232         Move GCC EH related code to a-exexpr-gcc.adb
21233
21234         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21235         64-bit Solaris
21236         Split the Linux version of g-soccon into separate variants for 32 and 64
21237         bit platforms.
21238         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21239         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21240         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21241         of host variable $(RANLIB_FLAGS).
21242         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21243         Code clean up: remove unused/obsolete targets.
21244         (EH_MECHANISM): New variable introduced to differenciate between the
21245         two EH mechanisms statically.
21246         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21247         (LIBGNAT_OBJS): Add raise-gcc.o
21248         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21249         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21250         supports VxWorks 6 RTPs.
21251         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21252         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21253
21254         * raise.c: Move all GCC EH-related routines to raise-gcc.c
21255
21256 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21257
21258         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21259         deferral level, when abort is not allowed, to a later stage (the
21260         Task_Wrapper).
21261         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21262         it will not get changed by the generated code. It was previously done
21263         in Create_Task.
21264
21265 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21266             Olivier Hainque  <hainque@adacore.com>
21267             Eric Botcazou  <ebotcazou@adacore.com>
21268
21269         * decl.c:
21270         Factor common code to build a storage type for an unconstrained object
21271         from a fat or thin pointer type and a constrained object type.
21272         (annotate_value): Handle BIT_AND_EXPR.
21273         (annotate_rep): Don't restrict the back annotation of inherited
21274         components to the type_annotate_only case.
21275         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21276         we are not defining the type.
21277         <E_Record_Type>: Likewise.
21278         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21279         to get advantage of the new maybe_stabilize_reference interface, to
21280         ensure that what we reference is indeed stabilized instead of relying
21281         on assumptions on what the stabilizer does.
21282         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21283         type imported through a limited_with clause, use its non-limited view.
21284         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21285         differentiation.
21286         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21287         of #if sections + explicit comparisons of convention identifiers.
21288         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
21289         before early-returning for certain types when code generation is
21290         disabled.
21291         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
21292         nullification of gnu_expr we do for objects with address clause and
21293         that we are not defining.
21294         (elaborate_expression_1): Do not create constants when creating
21295         variables needed by the debug info: the dwarf2 writer considers that
21296         CONST_DECLs is used only to represent enumeration constants, and emits
21297         nothing for them.
21298         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
21299         object with an address clause into an indirect reference, drop the
21300         initializing expression.
21301         Include "expr.h".
21302         (STACK_CHECK_BUILTIN): Delete.
21303         (STACK_CHECK_PROBE_INTERVAL): Likewise.
21304         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
21305         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
21306         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
21307         corresponding to the renamed object as ignored for debugging purposes.
21308
21309         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
21310         related): For a prefix that is a dereference of a fat or thin pointer,
21311         if there is an actual subtype provided by the front-end, use that
21312         subtype to build an actual type with bounds template.
21313         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
21314         is provided by the front-end, use that subtype to compute the size of
21315         the deallocated object.
21316         (gnat_to_gnu): When adding a statement into an elaboration procedure,
21317         check for a potential violation of a No_Elaboration_Code restriction.
21318         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21319         with extra arguments to control whether to recurse through non-values
21320         and to let the caller know if the stabilization has succeeded.
21321         (gnat_stabilize_reference): Now a simple wrapper around
21322         maybe_stabilize, for common uses without restriction on lvalues and
21323         without need to check for the success indication.
21324         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
21325         pass false instead of 0 as the FORCE argument which is a bool.
21326         (Identifier_to_gnu): Remove checks ensuring that an renamed object
21327         attached to a renaming pointer has been properly stabilized, as no such
21328         object is attached otherwise.
21329         (call_to_gnu): Invoke create_var_decl to create the temporary when the
21330         function uses the "target pointer" return mechanism.
21331         Reinstate conversion of the actual to the type of the formal
21332         parameter before any other specific treatment based on the passing
21333         mechanism. This turns out to be necessary in order for PLACEHOLDER
21334         substitution to work properly when the latter type is unconstrained.
21335
21336         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
21337         common pattern.
21338         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21339         with extra arguments to control whether to recurse through non-values
21340         and to let the caller know if the stabilization has succeeded.
21341
21342         * utils2.c (gnat_build_constructor): Only sort the fields for possible
21343         static output of record constructor if all the components are constant.
21344         (gnat_build_constructor): For a record type, sort the list of field
21345         initializers in increasing bit position order.
21346         Factor common code to build a storage type for an unconstrained object
21347         from a fat or thin pointer type and a constrained object type.
21348         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
21349         types variants, and process special cases of VIEW_CONVERT expressions
21350         as their NOP_EXPR counterpart to ensure we get to the
21351         CORRESPONDING_VARs associated with CONST_DECls.
21352         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
21353         on the right-hand side.
21354
21355         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
21356         a common pattern.
21357         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
21358         are converting back to its original type.
21359         (convert) <JM input>: Fallthrough regular conversion code instead of
21360         extracting the object if converting to a type variant.
21361         (create_var_decl): When a variable has an initializer requiring code
21362         generation and we are at the top level, check for a potential violation
21363         of a No_Elaboration_Code restriction.
21364         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
21365         SIZE and SIZE_UNIT which we need for later back-annotations.
21366         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
21367         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
21368         is an unchecked union.
21369         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
21370         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
21371         main variant, just replace the VIEW_CONVERT_EXPR.
21372         <UNION_TYPE>: Revert 2005-03-02 change.
21373
21374         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
21375
21376         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
21377
21378 2005-11-14  Matthew Heaney  <heaney@adacore.com>
21379
21380         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
21381         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
21382         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
21383         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
21384         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
21385         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
21386         Compiles against the spec for ordered maps described in sections
21387         A.18.6 of the most recent (August 2005) AI-302 draft.
21388
21389 2005-11-14  Olivier Hainque  <hainque@adacore.com>
21390
21391         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
21392         to ensure bias adjustments take place when need be and to prevent
21393         occurrences of intermediate overflows.
21394
21395 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21396             Olivier Hainque  <hainque@adacore.com>
21397
21398         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
21399         ia64 HP-UX.
21400
21401         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
21402         tracebacks on ia64 HP-UX and provide explanatory comment.
21403         Enable backtraces on ia64 GNU/Linux.
21404         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
21405         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
21406
21407 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
21408             Javier Miranda  <miranda@adacore.com>
21409
21410         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
21411         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
21412         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
21413         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
21414
21415         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
21416         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
21417         assertions).
21418
21419         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
21420         subprogram that generates the external name associated with a
21421         secondary dispatch table.
21422         (Get_Secondary_DT_External_Name): New subprogram that generates the
21423         external name associated with a secondary dispatch table.
21424
21425 2005-11-14  Emmanuel Briot  <briot@adacore.com>
21426
21427         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
21428         line in the ALI file to include both an instantiation reference, and a
21429         returned value.
21430
21431 2005-11-14  Vincent Celier  <celier@adacore.com>
21432
21433         * clean.adb (Check_Project): Look for Ada code in extending project,
21434         even if Ada is not specified as a language.
21435         Use new function DLL_Prefix for DLL_Name
21436         (Clean_Interface_Copy_Directory): New procedure
21437         (Clean_Library_Directory): New procedure
21438         (Clean_Directory): Remove procedure, no longer used
21439         (Clean_Project): Do not delete any file in an externally built project
21440
21441         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
21442         directory of an extending project, even when there are no Ada source
21443         present.
21444         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
21445         (Set_Ada_Paths.Add.Recursive_Add): Ditto
21446
21447         * mlib-prj.adb (Check_Library): For all library projects, get the
21448         library file timestamp.
21449         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
21450         (Build_Library): Use new function DLL_Prefix for the DLL_Name
21451         (Clean): Remove procedure, no longer used
21452         (Ultimate_Extension_Of): New function
21453         (Build_Library): When cleaning the library directory, only remove an
21454         existing library file and any ALI file of a source of the project.
21455         When cleaning the interface copy directory, remove any source that
21456         could be a source of the project.
21457
21458         * prj.ads, prj.adb (Project_Empty): Add values of new components
21459         Library_TS and All_Imported_Projects.
21460         (Project_Empty): Add values for new components of Project_Data:
21461         Library_ALI_Dir and Display_Library_ALI_Dir
21462
21463         * prj-attr.adb: New project level attribute name Library_ALI_Dir
21464
21465         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
21466         attribute Library_ALI_Dir.
21467         (Check_Library_Attributes): The library directory cannot be the same as
21468         any source directory of the project tree.
21469         (Check_Stand_Alone_Library): The interface copy directory cannot be
21470         the same as any source directory of the project tree.
21471
21472         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
21473         all temporary files.
21474
21475 2005-11-14  Robert Dewar  <dewar@adacore.com>
21476             Ed Schonberg  <schonberg@adacore.com>
21477
21478         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21479         (Check_Elab_Call): A call within a protected body is never an
21480         elaboration call, and does not require checking.
21481         (Same_Elaboration_Scope): Take into account protected types for both
21482         entities.
21483         (Activate_Elaborate_All_Desirable): New procedure
21484
21485         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
21486         desirable
21487
21488         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
21489         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
21490
21491         * lib-writ.ads, lib-writ.adb: 
21492         Implement new AD/ED for Elaborate_All/Elaborate desirable
21493         Use new Elaborate_All_Desirable flag in N_With_Clause node
21494
21495         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
21496         N_Free_Statement nodes.
21497         Define new class N_Subprogram_Instantiation
21498         Add Elaborate_Desirable flag to N_With_Clause node
21499         Add N_Delay_Statement (covering two kinds of delay)
21500
21501         * debug.adb: Introduce d.f flag for compiler
21502         Add -da switch for binder
21503
21504 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21505             Cyrille Comar  <comar@adacore.com>
21506
21507         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
21508         for task component, in the case of a limited aggregate. The enclosed
21509         object declaration will create it earlier. Otherwise, in the case of a
21510         nested aggregate, the object may appear in the wrong scope.
21511         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
21512         (Gen_Assign): If the component being assigned is an array type and the
21513         expression is itself an aggregate, wrap the assignment in a block to
21514         force finalization actions on the temporary created for each row of the
21515         enclosing object.
21516         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
21517         structures are initialized after all discriminants are set so that
21518         they can be accessed even when their offset is dynamic.
21519
21520 2005-11-14  Robert Dewar  <dewar@adacore.com>
21521             Hristian Kirtchev  <kirtchev@adacore.com>
21522
21523         * sem_attr.adb: Implement Machine_Rounding attribute
21524         (Analyze_Access_Attribute): The access attribute may appear within an
21525         aggregate that has been expanded into a loop.
21526         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
21527         'Terminated whenever the prefix is of a task interface class-wide type.
21528         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
21529         the prefix is of a task interface class-wide type.
21530
21531         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
21532         to avoid warnings.
21533
21534         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
21535         Remove pragma Inline for [Unaligned_]Valid.
21536         Add comments that Valid routines do not work for Vax_Float
21537
21538         * exp_attr.adb: Implement Machine_Rounding attribute
21539
21540         * snames.h: Add entry for Machine_Rounding attribute
21541
21542 2005-11-14  Javier Miranda  <miranda@adacore.com>
21543             Robert Dewar  <dewar@adacore.com>
21544             Hristian Kirtchev  <kirtchev@adacore.com>
21545
21546         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
21547         and related): For a prefix that is an explicit dereference of an
21548         access to unconstrained packed array type, annotate the dereference
21549         with an actual subtype so GIGI can make a correct size computation.
21550         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
21551         'Unrestricted_Access, if the designated type is an interface we
21552         add a type conversion to force the displacement of the pointer
21553         to the secondary dispatch table.
21554         Use Universal_Real instead of Long_Long_Float when we need a high
21555         precision float type for the generated code (prevents gratuitous
21556         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21557         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
21558         'Terminated for task interface class-wide objects. Generate a call to
21559         the predefined dispatching routine used to retrieve the _task_id from
21560         a task corresponding record.
21561         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
21562
21563         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21564         (Check_Dispatching_Operation): Protect the frontend againts
21565         previously detected errors.
21566
21567         * Makefile.rtl: Add new instantiations of system.fat_gen
21568
21569         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
21570         Change name of instantiated package for better consistency
21571         with newly added system.fat_gen instantiations.
21572
21573         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
21574         s-fvagfl.ads: New files.
21575
21576 2005-11-14  Cyrille Comar  <comar@adacore.com>
21577             Thomas Quinot  <quinot@adacore.com>
21578
21579         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
21580         assignment of a value of a tagged type that has been rewritten to a
21581         block statement, it is known by construction that no checks are
21582         necessary for the statements within the block: analyze it with checks
21583         suppressed.
21584         (Expand_N_If_Statement): When killing a dead then-branch in an
21585         if-statement that has elsif_parts, recompute the Current_Value node
21586         for any entity whose value is known from the condition of the first
21587         elsif_part.
21588         (Expand_N_Return_Statement): When returning a mutable record, convert
21589         the return value into its actual subtype in order to help the backend
21590         to return the actual size instead of the maximum. This is another
21591         aftermath of not returning mutable records on the sec-stack anymore.
21592
21593         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
21594         handling of error msg for suspicious reverse range iteration.
21595         (Check_Possible_Current_Value_Condition): Move declaration from body to
21596         spec, to allow this subprogram to be called from exp_ch5.
21597
21598 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21599
21600         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
21601         generate a set of nested array aggregates instead of a single flat
21602         aggregate for multi-dimensional arrays.
21603
21604 2005-11-14  Pascal Obry  <obry@adacore.com>
21605
21606         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
21607         by spawnve is a process handle, no need to convert. Add a parameter
21608         close to control wether the process handle must be closed.
21609         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
21610         a process handle, not need to convert.
21611         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
21612
21613         * g-expect.adb: (Kill): Document the new close parameter.
21614         (Close): Do not release the process handle in the kill there as
21615         waitpid() is using it.
21616         (Send_Signal): Release the process handle.
21617
21618 2005-11-14  Robert Dewar  <dewar@adacore.com>
21619
21620         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
21621         need a high precision float type for the generated code (prevents
21622         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21623         used).
21624
21625         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
21626         need a high precision float type for the generated code (prevents
21627         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21628         used).
21629         (Expand_Width_Attribute): In configurable run-time, the attribute is not
21630         allowed on non-static enumeration subtypes. Force a load error to emit
21631         the correct diagnostic.
21632
21633 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21634             Robert Dewar  <dewar@adacore.com>
21635             Ed Schonberg  <schonberg@adacore.com>
21636
21637         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
21638         subtype to compute the size of the designated object at run-time,
21639         create such a subtype and store it in the Actual_Designated_Subtype
21640         attribute of the N_Free_Statement.
21641         Generate itype for classwide designated object in both cases of
21642         user-specified storage pool: specific and class-wide, not only in the
21643         specific case.
21644         Raise CE when trying to set a not null access type object to null.
21645         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
21646         an explicit loop, because freeze nodes make its position variable.
21647
21648         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
21649         null object.
21650
21651 2005-11-14  Javier Miranda  <miranda@adacore.com>
21652
21653         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
21654         Build_Stream_Procedure): Add the null-excluding attribute to the first
21655         formal.
21656         This has no semantic meaning under Ada95 mode but it is a
21657         requirement under Ada05 mode.
21658
21659         * par-ch3.adb (P_Access_Definition): Addition of warning message if
21660         the null exclusion is used under Ada95 mode
21661         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
21662         (P_Access_Definition): Remove assertion that forbids the use of
21663         the null-exclusion feature in Ada95.
21664
21665 2005-11-14  Robert Dewar  <dewar@adacore.com>
21666
21667         * impunit.adb: Exclude container helper units not intended for use by
21668         users.
21669
21670 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21671
21672         * freeze.adb (Freeze_Entity): For an access formal that is an access
21673         to subprogram, freeze the anonymous subprogram type at the same time,
21674         to prevent later freezing in the wrong scope, such as the enclosing
21675         subprogram body.
21676         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
21677         subprogram whenever available.
21678
21679 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21680
21681         PR ada/23732
21682         * gnatvsn.ads (Library_Version): Bump to 4.1
21683
21684 2005-11-14  Robert Dewar  <dewar@adacore.com>
21685
21686         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
21687         Storage_Offset to avoid wrap around causing invalid results.
21688
21689 2005-11-14  Pascal Obry  <obry@adacore.com>
21690
21691         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
21692         cross-compiler.
21693         (Scan_Bind_Arg): Fail with an error message if -M option is used
21694         on a native compiler.
21695
21696 2005-11-14  Robert Dewar  <dewar@adacore.com>
21697             Vincent Celier  <celier@adacore.com>
21698
21699         * gprep.adb: Implement -C switch to scan comments
21700
21701         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
21702
21703         * scans.ads: Comment updates (including new use of Tok_Comment in
21704         preprocessing)
21705
21706         * opt.ads: Add documentation for flags that are used by gprmake,
21707         currently and in the next version of gprmake.
21708         (Verbosity_Level): New variable
21709         Add Replace_In_Comments switch
21710
21711         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
21712         and -vm.
21713         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
21714
21715 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21716
21717         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
21718         message, friendlier.
21719
21720 2005-11-14  Robert Dewar  <dewar@adacore.com>
21721
21722         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
21723
21724 2005-11-14  Doug Rupp  <rupp@adacore.com>
21725
21726         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
21727
21728 2005-11-14  Robert Dewar  <dewar@adacore.com>
21729
21730         * interfac.ads: Change declarations of IEEE float types so that we no
21731         longer need a separate version of this package for VMS.
21732
21733 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21734
21735         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
21736         internal entity created for the declaration of a child subprogram body
21737         with no spec as coming from source, to generate proper cross-reference
21738         information.
21739
21740 2005-11-14  Vincent Celier  <celier@adacore.com>
21741
21742         * make.adb (Compile_Sources): Change verbose message to minimum
21743         verbosity level High for "is in an Ada library", "is a read-only
21744         library" and "is an internal library",
21745         (Create_Binder_Mapping_File): Path name of ALI file for library project
21746         must include the library directory, not the object directory.
21747         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
21748         for new switches -vl, -vm and -vh.
21749         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
21750         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
21751         (Compile_Sources): Do not attempt to compile if an ALI file is missing
21752         in a project that is externally built.
21753         (Compute_All_Imported_Projects): New procedure
21754         (Gnatmake): Check if importing libraries should be regenerated because
21755         at least an imported library is more recent.
21756         (Initialize): For each project compute the list of the projects it
21757         imports directly or indirectly.
21758         (Add_Library_Search_Dir): New procedure, used in place of
21759         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21760         put in the search paths.
21761         (Add_Source_Search_Dir): New procedure, used in place of
21762         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21763         put in the search paths.
21764         (Mark_Directory): Resolve the absolute path the directory before marking
21765         it.
21766
21767         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
21768         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21769         Switch. Do not handle any exception.
21770         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
21771         so that the switch is recognized as valid.
21772         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
21773
21774 2005-11-14  GNAT Script  <nobody@adacore.com>
21775
21776         * Make-lang.in: Makefile automatically updated
21777
21778 2005-11-14  Pascal Obry  <obry@adacore.com>
21779
21780         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
21781         used.
21782         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
21783         In both cases the last argument was dropped.
21784
21785 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
21786
21787         * namet.h: (Column_Numbe): New type.
21788         (Get_Column_Number): Define to sinput__get_column_number.
21789         (Instantiation): Define to sinput__instantiation.
21790         (Get_Column_Number): Declare.
21791         (Instantiation): Likewise.
21792
21793 2005-11-14  Robert Dewar  <dewar@adacore.com>
21794
21795         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
21796         syntax, which could cause compiler hangs.
21797
21798 2005-11-14  Vincent Celier  <celier@adacore.com>
21799
21800         * prj-ext.adb: Take into account new environment variable
21801         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
21802         are defined.
21803         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
21804         normalize its path name, making it absolute and resolving symbolic
21805         links, and replace the original if resolved path is different.
21806
21807 2005-11-14  Vincent Celier  <celier@adacore.com>
21808
21809         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
21810         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
21811
21812 2005-11-14  Emmanuel Briot  <briot@adacore.com>
21813
21814         * prj-pp.adb (Print): Do not output the with statement if the
21815         associated name is empty, which happens for virtual extending projects.
21816         (Print): Preserve the "extends all" attribute when printing the project.
21817
21818         * prj-tree.ads (String_Value_Of): Add comment about returned value for
21819         a virtual extending project.
21820
21821 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21822
21823         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
21824         rhs of an assignment even if the type is unconstrained, when the
21825         context is non-expanding.
21826         In an inlined body, if the context type is private,
21827         resolve with its full view, which must be a composite type.
21828
21829 2005-11-14  Robert Dewar  <dewar@adacore.com>
21830             Ed Schonberg  <schonberg@adacore.com>
21831
21832         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21833         Do not give obsolescent warning on with of subprogram (since we
21834         diagnose calls)
21835         (Analyze_With_Clause): Add test for obsolescent package
21836         (Install_Context_Clauses): If the unit is the body of a child unit, do
21837         not install twice the private declarations of the parents, to prevent
21838         circular lists of Use_Clauses in a parent.
21839         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
21840         compiling body of child unit.
21841         Use new class N_Subprogram_Instantiation
21842         (Expand_With_Clause): If this is a private with_clause for a child unit,
21843         appearing in the context of a package declaration, then the implicit
21844         with_clauses generated for parent units are private as well.
21845         (License_Check): Do not generate message if with'ed unit is internal
21846
21847 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21848             Ed Schonberg  <schonberg@adacore.com>
21849             Thomas Quinot  <quinot@adacore.com>
21850
21851         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21852         names are internal, because they will not have a corresponding partner
21853         in the actual package.
21854         (Analyze_Formal_Package): Move the setting of the formal package spec's
21855         Generic_Parent field so that it occurs prior to analyzing the package,
21856         to allow proper operation of Install_Parent_Private_Declarations.
21857         (Analyze_Package_Instantiation): Set the instantiated package entity's
21858         Package_Instantiation field.
21859         (Get_Package_Instantiation_Node): Move declaration to package spec.
21860         Retrieve the N_Package_Instantiation node when the Package_Instantiation
21861         field is present.
21862         (Check_Generic_Child_Unit): Within an inlined call, the only possible
21863         instantiation is Unchecked_Conversion, for which no parents are needed.
21864         (Inline_Instance_Body): Deinstall and record the use_clauses for all
21865         parent scopes of a scope being removed prior to inlining an instance
21866         body.
21867         (Analyze_Package_Instantiation): Do not perform front-end inlining when
21868         the current context is itself an instance within a non-instance child
21869         unit, to prevent scope stack errors.
21870         (Save_References): If the node is an aggregate that is an actual in a
21871         call, rewrite as a qualified expression to preserve some type
21872         information, to resolve possible ambiguities in the instance.
21873         (Instance_Parent_Unit): New global variable to record the ultimate
21874         parent unit associated with a generic child unit instance (associated
21875         with the existing Parent_Unit_Visible flag).
21876         (type Instance_Env): New component Instance_Parent_Unit for stacking
21877         parents recorded in the global Instance_Parent_Unit.
21878         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21879         stack.
21880         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21881         it's not a top-level unit, and only do this if Instance_Parent_Unit is
21882         not already set. Replace test of Is_Child_Unit with test of parent's
21883         scope against package Standard. Add comments and a ??? comment.
21884         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21885         on a child instance parent to test that the parent equals
21886         Instance_Parent rather than simply checking that the unit is not a
21887         child unit.
21888         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21889         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21890         a formal interface are ancestors of the corresponding actual.
21891         (Validate_Formal_Interface_Type): Additional legality checks.
21892         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21893         interface types with ancestors.
21894         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21895         to diagnose attempts to use generic within its own declaration.
21896
21897 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21898             Javier Miranda  <miranda@adacore.com>
21899
21900         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21901         discriminant.
21902         (Build_Private_Derived_Type): The entity of the created full view of the
21903         derived type does not come from source. If after installing the private
21904         declarations of the parent scope the parent is still private, use its
21905         full view to construct the full declaration of the derived type.
21906         (Build_Derived_Record_Type): Relax the condition that controls the
21907         execution of the check that verifies that the partial view and
21908         the full view agree in the set of implemented interfaces. In
21909         addition, this test now only takes into account the progenitors.
21910         (Derive_Interface_Subprograms): No need to derive subprograms
21911         of ancestors that are interfaces.
21912         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21913         associated code.
21914         Change name Is_Package to Is_Package_Or_Generic_Package
21915         (Complete_Subprograms_Derivation): Handle the case in which the full
21916         view is a transitive derivation of the ancestor of the partial view.
21917         (Process_Full_View): Rename local subprogram Find_Interface_In_
21918         Descendant to Find_Ancestor_Interface to leave the code more clear.
21919         Remove wrong code that avoids the generation of an error message
21920         when the immediate ancestor of the partial view is an interface.
21921         In addition some minor reorganization of the code has been done to
21922         leave it more clear.
21923         (Analyze_Type_Declaration): If type has previous incomplete tagged
21924         partial view, inherit properly its primitive operations.
21925         (Collect_Interfaces): Make public, for analysis of formal
21926         interfaces.
21927         (Analyze_Interface_Declaration): New procedure for use for regular and
21928         formal interface declarations.
21929         (Build_Derived_Record_Type): Add support for private types to the code
21930         that checks if a tagged type implements abstract interfaces.
21931         (Check_Aliased_Component_Type): The test applies in the spec of an
21932         instance as well.
21933         (Access_Type_Declaration): Clean up declaration of malformed type
21934         declared as an access to its own classwide type, to prevent cascaded
21935         crash.
21936         (Collect_Interfaces): For private extensions and for derived task types
21937         and derived protected types, the parent may be an interface that must
21938         be included in the interface list.
21939         (Access_Definition): If the designated type is an interface that may
21940         contain tasks, create Master_Id for it before analyzing the expression
21941         of the declaration, which may be an allocator.
21942         (Record_Type_Declaration): Set properly the interface kind, for use
21943         in allocators, the creation of master id's for task interfaces, etc.
21944
21945 2005-11-14  Javier Miranda  <miranda@adacore.com>
21946             Ed Schonberg  <schonberg@adacore.com>
21947
21948         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21949         omitted in case of stream attribute subprograms.
21950         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21951         appear immediately after a subprogram body, when there is no previous
21952         subprogram declaration.
21953         Change name Is_Package to Is_Package_Or_Generic_Package
21954         (Process_Formals): A non null qualifier on a non null named access
21955         type is not an error, and is a warning only if Redundant_Constructs
21956         are flagged.
21957
21958 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21959             Ed Schonberg  <schonberg@adacore.com>
21960
21961         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21962         nested within Analyze_Package_Specification to install the private
21963         declarations and use clauses within each of the parent units of a
21964         package instance of a generic child package.
21965         (Analyze_Package_Specification): When entering a private part of a
21966         package associated with a generic instance or formal package, the
21967         private declarations of the parent must be installed (by calling new
21968         procedure Install_Parent_Private_Declarations).
21969         Change name Is_Package to Is_Package_Or_Generic_Package
21970         (Preserve_Full_Attributes): For a synchronized type, the corresponding
21971         record is absent in a generic context, which does not indicate a
21972         compiler error.
21973
21974 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21975
21976         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21977         not try to rewrite a renamed stream attribute, because the operations
21978         on the type may not have been generated.
21979         Handle properly a renaming_as_body generated for a stream operation
21980         whose default is abstract because the object type itself is abstract.
21981         (Find_Type): If the type is incomplete and appears as the prefix of a
21982         'Class reference, it is tagged, and its list of primitive operations
21983         must be initialized properly.
21984         (Chain_Use_Clauses): When chaining the use clauses that appear in the
21985         private declaration of a parent unit, prior to compiling the private
21986         part of a child unit, find on the scope stack the proper parent entity
21987         on which to link the use clause.
21988         (Note_Redundant_Use): Emit a warning when a redundant use clause is
21989         detected.
21990         (Analyze_Object_Renaming): An attribute reference is not a legal object
21991         if it is not a function call.
21992
21993 2005-11-14  Robert Dewar  <dewar@adacore.com>
21994             Ed Schonberg  <schonberg@adacore.com>
21995
21996         * sem_eval.adb: Implement d.f flag
21997         (Subtype_Statically_Match): A generic actual type has unknown
21998         discriminants when the corresponding actual has a similar partial view.
21999         If the routine is called to validate the signature of an inherited
22000         operation in a child instance, the generic actual matches the full view,
22001
22002 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
22003             Ed Schonberg  <schonberg@adacore.com>
22004             Robert Dewar  <dewar@adacore.com>
22005             Thomas Quinot  <quinot@adacore.com>
22006
22007         * sem_res.adb (Resolve_Call): Provide a better error message whenever
22008         a procedure call is used as a select statement trigger and is not an
22009         entry renaming or a primitive of a limited interface.
22010         (Valid_Conversion): If the operand has a single interpretation do not
22011         remove address operations.
22012         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22013         statement to inhibit warning.
22014         (Resolve_Unary_Op): Do not produce a warning when
22015         processing an expression of the form -(A mod B)
22016         Use Universal_Real instead of Long_Long_Float when we need a high
22017         precision float type for the generated code (prevents gratuitous
22018         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22019         (Resolve_Concatenation_Arg): Improve error message when argument is an
22020         ambiguous call to a function that returns an array.
22021         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22022         there is an implicit operator in the given scope if we are within an
22023         instance: legality check has been performed on the generic.
22024         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22025         after resolving operand, to avoid false warnings on overloaded calls.
22026
22027 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22028             Javier Miranda  <miranda@adacore.com>
22029
22030         PR ada/15604
22031         * sem_type.adb (Covers): In an inlined body, a composite type matches
22032         a private type whose full view is a composite type.
22033         (Interface_Present_In_Ancestor): Protect the frontend against
22034         previously detected errors to ensure that its compilation
22035         with assertions enabled gives the same output that its
22036         compilation without assertions.
22037         (Interface_Present_In_Ancestor): Add support for private types.
22038         Change name In_Actual to In_Generic_Actual (clean up)
22039         (Disambiguate): New predicate In_Actual, to recognize expressions that
22040         appear in the renaming declaration generated for generic actuals, and
22041         which must be resolved in the outer context.
22042
22043 2005-11-14  Robert Dewar  <dewar@adacore.com>
22044             Thomas Quinot  <quinot@adacore.com>
22045             Hristian Kirtchev  <kirtchev@adacore.com>
22046             Ed Schonberg  <schonberg@adacore.com>
22047
22048         * sem_util.ads, sem_util.adb: Change name Is_Package to
22049         Is_Package_Or_Generic_Package.
22050         (Check_Obsolescent): New procedure.
22051         (Set_Is_Public): Remove obsolete junk test.
22052         (Set_Public_Status): Do not set Is_Public on an object whose declaration
22053         occurs within a handled_sequence_of_statemets.
22054         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22055         for a parameterless procedure.
22056         (Enter_Name): Recognize renaming declarations created for private
22057         component of a protected type within protected operations, so that
22058         the source name of the component can be used in the debugger.
22059
22060 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
22061             Robert Dewar  <dewar@adacore.com>
22062
22063         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22064         of a generic subprogram are not visible outside the body.
22065         (Set_Warning_Switch): New procedure (code to set warning mode moved
22066         here from Switch.C so that it can be shared by pragma processing.
22067         (Check_References): Special case warning for non-modified non-imported
22068         volatile objects.
22069         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22070         form with a string literal argument
22071
22072 2005-11-14  Javier Miranda  <miranda@adacore.com>
22073
22074         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22075         anonymous access.
22076         (Write): Addition of "not null" to the anonymous access.
22077         (Read): Addition of "not null" to the anonymous access.
22078         (Write): Addition of "not null" to the anonymous access.
22079
22080         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22081         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22082         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22083         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22084         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22085         "not null" to the anonymous access.
22086
22087 2005-11-14  Robert Dewar  <dewar@adacore.com>
22088
22089         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22090         offset values
22091
22092 2005-11-14  Vincent Celier  <celier@adacore.com>
22093
22094         * switch.adb (Bad_Switch): New procedure
22095         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22096         message when in error.
22097
22098         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22099         Too_Many_Output_Files): Remove declarations, no longer used.
22100         (Scan_Nat): New parameter Switch
22101         (Scan_Pos): Ditto
22102         (Bad_Switch): New procedure
22103
22104         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22105         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22106         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22107         to Osint.Fail. Do not handle any exception.
22108
22109 2005-11-14  Vincent Celier  <celier@adacore.com>
22110
22111         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22112         designates a non existent directory.
22113
22114 2005-11-14  Robert Dewar  <dewar@adacore.com>
22115
22116         * xgnatugn.adb: Replace invalid membership test by 'Valid
22117
22118 2005-11-14  Vincent Celier  <celier@adacore.com>
22119
22120         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22121         there is no object directory.
22122
22123 2005-11-14  Robert Dewar  <dewar@adacore.com>
22124
22125         * usage.adb: Minor adjustment to output format, use nn instead of nnn
22126         (so that -gnateInnn does not run into next column)
22127
22128 2005-11-14  Ed Falis  <falis@adacore.com>
22129
22130         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22131         "constrained"
22132
22133 2005-11-14  Cyrille Comar  <comar@adacore.com>
22134
22135         * s-chepoo.ads: Add comments on Dereference.
22136         Remove unnecessary inherited abstract primitives.
22137         Cosmetic cleanup.
22138
22139 2005-11-14  Robert Dewar  <dewar@adacore.com>
22140
22141         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22142         node parameter, not needed, since it is available as Declaration_Node.
22143
22144 2005-11-14  Geert Bosch  <bosch@adacore.com>
22145
22146         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22147         grammatically correct.
22148
22149 2005-11-14  Vincent Celier  <celier@adacore.com>
22150
22151         * s-fileio.ads: Correct spelling error in comment
22152
22153 2005-11-14  Cyrille Comar  <comar@adacore.com>
22154             Robert Dewar  <dewar@adacore.com>
22155             Vincent Celier  <celier@adacore.com>
22156             Ben Brosgol  <brosgol@adacore.com>
22157             Jose Ruiz  <ruiz@adacore.com>
22158             Pascal Obry  <obry@adacore.com>
22159
22160         * gnat_ugn.texi: 
22161         Document that -fstack-check is needed for strict compliance with the
22162         Ada 95 Reference Manual.
22163         Correct reference to VAX systems to meet HP guidelines
22164         Add documentation for new gnatmake switches -vl, -vm and -vh
22165         Replace DEC Ada by HP Ada
22166         Replace DIGITAL by HP
22167         Remove empty section on tools in compatibility section
22168         Clarify the Windows convention semantics.
22169         Document the Win32 calling convention.
22170         The Stdcall, Win32 and DLL convention are synonyms.
22171         Add a note in -gnatR description about zero size record components
22172         Note on new >= and <= warnings for -gnatwc
22173         Document that equal sign after -gnatm is optional.
22174         Note that strip is working fine on DLL built with a Library
22175         Project. The restriction apply only to DLL built with gnatdll.
22176         Update section about the way to debug a DLL.
22177         Update information about the DLL convention.
22178         Document -C switch for gnatprep
22179         Document new attribute Library_ALI_Dir
22180         Update elaboration doc to include implicit Elaborate pragmas now
22181         generated for subprogram instantiations.
22182         Document limitation on executable names that include spaces for --GCC,
22183         --GNATBIND, and --GNATLINK switches.
22184         Document that -w causes -gnatws to be added at start of gcc switches
22185
22186         * gnat_rm.texi: Document that -mieee is needed for generating infinite
22187         and NaN values in case of overflow on machines that are not fully
22188         compliant with the IEEE floating-point standard.
22189         Create a section describing the set of compiler options needed for
22190         strict compliance with the Ada 95 Reference Manual.
22191         Add documentation for pragma Obsolescent applied to a package
22192         Clarify potential issues of mixed language programs related to the
22193         I/O buffering enabling in the elaboration of the GNAT runtime.
22194         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22195         This documentation only patch adds extra documentsion for pragma
22196         Restrictions (No_Elaboration_Code), explaining why it is not possible
22197         to document this restriction in terms of allowed source constructs.
22198         Document string literal form of pragma Warnings
22199         Document new attribute Library_ALI_Dir
22200         Add documentation on stable attributes in project files that was missing
22201
22202         * gnat-style.texi: Indicate that paragraphs within a single comment
22203         should be separated by empty comment lines
22204
22205         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22206         /05 respectively)
22207
22208         * bindusg.adb: Minor cleanup, put -m before -M for consistency
22209
22210 2005-11-14  Robert Dewar  <dewar@adacore.com>
22211
22212         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22213         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22214         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22215         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22216         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22217         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22218         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22219         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22220         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22221         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22222         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22223         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22224         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22225         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22226         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22227         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22228         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22229         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22230         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22231         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22232         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22233         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22234         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22235         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22236         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22237         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22238         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22239         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22240         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22241         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22242         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22243         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22244         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22245         system-interix.ads, system-solaris-sparc.ads,
22246         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22247         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22248         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22249         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22250         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22251         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22252         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22253         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22254         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22255         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22256         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22257         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22258         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22259         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22260         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22261         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22262         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22263         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22264         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22265         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22266         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22267         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22268         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22269         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22270         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22271         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22272         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22273         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22274         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22275         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22276         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22277         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22278         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22279         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22280         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22281         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22282         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22283         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22284         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22285         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22286         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22287         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
22288         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
22289         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
22290         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
22291         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
22292         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
22293         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
22294         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
22295         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
22296         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
22297         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
22298         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
22299         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
22300         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
22301         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
22302         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
22303         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
22304         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
22305         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
22306         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
22307         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
22308         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
22309         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
22310         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
22311         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
22312         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
22313         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
22314         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
22315         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
22316         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
22317         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
22318         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
22319         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
22320         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
22321         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
22322         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
22323         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
22324         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
22325         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
22326         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
22327         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
22328         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
22329         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
22330         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
22331         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
22332         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
22333         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
22334         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
22335         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
22336         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
22337         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
22338         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
22339         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
22340         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
22341         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
22342         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
22343         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
22344         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
22345         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
22346         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
22347         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
22348         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
22349         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
22350         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
22351         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
22352         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
22353         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
22354         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
22355         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
22356         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
22357         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
22358         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
22359         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
22360         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
22361         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
22362         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
22363         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
22364         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
22365         a-numaux-darwin.ads, a-numaux-darwin.adb,
22366         a-swuwha.ads, a-stunha.ads: Minor reformatting
22367
22368 2005-11-14  Robert Dewar  <dewar@adacore.com>
22369
22370         PR ada/18434
22371         * osint-m.adb: Add pragma Elaborate_All for Osint
22372
22373 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
22374
22375         PR ada/23995
22376         * trans.c (call_to_gnu): Restore statement lost in translation.
22377
22378 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
22379
22380         * init.c: Use the Linux-specific section for the IA-64/Linux target.
22381         (__gnat_adjust_context_for_raise): Add conditional code so that the
22382         IA-64 is also supported.
22383
22384 2005-11-03  James E Wilson  <wilson@specifix.com>
22385
22386         PR ada/23427
22387         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
22388         TREE_OVERFLOW check.
22389
22390 2005-09-21  Olivier Hainque  <hainque@adacore.com>
22391
22392         PR ada/22418
22393         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
22394         as we create them to store a size in bits.
22395
22396 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
22397
22398         PR ada/21937
22399         PR ada/22328
22400         PR ada/22381
22401         PR ada/22383
22402         PR ada/22419
22403         PR ada/22420
22404         * utils2.c (build_return_expr): New helper function.
22405         * gigi.h (build_return_expr): Declare it.
22406         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
22407         of manually building the RETURN_EXPR tree.
22408         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
22409         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
22410         build_binary_op for the "target pointer" case.  Use build_return_expr
22411         instead of manually building the RETURN_EXPR tree.
22412
22413 2005-09-16  Laurent Guerby  <laurent@guerby.net>
22414
22415         PR ada/23788
22416         * s-tpinop.ads: Make this unit Preelaborate.
22417
22418 2005-09-16  Andreas Jaeger  <aj@suse.de>
22419
22420         * socket.c: Add string.h for memcpy.
22421
22422 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
22423
22424         * dec-io.ads, dec-io.adb: Removed, no longer used.
22425
22426 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22427
22428         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
22429
22430         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22431         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
22432         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
22433         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
22434         dependent units are Preelaborate.
22435         (Initialize): Call Interrupt_Managemeent.Initialize and
22436         OS_Primitives.Initialize to ensure proper initialization of this unit.
22437         Remove use of System.Soft_Links
22438         Make this unit Preelaborate.
22439
22440         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22441         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
22442         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
22443         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
22444         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
22445         s-tratas.ads, s-tasinf.ads: Minor reformatting.
22446         Add pragma Preelaborate, since these packages are suitable for this
22447         categorization.
22448         Update comments.
22449
22450         * s-traent-vms.ads, s-intman-dummy.adb,
22451         s-taprop-dummy.adb: Make this unit Preelaborate.
22452
22453         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
22454         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
22455         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
22456         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
22457         s-intman-solaris.adb, s-intman-irix-athread.adb,
22458         s-intman-irix.adb: Mark this unit Preelaborate.
22459         (Initialize): New procedure.
22460         Update comments.
22461
22462         * s-taspri-linux.ads: Removed.
22463
22464         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
22465         as done by other implementations (e.g. posix).
22466
22467         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
22468         responsible for deferring abort.
22469         Mark this unit Preelaborate.
22470
22471         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
22472         proper initialization of the tasking run-time.
22473
22474         * s-tasdeb.ads: Mark this unit Preelaborate.
22475         (Known_Tasks): Add explicit default value to avoid elaboration code.
22476
22477         * s-inmaop-vms.adb (Elaboration code): Add call to
22478         Interrupt_Management.Initialize since the elaboration code depends on
22479         proper initialization of this package.
22480
22481         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
22482         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
22483         s-osprim-posix.adb: Make this unit Preelaborate.
22484
22485         * a-calend.adb: Add call to OS_Primitives.Initialize
22486
22487         * a-elchha.adb: Update use of Except.Id.Full_Name.
22488         Minor reformatting.
22489         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
22490
22491         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
22492         Move with clauses outside Warnings Off now that dependent units are
22493         Preelaborate.
22494         Use raise xxx with "..."; Ada 2005 form.
22495
22496         * a-taside.ads, a-taside.adb:
22497         Remove some dependencies, to make it easier to make this unit truly
22498         Preelaborate.
22499         Rewrite some code to be conformant with Preelaborate rules.
22500
22501         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
22502         marked Preelaborate in the future.
22503
22504         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
22505         these units Preelaborate.
22506
22507         * s-exctab.adb: Update use of Except.Id.Full_Name.
22508
22509         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
22510         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
22511         Set_Exc_Stack_Addr): Removed, no longer used.
22512         Remove reference to *Machine_State_Addr*, no longer needed.
22513
22514         * s-stalib.ads: Mark this unit as Preelaborate[_05].
22515         (Exception_Data): Full_Name is now a System.Address so that this unit
22516         can be made Preelaborate.
22517         Clean up/simplify code thanks to Full_Name being a System.Address.
22518         Remove obsolete pragma Suppress (All_Checks), no longer needed.
22519
22520         * s-taskin.ads, s-taskin.adb:
22521         Move with clauses outside Warnings Off now that dependent units are
22522         Preelaborate.
22523         Make this unit Preelaborate.
22524         (Initialize): New proceduure, replace elaboration code and makes the
22525         set up of the tasking run-time cleaner.
22526         (Detect_Blocking): Now a function instead of a deferred boolean, to
22527         obey Preelaborate rules.
22528
22529         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
22530         soft links, no longer used.
22531
22532         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
22533         packages are suitable for this categorization.
22534
22535         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
22536         since we compile run-time sources in Ada 2005 mode.
22537         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
22538         avoid having s-taprop*.adb depend on s-soflin and to avoid code
22539         duplication.
22540         Remove reference to *Machine_State_Addr*, no longer needed.
22541
22542 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22543
22544         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
22545         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22546         Remove reference to System.Exceptions.
22547
22548         * s-mastop-x86.adb: Removed, no longer used.
22549
22550         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
22551
22552         * a-excach.adb: Minor reformatting.
22553
22554         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
22555         instead fix new warnings that were hidden by this change.
22556         (AAA, ZZZ): Removed, replaced by...
22557         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
22558         are used instead of constants, to help make Ada.Exception truly
22559         preelaborate.
22560         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
22561         Raise_Storage_Error): File is now a System.Address, to simplify code.
22562         (Elab code): Removed, no longer used.
22563         (Null_Occurrence): Remove Warnings Off and make this construct
22564         preelaborate.
22565         Remove code related to front-end zero cost exception handling, since
22566         it is no longer used.
22567         Remove -gnatL/-gnatZ switches.
22568
22569         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
22570         Update use of Except.Msg.
22571
22572         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
22573         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
22574         to front-end zero cost exception handling, since it is no longer used.
22575         Remove -gnatL/-gnatZ switches.
22576
22577         * lib-writ.ads: Minor reformatting
22578         Remove doc of UX
22579
22580         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
22581
22582         * Make-lang.in: Remove references to s-except.ads
22583
22584         * s-except.ads: Removed, no longer used.
22585
22586         * s-mastop.ads, s-mastop.adb:
22587         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22588         Remove reference to System.Exceptions.
22589
22590         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
22591         switch-b.adb: Remove code related to front-end zero cost exception
22592         handling, since it is no longer used.
22593         Remove -gnatL/-gnatZ switches.
22594
22595 2005-09-01  Robert Dewar  <dewar@adacore.com>
22596             Gary Dismukes  <dismukes@adacore.com>
22597             Javier Miranda  <miranda@adacore.com>
22598
22599         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
22600         type by valid test and generate warning.
22601         (Tagged_Membership): Generate call to the run-time
22602         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
22603         Change formal name Subtype_Mark to Result_Definition in several calls to
22604         Make_Function_Specification.
22605         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
22606         check for proper accessibility of the operand of a class-wide allocator.
22607         The check can be left out if checks are suppressed or if the expression
22608         has a specific tagged type whose level is known to be safe.
22609
22610         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
22611         generates the run-time check associated with null-excluding entities.
22612         (Expand_N_Return_Statement): Add tests to determine if the accessibility
22613         check on the level of the return expression of a class-wide function
22614         can be elided. The check usually isn't needed if the expression has a
22615         specific type (unless it's a conversion or a formal parameter). Also
22616         add a test for whether accessibility checks are suppressed. Augment
22617         the comments to describe the conditions for performing the check.
22618
22619 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
22620             Javier Miranda  <miranda@adacore.com>
22621             Gary Dismukes  <dismukes@adacore.com>
22622             Ed Schonberg  <schonberg@adacore.com>
22623
22624         * a-tags.adb (IW_Membership): Give support to
22625         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
22626         subprogram has been extended to look for the tag in the ancestors tag
22627         table.
22628         Update the structure of the GNAT Dispatch Table to reflect the
22629         additional two tables used in dispatching selects.
22630         Introduce appropriate array types and record components in
22631         Type_Specific_Data to reflect the two tables.
22632         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
22633         the TSD of a tag, indexed by position.
22634         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
22635         operation kind in the TSD of a tag, indexed by position.
22636
22637         * a-tags.ads: Introduce an enumeration type to capture different
22638         primitive operation kinds. Define a constant reflecting the number of
22639         predefined primitive operations.
22640         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
22641         of an entry wrapper.
22642         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
22643         callable entity of a primitive operation.
22644
22645         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
22646         primitive operations used in dispatching selects for limited
22647         interfaces, limited tagged, task and protected types what implement a
22648         limited interface.
22649         (Freeze_Type): Generate the bodies of the primitive operations used in
22650         dispatching selects for limited tagged, task and protected types that
22651         implement a limited interface. Generate statements to populate the two
22652         auxiliary tables used for dispatching in select statements.
22653         (Freeze_Record_Type): Add call to initialize the dispatch table entries
22654         associated with predefined interface primitive operations.
22655         (Build_Dcheck_Function): Change Set_Subtype_Mark to
22656         Set_Result_Definition.
22657         (Build_Variant_Record_Equality): Change Subtype_Mark to
22658         Result_Definition.
22659         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
22660         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
22661         (Build_Assignment): Simplify the code that adds the run-time-check.
22662         (Expand_N_Object_Declaration): Code cleanup.
22663
22664         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
22665         entries when there is a protected type that implements a limited
22666         interface.
22667
22668         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
22669         common routines used in expansion of dispatching selects.
22670         (Add_Private_Declarations): Select the appropriate protection type when
22671         there is a protected type that implements a limited interface.
22672         (Build_Parameter_Block): Generate a wrapped parameter block.
22673         (Build_Protected_Subprogram_Body): Select the appropriate type for
22674         locking entries when there is a protected type that implements a
22675         limited interface.
22676         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
22677         classified as entry wrappers.
22678         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
22679         asynchronous selects.
22680         (Expand_N_Conditional_Entry_Call): Add support for expansion of
22681         dispatching conditional selects.
22682         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
22683         protection when there is a protected type that implements limited
22684         interfaces.
22685         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
22686         timed selects.
22687         (Extract_Dispatching_Call): Extract the entity of the name of a
22688         dispatching call, the object parameter, actual parameters and
22689         corresponding formals.
22690         (Make_Initialize_Protection): Correct logic of protection initialization
22691         when there is a protected type that implements a limited interface.
22692         (Parameter_Block_Pack): Populate a wrapped parameter block with the
22693         values of actual parameters.
22694         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
22695         block and assign them to the original actual parameters.
22696
22697         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
22698         (Build_Protected_Sub_Specification): Change the type and name of the
22699         last formal to account for the increased variety of protection modes.
22700
22701         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
22702         entities. Used to save the value of the Is_Hidden attribute when the
22703         limited-view is installed.
22704         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
22705         the attribute of procedures classified as entry wrappers.
22706         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
22707         entity of a primitive wrapper.
22708         (Write_Entity_Flags): Output the name and value of the
22709         Is_Primitive_Wrapper attribute.
22710         (Write_Field27_Name): Output the name and entity of the field Wrapped_
22711         Entity.
22712         (Underlying_Type): If we have an incomplete entity that comes from
22713         the limited view then we return the Underlying_Type of its non-limited
22714         view if it is already available.
22715         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
22716         including operators.
22717         (Write_Field26_Name): Add entry for Overridden_Operation
22718         (Overridden_Operation): New attribute of functions and procedures.
22719
22720         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
22721         predefined position in the dispatch table for the primitive operations
22722         used in dispatching selects.
22723         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
22724         predefined primitive operations and replace it with
22725         Default_Prim_Op_Count.
22726         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
22727         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
22728         the names of the generated primitive operations used in dispatching
22729         selects.
22730         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
22731         case of abstract interface types. They will be inherit by the objects
22732         implementing the interface.
22733         (Make_DT): There is no need to inherit the dispatch table of the
22734         ancestor interface for the elaboration of abstract interface types.
22735         The dispatch table will be inherited by the object implementing the
22736         interface.
22737         (Copy_Secondary_DTs): Add documentation.
22738         (Validate_Position): Improve this static check in case of
22739         aliased subprograms because aliased subprograms must have
22740         the same position.
22741         (Init_Predefined_Interface_Primitives): New subprogram that initializes
22742         the entries associated with predefined primitives of all the secondary
22743         dispatch tables.
22744         (Build_Anonymous_Access_Type): Removed.
22745         (Expand_Interface_Actuals): With the previous cleanup there is no need
22746         to build an anonymous access type. This allows further cleanup in the
22747         code generated by the expander.
22748         (Expand_Interface_Conversion): If the actual is an access type then
22749         build an internal function to handle the displacement. If the actual
22750         is null this function returns null because no displacement is
22751         required; otherwise performs a type conversion that will be
22752         expanded in the code that returns the value of the displaced actual.
22753         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
22754         conversions that have no effect in the generated code because no
22755         displacement is required. Code cleanup; use local variables to
22756         avoid repeated calls to the subprogram directly_designated_type().
22757
22758         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
22759         Classify the primitive operations used in dispatching selects as
22760         predefined.
22761         (Implements_Limited_Interface): Determine whether some type either
22762         directly implements a limited interface or extends a type that
22763         implements a limited interface.
22764         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
22765         (Expand_Subtype_From_Expr): Do not build actual subtype if the
22766         expression is limited.
22767         (Find_Interface_Tag): Add code to handle class-wide types and
22768         entities from the limited-view.
22769
22770         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
22771         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
22772         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
22773         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
22774         Set_Prim_Op_Kind.
22775
22776         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
22777         of procedure name or prefix that appears as a trigger in a triggering
22778         alternative.
22779
22780         * uintp.ads: Introduce constants Uint_11 and Uint_13.
22781
22782 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22783
22784         * s-tataat.adb, a-tasatt.adb:
22785         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
22786
22787         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
22788         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
22789         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
22790         longer used.
22791
22792 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22793             Jose Ruiz  <ruiz@adacore.com>
22794
22795         * s-taprop-vxworks.adb:
22796         Move with clauses outside Warnings Off now that dependent units are
22797         Preelaborate.
22798         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
22799         initialization of this unit.
22800         (Specific): Add new procedures Initialize and Delete so that this
22801         package can be used for VxWorks 5.x and 6.x
22802         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
22803         differences between VxWorks 5.x and 6.x
22804         Minor reformatting.
22805         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
22806         caller.
22807         Use only Preelaborate-compatible constructs.
22808
22809         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
22810         Primitives.Operations.
22811         (Delete, Initialize): New procedures.
22812
22813         * s-osinte-vxworks.adb: Body used to handle differences between
22814         VxWorks 5.x and 6.x
22815         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
22816
22817         * s-osinte-vxworks.ads: Minor reformatting.
22818         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
22819         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
22820         and 6.
22821         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
22822         between Vxworks 5 and 6.
22823         (taskLock, taskUnlock): Removeed, no longer used.
22824
22825         * adaint.c: The wait.h header is not located in the sys directory on
22826         VxWorks when using RTPs.
22827         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
22828         using RTPs.
22829         (__gnat_dup): dup is available on Vxworks when using RTPs.
22830         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
22831
22832         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
22833
22834         * expect.c: The wait.h header is not located in the sys directory on
22835         VxWorks when using RTPs.
22836
22837 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22838
22839         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
22840
22841         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
22842
22843         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22844         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22845         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22846         g-soccon-freebsd.ads: Add new constants:
22847          IP_MULTICAST_IF
22848          SO_RCVTIMEO/SO_SNDTIMEO
22849          IOV_MAX
22850
22851         * gen-soccon.c:
22852         Move all target-specific file inclusions and macro definitions to
22853         gsocket.h, in order to ensure that any C code in socket.c will see a
22854         set of constants that is consistent with the contents of g-soccon.ads.
22855
22856         * gsocket.h: Code imported from gen-soccon.c:
22857         Move all target-specific file inclusions and macro definitions to
22858         gsocket.h, in order to ensure that any C code in socket.c will see a set
22859         of constants that is consistent with the contents of g-soccon.ads.
22860         This change also makes gen-soccon self-contained (removing dependencies
22861         upon GCC internal headers).
22862
22863         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22864         iovecs at a time.
22865         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22866
22867         * socket.c: Minor reformatting.
22868
22869 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22870             Thomas Quinot  <quinot@adacore.com>
22871
22872         * fname-sf.adb, mlib-tgt.ads,
22873         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22874         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22875         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22876         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22877         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22878         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22879         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22880         makegpr.adb: Remove redundant use_clauses.
22881
22882 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22883
22884         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22885         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22886         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22887         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22888         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22889         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22890         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22891         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22892         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22893         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22894         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22895         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22896         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22897         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22898         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
22899         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
22900         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22901         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22902         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22903         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22904         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22905         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22906         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22907         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22908         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22909         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22910         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22911         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
22912         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22913         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
22914         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22915         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22916         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22917         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22918         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22919         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22920         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22921         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22922         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22923         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22924         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22925         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22926         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22927         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22928         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22929         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22930         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22931         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22932         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22933         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22934         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22935         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22936         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22937         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22938         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22939         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22940         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22941         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22942         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22943         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22944         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22945         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22946         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22947         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22948         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22949         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22950         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
22951         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22952         and always use the no parameter form for consistency.
22953
22954         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22955
22956 2005-09-01  Robert Dewar  <dewar@adacore.com>
22957
22958         * binde.adb: Minor reformatting
22959         (Find_Elab_Order): Output warning if -p used with static elab order
22960
22961 2005-09-01  Robert Dewar  <dewar@adacore.com>
22962
22963         * checks.adb (Check_Needed): New procedure, deals with removing checks
22964         based on analysis of short-circuited forms. Also generates warnings for
22965         improper use of non-short-circuited forms.
22966         Code clean ups.
22967
22968 2005-09-01  Robert Dewar  <dewar@adacore.com>
22969
22970         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22971         with 'Valid tests.
22972
22973 2005-09-01  Robert Dewar  <dewar@adacore.com>
22974
22975         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22976         spec.
22977         Implement new insertion char < (conditional warning)
22978         * errutil.adb, erroutc.adb: Implement new insertion char <
22979         (conditional warning).
22980         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22981         (Error_Msg_Warn): New variable for < insertion char.
22982         * prj-nmsc.adb: Implement new errout insertion char < (conditional
22983         warning).
22984         (Check_For_Source): Change value of Source_Id only after the current
22985         source has been dealt with.
22986
22987 2005-09-01  Robert Dewar  <dewar@adacore.com>
22988             Doug Rupp  <rupp@adacore.com>
22989
22990         * exp_attr.adb: Handle vax fpt for 'Valid attribute
22991         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22992         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22993         (Valid_D, Valid_F, Valid_G): New functions
22994
22995 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22996             Hristian Kirtchev  <kirtchev@adacore.com>
22997             Javier Miranda  <miranda@adacore.com>
22998
22999         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23000         from object notation, the original node is unanalyzed and carries no
23001         semantic information, so that accessiblity checks must be performed on
23002         the type of the actual itself.
23003         (Expand_N_Subprogram_Declaration): Change last actual parameter for
23004         compatibility with Build_Protected_Sub_Specification.
23005         (Check_Overriding_Inherited_Interfaces): Add suport to handle
23006         overloaded primitives.
23007         (Register_Interface_DT_Entry): Use the new name of the formal
23008         the the calls to Expand_Interface_Thunk
23009
23010         * exp_dbug.ads: Augment comments on encoding of protected types to
23011         include the generation of dispatching subprograms when the type
23012         implements at least one interface.
23013
23014         * lib.ads: Extend information in Load_Stack to include whether a given
23015         load comes from a Limited_With_Clause.
23016
23017         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23018         whether a potential circularity is harmless, because it includes units
23019         loaded through a limited_with clause. Extends previous treatment which
23020         did not handle properly arbitrary combinations of limited and
23021         non-limited clauses.
23022
23023 2005-09-01  Nicolas Setton  <setton@adacore.com>
23024
23025         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23026         to be encoded as typ___XBLU_lowerbound__upperbound instead of
23027         typ___XB_lowerbound__upperbound.
23028
23029 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23030
23031         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23032         dummy access formal for RACW/RAS TypeCode TSS.
23033         (Build_TypeCode_Call): Do not generate dummy null access actual for
23034         calls to the TypeCode TSS.
23035
23036 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23037
23038         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23039         fully qualified name, to distinguish instances with the same local name.
23040
23041         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23042         fully qualified.
23043
23044 2005-09-01  Robert Dewar  <dewar@adacore.com>
23045
23046         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23047         packed arrays.
23048
23049 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
23050
23051         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23052         (Free): New deallocation procedure for filter elements
23053         (Close): Deallocate any existing filter for the concerned connection
23054
23055 2005-09-01  Laurent Pautet  <pautet@adacore.com>
23056
23057         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23058         position set is provided, we compute one in order to reduce the maximum
23059         length of the keys.  This computation first selects a character
23060         position between 1 and the minimum length of the keys in order to
23061         avoid reducing one of the keys to an empty string.
23062         (Initialize, Compute): When the ratio V to K is too low, the algorithm
23063         does not converge. The initialization procedure now comes with a
23064         maximum number of iterations such that when exceeded, an exception is
23065         raised in Compute. The user can initialize this ratio to another value
23066         and try again
23067         Reformating and updated headers.
23068
23069 2005-09-01  Javier Miranda  <miranda@adacore.com>
23070
23071         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23072         that given an entity T creates and returns an Itype that duplicates the
23073         contents of T. The returned Itype has the null-exclusion
23074         attribute set to True, and its Etype attribute references T
23075         to keep the association between the two entities.
23076         Update copyright notice
23077
23078         * sem_aggr.adb (Check_Can_Never_Be_Null,
23079         Aggregate_Constraint_Checks, Resolve_Aggregate,
23080         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23081
23082         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23083
23084 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
23085             Robert Dewar  <dewar@adacore.com>
23086             Hristian Kirtchev  <kirtchev@adacore.com>
23087
23088         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23089         Result_Definition.
23090
23091         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23092         function specs.
23093         Call Set_Result_Definition instead of Set_Subtype_Mark.
23094         (P_Subprogram_Specification): Add parsing of anonymous access result
23095         plus null exclusions. Call Set_Result_Definition instead of
23096         Set_Subtype_Mark.
23097
23098         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23099         (P_Access_Type_Definition): Add parsing for an anonymous access result
23100         subtype, plus parsing for null exclusions. Call Set_Result_Definition
23101         instead of Set_Subtype_Mark.
23102
23103         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23104         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23105         (Result_Definition): New function for N_Function_Specifications.
23106         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23107         N_Function_Specification.
23108         (Set_Null_Exclusion_Present): Allow this flag for
23109         N_Function_Specification.
23110         (Set_Result_Definition): New procedure for N_Function_Specifications.
23111         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23112         and N_Function_Specification.
23113
23114         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23115         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23116         Add support for LIMITED NEW for Ada 2005 AI-419
23117         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23118         syntax for anonymous access results.
23119         Replace Subtype_Mark field by Result_Definition in
23120         N_Function_Specification and N_Access_Definition specs.
23121         Add Null_Exclusion_Present to spec of N_Function_Specification.
23122         (Result_Definition): New function for N_Function_Specification and
23123         N_Access_Function_Definition.
23124         (Set_Result_Definition): New procedure for N_Function_Specification and
23125         N_Access_Function_Definition.
23126
23127         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23128         Result_Definition for cases of N_Access_Function_Definition and
23129         N_Function_Specification.
23130         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23131
23132 2005-09-01  Vincent Celier  <celier@adacore.com>
23133
23134         * lib-writ.adb: Update Copyright notice
23135         (Write_With_Lines): On platforms where file names are case-insensitive,
23136         record the file names in lower case.
23137         (Write_ALI): For D lines, on platforms where file names are
23138         case-insensitive, record the file names in lower case.
23139
23140 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23141             Emmanuel Briot  <briot@adacore.com>
23142
23143         * lib-xref.adb (Output_Overridden_Op): Display information on
23144         overridden operation.
23145
23146         * lib-xref.ads: Add documentation on overridden operations.
23147
23148         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23149         information.
23150
23151         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23152         overriding entity information.
23153
23154 2005-09-01  Vincent Celier  <celier@adacore.com>
23155
23156         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23157         including those that are inherited.
23158
23159 2005-09-01  Robert Dewar  <dewar@adacore.com>
23160
23161         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23162
23163         * par-prag.adb: Implement new pragma Debug_Policy
23164
23165         * sem_prag.adb Implement new pragma Debug_Policy
23166         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23167         Component_Size attribute specification. Give warning for ignored pragma
23168         Pack.
23169
23170         * snames.h, snames.ads, snames.adb: Introduce entries in
23171         Preset_Names for Name_Disp_Asynchronous_Select,
23172         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23173         Name_Disp_Timed_Select.
23174         New pragma Debug_Policy
23175
23176         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23177         explicitly.
23178         Switch -gnata also sets Debug_Pragmas_Enabled
23179
23180         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23181         handle an explicit -gnata when compiling predefined files.
23182
23183 2005-09-01  Vincent Celier  <celier@adacore.com>
23184
23185         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23186         directories of projects that have no Ada sources.
23187
23188 2005-09-01  Robert Dewar  <dewar@adacore.com>
23189
23190         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23191         (makes a difference for wide characters)
23192
23193         * widechar.adb, widechar.ads:
23194         Add Wide_Char_Byte_Count feature to count chars vs bytes
23195
23196 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23197             Ed Schonberg  <schonberg@adacore.com>
23198             Robert Dewar  <dewar@adacore.com>
23199
23200         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23201         'Address attribute reference with an overloaded prefix, use the
23202         location of the prefix (not the location of the attribute reference) as
23203         the error location.
23204         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23205         a function renaming thereof, is a valid prefix for 'Size (where it is
23206         intepreted as a function call).
23207         (Statically_Denotes_Entity): New predicate to determine whether the
23208         prefix of an array attribute can be considered static.
23209
23210         PR ada/9087
23211         (Eval_Attr): Fix failure to evaluate Component_Size for
23212         unconstrained arrays (resulted in wrong value in packed case, since
23213         back end cannot handle this case)
23214
23215 2005-09-01  Robert Dewar  <dewar@adacore.com>
23216
23217         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23218         error msgs for most common cases.
23219         Use new errout insertion char < (conditional warning)
23220
23221 2005-09-01  Javier Miranda  <miranda@adacore.com>
23222             Ed Schonberg  <schonberg@adacore.com>
23223
23224         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23225         become local to the whole package.
23226         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23227         the package was already analyzed the new algorithm "replaces" the
23228         real entities by the shadow ones. This is required to ensure that
23229         the order of these entities in the homonym chains does not change;
23230         otherwise we can have undefined references at linking time because
23231         in case of conflicts the external name of the entities will have
23232         a suffix that depends on the order of the entities in the chain.
23233         (Remove_Limited_With_Clause): Complementary code that completes the
23234         new algorithm and replaces the shadow entities by the real ones.
23235         (Install_Limited_Withed_Unit): When unchaining entities before the
23236         installation of the shadow entities, only regular entities of the
23237         public part must be taken into account. This is required to
23238         keep this routine in synch with the work done by Remove_Limited_
23239         With_Clause
23240         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23241         even if unit is analyzed, because the analysis of the unit is
23242         idempotent in any case, and the limited view of the unit may have to
23243         be installed for proper visibility.
23244         (Expand_Limited_With_Clause): Even if the unit in the implicit
23245         with_clause has been analyzed already, a limited view of the package
23246         must be built for the current context, if it does not exist yet.
23247
23248 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23249             Javier Miranda  <miranda@adacore.com>
23250             Gary Dismukes  <dismukes@adacore.com>
23251
23252         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23253         defining entity for the instance body, make a new defining identifier
23254         rather than copying the entity of the spec, to prevent accidental
23255         sharing of the entity list.
23256         (Check_Private_View): When exchanging views of private types, build the
23257         list of exchanged views as a stack, to ensure that on exit the exchanges
23258         are undone in the proper order.
23259         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23260         Restore the compilation environment in case of instantiation_error.
23261         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23262         for an anonymous access result.
23263         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23264         (Formal_Entity): Handle properly the case of a formal package that
23265         denotes a generic package renaming.
23266
23267 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23268
23269         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23270         clause if the array aggregate is surrounded by parentheses.
23271
23272 2005-09-01  Cyrille Comar  <comar@adacore.com>
23273             Gary Dismukes  <dismukes@adacore.com>
23274             Ed Schonberg  <schonberg@adacore.com>
23275             Javier Miranda  <miranda@adacore.com>
23276
23277         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23278         underlying type
23279         to check if a type is Constrained in cases related to code generation
23280         (rather than semantic checking) since otherwise we do not generate
23281         similar code for mutable private types depending if their
23282         discriminants are visible or not.
23283         (Check_Abstract_Overriding): Do not complain about failure to override
23284         the primitive operations used in dispatching selects since they will
23285         always be overriden at the freeze point of the type.
23286         (Access_Definition): Separate out handling for resetting the scope
23287         of an anonymous access function result type. Retrieve the scope
23288         of the associated function rather than using Current_Scope, which
23289         does not have a consistent value (depends on whether we're in the
23290         middle of analyzing formal parameters). Add ??? comment about
23291         finding a cleaner way to handle the special cases of scope setting.
23292         (Process_Incomplete_Dependents): A protected operation is never a
23293         dispatching operation (only its wrapper may be).
23294         (Build_Derived_Record_Type): In case of tagged private types that
23295         implement interfaces add derivation of predefined primitive
23296         operations.
23297         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
23298         by two parameters that are used in case of derivation from abstract
23299         interface types: No_Predefined_Prims is used to avoid the derivation
23300         of predefined primitives from the interface, and Predefined
23301         Prims_Only is used to complete the derivation predefined primitives
23302         in case of private tagged types implementing interfaces.
23303         Fix typo in comments
23304         (Find_Interface_In_Descendant): Protect the frontend against
23305         wrong code with large circularity chains.
23306         (Is_Private_Overriding): Add support for entities overriding interface
23307         subprograms. The test failed because Entities associated with overriden
23308         interface subprograms are always marked as hidden (and used to build
23309         the secondary dispatch table); in this case the overriden entity is
23310         available through the field abstract_interface_alias (cf. override_
23311         dispatching_operation)
23312         (Access_Definition): Set the scope of the type to Current_Scope for the
23313         case of a function with an anonymous access result type.
23314         (Access_Subprogram_Declaration): Handle creation of the type entity for
23315         an access-to-function type with an anonymous access result.
23316         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
23317         in handling for N_Access_Function_Definition.
23318         (Analyze_Subtype_Declaration): Modify the text of error message.
23319         (Derived_Type_Declaration): Modify the text of error message.
23320         (Process_Subtype): Modify the text of error message plus cleanup
23321         of one redundant error message.
23322         (Analyze_Component_Declaration): Code cleanup.
23323         (Analyze_Object_Declaration): Code cleanup.
23324         (Analyze_Subtype_Declaration): Propagate the null-exclusion
23325         attribute in case of access types. Code cleanup.
23326         (Array_Type_Declaration): Code cleanup.
23327         (Process_Discriminants): Create the new null-excluding itype
23328         if required. Code cleanup.
23329         (Process_Subtype): Create the new null-excluding itype if
23330         required. Code cleanup.
23331         (Build_Derived_Record_Type): Code cleanup to avoid calling
23332         twice the subprogram derive_subprograms in case of private
23333         types that implement interfaces. In this particular case the
23334         subprogram Complete_Subprograms_Derivation already does the
23335         job associated with the second call.
23336
23337         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
23338         conversion to the full view when generating an operation for a
23339         discriminant whose type may currently be private.
23340
23341 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23342             Javier Miranda  <miranda@adacore.com>
23343
23344         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
23345         V (Obj.F), the rewriting does not involve the indexed component, but
23346         only the selected component itself.
23347         Do not apply the transformation if the analyzed node is an actual of a
23348         call to another subprogram.
23349         (Complete_Object_Operation): Retain the entity of the
23350         dispatching operation in the selector of the rewritten node. The
23351         entity will be used in the expansion of dispatching selects.
23352         (Analyze_One_Call): Improve location of the error message associated
23353         with interface.
23354         (Analyze_Selected_Component): No need to resolve prefix when it is a
23355         function call, resolution is done when parent node is resolved, as
23356         usual.
23357         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
23358         when attempting to resolve a call transformed from its object notation.
23359         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
23360         of the argument list for each interpretation of the operation.
23361         (Try_Object_Operation): The designated type of an access parameter may
23362         be an incomplete type obtained through a limited_with clause, in which
23363         case the primitive operations of the type are retrieved from its full
23364         view.
23365         (Analyze_Call): If this is an indirect call, and the return type of the
23366         access_to_subprogram is incomplete, use its full view if available.
23367
23368 2005-09-01  Javier Miranda  <miranda@adacore.com>
23369             Gary Dismukes  <dismukes@adacore.com>
23370
23371         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
23372         access types the null-exclusion and access-to-constant attributes must
23373         also match.
23374         (Analyze_Return_Statement): When the result type is an anonymous access
23375         type, apply a conversion of the return expression to the access type
23376         to ensure that appropriate accessibility checks are performed.
23377         (Analyze_Return_Type): For the case of an anonymous access result type,
23378         generate the Itype and set Is_Local_Anonymous_Access on the type.
23379         Add ??? placeholder for check to disallow returning a limited object
23380         in Ada 2005 unless it's an aggregate or a result of a function call.
23381         Change calls from Subtype_Mark to Result_Definition.
23382         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
23383         Result_Definition in call to Make_Function_Specification.
23384         (Build_Body_To_Inline): Change Set_Subtype_Mark to
23385         Set_Result_Definition.
23386         (Make_Inequality_Operator): Change formal Subtype_Mark to
23387         Result_Definition in call to Make_Function_Specification.
23388         (Process_Formals): Create the new null-excluding itype if required.
23389         (New_Overloaded_Entity): For an entity overriding an interface primitive
23390         check if the entity also covers other abstract subprograms in the same
23391         scope. This is required to handle the general case, that is, overriding
23392         other interface primitives and overriding abstract subprograms inherited
23393         from some abstract ancestor type.
23394         (New_Overloaded_Entity): For an overriding entity that comes from
23395         source, note the operation that it overrides.
23396         (Check_Conformance, Type_Conformant): Addition of one new formal
23397         to skip controlling formals in the analysis. This is used to
23398         handle overloading of abstract interfaces.
23399         (Base_Types_Match): Add missing case for types imported from
23400         limited-with clauses
23401         (New_Overloaded_Entity): Add barrier to protect the use of
23402         the "alias" attribute.
23403
23404 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23405
23406         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
23407         verify that the procedure and the entry are mode conformant.
23408         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
23409         as a different operator, which is often a cut-and-paste error.
23410
23411 2005-09-01  Javier Miranda  <miranda@adacore.com>
23412             Ed Schonberg  <schonberg@adacore.com>
23413
23414         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
23415         used in controlling parameters exclude null because it is necessary to
23416         read the tag to dispatch, and null has no tag.
23417         (Override_Dispatching_Operation): If the previous operation is inherited
23418         from an interface, it becomes hidden  and does not participate in later
23419         name resolution.
23420
23421 2005-09-01  Javier Miranda  <miranda@adacore.com>
23422             Ed Schonberg  <schonberg@adacore.com>
23423             Gary Dismukes  <dismukes@adacore.com>
23424
23425         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
23426         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
23427         the expander will generate the corresponding run-time check to evaluate
23428         the expression.
23429         (Resolve_Call): Check for legal type of procedure name or prefix that
23430         appears as a trigger in a triggering alternative.
23431         (Valid_Conversion): If expression is ambiguous and the context involves
23432         an extension of System, remove System.Address interpretations.
23433         (Resolve_Qualified_Expression): Reject the case of a specific-type
23434         qualification applied to a class-wide argument. Enhance comment
23435         to explain checking of Original_Node.
23436         (Resolve_Type_Conversion): The location of the error message was not
23437         general enough to handle the general case and hence it has been removed.
23438         In addition, this patch improves the text of the message.
23439         (Resolve_Type_Conversion): Add missing support for access to interface
23440         types.
23441         (Resolve_Type_Conversion): If the target is a class-wide interface type,
23442         do not expand if the expression is the actual in a call, because proper
23443         expansion will take place when the call itself is expanded.
23444         (Resolve_Allocator): If the context is an unchecked conversion, the
23445         allocator inherits its storage pool, if any, from the target type of
23446         the conversion.
23447
23448 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23449             Javier Miranda  <miranda@adacore.com>
23450
23451         * sem_type.adb (Add_One_Interp): If a candidate operation is an
23452         inherited interface operation that has an implementation, use the
23453         implementation to avoid spurious ambiguities.
23454         (Interface_Present_In_Ancestor): In case of concurrent types we can't
23455         use the Corresponding_Record_Typ attribute to look for the interface
23456         because it is set by the expander (and hence it is not always
23457         available). For this reason we traverse the list of interfaces
23458         (available in the parent of the concurrent type).
23459         (Interface_Present_In_Ancestor): Handle entities from the limited view
23460
23461 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23462
23463         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
23464         from the list of required components.
23465         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
23466         primitive procedure of a limited interface with a controlling first
23467         parameter.
23468         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
23469         of an entry.
23470         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
23471         capture if it is generated in the second operand of a short-circuit
23472         operation.
23473         Do not capture values for variables with address clauses.
23474         (Is_Object_Reference): Treat a function call as an object reference only
23475         if its type is not Standard_Void_Type.
23476
23477 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23478
23479         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
23480         to a variable that is statically known to be constant.
23481
23482 2005-09-01  Geert Bosch  <bosch@adacore.com>
23483             Robert Dewar  <dewar@adacore.com>
23484
23485         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
23486         (VAXGF_Safe_First): Idem.
23487
23488 2005-09-01  Robert Dewar  <dewar@adacore.com>
23489             Arnaud Charlet  <charlet@adacore.com>
23490
23491         * g-dirope.ads: Minor reformatting
23492         Document that bounds of result of Base_Name match the input index
23493         positions.
23494         Add documentation on environment variable syntax for Expand_Path
23495
23496         * gnat_ugn.texi: Update documentation to include mention of -m switches
23497         Document new treatment of wide characters in max line length
23498         style check.
23499         Remove -gnatL/-gnatZ switches, no longer used.
23500         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
23501         of -gnata switch.
23502
23503         * gnat_rm.texi: Add doc for two argument form of pragma
23504         Float_Representation.
23505         Add documentation for pragma No_Strict_Aliasing
23506         Add note that explicit component clause overrides pragma Pack.
23507         Add documentation of pragma Debug_Policy
23508
23509 2005-09-01  Matthew Heaney  <heaney@adacore.com>
23510
23511         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
23512         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
23513         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
23514         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
23515         draft (Draft 13, August 2005) of Ada Amendment 1.
23516
23517 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23518
23519         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
23520         Note that the platform-specific version of g-soccon.ads for VMS is now
23521         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
23522         really is a package spec).
23523         Replace s-taspri-linux.ads by s-taspri-posix.ads
23524         Remove references to s-mastop-x86.adb
23525
23526         * system-vxworks-xscale.ads: Removed, no longer used.
23527         * s-vxwork-xscale.ads: Removed, no longer used.
23528
23529 2005-09-01  Robert Dewar  <dewar@adacore.com>
23530
23531         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
23532         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
23533         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
23534         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
23535         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
23536         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
23537         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23538         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
23539         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
23540         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
23541         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
23542         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
23543         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
23544         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
23545         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
23546         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
23547         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
23548         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
23549         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
23550         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
23551         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
23552
23553 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23554
23555         PR ada/23187
23556         * adaint.c
23557         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
23558
23559 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23560             Doug Rupp  <rupp@adacore.com>
23561
23562         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
23563         when needed.
23564         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
23565         this code in the GNAT run-time.
23566
23567         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
23568
23569         PR ada/21053
23570         * init.c (__gnat_error_handler [many]): Mark "msg" as const
23571         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
23572
23573         (__gnat_inside_elab_final_code): Moved here from
23574         Standard_Library and only defined for the compiler.
23575         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
23576         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
23577         using RTPs because directly vectored Interrupt routines are not
23578         supported on this configuration.
23579         (getpid): Do not redefine this function on VxWorks when using RTPs
23580         because this primitive is well supported by the RTP libraries.
23581         (copy_msg): Correct the code that checks for buffer overflow.
23582         Discovered during code reading.
23583
23584 2005-08-29  Olivier Hainque  <hainque@adacore.com>
23585
23586         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
23587         a library level mutable variable with an initializer, tell
23588         build_allocator to ignore the initializer's size. It may not be large
23589         enough for all the values that might be assigned to the variable later
23590         on.
23591
23592 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23593             Eric Botcazou  <ebotcazou@adacore.com>
23594
23595         * trans.c: Protect < in error msg with quote
23596         Replace GCC_ZCX by Back_End_Exceptions.
23597         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
23598         has been sufficiently aligned in the record.
23599
23600 2005-08-15  James E. Wilson  <wilson@specifix.com>
23601
23602         * system-linux-alpha.ads: Change ia64 to alpha.
23603
23604 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
23605
23606         * decl.c, utils.c: Fix comment typos.
23607
23608 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
23609
23610         * decl.c, init.c, initialize.c: Fix comment typos.
23611
23612 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
23613
23614         Make CONSTRUCTOR use VEC to store initializers.
23615         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
23616         CONSTRUCTOR_ELTS.
23617         * trans.c (extract_values): Likewise.
23618         * utils.c (convert, remove_conversions): Likewise.
23619         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
23620         gnat_build_constructor): Likewise.
23621
23622 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
23623
23624         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
23625         DECL_SECTION_NAME.
23626         (compare_field_bitpos): Likewise.
23627
23628 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
23629
23630         * utils.c (create_var_decl): Only set DECL_COMMON on
23631         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
23632         VAR_OR_FUNCTION_DECL_P.
23633
23634 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
23635
23636         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
23637         removed.
23638
23639 2005-07-07  Pascal Obry  <obry@adacore.com>
23640
23641         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
23642         returned type on Windows.
23643
23644         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
23645         routine.
23646
23647         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
23648         exception in this case.
23649         Simplify the code as "Image (Image'Range)" = "Image".
23650
23651 2005-07-07  Vincent Celier  <celier@adacore.com>
23652
23653         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
23654         the destructor/constructor attributes for <lib>final/<lib>init.
23655
23656         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
23657
23658 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
23659
23660         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
23661         type if the parameter is not passed by copy but reference by default.
23662
23663 2005-07-07  Javier Miranda  <miranda@adacore.com>
23664
23665         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
23666         Reimplementation of the support for abstract interface types in order
23667         to leave the code more clear and easy to maintain.
23668
23669         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
23670         abstract interface types in order to leave the code clearer and easier
23671         to maintain.
23672
23673         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
23674         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
23675         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
23676         appropriate entry of the secondary dispatch table.
23677         (Make_DT): Add code to inherit the secondary dispatch tables of
23678         the ancestors.
23679
23680         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
23681         implementing both functionalities by means of a common routine, each
23682         routine has its own code.
23683
23684 2005-07-07  Javier Miranda  <miranda@adacore.com>
23685
23686         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
23687
23688         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
23689         types:
23690         --
23691           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23692         --
23693
23694         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
23695         use of tag incomplete types.
23696
23697         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
23698         give support to tagged incomplete types.
23699
23700         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
23701         expression is a discriminant reference and its type is private, as can
23702         happen within a stream operation for a mutable record, use the full
23703         view of the type to resolve the case alternatives.
23704         (Analyze_Assignment): Check wrong dereference of incomplete types.
23705
23706         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
23707         types.
23708
23709         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
23710         incomplete types.
23711
23712         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
23713         N_Incomplete_Type_Declaration nodes.
23714
23715         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
23716         Tag_Present to give support to tagged incomplete types:
23717         --
23718           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23719         --
23720
23721 2005-07-07  Olivier Hainque  <hainque@adacore.com>
23722
23723         PR ada/22301
23724         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
23725         definitions for the Unwind wrappers in the compiler case.
23726
23727 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23728             Javier Miranda  <miranda@adacore.com>
23729
23730         * par-load.adb (Load): If a child unit is loaded through a limited_with
23731         clause, each parent must be loaded as a limited unit as well.
23732
23733         * sem_ch10.adb (Previous_Withed_Unit): Better name for
23734         Check_Withed_Unit. Return true if there is a previous with_clause for
23735         this unit, whether limited or not.
23736         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
23737         the current unit.
23738         (Is_Visible_Through_Renamings): New local subprogram of install_limited
23739         _withed_unit that checks if some package installed through normal with
23740         clauses has a renaming declaration of package whose limited-view is
23741         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
23742         of the current Draft document for Ada 2005.
23743         (Analyze_Context): Complete the list of compilation units that
23744         are allowed to contain limited-with clauses. It also contains
23745         checks that were previously done by Install_Limited_Context_Clauses.
23746         This makes the code more clear and easy to maintain.
23747         (Expand_Limited_With_Clause) It is now a local subprogram of
23748         Install_Limited_Context_Clauses, and contains the code that adds
23749         the implicit limited-with clauses for parents of child units.
23750         This functionality was prevously done by Analyze_Context.
23751
23752         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
23753         incomplete type.
23754
23755         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
23756         been erroneously named in a limited-with clause of its own context.
23757         In this case the error has been previously notified by Analyze_Context.
23758
23759 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23760
23761         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
23762         generic package that contains local declarations with the same name.
23763         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
23764
23765 2005-07-07  Bernard Banner  <banner@adacore.com>
23766
23767         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
23768         ia64 platform only on platforms that you the GCC unwind library
23769         rather than the system unwind library.
23770
23771 2005-07-07  Thomas Quinot  <quinot@adacore.com>
23772
23773         * expect.c: Minor reformatting
23774
23775 2005-07-07  Sergey Rybin  <rybin@adacore.com>
23776
23777         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
23778         --no-separate-is
23779
23780         * gnat_ugn.texi: Add description for new gnatpp option
23781         (--no-separate-is)
23782
23783 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23784
23785         * g-expect-vms.adb, g-expect.ads, g-expect.adb
23786         (Get_Command_Output): New subprogram to launch a process and get its
23787         standard output as a string.
23788
23789 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23790             Olivier Hainque  <hainque@adacore.com>
23791
23792         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
23793         fetch a code-range descriptor associated with the machine state. On
23794         failure set the machine state's PC to 0; on success, pass the
23795         descriptor to exc_virtual_unwind.
23796
23797         * init.c (Tru64 section): New function __gnat_set_code_loc.
23798
23799 2005-07-04  Vincent Celier  <celier@adacore.com>
23800
23801         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23802         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23803         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
23804         Remove all auto-initialization code, as this is now done through the
23805         constructor mechanism.
23806
23807         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
23808         __gnat_sals_init_using_constructors): New functions.
23809
23810         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
23811         Linker_Constructor and Linker_Destructor when switch -a is used.
23812
23813         * bindusg.adb: Add line for new switch -a
23814
23815         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
23816         (Gnatbind): When switch -a is used, check if it is allowed
23817
23818         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
23819
23820 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
23821
23822         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
23823         This prevents us from hitting a limitation during the debug info
23824         generation when using stabs.
23825         (Prims_Ptr): Likewise.
23826
23827 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23828             Ed Schonberg  <schonberg@adacore.com>
23829             Javier Miranda  <miranda@adacore.com>
23830
23831         * checks.adb (Null_Exclusion_Static_Checks): In the case of
23832         N_Object_Declaration, only perform the checks if the Object_Definition
23833         is not an Access_Definition.
23834
23835         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
23836         where the parent of an the access definition is an N_Object_Declaration
23837         when determining the Associated_Node_For_Itype and scope of an
23838         anonymous access-to-subprogram type.
23839
23840         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
23841         Corresponding_Spec on the body created for a null procedure. Add ???
23842         comment. Remove New_Copy_Tree call on body argument to
23843         Set_Body_To_Inline.
23844
23845         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23846         discriminants, use the type of the actual as well, because the
23847         discriminants may be read by the called subprogram.
23848
23849         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23850         access type we do not need to handle non-limited views.
23851         (Build_Derived_Record_Type): Additional check to check that in case of
23852         private types, interfaces are only allowed in private extensions.
23853
23854 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23855
23856         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23857         <Pragma_Linker_Destructor>: Likewise.
23858
23859         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23860         Pragma_Linker_Destructor.
23861
23862         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23863         ATTR_LINK_DESTRUCTOR.
23864         (static_ctors, static_dtors): New variables.
23865
23866         * misc.c (gnat_expand_body): Output current function as constructor
23867         and destructor if requested.
23868
23869         * par-prag.adb: Add processing for pragma Linker_Constructor and
23870         Linker_Destructor.
23871
23872         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23873         extracted from Check_Interrupt_Or_Attach_Handler.
23874         (Check_Interrupt_Or_Attach_Handler): Invoke it.
23875         Implement pragma Linker_Constructor and Linker_Destructor with the
23876         help of Find_Unique_Parameterless_Procedure.
23877         Replace Name_Alias with Name_Target for pragma Linker_Alias.
23878
23879         * snames.h, snames.ads, snames.adb:
23880         Add Name_Linker_Constructor and Name_Linker_Destructor.
23881         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23882         * snames.adb: Remove Name_Alias.
23883
23884         * trans.c: Include cgraph.h.
23885         (build_global_cdtor): New function.
23886         (Compilation_Unit_to_gnu): Build global constructor and destructor if
23887         needed.
23888         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23889         of objects too.
23890         (addressable_p) <COMPONENT_REF>: Unconditionally test
23891         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23892
23893         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23894         variable if it is external.
23895
23896         (static_ctors, static_dtors): New global variables.
23897         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23898         <ATTR_LINK_DESTRUCTOR>: Likewise.
23899         (end_subprog_body): Chain function as constructor and destructor
23900         if requested.
23901
23902         * exp_util.adb (Force_Evaluation): Unconditionally invoke
23903         Remove_Side_Effects with Variable_Ref set to true.
23904         (Remove_Side_Effects): Handle scalar types first. Use a renaming
23905         for non-scalar types even if Variable_Ref is true and for class-wide
23906         expressions.
23907
23908 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23909
23910         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23911         to prevent spurious warnings.
23912
23913 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23914
23915         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23916         Itypes. Itypes are really unexpected there.
23917         (Build_TypeCode_Function): Generalise special processing for Itypes to
23918         handle the case of numeric implicit base types as well as enumerated
23919         ones.
23920
23921 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23922
23923         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23924         controlled, indicate the expected type of the dereference that is
23925         created for the call to Deep_Finalize, to prevent spurious errors when
23926         the designated type is private and completed with a derivation from
23927         another private type.
23928
23929 2005-07-04  Vincent Celier  <celier@adacore.com>
23930
23931         * make.adb (Change_To_Object_Directory): When unable to change the
23932         current dir to the object directory, output the full path of the
23933         directory.
23934
23935 2005-07-04  Matthew Gingell  <gingell@adacore.com>
23936
23937         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23938
23939         * indepsw-linux.adb: Replace by...
23940
23941         * indepsw-gnu.adb: ...this new file
23942
23943 2005-07-04  Vincent Celier  <celier@adacore.com>
23944
23945         * mlib-prj.adb (Auto_Initialize): New constant String
23946         (SALs_Use_Constructors): New Boolean function
23947         (Build_Library): Call gnatbind with Auto_Initialize switch when
23948         SALs_Use_Constructors returns True.
23949
23950         * mlib-tgt.ads: Minor reformatting
23951
23952         * mlib-utl.ads: Minor reformatting
23953
23954         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23955
23956 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23957
23958         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23959         single protected declarations can have an interface list.
23960         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23961         with seriously malformed entry declarations, and lead to compilation
23962         abandoned messages.
23963
23964 2005-07-04  Javier Miranda  <miranda@adacore.com>
23965
23966         * par-load.adb: Load the context items in two rounds.
23967
23968 2005-07-04  Robert Dewar  <dewar@adacore.com>
23969
23970         * scng.adb: Do not consider Mod used as an attribute to be a keyword
23971
23972 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23973             Javier Miranda  <miranda@adacore.com>
23974
23975         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23976         type extension needs a limited view.
23977         Remove previous restriction on private types available through the
23978         limited-view (only tagged private types were previously allowed).
23979         (Install_Withed_Unit): In the code that implements the
23980         legality rule given in AI-377, exclude a child unit with the name
23981         Standard, because it is a homonym of the Standard environment package.
23982
23983 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23984
23985         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23986         overloaded function call, carry interpretations from the original tree
23987         to the copy.
23988
23989 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23990
23991         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23992         types check whether some designated type is a limited view, and use
23993         the non-limited view if available.
23994
23995 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23996
23997         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23998         constraint of full view of a private view T1 if present, when T2 is a
23999         discriminated full view.
24000
24001 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24002
24003         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24004         actual that is a view conversion of a bit packed array reference.
24005
24006 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24007
24008         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24009         present before checking whether an interface type covers a synchronized
24010         type.
24011
24012 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
24013
24014         * sem_util.adb (Is_Object_Reference): An indexed or selected component
24015         whose prefix is an implicit dereference is an object reference. Removes
24016         spurious errors when compiling with -gnatc.
24017
24018 2005-07-04  Robert Dewar  <dewar@adacore.com>
24019
24020         PR ada/22039
24021         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24022
24023 2005-07-04  Matthew Gingell  <gingell@adacore.com>
24024
24025         * tracebak.c: Enable tracebacks on ia64 platforms
24026
24027 2005-07-04  Vincent Celier  <celier@adacore.com>
24028
24029         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24030         the GNAT BIND command, as gnatbind accepts multiples ALI files with
24031         the -L or -n switches.
24032
24033 2005-07-04  Vincent Celier  <celier@adacore.com>
24034
24035         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24036         correctly computed and the main project data is not modified while
24037         doing so.
24038         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24039         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24040         c++linker as this does not work on some platforms.
24041
24042 2005-07-04  Matthew Heaney  <heaney@adacore.com>
24043
24044         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24045         was changed.
24046         * a-coinve.adb: Perform constraint checks explicitly.
24047
24048 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24049             Thomas Quinot  <quinot@adacore.com>
24050
24051         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24052         new target gen-soccon.
24053
24054 2005-07-04  Robert Dewar  <dewar@adacore.com>
24055
24056         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24057
24058 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24059
24060         * g-socket.ads (Check_Selector): Minor rewording of comment.
24061
24062 2005-07-04  Vincent Celier  <celier@adacore.com>
24063
24064         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24065
24066 2005-07-04  Thomas Quinot  <quinot@adacore.com>
24067
24068         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24069
24070 2005-07-04  Sergey Rybin  <rybin@adacore.com>
24071
24072         * gnat_ugn.texi: Add description of --eol gnatpp option
24073
24074 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
24075             Thomas Quinot  <quinot@adacore.com>
24076
24077         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24078         if the user wants all calls of a subprogram to be flagged,
24079         independently of whether they are made from within the same unit or
24080         another unit.
24081         Mention restriction for pragma Linker_Alias on some platforms.
24082         Document pragma Linker_Constructor and Linker_Destructor.
24083         Rewrite documentation of Weak_External, Linker_Section and
24084         Linker_Alias pragmas.
24085
24086 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
24087
24088         * s-stausa.ads, s-stausa.adb: New files.
24089
24090 2005-06-30  Kelley Cook
24091
24092         * all files:  Update FSF address in copyright headers.
24093         * gen-soccon.co (main): Output new FSF address in generated files.
24094
24095 2005-06-28  Paul Brook  <paul@codesourcery.com>
24096
24097         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24098
24099 2005-06-14  Olivier Hainque  <hainque@adacore.com>
24100             Eric Botcazou  <ebotcazou@adacore.com>
24101
24102         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24103         exc_unwind, now that we are generating proper .debug_frame output for
24104         that target.
24105
24106         * tracebak.c: Remove the mips-irix section, as we are now using the
24107         s-mastop based unwinder again.
24108         Under SPARC/Solaris, take into account the stack bias to compute the
24109         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
24110         ABI.
24111
24112 2005-06-14  Doug Rupp  <rupp@adacore.com>
24113
24114         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24115
24116         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24117
24118 2005-06-14  Pascal Obry  <obry@adacore.com>
24119
24120         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24121         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24122         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24123         package name).
24124
24125         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24126         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24127         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24128         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24129         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24130         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24131         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24132         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24133         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24134         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24135         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24136         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24137         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24138         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24139         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24140         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24141         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24142         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24143         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24144         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24145         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24146         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24147         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24148         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24149         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24150         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24151         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24152         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24153         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24154         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24155         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24156         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24157         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24158         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24159         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24160         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24161         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24162         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24163         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24164         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24165         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24166         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24167         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24168         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24169         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24170         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24171         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24172         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24173         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24174         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24175         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24176         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24177         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24178         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24179         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24180         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24181         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24182         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24183         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24184         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24185         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24186         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24187         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24188         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24189         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24190         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24191         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24192         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24193         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24194         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24195         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24196         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24197         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24198         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24199         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24200         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24201         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24202         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24203         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24204         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24205         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24206         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24207         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24208         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24209         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24210         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24211         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24212         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24213         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24214         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24215         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24216         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24217         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24218         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24219         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24220         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24221         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24222         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24223         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24224         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24225         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24226         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24227         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24228         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24229         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24230         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24231         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24232         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24233         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24234         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24235         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24236         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24237         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24238         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24239         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24240         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24241         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24242         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24243         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24244         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24245         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24246         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24247         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24248         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24249         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24250         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24251         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24252         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24253         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24254         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24255         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24256         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24257         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24258
24259 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24260             Arnaud Charlet  <charlet@adacore.com>
24261
24262         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24263         longer protected objects. They have been replaced by lower-level
24264         suspension objects made up by a mutex and a condition variable (or
24265         their equivalent given a particular OS) plus some internal data to
24266         reflect the state of the suspension object.
24267         (Initialize, Finalize): Add this initialization procedure for
24268         Suspension_Object, which is a controlled type.
24269         (Finalize): Add the finalization procedure for Suspension_Object,
24270         which is a controlled type.
24271
24272         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24273         Ada.Synchronous_Task_Control because there is no longer a need for a
24274         VxWorks specific version of this package. Target dependencies
24275         has been moved to System.Task_Primitives.Operations.
24276
24277         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24278         longer needed.
24279         (InitializeCriticalSection, EnterCriticalSection,
24280         LeaveCriticalSection, DeleteCriticalSection): Replace the type
24281         pCriticalSection by an anonymous access type so that we avoid problems
24282         of accessibility to local objects.
24283
24284         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24285         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24286         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24287         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
24288         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
24289         set the environment task mask here.
24290         (Current_State): Add this function that returns the state of the
24291         suspension object.
24292         (Set_False): Add this procedure that sets the state of the suspension
24293         object to False.
24294         (Set_True): Add this procedure that sets the state of the suspension
24295         object to True, releasing the task that was suspended, if any.
24296         (Suspend_Until_True): Add this procedure that blocks the calling task
24297         until the state of the object is True. Program_Error is raised if
24298         another task is already waiting on that suspension object.
24299         (Initialize): Add this procedure for initializing the suspension
24300         object. It initializes the mutex and the condition variable which are
24301         used for synchronization and queuing, and it sets the internal state
24302         to False.
24303         (Finalize): Add this procedure for finalizing the suspension object,
24304         destroying the mutex and the condition variable.
24305
24306         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24307         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
24308         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
24309         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
24310         which provides a low-level abstraction (using operating system
24311         primitives) for Ada.Synchronous_Task_Control.
24312         This object is made up by a mutex (for ensuring mutual exclusion), a
24313         condition variable (for queuing threads until the condition is
24314         signaled), a Boolean (State) indicating whether the object is open,
24315         and a Boolean (Waiting) reflecting whether there is a task already
24316         suspended on this object.
24317
24318         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
24319         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
24320         s-intman-vms.ads, s-intman-mingw.adb,
24321         (Initialize_Interrupts): Removed, no longer used.
24322
24323         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
24324         (Setup_Interrupt_Mask): New procedure.
24325
24326         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
24327
24328         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
24329
24330         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
24331         this is no longer done in the body of s-taprop
24332         (Server_Task): Explicitely test for Pending_Action in case
24333         System.Parameters.No_Abort is True.
24334
24335         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
24336         is no longer done in the body of s-taprop
24337
24338 2005-06-14  Robert Dewar  <dewar@adacore.com>
24339
24340         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24341         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24342         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24343         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24344         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24345         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
24346         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
24347         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24348         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
24349         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
24350         system-linux-hppa.ads, system-vms_64.ads,
24351         system-vxworks-alpha.ads: Minor comment update for
24352         AI-362 (unit is Pure).
24353
24354         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
24355         Add pragma Pure_05 for AI-362
24356         Make remaining conversion functions obsolescent in Ada 95
24357
24358         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24359         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
24360         Add entries for a-wichun and a-zchuni
24361         Add a-widcha a-zchara for AI-395
24362         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
24363
24364         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24365         Add entries for a-wichun.o and a-zchuni.o
24366         Entries for a-widcha.o and a-zchara.o
24367         Add entry for a-chacon.o
24368
24369         * a-ztenau.adb: Add with of Ada.Characters.Conversions
24370
24371         * a-chacon.ads, a-chacon.adb: New files.
24372
24373         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
24374         categorization violations.
24375
24376         * a-strmap.ads: Add pragma Pure_05 for AI-362
24377         * a-strmap.ads: Add note on implicit categorization for AI-362
24378
24379         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
24380
24381         * par-prag.adb: Dummy entry for pragma Persistent_BSS
24382         Set Ada_Version_Explicit, for implementation of AI-362
24383         Add processing for pragma Pure_05 and Preelaborate_05
24384         Add entry for Assertion_Policy pragma
24385
24386         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
24387         when needed for proper processing of categorization stuff
24388
24389         * sem_cat.adb:
24390         For several cases, make errors in preealborate units warnings,
24391         instead of errors, if GNAT_Mode is set. For AI-362.
24392
24393         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
24394         preelaborate unit is now warning if in GNAT mode
24395
24396         * s-stoele.ads: Document AI-362 for pragma preelaborate
24397
24398 2005-06-14  Doug Rupp  <rupp@adacore.com>
24399
24400         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
24401         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
24402         Default_Exception_Msg_Max_Length: new parameter.
24403
24404         * a-except.ads: (Exception_Msg_Max_Length): Set to
24405         System.Parameters.Default_Exception_Msg_Max_Length
24406         Add pragma Preelaborate_05 for AI-362
24407         Add warnings off to allow categorization violations for AI-362
24408
24409 2005-06-14  Vincent Celier  <celier@adacore.com>
24410
24411         * gnatsym.adb: Adapt to modification of package Symbols: procedure
24412         Process is now in package Processing.
24413
24414         * symbols.ads, symbols.adb:
24415         (Processing): New package, containing procedure Process
24416
24417         * symbols-vms-alpha.adb:
24418         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
24419
24420         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
24421         symbols-processing-vms-ia64.adb: New files.
24422
24423 2005-06-14  Pascal Obry  <obry@adacore.com>
24424
24425         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
24426         implementation. This new version generates the proper DllMain routine
24427         to initialize the SAL. The DllMain is generated in Ada and compiled
24428         before being added as option to the library build command.
24429
24430 2005-06-14  Doug Rupp  <rupp@adacore.com>
24431             Pascal Obry  <obry@adacore.com>
24432
24433         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
24434         call to decc$translate_vms.
24435         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
24436         need to remove those quotes before catenating the filename.
24437         (__gnat_locate_exec_on_path): improvements to the Win32 section:
24438         * avoid allocating the memory twice for better efficiency;
24439         * allocate 32K buffer for environment expansion as suggested by MSDN;
24440         * prepend ".;" to the path so that current directory is searched too.
24441
24442 2005-06-14  Robert Dewar  <dewar@adacore.com>
24443
24444         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
24445         instead of raising CE (AI-241)
24446         Add warnings off to allow categorization violations for AI-362
24447
24448 2005-06-14  Robert Dewar  <dewar@adacore.com>
24449
24450         * ali-util.adb, gnatbind.adb: Remove references to
24451         Force_RM_Elaboration_Order.
24452
24453         * switch-b.adb: Remove recognition of -f switch
24454
24455 2005-06-14  Pascal Obry  <obry@adacore.com>
24456
24457         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
24458         implementation which is slightly more efficient.
24459
24460 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
24461             Javier Miranda  <miranda@adacore.com>
24462             Ed Schonberg  <schonberg@adacore.com>
24463             Hristian Kirtchev  <kirtchev@adacore.com>
24464
24465         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
24466         allocator's designated type is a class-wide type, and compiling for
24467         Ada 2005, emit a run-time check that the accessibility level of the
24468         type given in the allocator's expression is not deeper than the level
24469         of the allocator's access type.
24470
24471         (Tagged_Membership): Modified to gives support to abstract interface
24472         types.
24473
24474         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
24475         Access_Level.
24476         (Descendant_Tag): New predefined function
24477         (Is_Descendant_At_Same_Level): New predefined function
24478         (Get_Access_Level): New private function
24479         (Set_Access_Level): New private procedure
24480         (IW_Membership): New function. Given the tag of an object and the tag
24481         associated with an interface, evaluate if the object implements the
24482         interface.
24483         (Register_Interface_Tag): New procedure used to initialize the table of
24484         interfaces used by the IW_Membership function.
24485         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
24486         of the dispatch table.
24487         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
24488         table of interfaces of the parent.
24489         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
24490         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
24491         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
24492         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
24493         Ada 2005 semantics for the new predefined function.
24494
24495         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
24496         call to Descendant_Tag rather than Internal_Tag.
24497         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
24498         the accessibility level of the attribute's Item parameter is not deeper
24499         than the level of the attribute's prefix type. Tag_Error is raised if
24500         the check fails. The check is only emitted for Ada_05.
24501         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
24502         requested stream attribute, use it.
24503         (Expand_N_Attribute_Reference): If the designated type is an interface
24504         then rewrite the referenced object as a conversion to force the
24505         displacement of the pointer to the secondary dispatch table.
24506         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
24507         is a dereference of an object with a constrained partial view.
24508
24509         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
24510         type is a class-wide type, emit a run-time check that the accessibility
24511         level of the returned object is not deeper than the level of the
24512         function's master (only when compiling for Ada 2005).
24513
24514         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
24515         Action_Nb_Arg): Add entries for new Get_Access_Level and
24516         Set_Access_Level routines in these tables.
24517         (Make_DT): Generate a call to set the accessibility level of the
24518         tagged type in its TSD.
24519         (Make_DT): Code cleanup. The functionality of generating all the
24520         secondary dispatch tables has been moved to freeze_record_type.
24521         (Make_Abstract_Interface_DT): Minor code cleanup.
24522         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
24523         this subprogram implements a new algorithm that provides the
24524         same functionality and it is more clear in case of primitives
24525         associated with abstract interfaces.
24526         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
24527         clean up, the functionality of this subprogram is now provided
24528         by Set_All_DT_Position.
24529         (Write_DT): New subprogram: a debugging procedure designed to be called
24530         within gdb to display the dispatch tables associated with a tagged
24531         type.
24532         (Collect_All_Interfaces): New subprogram that collects the whole list
24533         of interfaces that are directly or indirectly implemented by a tagged
24534         type.
24535         (Default_Prim_Op_Position): New subprogram that returns the fixed
24536         position in the dispatch table of the default primitive operations.
24537         (Expand_Interface_Actuals): New subprogram to generate code that
24538         displaces all the actuals corresponding to class-wide interfaces to
24539         reference the interface tag of the actual object.
24540         (Expand_Interface_Conversion): New subprogram. Reference the base of
24541         the object to give access to the interface tag associated with the
24542         secondary dispatch table.
24543         (Expand_Interface_Thunk): New subprogram that generates the code of the
24544         thunk. This is required for compatibility with the C+ ABI.
24545         (Make_Abstract_Interface_DT): New subprogram that generate the
24546         declarations for the secondary dispatch tables associated with an
24547         abstract interface.
24548         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
24549         attribute for each primitive operation covering interface subprograms
24550         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
24551         These subprograms were upgraded to give support to abstract interfaces
24552
24553         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
24554         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
24555         RE_Set_Access_Level.
24556         (RE_Unit_Table): Add entries for new Ada.Tags operations.
24557         Add support to call the followig new run-time subprograms:
24558         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
24559
24560         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
24561         match its full declaration when both have an access definition with
24562         statically matching designated subtypes.
24563         (Analyze_Component_Declaration): Delete commented out code that was
24564         incorrectly setting the scope of an anonymous access component's type.
24565         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
24566         an access discriminant when the containing type is nonlimited.
24567         (Make_Incomplete_Type_Declaration): Create an incomplete type
24568         declaration for a record type that includes self-referential access
24569         components.
24570         (Check_Anonymous_Access_Types): Before full analysis of a record type
24571         declaration, create anonymous access types for each self-referential
24572         access component.
24573         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
24574         an access component in this context is a Local_Anonymous_Access, for
24575         proper accessibility checks.
24576         (Access_Definition): Set properly the scope of the anonymous access type
24577         created for a stand-alone access object.
24578         (Find_Type_Of_Object): An object declaration may be given with an access
24579         definition.
24580         (Complete_Subprograms_Derivation): New subprogram used to complete
24581         type derivation of private tagged types implementing interfaces.
24582         In this case some interface primitives may have been overriden
24583         with the partial-view and, instead of re-calculating them, they
24584         are included in the list of primitive operations of the full-view.
24585         (Build_Derived_Record_Type): Modified to give support to private
24586         types implemening interfaces.
24587         (Access_Definition): Reject ALL on anonymous access types.
24588         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
24589         type derivation to occur at a deeper accessibility level than the
24590         parent type.
24591         For the case of derivation within a generic body however, disallow the
24592         derivation if the derived type has an ancestor that is a formal type
24593         declared in the formal part of an enclosing generic.
24594         (Analyze_Object_Declaration): For protected objects, remove the check
24595         that they cannot contain interrupt handlers if not declared at library
24596         level.
24597         (Add_Interface_Tag_Components): New subprogram to add the tag components
24598         corresponding to all the abstract interface types implemented by a
24599         record type or a derived record type.
24600         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24601         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24602         Process_Full_View, Record_Type_Declaration): Modified to give
24603         support to abstract interface types
24604         (Collect_Interfaces): New subprogram that collects the list of
24605         interfaces that are not already implemented by the ancestors
24606         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
24607         when partial view has no discriminants and full view has defaults.
24608         (Constrain_Access): Reject a constraint on a general access type
24609         if the discriminants of the designated type have defaults.
24610         (Access_Subprogram_Declaration): Associate the Itype node with the inner
24611         full-type declaration or subprogram spec. This is required to handle
24612         nested anonymous declarations.
24613         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24614         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24615         Process_Full_View, Record_Type_Declaration): Modified to give
24616         support to abstract interface types
24617         (Derive_Subprograms): Addition of a new formal to indicate if
24618         we are in the case of an abstact-interface derivation
24619         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
24620         to the specification because it is requied to analyze all the
24621         identifiers found in a list of interfaces
24622
24623         * debug.adb: Complete documentation of flag "-gnatdZ"
24624
24625         * exp_ch3.adb: Implement config version of persistent_bss pragma
24626         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
24627         testing for TSS presence to properly enforce visibility rules.
24628         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
24629         Make_Abstract_Interfaces_DT to generate the secondary tables
24630         associated with abstract interfaces.
24631         (Build_Init_Procedure): Modified to initialize all the tags
24632         corresponding.
24633         (Component_Needs_Simple_Initialization): Similar to other tags,
24634         interface tags do not need initialization.
24635         (Freeze_Record_Type): Modified to give support to abstract interface
24636         types.
24637         (Expand_N_Object_Declaration): Do not generate an initialization for
24638         a scalar temporary marked as internal.
24639
24640         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
24641         in-out parameter that is a component in an initialization procedure,
24642         whose constraint might depend on discriminants, and that may be
24643         misaligned because of packing or representation clauses.
24644         (Is_Legal_Copy): New predicate to determine whether a possibly
24645         misaligned in-out actual can actually be passed by copy/return. This
24646         is an error in case the type is by_reference, and a warning if this is
24647         the consequence of a DEC import pragma on the subprogram.
24648         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
24649         interface types
24650         (Expand_Inlined_Call): Mark temporary generated for the return value as
24651         internal, so that no useless scalar normalization is generated for it.
24652         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
24653         null procedure can always be inlined.
24654         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
24655         procedure, generate an explicit empty body for it.
24656
24657         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
24658         Given a type implementing an interface, returns the corresponding
24659         access_disp_table value.
24660         (Find_Interface_Tag): New subprogram. Given a type implementing an
24661         interface, returns the record component containing the tag of the
24662         interface.
24663         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
24664         previous ones that return the corresponding tag and access_disp_table
24665         entities.
24666         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
24667         is a predefined primitive operation.
24668         (Expand_Subtype_From_Expr): If the expression is a selected component
24669         within an initialization procedure, compute its actual subtype, because
24670         the component may depend on the discriminants of the enclosing record.
24671
24672         * i-cpp.ads, i-cpp.adb:
24673         This package has been left available for compatibility with previous
24674         versions of the frontend. As part of the new layout this is now a
24675         dummy package that uses declarations available at a-tags.ads
24676
24677         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
24678         "constant access" and "aliased [constant] access" when not compiling
24679         with -gnat05.
24680         Suppress Ada 2005 keyword warning if -gnatwY used
24681         (P_Identifier_Declarations): Add support for object declarations with
24682         access definitions.
24683         (Private_Extension_Declaration): Complete the documentation
24684         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
24685         attribute in case of private extension declaration
24686         (P_Type_Declaration): Mark as "abstract" the type declarations
24687         corresponding with protected, synchronized and task interfaces
24688         (P_Declarative_Items): "not" and "overriding" are overriding indicators
24689         for a subprogram or instance declaration.
24690
24691         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
24692         instantiation that is a dispatching operation has controlling access
24693         parameters that are null excluding.
24694         Save and restore Ada_Version_Explicit, for implementation of AI-362
24695         (Validate_Derived_Type_Instance): Add check for abstract interface
24696         types.
24697         (Analyze_Formal_Package): Establish Instantiation source for the copy of
24698         the generic that is created to represent the formal package.
24699         (Analyze_Package_Instantiation): Instantiate body immediately if the
24700         package is a predefined unit that contains inlined subprograms, and
24701         we are compiling for a Configurable_Run_Time.
24702         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
24703         If the program has a null default, generate an empty body for it.
24704
24705         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
24706         error message condition, null procedures are correctly detected now.
24707         (New_Overloaded_Entity): Bypass trivial overriding indicator check
24708         for subprograms in the context of protected types. Instead, the
24709         indicator is examined in Sem_Ch9 while analysing the subprogram
24710         declaration.
24711         (Check_Overriding_Indicator): Check consistency of overriding indicator
24712         on subprogram stubs as well.
24713         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
24714         the library level.
24715         (Analize_Subprogram_Specification): When analyzing a subprogram in which
24716         the type of the first formal is a concurrent type, replace this type
24717         by the corresponding record type.
24718         (Analyze_Subprogram_Body): Undo the previous work.
24719         (Analyze_Procedure_Call): If the call has the form Object.Op, the
24720         analysis of the prefix ends up analyzing the call itself, after which
24721         we are done.
24722         (Has_Interface_Formals): New subprogram subsidiary to analyze
24723         subprogram_specification that returns true if some non
24724         class-wide interface subprogram is found
24725         (New_Overloaded_Entity): Modified to give support to abstract
24726         interface types
24727         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
24728         access to subprograms must be recursive.
24729         (Is_Unchecked_Conversion): Improve the test that recognizes
24730         instantiations of Unchecked_Conversion, and allows them in bodies that
24731         are to be inlined by the front-end. When the body comes from an
24732         instantiation, a reference to Unchecked_Conversion will be an
24733         Expanded_Name, even though the body has not been analyzed yet.
24734         Replace Is_Overriding and Not_Overriding in subprogram_indication with
24735         Must_Override and Must_Not_Override, to better express intent of AI.
24736         (Analyze_Subprogram_Body): If an overriding indicator is given, check
24737         that it is consistent with the overrinding status of the subprogram
24738         at this point.
24739         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
24740         always inlined.
24741         If the subprogram is a null procedure, indicate that it does not need
24742         a completion.
24743
24744         * sem_disp.adb (Check_Controlling_Type): Give support to entities
24745         available through limited-with clauses.
24746         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
24747         allowed as the last primitive of a tagged type if it has no previous
24748         spec.
24749         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
24750         to give support to abstract interface types
24751
24752         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
24753         in the case where the target type is an anonymous access type of an
24754         object or component (that is, when Is_Local_Anonymous_Access is true).
24755         Prevent the special checks for conversions of access discriminants in
24756         the case where the discriminant belongs to a nonlimited type, since
24757         such discriminants have their accessibility level defined in the same
24758         way as a normal component of an anonymous access type.
24759         (Resolve_Allocator): When an allocator's designated type is a class-wide
24760         type, check that the accessibility level of type given in the
24761         allocator's expression or subtype indication is not statically deeper
24762         than the level of the allocator's access type.
24763         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
24764         name in a discriminant constraint of a record component.
24765         (Resolve_Explicit_Dereference): Do not check whether the type is
24766         incomplete when the dereference is a use of an access discriminant in
24767         an initialization procedure.
24768         (Resolve_Type_Conversion): Handle conversions to abstract interface
24769         types.
24770         (Valid_Tagged_Conversion): The conversion of a tagged type to an
24771         abstract interface type is always valid.
24772         (Valid_Conversion): Modified to give support to abstract interface types
24773         (Resolve_Actuals): Enable full error reporting on view conversions
24774         between unrelated by_reference array types.
24775         The rule for view conversions of arrays with aliased components is
24776         weakened in Ada 2005.
24777         Call to obsolescent subprogram is now considered to be a violation of
24778         pragma Restrictions (No_Obsolescent_Features).
24779         (Check_Direct_Boolean_Operator): If the boolean operation has been
24780         constant-folded, there is nothing to check.
24781         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
24782         check on possible violation of restriction No_Direct_Boolean_Operators
24783         until after expansion of operands, to prevent spurious errors when
24784         operation is constant-folded.
24785
24786         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
24787         Has_Compatible_Type): Modified to give support to abstract interface
24788         types.
24789         (Interface_Present_In_Ancestor): New function to theck if some ancestor
24790         of a given type implements a given interface
24791
24792         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
24793         prefix is a parameterless function that returns an access_to_procedure.
24794         (Transform_Object_Operation): Handle properly function calls of the
24795         form Obj.Op (X), which prior to analysis appear as indexed components.
24796         (Analyze_One_Call): Complete the error notification to help new Ada
24797         2005 users.
24798         (Analyze_Allocator): For an allocator without an initial value, where
24799         the designated type has a constrained partial view, a discriminant
24800         constraint is illegal.
24801
24802 2005-06-14  Robert Dewar  <dewar@adacore.com>
24803
24804         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
24805         do with treatment of Set_Col when positioned at end of line character.
24806
24807 2005-06-14  Robert Dewar  <dewar@adacore.com>
24808
24809         * atree.adb: (Elist*): Protect against uninitialized field
24810
24811 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24812
24813         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
24814         for an attribute reference that returns an access type.
24815         (Apply_Discriminant_Check): No need for check if (designated) type has
24816         constrained partial view.
24817
24818         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
24819         both bound checks, rather than a conjunction.
24820         (Insert_Valid_Check): If the expression is an actual that is an indexed
24821         component of a bit-packed array, force expansion of the packed element
24822         reference, because it is specifically inhibited elsewhere.
24823
24824 2005-06-14  Vincent Celier  <celier@adacore.com>
24825
24826         * clean.adb (Clean_Project): Correctly delete executable specified as
24827         absolute path names.
24828
24829         * make.adb (Gnatmake): Allow relative executable path names with
24830         directory information even when project files are used.
24831         (Change_To_Object_Directory): Fail gracefully when unable to change
24832         current working directory to object directory of a project.
24833         (Gnatmake): Remove exception handler that could no longer be exercized
24834         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
24835         may be deallocated by Normalize_Arguments.
24836         (Collect_Arguments): Eliminate empty arguments
24837
24838         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
24839         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
24840         (Check_Project): Return False when Project is No_Project. Return True
24841         when All_Projects is True.
24842         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
24843         All_Projects to True.
24844         Minor reformatting
24845
24846 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24847             Javier Miranda  <miranda@adacore.com>
24848             Thomas Quinot  <quinot@adacore.com>
24849             Robert Dewar  <dewar@adacore.com>
24850             Hristian Kirtchev  <kirtchev@adacore.com>
24851             Gary Dismukes  <dismukes@adacore.com>
24852
24853         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24854         anonymous access types, to indicate that the accessibility level of
24855         the type is determined by that of the enclosing declaration.
24856         (Has_Persistent_BSS): New flag
24857         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24858         of this attribute with functions.
24859         (Is_Primitive_Wrapper): Remove the barrier.
24860         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24861         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24862         New subprograms.
24863         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24864         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24865         New subprograms.
24866         (Is_Pure_Unit_Access_Type): New flag
24867         (Abstract_Interfaces): Complete the assertion to cover all usages.
24868         (Set_Is_Interface): Complete the assertion to cover all usages.
24869         (Is_Primitive_Wrapper): New attribute.
24870         (Is_Obsolescent): Now applies to all entities (though it is only set
24871         for subprograms currently)
24872         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24873         which solves various problems concerning access subtypes.
24874         (Has_Persistent_BSS): New flag
24875         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24876         Remove these subprograms because this attribute is currently
24877         not used.
24878         New entity flags:
24879         Has_Specified_Stream_Input (Flag190)
24880         Has_Specified_Stream_Output (Flag191)
24881         Has_Specified_Stream_Read (Flag192)
24882         Has_Specified_Stream_Write (Flag193)
24883         Present in all type and subtype entities. Set for a given view if the
24884         corresponding stream-oriented attribute has been defined by an
24885         attribute definition clause. When such a clause occurs, a TSS is set
24886         on the underlying full view; the flags are used to track visibility of
24887         the attribute definition clause for partial or incomplete views.
24888         (Is_Pure_Unit_Access_Type): New flag
24889         Clarify use of Is_Internal.
24890         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24891         internally generated to wrap the invocation of tasks and protected
24892         types that implement interfaces.
24893         (Implementation_Base_Type): Documentation correction
24894         (Is_Obsolescent): Now applies to all entities (though it is only set
24895         for subprograms currently)
24896         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24897         which solves various problems concerning access subtypes.
24898
24899         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24900         for examined parameters. Identify unequal parameter list lengths as
24901         non-conformant parameters.
24902         (Overriding_Possible): Do not check for "All" qualifier in declaration
24903         of controlling access parameter, following prescription of AI-404.
24904         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24905         that build the procedure body that wraps an entry invocation
24906         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24907         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24908         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24909         give support to abstract interface types
24910
24911         * freeze.adb (Freeze_Entity): Issue error message if
24912         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24913         type has no storage pool (Ada 2005) AI-366.
24914         Also modified to give support to abstract interface types
24915         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24916         Inline_Always pragma.
24917
24918         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24919         now begin an entry declaration.
24920         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24921         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24922         a subprogram declaration preceded by an overriding indicator.
24923         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24924         declarations or subprogram declarations preceded by reserved words
24925         "not" or "overriding".
24926         (P_Entry_Declaration): Update comment. Parse and check overriding
24927         indicator, set semantic flags of entry declarations.
24928         (P_Task): New error message in case of private applied
24929         to a task type declaration.
24930         (P_Protected): New error message in case of private applied
24931         to a task type declaration.
24932
24933         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24934         in which the full view of a type implementing an interface is a
24935         concurrent type.
24936         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24937         Declare_Inherited_Private_Subprograms): If an explicit operation
24938         overrides an operation that is inherited in the private part, mark the
24939         explicit one as overriding, to enable overriding indicator checks.
24940         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24941         full view to partial view, to simplify handling in back-end.
24942
24943         * sprint.adb: Print interface lists where needed: derived types,
24944         protected types, task types.
24945         output "is null" for null procedures. Part of implementation of
24946
24947         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24948         relaxation of rules for access types in pure, shared passive partitions.
24949
24950         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24951         first read discriminants into temporary objects, performing checks on
24952         the read values, then possibly performing discriminant checks on the
24953         actual (if it is constrained), and only finally reading the components
24954         into a constrained temporary object.
24955         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24956         case of reading discriminants of a mutable record type to recognize
24957         the new form of the code generated by
24958         Build_Mutable_Record_Read_Procedure.
24959
24960         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24961         of a simple call to Make_TSS_Name.
24962         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24963         buffer, in order for Is_TSS to work correctly on local TSS names.
24964
24965         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24966         Is_Local_Anonymous_Access to check legaliy of attributes in the
24967         context of  access components and stand-alone access objects.
24968         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24969         treated as available for a limited private type if there is an
24970         attribute_definition_clause that applies to its full view, but not in
24971         other cases where the attribute is available for the full view
24972         (specifically, the sole fact that the full view is non-limited does not
24973         make the attribute available for the partial view).
24974         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24975         non-overloaded intrinsic subprogram.
24976         (Check_Stream_Attribute): Reject an attribute reference for an
24977         unavailable stream attribute even if the prefix is not a limited type
24978         (case of a 'Input attribute reference for an abstract, non-classwide
24979         type)
24980         (Stream_Attribute_Available): New function to determine whether a stream
24981         attribute is available at a place.
24982         (Check_Attribute): Use Stream_Attribute_Available instead of just
24983         testing for TSS presence on the implementation base type.
24984         (Analyze_Attribute): Modified to give support to task interfaces.
24985         (Analyze_Access_Attribute): Add error check for use of an Access (or
24986         Unrestricted_Access) attribute with a subprogram marked as
24987         Inline_Always.
24988         (Analyze_Attribute, case Attribute_Address): Add error check for use of
24989         an Address attribute with a subprogram marked as Inline_Always.
24990         Update Eval_Attribute to handle new value of Width from AI-395
24991
24992         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24993         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24994         Factor common code across the stream-oriented attribute circcuits into
24995         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24996         processing is functionally identical to the previous duplicated one,
24997         except that an expression that denotes an abstract subprogram will now
24998         be rejected, as mandated by AI-195 item 5.
24999
25000         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25001         Is_Local_Anonymous_Access to apply accessibility checks to access
25002         components and stand-alone access objects.
25003         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25004         elsewhere.
25005         (Is_Potentially_Persistent_Type): New function
25006         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25007         a heap-object whose type has a constrained partial view, the object is
25008         unconstrained and the component may depend on a discriminant, making its
25009         renaming illegal.
25010
25011         * sinfo.ads, sinfo.adb
25012         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25013         (Must_Override): Flag applicable to N_Entry_Declaration.
25014         Indicate that interface_list can appear in single task and single
25015         protected declarations.
25016         Replace Is_Overriding and Not_Overriding with Must_Override and
25017         Must_Not_Override, to better express intent of AI.
25018         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25019         of an overriding indicator in a subprogram or instance.
25020         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25021         Add the overriding indicator [[not] overriding] construct to the
25022         following grammar productions:
25023          ENTRY_DECLARATION
25024          GENERIC_INSTANTIATION
25025          SUBPROGRAM_SPECIFICATION
25026
25027         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25028         can start with an overriding indicator.
25029
25030         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25031         flags accordingly on subrogram specifications or instances.
25032
25033         * sem_ch8.adb:
25034         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25035         overriding_indicator, if present, is consistent with status of spec.
25036         Improve error message for null-excluding checks on controlling access
25037         parameters.
25038         (Check_In_Previous_With_Clause): Protect the frontend against
25039         previously reported critical errors in the context clauses.
25040         Save and restore Ada_Version_Explicit, for implementation of AI-362
25041         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25042         operation verify that controlling formals of the renamed entity that
25043         are access parameters are explicitly non-null.
25044         (Find_Expanded_Name): Improve error message when prefix is an illegal
25045         reference to a private child unit.
25046
25047         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25048         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25049         Rewrite to correspond to new wide character names in AI-395
25050
25051         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25052         default procedures.
25053
25054 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25055             Robert Dewar  <dewar@adacore.com>
25056
25057         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25058         code, not on the bodies of predefined operations, to cut down on
25059         spurious noise.
25060
25061 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25062
25063         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25064         be expanded in place. The size computation does not require a
25065         subtraction, which would raise an exception on a compiler built with
25066         assertions when the upper bound is Integer'first.
25067         (Flatten): For an array of composite components, take into account the
25068         size of the components to determine whether it is safe to expand the
25069         array into a purely positional representation.
25070
25071 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25072
25073         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25074         denoting a formal parameter into account.
25075
25076 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25077
25078         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25079         the entry_call alternative of a conditional entry call, wrap the
25080         conditional entry call itself.
25081
25082 2005-06-14  Nicolas Setton  <setton@adacore.com>
25083             Ed Schonberg  <schonberg@adacore.com>
25084
25085         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25086         the "simple_choice" member in a variant record, in accordance with the
25087         description in the package spec: the information output for a constant
25088         should be "S number", not "SS number".
25089         (Get_Encoded_Name): Return at once if not generating code. Avoids name
25090         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25091
25092 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25093
25094         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25095         RACW without any primitives, do not generate the if statement for
25096         dispatching by name in the PolyORB/DSA case, as it would be malformed
25097         (it would have an Elsif_Parts list that is not No_List, but with a
25098         length of 0).
25099
25100 2005-06-14  Robert Dewar  <dewar@adacore.com>
25101
25102         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25103
25104 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
25105
25106         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25107         can determine whether pragma Suppress_Exception_Locations is in effect.
25108
25109         * utils2.c (build_call_raise): Do not pass the file name to the
25110         exception handler if pragma Suppress_Exception_Locations is in effect.
25111         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25112
25113 2005-06-14  Emmanuel Briot  <briot@adacore.com>
25114
25115         * g-debpoo.adb (Deallocate, Dereference): Improve output.
25116
25117 2005-06-14  Nicolas Roche  <roche@adacore.com>
25118
25119         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25120         to ""
25121         (Next_Level): Fix minor bug in handling of ../dir case
25122         (Read): Add dir separator to Directory name so that "" is understood as
25123          "/"
25124
25125 2005-06-14  Pascal Obry  <obry@adacore.com>
25126
25127         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25128         releasing the items.
25129
25130 2005-06-14  Vincent Celier  <celier@adacore.com>
25131             Cyrille Comar  <comar@adacore.com>
25132
25133         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25134         with output file descriptor and with output file name.
25135         (Dup, Dup2): Now global procedures as they are used by two subprograms
25136         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25137
25138 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25139
25140         PR ada/6717
25141         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25142         broadcast address.
25143         (Create_Selector): Bind listening socket used to create the signalling
25144         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25145         Set listen backlog to 1 to ensure that we detect socket theft by a
25146         failure of our own connect(2) call.
25147         (Check_Selector): Improve documentation of the selector mechanism.
25148         (Broadcast_Inet_Addr): New constant.
25149
25150 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25151
25152         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25153         type which turns out to be an incomplete and incorrect fix.
25154         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25155         of the type is declared in a record (for determination of insertion
25156         type).
25157         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25158         a private type and ensure that the primary entity is used for the type
25159         of the newly created function's V formal by taking the Etype of the
25160         view.
25161
25162 2005-06-14  Javier Miranda  <miranda@adacore.com>
25163             Jose Ruiz  <ruiz@adacore.com>
25164             Robert Dewar  <dewar@adacore.com>
25165             Ed Schonberg  <schonberg@adacore.com>
25166
25167         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25168         that indicates if we are parsing a compilation unit found in a
25169         limited-with clause.
25170         It is use to avoid the circularity check.
25171
25172         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25173         we are parsing a compilation unit found in a limited-with clause. This
25174         is use to avoid the circularity check.
25175
25176         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25177         unit as a consequence of parsing a limited-with clause. This is used
25178         to avoid the circularity check.
25179
25180         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25181         (Analyze_Context): Limited-with clauses are now allowed
25182         in more compilation units.
25183         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25184         againts previously reported critical errors in context clauses
25185         (Install_Limited_Withed_Unit): Code cleanup plus static detection
25186         of two further errors: renamed subprograms and renamed packages
25187         are not allowed in limited with clauses.
25188         (Install_Siblings): Do not install private_with_clauses on the package
25189         declaration for a non-private child unit.
25190         (Re_Install_Parents): When a parent of the subunit is reinstalled,
25191         reset visibility of child units properly.
25192         (Install_Withed_Unit): When a child unit appears in a with_clause of its
25193         parent, it is immediately visible.
25194
25195 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25196             Emmanuel Briot  <briot@adacore.com>
25197
25198         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25199         declared within an inlined body as referenced, to prevent spurious
25200         warnings.
25201         (Output_One_Ref): If an entity renames an array component, indicate in
25202         the ALI file that this aliases (renames) the array. Capture as well
25203         function renamings that rename predefined operations.
25204         Add information about generic parent for package and subprogram
25205         instances.
25206         (Get_Type_Reference): For a subtype that is the renaming of an actual in
25207         an instantiation, use the first_subtype to ensure that we don't generate
25208         cross-reference information for internal types.
25209         For objects and parameters of a generic private type, retain the '*'
25210         indicator to distinguish such an entity from its type.
25211
25212         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25213         to store information about instantiated entities.
25214
25215         * ali.adb (Scan_ALI): Add support for parsing the reference to the
25216         generic parent
25217
25218         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25219         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25220         information.
25221
25222 2005-06-10  Doug Rupp  <rupp@adacore.com>
25223             Arnaud Charlet  <charlet@adacore.com>
25224             Olivier Hainque  <hainque@adacore.com>
25225             Jose Ruiz  <ruiz@adacore.com>
25226
25227         * Make-lang.in: Add initialize.o when needed.
25228         Remove obsolete references to RT_FLAGS.
25229         Add missing dependencies for sdefault.o
25230
25231         * initialize.c: New file.
25232
25233         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25234         [VMS] cond_signal_table: Fix problem in declaration.
25235         [VMS] __gnat_error_handler: rewrite.
25236         Move all __gnat_initialize() routines to initialize.c
25237         Specialize the former "hpux" section to "hppa hpux", as this is what the
25238         section really is here for and we now have other hpux ports that need
25239         different contents.
25240         (__gnat_adjust_context_for_raise) i386-linux: First version of this
25241         function for this target. Adjust PC by one in the machine context. This
25242         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25243         it is more reliable to do that in the signal handler itself.
25244         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25245         flags, so that the handler is passed the context structure to adjust
25246         prior to the raise.
25247         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25248         SA_SIGINFO sigaction should look like. Call
25249         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25250         Machine_State_Operations stuff.
25251         Add conditional code so that the x86_64 is also supported.
25252
25253 2005-06-14  Pascal Obry  <obry@adacore.com>
25254
25255         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25256         the library name.
25257
25258 2005-06-14  Robert Dewar  <dewar@adacore.com>
25259
25260         * opt.ads, opt.adb: New flags for persistent_bss mode
25261         Add Ada_Version_Explicit, for implementation of AI-362
25262         Add Assertions_Enabled_Config and associated handling
25263         Needed since setting can be changed with Assertion_Policy pragma
25264         Add new flag Warn_On_Ada_2005_Compatibility
25265
25266         * switch-c.adb: Recognize -gnatwy/Y
25267         Set Ada_Version_Explicit, for implementation of AI-362
25268         The -gnatg switch now includes -gnatyu
25269
25270         * usage.adb: Add -gnatwy/Y
25271         Remove wrong asterisk on -gnatwX line
25272         Add line for -gnatyu switch
25273
25274 2005-06-14  Vincent Celier  <celier@adacore.com>
25275
25276         * osint.adb (Add_Default_Search_Dirs): Put source and object
25277         directories of project files before directories coming from
25278         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25279
25280 2005-06-14  Robert Dewar  <dewar@adacore.com>
25281
25282         PR ada/15613
25283         * par-ch2.adb (Scan_Pragma_Argument): New procedure
25284         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25285
25286 2005-06-14  Vincent Celier  <celier@adacore.com>
25287
25288         * prep.adb (Preprocess): Ignore error when scanning the first token of
25289         a line.
25290
25291 2005-06-14  Vincent Celier  <celier@adacore.com>
25292
25293         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
25294         (Check_Stand_Alone_Library): If the specified reference symbol file does
25295         not exist, only issue a warning when the symbol policy is not
25296         Controlled. And, when symbol policy is Compliant, set the symbol
25297         policy to Autonomous.
25298
25299 2005-06-14  Vincent Celier  <celier@adacore.com>
25300
25301         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
25302         when the project file in a with clause is not the last one, that is the
25303         project file name is followed by a comma.
25304         * prj-pp.adb: (First_With_In_List): New Boolean global variable
25305         (Print): Issue list of project files separated by commas in with clauses
25306         according to the values returned by Is_Not_Last_In_List.
25307         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
25308         (Set_Is_Not_Last_In_List): New procedure
25309
25310 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25311
25312         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
25313
25314 2005-06-14  Robert Dewar  <dewar@adacore.com>
25315
25316         * scng.adb: Add call to new Check_EOF routine
25317         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
25318         Add some comments regarding wide character handling
25319
25320         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
25321
25322         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
25323
25324         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
25325         characters are now considered graphic characters and hence yield false
25326         in this call.
25327
25328         * nmake.adt: Modify header so that xnmake does not generate output
25329         files with multiple blank lines.
25330
25331         * treeprs.adt: Remove a blank line so that output from xtreeprs does
25332         not have an extra blank line
25333
25334 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25335
25336         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
25337         expression when the component type is an anonymous access type to
25338         ensure that appropriate accessibility checks are done.
25339
25340         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
25341         expression of an assignment when the target object is of an anonymous
25342         access type. This ensures that required accessibility checks are done.
25343         (One_Bound): Move the check for type Universal_Integer to
25344         Process_Bounds.
25345         (Process_Bounds): Check whether the type of the preanalyzed range is
25346         Universal_Integer, and in that case set Typ to Integer_Type prior
25347         to setting the type of the original range and the calls to One_Bound.
25348
25349 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25350
25351         * sem_case.adb (Expand_Others_Choice): Improve warning.
25352
25353 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25354
25355         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
25356         constraint of full view if present, when other type is discriminated.
25357         (Eval_Relational_Op): Recognize tests of pointer values against Null,
25358         when the pointer is known to be non-null, and emit appropriate warning.
25359
25360 2005-06-14  Robert Dewar  <dewar@adacore.com>
25361             Ed Schonberg  <schonberg@adacore.com>
25362
25363         PR ada/10671
25364         * sem_prag.adb: Implement pragma Persistent_BSS
25365         Remove obsolete pragma Persistent_Data, Persistent_Object
25366         Set Ada_Version_Explicit, for implementation of AI-362
25367         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
25368         Add processing for pragma Pure_05 and Preelaborate_05
25369         Add processing for Assertion_Policy pragma
25370         Add pragma identifiers for Assert
25371         (Analyze_Pragma, case Assert): Check number of arguments
25372         (Process_Inline): Additional guard against an illegal program, where the
25373         argument of the pragma is undefined, and warnings on redundant
25374         constructs are enabled.
25375         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
25376         Ada_05 to this pragma, specifying that the pragma is only active in
25377         Ada_05 mode.
25378         (Check_Arg_Order): New procedure
25379         Add appropriate calls to this procedure throughout
25380         Also throughout, check entity name before doing any other checks
25381
25382         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
25383         Remove obsolete pragma Persistent_Data, Persistent_Object
25384         Add entries for pragma Pure_05 and Preelaborate_05
25385         Add entries for Assertion_Policy pragma and associated names
25386         Add some names for pragma argument processing
25387
25388         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
25389
25390 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25391
25392         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
25393         appears within a negation (either from source or as a rewriting of
25394         inequality) adjust text of warning accordingly.
25395
25396 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25397
25398         * s-strxdr.adb: Follow AI95-00132
25399
25400 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25401
25402         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
25403
25404 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25405             Jose Ruiz  <ruiz@adacore.com>
25406
25407         * s-tposen.adb, s-tpobop.adb
25408         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
25409         the exception id.
25410         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
25411         there is no violation of the Max_Entry_Queue_Length restriction (if it
25412         has been set); Program_Error is raised otherwise.
25413         (Requeue_Call): Before requeuing the task on the target entry queue we
25414         check that there is no violation of the Max_Entry_Queue_Length
25415         restriction (if it has been set); Program_Error is raised otherwise.
25416
25417 2005-06-14  Robert Dewar  <dewar@adacore.com>
25418
25419         * styleg.adb: Fix several remaining problems in -gnatyu switch
25420         Blank line count not reset at start
25421         Scanning outside source buffer in some cases
25422         Confusing message for blanks at end of file
25423         Non-empty blank lines not recognized
25424
25425         * nmake.adt: Modify header so that xnmake does not generate output
25426         files with multiple blank lines.
25427
25428         * treeprs.adt: Remove a blank line so that output from xtreeprs does
25429         not have an extra blank line
25430
25431 2005-06-14  Sergey Rybin  <rybin@adacore.com>
25432
25433         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
25434
25435 2005-06-14  Doug Rupp  <rupp@adacore.com>
25436             Vincent Celier  <celier@adacore.com>
25437
25438         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
25439         Update copyright.
25440
25441         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25442         Remove "Library" command.
25443         Change keyword for style check -gnatyd from NOCRLF to
25444         DOS_LINE_ENDINGS.
25445         Remove useless second style check keyword NONE
25446         Remove help documentation for inexistent style check keyword
25447         RM_COLUMN_LAYOUT.
25448         Add help documentation for style check keywords DOS_LINE_ENDINGS,
25449         UNNECESSARY_BLANK_LINES and XTRA_PARENS
25450         Add UNNECESSARY_BLANK_LINES for -gnatyu
25451         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
25452
25453         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25454
25455 2005-06-14  Vincent Celier  <celier@adacore.com>
25456
25457         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
25458         gprmake was invoked with -d.
25459         (Compile_Sources): If -d was used, output the "completed ..." message
25460         for each compilation.
25461         (Scan_Arg): Recognize new switch -d
25462         When -c and at least one main is specified, set
25463         Unique_Compile to True to guarantee that no other sources will be
25464         compiled.
25465
25466 2005-06-14  Matthew Heaney  <heaney@adacore.com>
25467
25468         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
25469         * a-swuwha.ads, a-swuwha.adb: New files
25470
25471         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
25472         * a-szuzha.ads, a-szuzha.adb: New files.
25473
25474         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25475         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
25476         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
25477         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
25478         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
25479         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
25480         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
25481         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
25482         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
25483         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
25484         Ada 2005 RM.
25485
25486 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
25487             Olivier Hainque  <hainque@adacore.com>
25488             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25489             Pascal Obry  <obry@adacore.com>
25490
25491         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
25492
25493         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
25494         making a temporary around a procedure call because of non-addressable
25495         actual parameter.
25496         (process_freeze_entity): If entity is a private type, capture size
25497         information that may have been computed for the full view.
25498         (tree_transform, case N_Allocator): If have initializing expression,
25499         check type for Has_Constrained_Partial_View and pass that to
25500         build_allocator.
25501         (tree_transform, case N_Return_Statement): Pass extra arg to
25502         build_allocator.
25503
25504         * decl.c (annotate_value): Remove early return if -gnatR is not
25505         specified.
25506         (gnat_to_gnu_field): Don't make a packable type for a component clause
25507         if the position is byte aligned, the field is aliased, and the clause
25508         size isn't a multiple of the packable alignment. It serves no useful
25509         purpose packing-wise and would be rejected later on.
25510         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
25511
25512         PR ada/20515
25513         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
25514         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
25515         instead.
25516         (create_concat_name): Idem.
25517
25518 2005-06-10  Robert Dewar  <dewar@adacore.com>
25519             Eric Botcazou  <ebotcazou@adacore.com>
25520             Ben Brosgol  <brosgol@adacore.com>
25521             Cyrille Comar  <comar@adacore.com>
25522             Sergey Rybin  <rybin@adacore.com>
25523             Pascal Obry  <obry@adacore.com>
25524
25525         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
25526         Document second argument (Ada_05) of pragma Obsolescent
25527         Add note that call to subprogram marked with pragma Obsolescent
25528         is now considered to be a violation of program Restrictions
25529         (No_Obsolescent_Features).
25530         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
25531         that only machine-dependent attributes are supported.
25532
25533         * gnat_ugn.texi:
25534         Commented out menu lines and empty section for gnatclean examples
25535         Document -gnatwy/Y
25536         Fix some over long lines
25537         Clarify and enhance documentation of ADA_PROJECT_PATH.
25538         Rework section 2.11.2(3) about linking with a non-GNU compiler.
25539         Mention new switch -fcallgraph-info.
25540         Mention new switch -fstack-usage.
25541         For gnatpp, replace '-notab' with '-N' and add this option to Index
25542         Corrected VMS example.
25543         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
25544         Minor reformatting
25545         Add documentation for -gnatyu switch (unnecessary blank lines)
25546         Document new switch -U for GNAT PRETTY and GNAT METRIC
25547         Add note about Stdcall being handled as C convention on non Windows OS.
25548         Remove some junk typo in description of gnatbind -S switch
25549         Remove reference to Extensions_Allowed pragma
25550         Document the new order of the directories to be searched (source and
25551         object directories of project files before directories in ADA_*_PATH
25552         environment variables.
25553
25554         * g-trasym.ads: Document that IRIX is supported
25555
25556 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
25557
25558         * Makefile.in: Add initialize.o when needed.
25559         Adapt to new VMS package body Symbols and subunits
25560         No specialized version of a-sytaco is needed for VxWorks.
25561
25562         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
25563         * a-zchara.ads, a-widcha.ads: New files.
25564
25565         * system-hpux-ia64.ads: New file.
25566
25567         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
25568         is imported from the VxWorks kernel.
25569
25570 2005-06-14  Robert Dewar  <dewar@adacore.com>
25571
25572         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
25573         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
25574         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
25575         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
25576         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
25577         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
25578         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
25579         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
25580         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
25581         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
25582         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
25583         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
25584
25585 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25586
25587         * xeinfo.adb: Fix typo in comment
25588
25589 2005-06-14  Javier Miranda  <miranda@adacore.com>
25590
25591         * repinfo.ads: Fix typo in comment
25592
25593 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25594
25595         * s-finimp.adb (Parent_Tag): Delete this imported function (function
25596         Parent_Tag is now in the visible part of Ada.Tags).
25597         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
25598         using imported function.
25599
25600 2005-06-14  Bernard Banner  <banner@adacore.com>
25601
25602         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
25603         also apply for handling support for VxSim 653.
25604
25605 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25606
25607         * xsnames.adb: Add automatic generation of snames.h.
25608
25609 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25610
25611         * gen-soccon.c: Add IP_MULTICAST_IF constant
25612         Minor reformatting and adjustments to prevent warnings.
25613
25614 2005-06-14  Pascal Obry  <obry@adacore.com>
25615
25616         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
25617
25618 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
25619
25620         * trans.c (gnat_gimplify_expr): Call
25621         recompute_tree_invarant_for_addr_expr when we change
25622         the operand of the ADDR_EXPR.
25623
25624 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25625
25626         * misc.c: Don't include errors.h.
25627
25628 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25629
25630         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
25631
25632 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
25633
25634         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
25635         comment typos.
25636         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
25637
25638 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
25639
25640         PR ada/20270
25641         * Makefile.in: Make TGT_LIB behave correctly.
25642
25643 2005-04-23  DJ Delorie  <dj@redhat.com>
25644
25645         * misc.c: Adjust warning() callers.
25646
25647 2005-04-16  Laurent Guerby  <laurent@guerby.net>
25648
25649         PR ada/18847
25650         * a-nudira.adb (Value): Check for valid string.
25651         * a-nuflra.adb (Value): Likewise.
25652
25653 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
25654
25655         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
25656
25657 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
25658
25659         * adaint.c, init.c, tracebak.c: Fix comment typos.
25660         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
25661
25662 2005-04-07  Laurent Guerby  <laurent@guerby.net>
25663             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25664
25665         * Makefile.in: Add make ifeq define for hppa linux tasking support.
25666         * system-hpux.ads: Define Signed_Zeros to be True.
25667         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
25668
25669 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
25670
25671         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
25672         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
25673         typos.
25674
25675 2005-03-30  Tom Tromey  <tromey@redhat.com>
25676
25677         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
25678
25679 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25680
25681         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
25682
25683 2005-03-29  Robert Dewar  <dewar@adacore.com>
25684
25685         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
25686         fixed-point expression has value that is not a multiple of the Small
25687         value.
25688
25689         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
25690
25691         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
25692         nanoseconds.
25693
25694         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
25695
25696 2005-03-29  Vincent Celier  <celier@adacore.com>
25697
25698         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
25699         (Build_Dynamic_Library.Version_String): Return the empty string when
25700         Lib_Version is empty or when the symbol policy is not Autonomous.
25701
25702         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
25703         a symbol is not in the reference symbol file, increase the Major ID
25704         and set the Minor ID to 0.
25705         Use gsmatch=lequal instead of gsmatch=equal
25706
25707 2005-03-29  Doug Rupp  <rupp@adacore.com>
25708
25709         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
25710         name and translate.
25711
25712 2005-03-29  Javier Miranda  <miranda@adacore.com>
25713
25714         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
25715         (Inherit_DT): The first formal has been redefined as a Tag.
25716         This allows us the removal of the subprogram Get_TSD.
25717         (TSD): Replace the call to Get_TSD by the actual code.
25718
25719         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
25720         (Make_DT): Upgrade the call to Inherit_TSD according to the
25721         new interface: the first formal is now a Tag.
25722
25723         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
25724         redefined as a Tag.
25725         This change allows us to remove the subprogram Get_TSD.
25726         (CPP_Get_TSD): Subprogram removed.
25727         (TSD): Replace the call to CPP_Get_TSD by the actual code.
25728
25729         * rtsfind.ads: Remove support to call the run-time
25730         subprogram Get_TSD
25731
25732 2005-03-29  Robert Dewar  <dewar@adacore.com>
25733
25734         * errutil.adb, errout.adb:
25735         Minor comment updates on Line_Terminator references
25736
25737         * par-ch10.adb: Add ??? comment about line terminator
25738
25739         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
25740         (check dos line terminator).
25741         (Check_Line_Max_Length): New procedure, split off from the existing
25742         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25743         be properly recognized.
25744
25745         * styleg.adb: Add ??? comment for line terminator reference
25746
25747         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
25748         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
25749
25750         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
25751         (check dos line terminator).
25752         (Check_Line_Max_Length): New procedure, split off from the existing
25753         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25754         be properly recognized.
25755
25756         * stylesw.ads, stylesw.adb:
25757         Add handling for new -gnatyd switch (check dos line terminator)
25758
25759         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
25760         Recognize -gnatwb/-gnatwB switches
25761         Include Warn_On_Bad_Fixed_Value for -gnatg
25762
25763         * usage.adb:
25764         Add line for new -gnatyd switch (check dos line terminator)
25765
25766         * usage.adb: Add lines for -gnatwb/-gnatwB
25767
25768         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
25769
25770         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
25771
25772         * gnat_ugn.texi: Fix overlong lines
25773         Document new -gnatyd switch
25774         Document new -gnatwb/-gnatwB switches
25775
25776 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25777
25778         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
25779         order to retrieve the component list of the type, before examining
25780         individual components.
25781
25782         * sem_type.adb (Covers): Types are compatible if one is the base type
25783         of the other, even though their base types might differ when private
25784         views are involved.
25785
25786 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25787
25788         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
25789         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
25790         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
25791         analyzed if expansion is disabled (which could otherwise cause spurious
25792         error messages if expansion has been disabled due to previous
25793         (unrelated) errors).
25794
25795         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
25796         is disabled, the entity denoted by the argument is the access type
25797         itself, not an underlying record type, so there is no need to go back
25798         to the Corresponding_Remote_Type.
25799
25800 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
25801             Robert Dewar  <dewar@adacore.com>
25802
25803         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
25804         expand a call to an instance of
25805         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
25806         Constructor actual of the instance. A class-wide membership
25807         check is also generated, to ensure that the tag passed to the instance
25808         denotes a type in the class.
25809         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
25810         of Name_Generic_Dispatching_Constructor.
25811
25812         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
25813         05 unit for AI-260-02).
25814
25815         * a-tgdico.ads: New file.
25816
25817         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
25818         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
25819
25820         * snames.ads, snames.adb (Preset_Names): Add entry for
25821         Generic_Dispatching_Constructor.
25822
25823         PR ada/20300
25824         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
25825         character type cases.
25826         (Analyze_Subprogram_Renaming): Add special handling for
25827         the case of renaming of stream attributes when the renaming denotes a
25828         generic formal subprogram association for an abstract formal subprogram.
25829         Check that the attribute is a primitive stream attribute (and not
25830         a class-wide stream attribute) and then rewrite the attribute name
25831         as the name of the appropriate compiler-generated stream primitive.
25832
25833 2005-03-29  Robert Dewar  <dewar@adacore.com>
25834
25835         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
25836         recursive calls.
25837         (Is_Possibly_Unaligned_Object): Correct typo that
25838         resulted in inaccurate result for unaligned scalars within records.
25839
25840 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25841
25842         * freeze.adb (Freeze_Record_Type): If the type of the component is an
25843         itype whose parent is controlled and not yet frozen, do not create a
25844         freeze node for the itype if expansion is disabled.
25845
25846 2005-03-29  Vincent Celier  <celier@adacore.com>
25847
25848         * make.adb (Gnatmake): Don't fail if the main project file is declared
25849         as having no Ada sources. Do not display message "no sources to
25850         compile" in quiet output.
25851
25852 2005-03-29  Doug Rupp  <rupp@adacore.com>
25853
25854         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25855         extra tools.
25856
25857 2005-03-29  Robert Dewar  <dewar@adacore.com>
25858
25859         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25860         child.
25861
25862 2005-03-29  Robert Dewar  <dewar@adacore.com>
25863
25864         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25865         missing TYPE Improve the error message generated when compiling a
25866         limited interface in Ada83 or Ada95 mode.
25867
25868 2005-03-29  Robert Dewar  <dewar@adacore.com>
25869
25870         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25871         rather than proceed ahead using a junk attribute name.
25872
25873 2005-03-29  Vincent Celier  <celier@adacore.com>
25874
25875         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25876
25877         * prj-part.adb (Parse_Single_Project): Set the location of a project
25878         on its defining identifier, rather than on the reserved word "project".
25879
25880         * prj-proc.adb (Expression): Adapt to the fact that default of external
25881         references may be string expressions, not always literal strings.
25882         (Recursive_Process): Set Display_Name equal to Name
25883         when Location is No_Location, that is when there is no actual file.
25884         Get the Display_Name of the project from the source, when it is not a
25885         virtual project.
25886         (Process): Use the Display_Name in error messages
25887
25888         * prj-strt.adb (External_Reference): Allow default to be string
25889         expressions, not only literal strings.
25890
25891 2005-03-29  Vincent Celier  <celier@adacore.com>
25892
25893         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25894         file and the reference symbol file to be the same file.
25895
25896 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25897
25898         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25899         forbid conversion of a local access-to-subprogram type to a remote one.
25900
25901         * sem_util.adb (Wrong_Type): For a record type that is the expanded
25902         equivalent type for a remote access-to-subprogram type, go back to the
25903         original RAS entity when displaying an error message, so the casing is
25904         the original source casing.
25905
25906 2005-03-29  Robert Dewar  <dewar@adacore.com>
25907
25908         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25909         on param update.
25910
25911 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25912
25913         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25914         subtype if code is being pre-analyzed, to prevent un-expanded
25915         references to protected formals, among others.
25916         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25917         interpretation that can be a call, include the result of the call as a
25918         possible interpretation of the dereference.
25919
25920         * sem_ch5.adb (Process_Bounds): Determine type of range by
25921         pre-analyzing a copy of the original range, and then analyze the range
25922         with the expected type.
25923
25924         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25925         with an overloaded prefix where not all interpretations yield an
25926         access to subprogram, do not rewrite node as a call.
25927         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25928         the node as a call once the context identifies the interpretation of
25929         the prefix whose call yields the context type.
25930         (Valid_Conversion): For the case of a conversion between
25931         local access-to-subprogram types, check subtype conformance using
25932         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25933         detailed error message.
25934
25935 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25936
25937         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25938         indicator, indicate that the formal can never be null.
25939         (Process_Formals): If a formal has a non_null indicator, insert the
25940         resulting subtype immediately before the enclosing subprogram decl,
25941         and not at the beginning of the corresponding declarative part, to
25942         prevent access before elaboration (Ada2005).
25943
25944 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25945
25946         PR ada/19956
25947         * utils.c (finish_record_type): Use variable_size when setting sizes.
25948
25949 2005-03-29  Robert Dewar  <dewar@adacore.com>
25950
25951         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25952         guarantee Unix style line terminators for the output files, even when
25953         running on windows.
25954
25955 2005-03-29  Robert Dewar  <dewar@adacore.com>
25956
25957         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25958         buffer if an exception is raised.
25959
25960 2005-03-29  Ed Falis  <falis@adacore.com>
25961
25962         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25963         VxWorks 653 1.4
25964
25965 2005-03-29  Robert Dewar  <dewar@adacore.com>
25966
25967         * sem_util.ads: Minor reformatting
25968         * gnat_rm.texi: Minor editing.
25969
25970 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
25971
25972         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25973         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25974
25975 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25976
25977         * adaint.c (__gnat_portable_spawn): Adjust cast.
25978
25979 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
25980
25981         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25982
25983 2005-03-17  Pascal Obry  <obry@adacore.com>
25984
25985         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25986         used.
25987
25988         * expect.c (__gnat_waitpid): Moved here from adaint.c.
25989         Reimplement under Win32 using Win32 API.
25990
25991         (__gnat_kill) [Win32]: Properly close the process handle before leaving
25992         this routine.
25993
25994 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
25995
25996         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25997         (DECL_RENAMED_OBJECT): New accessor macro.
25998         (SET_DECL_RENAMED_OBJECT): New setter macro.
25999
26000         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26001         object in all cases.  Attach the renamed object to the VAR_DECL.
26002         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26003         field is not prescribed.
26004
26005         * misc.c (gnat_handle_option): Handle -gnatO separately.
26006         (gnat_print_decl) <VAR_DECL>: New case.
26007         Print the DECL_RENAMED_OBJECT node.
26008
26009         * lang.opt:  Declare separate -gnatO option.
26010
26011         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26012         pointer, replace it with the renamed object.
26013         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26014         pointer type if the source is not a fat pointer type whose underlying
26015         array has the same non-zero alias set as that of the destination array.
26016
26017 2005-03-17  Javier Miranda  <miranda@adacore.com>
26018
26019         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26020         (Get_Inheritance_Depth): Removed.
26021         (Set_Inheritance_Depth): Removed.
26022
26023         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26024         subprogram Get_Expanded_Name because it is not referenced by the
26025         frontend.
26026
26027         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26028         (CPP_Get_Inheritance_Depth): Removed.
26029         (CPP_Set_Inheritance_Depth): Removed.
26030
26031         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26032
26033 2005-03-17  Robert Dewar  <dewar@adacore.com>
26034
26035         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26036         3, since we now expect GCC 3 to do all the work.
26037
26038 2005-03-17  Javier Miranda  <miranda@adacore.com>
26039
26040         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26041         of one barrier to avoid wrong usage of this attribute.
26042
26043         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26044         First_Private_Entity.
26045
26046         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26047         the subprogram against wrong usage.
26048         Adapt the code to traverse the entities in the
26049         scope of a record_type because in addition to its usage regarding
26050         packages, this subprogram is also called by Expand_N_Freeze_Entity
26051         to install the visible declarations of the enclosing scope of a
26052         record_type_with_private to establish the proper visibility before
26053         freezing the entity and related subprograms.
26054
26055 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26056
26057         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26058         entry formals.
26059
26060 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26061
26062         * exp_ch3.adb (Check_Attr): New subprogram.
26063         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26064         into a new Check_Attr subprogram, in order to provide a more
26065         explanatory error message (including the name of the missing attribute).
26066         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26067         subprogram determines whether a default implementation exists for a
26068         given stream attribute.
26069         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26070         Determine whether to generate a default implementation for each stream
26071         attribute separately, as this depends on the specific attribute.
26072
26073         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26074         limited extension where a stream attribute is missing for a limited
26075         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26076         generate a bogus reference to the missing attribute to prevent
26077         cascaded errors. Instead, generate a null statement.
26078
26079         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26080         available for a limited type if it has been specified for an ancestor
26081         of the type.
26082
26083 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
26084
26085         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26086         entity is an operator.
26087
26088 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26089
26090         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26091         spec, to make this predicate available to other units.
26092
26093         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26094         reimplementing it.
26095
26096         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26097         when no distribution runtime library is available.
26098
26099         * sem_res.adb, sem_dist.adb: Disable expansion of remote
26100         access-to-subprogram types when no distribution runtime library is
26101         available.
26102         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26103         predicate available to other units.
26104
26105         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26106         spec, to make this predicate available to other units.
26107
26108 2005-03-17  Vincent Celier  <celier@adacore.com>
26109
26110         * make.adb (Insert_Project_Sources): Make sure the Q is always
26111         initialized.
26112
26113         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26114         the default for the tree, not the global default naming.
26115
26116         * prj-proc.adb (Recursive_Process): No need to put the default naming
26117         in the project data, it's already there.
26118
26119 2005-03-17  Doug Rupp  <rupp@adacore.com>
26120
26121         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26122
26123         * 5xcrtl.ads: Renamed to...
26124         * s-crtl-vms64.ads: ...this new file
26125
26126 2005-03-17  Robert Dewar  <dewar@adacore.com>
26127
26128         PR ada/19519
26129         * namet.adb (Copy_One_Character): Set proper wide character encoding
26130         for upper half character if we have upper half encoding.
26131
26132 2005-03-17  Robert Dewar  <dewar@adacore.com>
26133
26134         * par.adb (Par): Improved msg for attempt to recompile predefined unit
26135
26136 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26137
26138         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26139         tagged limited type, the TSS is a newly built renaming declaration:
26140         insert it using Set_TSS, not Copy_TSS.
26141
26142 2005-03-17  Javier Miranda  <miranda@adacore.com>
26143
26144         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26145         Try_Object_Operation): Analyze the object that is accessible
26146         through the prefix of the subprogram call before we apply
26147         the transformation of the object-operation notation.
26148
26149 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
26150
26151         * s-taprob.adb (Initialize_Protection): Initialize the protected
26152         object's owner to Null_Task.
26153         (Lock): If pragma Detect_Blocking is in effect and the caller of this
26154         procedure is already the protected object's owner then Program_Error
26155         is raised. In addition the protected object's owner is updated.
26156         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26157         of this procedure is already the protected object's owner then
26158         Program_Error is raised.
26159         In addition the protected object's owner is updated.
26160         (Unlock): Remove the ownership of the protected object.
26161
26162         * s-taprob.ads (Protection): Add the field Owner, used to store the
26163         protected object's owner.
26164         This component is needed for detecting one type of potentially blocking
26165         operations (external calls on a protected subprogram with the same
26166         target object as that of the protected action). Document the rest of
26167         the components.
26168
26169         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26170         Initialize the protected object's owner to Null_Task.
26171         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26172         caller of this procedure is already the protected object's owner then
26173         Program_Error is raised.
26174         Do not raise Program_Error when this procedure is called from a
26175         protected action.
26176         (Unlock_Entries): Remove the ownership of the protected object.
26177         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26178         of this procedure is already the protected object's owner then
26179         Program_Error is raised.
26180         Do not raise Program_Error when this procedure is called from
26181         a protected action.
26182
26183         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26184         used to store the protected object's owner.
26185
26186         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26187         effect and this procedure (a potentially blocking operation) is called
26188         from whithin a protected action, Program_Error is raised.
26189         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26190         and this procedure (a potentially blocking operation) is called from
26191         whithin a protected action, Program_Error is raised.
26192
26193 2005-03-17  Vincent Celier  <celier@adacore.com>
26194             Nicolas Setton  <setton@adacore.com>
26195
26196         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26197         switch, not supported by the linker on Darwin. Add '_' before
26198         <library>init, as this character is added unconditionally by the
26199         compiler.
26200         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26201         correct one ".dylib". This fixes detection of the archive files when
26202         building library projects.
26203
26204 2005-03-17  Vincent Celier  <celier@adacore.com>
26205
26206         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26207         -gnat83, -gnat95 and -gnat05.
26208
26209 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
26210
26211         * gnat_ugn.texi: Document gnatmem restriction
26212
26213 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26214
26215         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26216         cleanup
26217
26218 2005-03-17  Robert Dewar  <dewar@adacore.com>
26219
26220         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26221         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26222         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26223
26224         * casing.adb: Comment improvements
26225
26226 2005-03-17  Pascal Obry  <obry@adacore.com>
26227
26228         * g-expect.adb: Minor reformatting.
26229
26230 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
26231
26232         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26233         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26234         to dependencies.
26235
26236 2005-03-15  Vincent Celier  <celier@adacore.com>
26237
26238         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26239         Add new parameter In_Tree to specify the project tree: needed
26240         by the project manager. Adapt to changes in project manager
26241         using new parameter In_Tree.
26242
26243 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
26244
26245         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26246         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26247         ada/bldtools to avoid make -jN failures.
26248
26249 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26250
26251         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26252         to NULL_TREE on entry.
26253
26254 2005-03-15  Robert Dewar  <dewar@adacore.com>
26255
26256         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26257         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26258         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26259         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26260         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26261         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26262         system-interix.ads, system-solaris-sparc.ads,
26263         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26264         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26265         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26266         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26267         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26268         Compiler_System_Version to be False.
26269
26270         * opt.ads: Add new flag Opt.Address_Is_Private
26271
26272         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26273         Add new parameter Compiler_System_Version to avoid checking for
26274         completeness of parameters when compiler is compiling itself.
26275         Allows old versions of GNAT to be compiled with new compiler.
26276
26277 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26278
26279         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26280         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26281         calling thread.
26282         (Stack_Base_Available): New flag.
26283         (Get_Page_Size): New overloaded functions imported from C.
26284         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26285         PROT_ON, PROT_OFF): New constants.
26286         (mprotect): New function imported from C.
26287         (pthread_teb_t): New record type.
26288
26289         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
26290         (Create_Task): Account for the Yellow Zone and the guard page.
26291
26292 2005-03-15  Vincent Celier  <celier@adacore.com>
26293
26294         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26295         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26296         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26297         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
26298         Library_File_Name_For): Add new parameter In_Tree
26299         to specify the project tree: needed by the project manager.
26300         Adapt to changes in project manager using new parameter In_Tree.
26301         Remove local imports, use functions in System.CRTL.
26302
26303         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
26304         to use the project manager.
26305
26306         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
26307         In_Tree to designate the project tree. Adapt to changes in the project
26308         manager, using In_Tree.
26309
26310         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
26311         Copy_Interface_Sources): Add new parameter In_Tree to specify the
26312         project tree: needed by the project manager.
26313         (Build_Library): Check that Arg'Length >= 6 before checking if it
26314         contains "--RTS=...".
26315
26316         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
26317         Library_File_Name_For): Add new parameter In_Tree to specify the
26318         project tree: needed by the project manager.
26319
26320         * prj.ads, prj.adb: Major modifications to allow several project trees
26321         in memory at the same time.
26322         Change tables to dynamic tables and hash tables to dynamic hash
26323         tables. Move tables and hash tables from Prj.Com (in the visible part)
26324         and Prj.Env (in the private part). Move some constants from the visible
26325         part to the private part. Make other constants deferred.
26326         (Project_Empty): Make it a variable, not a function
26327         (Empty_Project): Add parameter Tree. Returns the data with the default
26328         naming data of the project tree Tree.
26329         (Initialize): After updating Std_Naming_Data, copy its value to the
26330         component Naming of Project Empty.
26331         (Register_Default_Naming_Scheme): Use and update the default naming
26332         component of the project tree, instead of the global variable
26333         Std_Naming_Data.
26334         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
26335         Tree is not defaulted, return the default naming data of the Tree.
26336         (Initial_Buffer_Size): Constant moved from private part
26337         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
26338         variables initialized in procedure Initialize.
26339         (Add_To_Buffer): Add two in out parameters to replace global variables
26340         Buffer and Buffer_Last.
26341         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
26342         functions.
26343         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
26344         hash tables.
26345         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26346         for the project tree.
26347         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
26348         constant at the beginning of the package spec, so that they cane be used
26349         in subprograms before their full declarations.
26350         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
26351         (Empty_Project): Add parameter of type Project_Node_Ref
26352         (Private_Project_Tree_Data): Add component Default_Naming of type
26353         Naming_Data.
26354         (Buffer, Buffer_Last): remove global variables
26355         (Add_To_Buffer): Add two in out parameters to replace global variables
26356         Buffer and Buffer_Last.
26357         (Current_Packages_To_Check): Remove global variable
26358         (Empty_Name): Move to private part
26359         (No-Symbols): Make it a constant
26360         (Private_Project_Tree_Data): New type for the private part of the
26361         project tree data.
26362         (Project_Tree_Data): New type for the data of a project tree
26363         (Project_Tree_Ref): New type to designate a project tree
26364         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26365         for the project tree.
26366
26367         * prj-attr.ads: Add with Table; needed, as package Prj no longer
26368         imports package Table.
26369
26370         * prj-com.adb: Remove empty, no longer needed body
26371
26372         * prj-com.ads: Move most of the content of this package to package Prj.
26373
26374         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
26375         designate the project node tree and Packages_To_Check to replace
26376         global variable Current_Packages_To_Check.
26377         Add new parameters In_Tree and Packages_To_Check to local subprograms,
26378         when needed. Adapt to changes in project manager with project node tree
26379         In_Tree.
26380
26381         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
26382         project tree to most subprograms. Move tables and hash tables to
26383         private part of package Prj.
26384         Adapt to changes in project manager using project tree In_Tree.
26385
26386         * prj-makr.adb (Tree): New constant to designate the project node tree
26387         Adapt to change in project manager using project node tree Tree
26388
26389         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
26390         display the Library_Src_Dir and the Library_Dir.
26391         Add new parameter In_Tree to designate the project node tree to most
26392         subprograms. Adapt to changes in the project manager, using project tree
26393         In_Tree.
26394         (Check_Naming_Scheme): Do not alter the casing on platforms where
26395         the casing of file names is not significant.
26396         (Check): Add new parameter In_Tree to designate the
26397
26398         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
26399         designate the project tree.
26400         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
26401
26402         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
26403         to replace those that were in the private part of package Prj.
26404         Add new parameter In__Tree to designate the project node tree to most
26405         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26406         (Post_Parse_Context_Clause): When specifying the project node of a with
26407         clause, indicate that it is a limited with only if there is "limited"
26408         in the with clause, not necessarily when In_Limited is True.
26409         (Parse): Add new parameter In_Tree to designate the project node tree
26410
26411         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
26412         designate the project node tree. Adapt to change in Prj.Tree with
26413         project node tree In_Tree.
26414
26415         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
26416         tree In_Tree in the call to function Empty_Process to give its initial
26417         value to the project data Processed_Data.
26418         Add new parameters In_Tree to designate the project tree and
26419         From_Project_Node_Tree to designate the project node tree to several
26420         subprograms. Adapt to change in project manager with project tree
26421         In_Tree and project node tree From_Project_Node_Tree.
26422
26423         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
26424         to replace those that were in the private part of package Prj.
26425         Add new parameter In_Tree to designate the project node tree to most
26426         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26427
26428         * prj-tree.ads, prj-tree.adb: Add new parameter of type
26429         Project_Node_Tree_Ref to most subprograms.
26430         Use this new parameter to store project nodes in the designated project
26431         node tree.
26432         (Project_Node_Tree_Ref): New type to designate a project node tree
26433         (Tree_Private_Part): Change table to dynamic table and hash tables to
26434         dynamic hash tables.
26435
26436         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
26437         the project tree to most subprograms. Adapt to changes in project
26438         manager using project tree In_Tree.
26439
26440         * makegpr.adb (Project_Tree): New constant needed to use project
26441         manager.
26442
26443 2005-03-15  Olivier Hainque  <hainque@adacore.com>
26444
26445         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
26446         for sigactions with SA_SIGINFO set. Call
26447         __gnat_adjust_context_for_raise before raising, to perform the
26448         potentially required adjustments to the machine context for the GCC
26449         unwinder.
26450
26451         * raise.h (__gnat_adjust_context_for_raise): New prototype.
26452
26453         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
26454         Adjust PC by one in the provided machine context.
26455         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
26456         so that the handler is passed the context structure to adjust prior to
26457         the raise.
26458         (__gnat_error_handler) HPUX: Adjust the signature to match what an
26459         SA_SIGINFO sigaction should look like. Call
26460         __gnat_adjust_context_for_raise before actually raising.
26461         (__gnat_adjust_context_for_raise): Default noop to help PC
26462         adjustments before raise from signal handlers.
26463         (__gnat_error_handler): Indirectly call a predicate function to
26464         determine if a condition should be resignaled or not.
26465         (__gnat_set_resignal_predicate): User interface to modify the predicate.
26466         (__gnat_default_resignal_p): Default GNAT predicate.
26467
26468 2005-03-15  Doug Rupp  <rupp@adacore.com>
26469
26470         * adaint.c: Prefix #include of VMS system header files with vms/
26471         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
26472         Do not define a dummy function "convert_addresses" under Darwin,
26473         not needed.
26474
26475         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
26476         with vms/
26477
26478 2005-03-15  Nicolas Setton  <setton@adacore.com>
26479
26480         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
26481         PPC/AIX.
26482
26483 2005-03-15  Robert Dewar  <dewar@adacore.com>
26484
26485         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
26486         AI-386.
26487
26488         * a-retide.ads: Minor comment changes
26489
26490 2005-03-15  Robert Dewar  <dewar@adacore.com>
26491
26492         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
26493         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
26494         Realloc_For_Chunk to private part of package.
26495         New subprograms for AI-301
26496
26497         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
26498         Get_Line procedure.
26499         Avoid unnecessary use of Get/Set_Wide_String
26500
26501 2005-03-15  Robert Dewar  <dewar@adacore.com>
26502
26503         PR ada/13470
26504         * a-stunau.ads, a-stunau.adb:
26505         Change interface to allow efficient (and correct) implementation
26506         The previous changes to allow extra space in unbounded strings had
26507         left this interface a bit broken.
26508
26509         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
26510
26511         * g-spipat.ads, g-spipat.adb: New interface for Get_String
26512         Minor reformatting (function specs)
26513
26514         * g-spitbo.adb: New interface for Get_String
26515
26516         * g-spitbo.ads: Minor reformatting
26517
26518         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
26519
26520         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
26521
26522 2005-03-15  Javier Miranda  <miranda@adacore.com>
26523             Robert Dewar  <dewar@adacore.com>
26524             Thomas Quinot  <quinot@adacore.com>
26525             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26526
26527         * atree.ads, atree.adb: Add support for Elist24 field
26528
26529         * atree.h: Fix wrong definition of Field27
26530         Add support for Elist16 field
26531         Add support for Elist24 field
26532
26533         * einfo.ads, einfo.adb (Abstract_Interfaces,
26534         Set_Abstract_Interfaces): New subprograms.
26535         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
26536         subprograms.
26537         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
26538         entities rather than a single node.
26539         (Is_Interface, Set_Is_Interface): New subprogram
26540         (First_Tag_Component): New syntesized attribute
26541         (Next_Tag_Component): New synthesized attribute
26542         (Write_Entity_Flags): Upgraded to write Is_Interface
26543         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
26544         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
26545         (Task_Body_Procedure): New subprogram to read this attribute.
26546         (Set_Task_Body_Procedure): New subprogram to set this attribute.
26547         (Has_Controlled_Component): Now applies to all entities.
26548         This is only a documentation change, since it always worked to apply
26549         this to other than composite types (yielding false), but now this is
26550         official.
26551         Update documentation on Must_Be_Byte_Aligned for new spec
26552
26553         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
26554         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
26555         uses of the Access_Disp_Table attribute to reference the first dispatch
26556         table associated with a tagged type. As
26557         part of the implementation of abstract interface types,
26558         Access_Disp_Table has been redefined to contain a list of dispatch
26559         tables (rather than a single dispatch table).
26560         Similarly, upgrade all the references to Tag_Component by the
26561         new attribute First_Tag_Component.
26562         (Find_Inherited_TSS): Moved to exp_tss.
26563         Clean up test in Expand_N_Object_Declaration for cases
26564         where we need to do a separate assignment of the initial value.
26565         (Expand_N_Object_Declaration): If the expression in the
26566         declaration of a tagged type is an aggregate, no need to generate an
26567         additional tag assignment.
26568         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
26569         is to be deleted.
26570         Bit packed array ops are only called if operands are known to be
26571         aligned.
26572         (Component_Equality): When returning an N_Raise_Program_Error statement,
26573         ensure that its Etype is set to Empty to avoid confusing GIGI (which
26574         expects that only expressions have a bona fide type).
26575         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
26576         determine the amount of data to be copied.
26577
26578         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
26579         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
26580             INTERFACE_TYPE_DEFINITION ::=
26581               [limited | task | protected | synchronized] interface
26582                 [AND interface_list]
26583
26584         * par-ch3.adb (P_Type_Declaration): Modified to give support to
26585         interfaces.
26586         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
26587         interfaces.
26588         (P_Interface_Type_Definition): New subprogram that parses the new
26589         syntax rule of Ada 2005 interfaces
26590         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
26591         messages by the correct RENAMES (quotes removed).
26592
26593         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
26594         attribute First_Tag_Component.
26595
26596         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
26597         (Interface_List, Set_Interface_List): New subprograms.
26598         (Interface_Present, Set_Interface_Present): New subprograms.
26599         (Limited_Present, Set_Limited_Present): Available also in derived
26600         type definition nodes.
26601         (Protected_Present, Set_Protected_Present): Available also in
26602         record type definition and
26603         derived type definition nodes.
26604         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
26605         (Task_Present, Set_Task_Present): New subprogram.
26606         (Task_Body_Procedure): Removed.
26607         (Set_Task_Body_Procedure): Removed.
26608         These subprogram have been removed because the attribute
26609         Task_Body_Procedure has been moved to the corresponding task type
26610         or task subtype entity to leave a field free to store the list
26611         of interfaces implemented by a task (for AI-345)
26612         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
26613         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
26614         expression flag Do_Range_Check
26615         (Exception_Junk): Change to Flag7 to accomodate above change
26616         (Box_Present, Default_Name, Specification, Set_Box_Present,
26617         Set_Default_Name, Set_Specification): Expand the expression
26618         "X in N_Formal_Subprogram_Declaration" into the corresponding
26619         two comparisons. Required to use the csinfo tool.
26620
26621         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
26622         "with string" given.
26623
26624         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
26625         expression given.
26626
26627         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
26628         in 2005 mode
26629
26630         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
26631         attribute Task_Body_Procedure rather than the old semantic field that
26632         was available in the task_type_declaration node.
26633
26634         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
26635         interface type definitions.
26636         (P_Formal_Derived_Type_Definition): Modified to handle the list of
26637         interfaces.
26638
26639         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
26640         task type declaration.
26641         (P_Protected): Modified to handle the list of interfaces in a
26642         protected type declaration.
26643
26644 2005-03-15  Doug Rupp  <rupp@adacore.com>
26645             Vincent Celier  <celier@adacore.com>
26646
26647         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
26648         (Gen_Output_File_C): Likewise.
26649         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
26650
26651 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26652
26653         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
26654         is an N_Raise_Constraint_Error node, create a new copy of it without
26655         going through a call to Duplicate_Subexpr.
26656
26657 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26658             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26659             Nicolas Setton  <setton@adacore.com>
26660             Ed Schonberg  <schonberg@adacore.com>
26661
26662         PR ada/19900
26663         PR ada/19408
26664         PR ada/19140
26665         PR ada/20255
26666         * decl.c (gnat_to_gnu_field): Reject aliased components with a
26667         representation clause that prescribes a size not equal to the rounded
26668         size of their types.
26669         (gnat_to_gnu_entity, case E_Component): Always look at
26670         Original_Record_Component if Present and not the entity.
26671         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
26672         of tagged extension types by not making field for components that are
26673         inside the parent.
26674         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
26675         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
26676         expression to the type of the object when the object is constant.
26677         Reverse defer_debug_incomplete_list before traversing it, so that trees
26678         are processed in the order at which they were added to the list. This
26679         order is important when using the stabs debug format.
26680         If we are deferring the output of debug information, also defer this
26681         output for a function return type.
26682         When adding fields to a record, prevent emitting debug information
26683         for incomplete records, emit the information only when the record is
26684         complete.
26685         (components_to_record): New parameter defer_debug.
26686         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
26687         (gnat_to_gnu_field_decl): New function.
26688         (substitution_list, annotate_rep): Call it.
26689         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
26690         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
26691         No longer update discriminants to not be a COMPONENT_REF.
26692         (copy_alias_set): Strip padding from input type; also handle
26693         unconstrained arrays properly.
26694
26695         * gigi.h (write_record_type_debug_info): New function.
26696         Convert to use ANSI-style prototypes. Remove unused
26697         declarations for emit_stack_check, elab_all_gnat and
26698         set_second_error_entity.
26699         (gnat_to_gnu_field_decl): New decl.
26700
26701         * utils.c (write_record_type_debug_info): New function.
26702         (finish_record_type): Delegate generation of debug information to
26703         write_record_type_debug_info.
26704         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
26705         (update_pointer_to): Fix pasto.
26706         (convert) <UNION_TYPE>: Accept slight type variations when
26707         converting to an unchecked union type.
26708
26709         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
26710         replace the N_Freeze_Entity with a null statement.
26711
26712         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
26713         within a constrained subcomponent of an enclosing record, place the
26714         freeze nodes in the scope stack entry for the enclosing record.
26715         (Undelay_Type): New Subprogram.
26716         (Set_Small_Size): Pass T, the type to modify; all callers changed.
26717         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
26718         within records; allow them to have freeze nodes if their base types
26719         aren't frozen yet.
26720
26721         * exp_util.adb (Remove_Side_Effects): Properly test for
26722         Expansion_Delayed and handle case when it's inside an
26723         N_Qualified_Expression.
26724
26725         * sem_ch3.adb (Derived_Type_Declaration): New predicate
26726         Comes_From_Generic, to recognize accurately that the parent type in a
26727         derived type declaration can be traced back to a formal type, because
26728         it is one or is derived from one, or because its completion is derived
26729         from one.
26730         (Constrain_Component_Type): If component comes from source and has no
26731         explicit constraint, no need to constrain in in a subtype of the
26732         enclosing record.
26733         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
26734         Minor change to propagate Is_Ada_2005 flag
26735
26736         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
26737         Expansion_Delayed is False.
26738         (assoc_to_constructor): Ignore fields that have a
26739         Corresponding_Discriminant.
26740         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
26741         function returns "by target", dereference the target pointer using the
26742         type of the actual return value.
26743         <all>: Be prepared for a null gnu_result.
26744         (processed_inline_subprograms): Check flag_really_no_inline
26745         instead of flag_no_inline.
26746         (set_second_error_entity): Remove unused function.
26747         (gnat_to_gnu, case N_Selected_Component): Call
26748         gnat_to_gnu_field_decl.
26749         (assoc_to_constructor): Likewise.
26750
26751 2005-03-15  Robert Dewar  <dewar@adacore.com>
26752             Ed Schonberg  <schonberg@adacore.com>
26753             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26754
26755         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
26756         Must_Be_Byte_Aligned for cases where we do not need to use a
26757         System.Pack_nn unit.
26758
26759         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
26760         as procedures.
26761         Needed now that we do some processing for IN parameters as well. This
26762         may well fix some unrelated errors.
26763         (Expand_Call): Handle case of unaligned objects (in particular those
26764         that come from packed arrays).
26765         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
26766         renamed entity is an inherited operation, re-expand the call using the
26767         original operation, which is the one to call.
26768         Detect attempt to inline parameterless recursive subprogram.
26769         (Represented_As_Scalar): Fix to work properly with private types
26770         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
26771         accurate estimate. Yields True in far fewer cases than before,
26772         improving the quality of code that depends on this test.
26773
26774         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
26775         over both visible and private declarations to remove them from tree,
26776         and mark subprograms declared in package as eliminated, to prevent
26777         spurious use in subsequent compilation of generic units in the context.
26778
26779         * exp_util.ads: Minor cleanup in variable names
26780
26781         * sem_eval.ads, sem_eval.adb: Minor reformatting
26782         (Compile_Time_Known_Bounds): New function
26783
26784 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26785
26786         * exp_ch7.adb (Convert_View): Use base types of underlying types when
26787         determining whether an unchecked conversion is needed for the argument
26788         of an initialization call.
26789
26790 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26791
26792         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
26793         that appears in the instantiation rather than the internal subtype
26794         generated in the wrapper package, to avoid anomalies in gigi when the
26795         target is derived from a private type whose full view is an access type.
26796
26797 2005-03-15  Robert Dewar  <dewar@adacore.com>
26798
26799         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
26800         not needed.
26801         Add documentation to replace the use of this flag
26802         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
26803         the x86_64.
26804
26805 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26806
26807         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
26808         here from exp_attr so it can be shared between exp_attr and exp_dist.
26809         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
26810         all TSS names, not a subset thereof, and the previous name introduced
26811         an unnecessarily confusion that a distinction might exist between
26812         "OK" TSS names and some "not OK" TSS names.
26813
26814 2005-03-15  Doug Rupp  <rupp@adacore.com>
26815
26816         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
26817         Command_Name.
26818
26819 2005-03-15  Pascal Obry  <obry@adacore.com>
26820             Eric Botcazou  <ebotcazou@adacore.com>
26821
26822         PR ada/20226
26823         PR ada/20344
26824         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
26825         when IN_RTS. This is to work around a bootstrap path problem.
26826
26827         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
26828         table and pass it to __gnat_install_SEH_handler().
26829         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
26830
26831         * lang.opt: Fix specification of -fRTS=.
26832
26833 2005-03-15  Doug Rupp  <rupp@adacore.com>
26834             Bernard Banner  <banner@adacore.com>
26835             Vincent Celier  <celier@adacore.com>
26836             Arnaud Charlet  <charlet@adacore.com>
26837
26838         PR ada/6852
26839         This change works fine when gnatlib is built from the gcc directory,
26840         but does not work when using the libada Makefile, since GCC_FOR_TARGET
26841         is not passed to ada/Makefile.in, so more work is needed by a
26842         Makefile/configure expert.
26843
26844         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26845         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26846         Setup gnatlink switch -M for x86_64 linux, as it is already setup
26847         for Linux x86.
26848         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26849         Run ranlib on libgccprefix.a
26850         Define PREFIX_OBJS for Darwin, to build libgccprefix.
26851         (ADA_INCLUDE_SRCS): Split Ada packages.
26852
26853 2005-03-15  Robert Dewar  <dewar@adacore.com>
26854
26855         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26856
26857         * impunit.adb: Add GNAT.UTF_32
26858
26859         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26860
26861         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26862         now uses GNAT.UTF_32).
26863
26864         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26865         capabilities for categorizing characters using Unicode categories
26866
26867 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26868
26869         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26870         instantiation that has been rewritten as a package body, retrieve spec
26871         to generate proper name for implicit_with_clause.
26872         (Install_Parents): Recognize a parent that is an instantiation but has
26873         been rewritten as a package declaration during analysis.
26874
26875 2005-03-15  Javier Miranda  <miranda@adacore.com>
26876             Ed Schonberg  <schonberg@adacore.com>
26877
26878         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26879         parameter reported some error we immediately return. This improves the
26880         behaviour of the frontend in case of errors.
26881         (Install_Parent, Remove_Parent): Introduce new flag
26882         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26883         ancestor of a generic child unit, when the child is being instantiated.
26884         (Inline_Instance_Body): If we are compiling the private
26885         part or the body of a child unit, restore the proper visibility of the
26886         parents after compiling the instance body.
26887
26888 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26889             Javier Miranda  <miranda@adacore.com>
26890
26891         PR ada/15608
26892         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26893         of a private type, in which case it is underlying_type that denotes
26894         the proper task. Also modified to use the new entity attribute
26895         that is directly available in the task type and task subtype entities
26896         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26897         arrays when other dimensions than the first are constrained by
26898         discriminants of an enclosing record.
26899         (Insert_Explicit_Dereference): If the prefix is an indexed component or
26900         a combination of indexed and selected components, find ultimate entity
26901         and generate the appropriate reference for it, to suppress spurious
26902         warnings.
26903         (Note_Possible_Modification): If an entity name has no entity, return.
26904         (Is_Variable): A function call never denotes a variable.
26905         (Requires_Transient_Scope): For record types, recurse only on
26906         components, not on internal subtypes that may have been generated for
26907         constrained components.
26908
26909 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26910
26911         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26912         Eliminated as candidates for resolution. Both efficient, and avoids
26913         anomalies with operators declared in deleted code.
26914         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26915         expansion is disabled (as when compiling a generic) to prevent spurious
26916         warnings on prefixes of selected components.
26917
26918 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26919
26920         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26921         attached to a list before checking whether it appears in the private
26922         declarations of the current package.
26923         (Make_Inequality_Operator): Insert declaration in proper declarative
26924         list rather than just setting the Parent field, so that
26925         Is_Private_Declaration can handle it properly.
26926
26927 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26928
26929         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26930         a renaming a body, check that the renamed subprogram in not intrinsic.
26931         (Find_Direct_Name): If several use_visible entities hide
26932         each other, and the context is a predefined file compiled through
26933         rtsfind, keep only the entity that comes from a predefined file.
26934
26935 2005-03-15  Geert Bosch  <bosch@adacore.com>
26936
26937         * s-fatgen.adb (Valid): Extend special exceptions to account for long
26938         long float padding to also cover AMD64 and IA64.
26939
26940 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
26941
26942         * s-imgwch.adb: Add with and use of Interfaces.
26943         (Img_Wide_Character): Change type of Val to Unsigned_16.
26944         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26945
26946 2005-03-15  Matthew Gingell  <gingell@adacore.com>
26947
26948         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26949
26950 2005-03-15  Robert Dewar  <dewar@adacore.com>
26951
26952         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26953
26954         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26955
26956         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26957
26958 2005-03-15  Robert Dewar  <dewar@adacore.com>
26959
26960         * s-bitops.adb, s-bitops.ads,
26961         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26962         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26963         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26964         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26965         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26966         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26967         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26968         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26969         reformatting.
26970
26971 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26972
26973         * utils2.c (build_binary_op): Fix typo.
26974
26975 2005-03-15  Doug Rupp  <rupp@adacore.com>
26976
26977         * s-crtl.ads (popen,pclose): New imports.
26978
26979 2005-03-15  Cyrille Comar  <comar@adacore.com>
26980
26981         * comperr.adb (Compiler_Abort): remove references to obsolete
26982         procedures in the bug boxes for various GNAT builds.
26983
26984 2005-03-15  Vincent Celier  <celier@adacore.com>
26985
26986         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26987
26988 2005-03-15  Geert Bosch  <bosch@adacore.com>
26989             Arnaud Charlet  <charlet@adacore.com>
26990             Robert Dewar  <dewar@adacore.com>
26991             Cyrille Comar  <comar@adacore.com>
26992             Sergey Rybin  <rybin@adacore.com>
26993
26994         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26995         too specific and long-winded to be appropriate for the GNAT User's
26996         Guide.
26997         Warn about use of GCC switches not documented in the GNAT User's Guide,
26998         as these may cause generated code to not conform to Ada semantics.
26999         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27000         Add documentation for -gnat95 and -gnat05 switches
27001         Remove paragraph documenting obsolete way to refer to third party
27002         libraries.
27003         Add a few references to Ada_05 that were missing.
27004         Update documentation on -gnatZ/-gnatL.
27005         Document limitation when using -m64 under Solaris.
27006         Change the "Name Casing" subsection of the pretty-printer section
27007         according to the changes in the dictionary processing.
27008
27009         * gnat_rm.texi: Document the Ada_05 pragma.
27010         Section on record representation clauses describes the new more
27011         relaxed rules about placement of large packed bit array components.
27012         Add documentation of GNAT.UTF_32
27013
27014 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
27015
27016         * misc.c (gnat_post_options): Turn off structural
27017         aliasing for now.
27018
27019 2005-03-08  Laurent Guerby  <laurent@guerby.net>
27020
27021         * system-linux-sparc.ads: Fix typo in previous commit.
27022
27023 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
27024             Laurent Guerby  <laurent@guerby.net>
27025
27026         PR ada/20035
27027         * system-linux-sparc.ads: New.
27028         * Makefile.in: Add sparc linux entry.
27029
27030 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
27031
27032         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27033         parameters as unused.
27034
27035 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
27036         Partial merge from libada-gnattools-branch:
27037
27038         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27039         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27040         into code in gnattools/Makefile.in.  Remove direct dependencies on
27041         stamp-tools by tools clauses.
27042         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
27043         * config-lang.in: Add gnattools to $lang_dirs.
27044
27045 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
27046
27047         PR ada/19942
27048         * utils.c (gnat_type_for_mode): Return null instead of ICE because
27049         we asked for an unknown mode.
27050
27051 2005-02-12  Richard Henderson  <rth@redhat.com>
27052
27053         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27054         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27055
27056 2005-02-10  Andreas Jaeger  <aj@suse.de>
27057
27058         * init.c (__gnat_initialize): Mark parameter as unused.
27059
27060 2005-02-09  Doug Rupp  <rupp@adacore.com>
27061
27062         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27063         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27064
27065 2005-02-09  Doug Rupp  <rupp@adacore.com>
27066
27067         * gnatchop.adb (dup, dup2),
27068         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27069
27070         * gnatlbr.adb (mkdir),
27071         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
27072
27073         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27074
27075 2005-02-09  Doug Rupp  <rupp@adacore.com>
27076
27077         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27078
27079 2005-02-09  Robert Dewar  <dewar@adacore.com>
27080             Thomas Quinot  <quinot@adacore.com>
27081             Javier Miranda  <miranda@adacore.com>
27082             Pascal Obry  <obry@adacore.com>
27083             Ed Schonberg  <schonberg@adacore.com>
27084             Doug Rupp  <rupp@adacore.com>
27085             Gary Dismukes  <dismukes@adacore.com>
27086             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27087
27088         * g-zstspl.ads: New file.
27089
27090         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27091
27092         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27093         Ada 95 mode
27094         Add definition of Wide_Wide_Space for AI-285
27095
27096         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27097         interface (to support Ada 95 and Ada 2005 units).
27098         Add Unbounded_IO files
27099         Add entries for Wide_Wide packages for AI-285
27100         Add list of containers packages to Ada 2005 unit list
27101
27102         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27103         support new Unbounded_IO package cleanly.
27104
27105         * g-utf_32.ads, g-utf_32.adb: New files.
27106
27107         * Makefile.rtl: Add entry for g-utf_32
27108         Add new files for Unbounded_IO
27109         Adjust make file for new AI-285 wide wide packages
27110         Add AI-302 containers to the run time.
27111
27112         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27113         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27114         subprograms for AI-301.
27115
27116         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27117
27118         * a-stunau.ads: Minor comment correction
27119
27120         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27121         etc.
27122         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27123         (Check_RPC): Update to match changes in expanded code.
27124         Clean up unused entity.
27125
27126         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27127         was not taken into account.
27128         This includes proper initialization with Normalize_Scalars.
27129         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27130         normalize scalars cases (particularly the latter) to do a better job
27131         of finding invalid representations.
27132
27133         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27134
27135         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27136         used
27137
27138         * exp_dist.adb: Add support for wide wide character type
27139         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27140         private part, generate stub bodies at the end of the private part,
27141         not the visible part.
27142         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27143         PolyORB support.
27144         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27145         generic wrapper to execute final processing after completing the
27146         expansion of the RPC receiver for an RACW.
27147
27148         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27149         packages and attributes.
27150         (Preset_Names): Addition of the new reserved words of Ada 2005,
27151         that is interface, overriding and synchronized.
27152         (Get_Pragma_Id): Give support to the use of the new reserved word
27153         "interface" as a pragma name.
27154         (Is_Pragma_Name): Give support to the use of the new reserved word
27155         "interface" as a pragma name.
27156         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27157         attribute implementation.
27158
27159         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27160         checks to entities that are output parameters of Asm operations.
27161         Handle the Stream_Size attribute.
27162         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27163
27164         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27165
27166         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27167         for second parameter being 0.0.
27168         Add support for wide wide character type.
27169         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27170
27171         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27172         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27173         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27174         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27175         for wide wide character cases.
27176
27177         * cstand.adb: Create entities for Wide_Wide_Character and
27178         Wide_Wide_String.
27179
27180         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27181         accordance with AI-258.
27182         Add new declarations for 16/32 bit C character types (Part of AI285)
27183
27184         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27185         (Obsolescent_Warning): New field
27186         (Rep_Clause): New local subprogram used to share code. Returns the rep
27187         clause for which the name is given in parameter.
27188         (Has_Stream_Size_Clause): New routine.
27189         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27190         (Address_Clause): Implementation is now using Rep_Clause.
27191         (Alignment_Clause): Idem.
27192         (Size_Clause): Idem.
27193
27194         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27195         entity in non-Ada 2005 mode and generate warning.
27196
27197         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27198         (Prag): Code cleanup. Remove old gnat pragma "overriding"
27199
27200         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27201         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27202         on the named unit if the pragma is not in the current compilation unit,
27203         so that elaboration calls in the current unit can set up an elaboration
27204         dependency on the named unit, as needed.
27205         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27206         subprogram as well as for subprograms declared within a package.
27207         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27208         pragma overriding.
27209
27210         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27211         to z) to avoid some instances of duplication for Wide_Wide packages.
27212
27213         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27214         characters.
27215
27216         * scn.adb: Char_Literal_Value field is now a Uint
27217
27218         * scng.adb: Significant rewrite to handle new Ada 2005 features
27219         allowing wide and wide wide characters in program text, e.g. for
27220         identifiers, as described in AI-285.
27221         (Set_Reserved): New procedure, makes setting up keywords cleaner.
27222         (Initialize_Scanner): Register the new reserved words of Ada 2005.
27223         (Scan): Give support to the new reserved words.
27224
27225         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27226         warning notifying that interface, overriding, and synchronized are
27227         new reserved words.
27228         (P_Pragma): Allow the use of the new reserved word "interface" as
27229         a pragma name.
27230
27231         * gnatls.adb, gnatbind.adb,
27232         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27233         identifiers named "interface" to "SAL_Interface".
27234
27235         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27236         (Structured Exception handling).
27237         (Gen_Main_C): Idem.
27238
27239         * bindgen.adb:
27240         (Gen_Main_Ada): Set the default exit code if specified.
27241         (Gen_Main_C): Likewise.
27242         Part of *DC20-006.
27243         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27244         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27245
27246         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27247         new -Xnnn switch.
27248
27249         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27250         has a collision with the new Ada 2005 "interface" reserved word.
27251
27252         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27253         generate a warning notifying that interface, overriding, and
27254         synchronized are new reserved words.
27255
27256         * scans.ads (Token_Type): Addition of the tokens corresponding to the
27257         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27258         and Tok_Synchronized.
27259
27260         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27261         "dispatching" rather than "primitive" operations, since dispatching
27262         calls are now allowed to abstract formal subprograms (which are not
27263         primitive).
27264         Char_Literal_Value field is now a Uint
27265         (Resolve_Slice): If the prefix is an access to an unconstrained array,
27266         compute the actual subtype of the designated object to impose the proper
27267         index constraints.
27268         (Resolve_Selected_Component): Do not insert an access check if the
27269         prefix is an access type: such a node is expanded into an explicit
27270         dereference, on which the access check is performed anyway. Removes
27271         expensive duplicate checks.
27272         (Resolve_Call): Use new flag Is_Obsolescent and field
27273         Obsolescent_Warning so that pragma Obsolescent works on library
27274         subprograms.
27275         Add support for wide wide character type
27276         (Resolve_Allocator): Replace the error message on wrong null-exclusion
27277         value by a warning message.
27278         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27279         as fixed-point, and one of the operands is non-static and universal, it
27280         can only be an illegal exponentiation operation, in which case there is
27281         no real value to retrieve.
27282
27283         * exp_strm.adb: Add support for wide wide character type
27284         (Build_Elementary_Input_Call): Compute the size of the stream element by
27285         querying the rep chain to find the Stream_Attribute attribute value.
27286         (Build_Elementary_Write_Call): Ditto.
27287
27288         * sem_aggr.adb: Char_Literal_Value field is now a Uint
27289         Add support for wide wide character type
27290         Replace the error messages on wrong null-exclusion value by warnings
27291         as described in Ada 2005.
27292         (Resolve_Extension_Aggregate): Document the fact that the error
27293         message on class-wide expressions in extensions aggregates.
27294
27295         * sem_case.adb: Add support for wide wide character type
27296
27297         * sem_ch13.adb: Add support for wide wide character type
27298         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
27299
27300         * sem_ch3.adb: Add support for wide wide character type
27301         (Process_Subtype): If constraint is illegal for the type, set Ekind of
27302         now-useless Itype, to prevent cascaded errors on a compiler built
27303         without -gnatp.
27304
27305         * sem_ch8.adb: Add with and use of Sem_Disp.
27306         (Analyze_Subprogram_Renaming): Replace unclean uses of
27307         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
27308         of Corresponding_Spec to Empty).
27309         (Attribute_Renaming): Replace use of Corresponding_Spec with
27310         Corresponding_ Formal_Spec and simplify condition.
27311         (Use_One_Package): Check that scope of homonym of identifier is defined,
27312         before checking whether it is a wrapper package.
27313         Add support for wide wide character type
27314
27315         * sem_eval.adb: Add support for wide wide character type.
27316         (Eval_Arithmetic_Op): Check for compile time known signed integer
27317         overflow in the non-static case.
27318         (Subtypes_Statically_Match): A formal scalar type and its base type do
27319         not statically match.
27320
27321         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
27322         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
27323         subtype).
27324         (Unit_Declaration_Node): Ditto.
27325         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
27326         has a packed array type, the prefix has been rewritten into a type
27327         conversion. Determine variable-ness from the converted expression.
27328         Handle wide wide character cases.
27329
27330         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
27331
27332         * stringt.ads, stringt.adb: Handle full UTF-32 range.
27333         Remove ["0A"] from comment, since it can look like a line terminator.
27334         Currently we don't permit this, but this is under discussion by the
27335         ARG, and it is easy enough to use a different example.
27336
27337         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
27338         handling UTF-32 encoding for wide wide character.
27339         Implement new brackets coding ["hhhhhhhh"]
27340         Add UTF-8 encodings for full UTF-32 range
27341
27342         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
27343
27344         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
27345         bit range Add full UTF-32 support.
27346         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
27347         notify that constraint error will be raised at run-time
27348         because a null value is assigned to a null-excluding object.
27349         Remove some obsolete declarations and make Char_Code
27350         unsigned.
27351
27352         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
27353         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
27354         Rcheck subprograms.
27355
27356         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
27357         wrong null-exclusion value by a warning message.
27358         (Enable_Range_Check): Do range check if the prefix is an
27359         explicit dereference whose designated object is an unconstrained array.
27360         Current algorithm for removing duplicate checks is over-eager in this
27361         case.
27362
27363         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
27364         null-exclusion value by a warning message
27365
27366         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
27367         completely. Add support for Uint2 field
27368
27369         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
27370         exp_prag.adb: Char_Literal_Value field is now a Uint.
27371
27372         * exp_util.adb (Insert_Actions): Replace
27373         N_Formal_Subprogram_Declaration by
27374         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
27375         Char_Literal_Value field is now a Uint.
27376
27377         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
27378         defined for subprogram renaming declarations. When set, the field
27379         indicates the defining entity of a corresponding formal subprogram
27380         when the renaming corresponds to a formal subprogram association in an
27381         instantiation.
27382         (Set_Corresponding_Formal_Spec): New procedure to return
27383         Corresponding_Formal_Spec field.
27384         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
27385         (which is now a subtype).
27386         Char_Literal_Value field is now a Uint
27387
27388         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
27389         pointer to the base of the dispatch table.
27390         Minor changes to comments.
27391         (Controlling_Type): New function for determining the tagged type
27392         associated with a tagged primitive subprogram.
27393         (Expand_Dispatching_Call): Add support for a controlling actual that is
27394         directly a value of type Ada.Tag rather than a tagged object.
27395
27396         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
27397         describing the new layout.
27398         (Dispatch_Table): The expander computes the actual array size, allocates
27399         the Dispatch_Table record accordingly, and generates code that displaces
27400         the base of the record after the Typeinfo_Ptr component. The access to
27401         these components is done by means of local functions.
27402         (Offset_To_Top): New function.
27403         (Typeinfo_Ptr): New function.
27404         (Get_TSD): Modified to access the new position of the TSD.
27405         (Set_TSD): Modified to save the TSD in its new position.
27406
27407         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
27408         case of formal abstract subprograms. Add check and message for -gnat05.
27409         Update comments.
27410
27411         * sem_ch12.adb: Add with and use for Sem_Disp.
27412         (Analyze_Associations): Minor change from "=" to "in" for use of
27413         N_Formal_Subtype_Declaration (which is now a subtype).
27414         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
27415         N_Formal_Subtype_Declaration (which is now a subtype).
27416         (Analyze_Formal_Subprogram): Add handling for
27417         N_Formal_Abstract_Subprogram, marking the formal as abstract and
27418         dispatching, setting the controlling status of the formal parameters
27419         and result, and issuing an error if there is no controlling type for
27420         the formal subprogram.
27421         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
27422         which is an unclean use of that field, we set the new field
27423         Corresponding_Formal_Spec to make the formal subprogram available to
27424         processing in Analyze_Subprogram_Declaration.
27425         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
27426         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
27427         Constrained, so that it is is does not statically match its anonymous
27428         base type.
27429
27430         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
27431         abstract formal subprograms in error check for functions returning
27432         abstract types. Set scope of new designator for
27433         a parameterless subprogram, so that it is available when checking the
27434         body for nested subprograms, before full analysis of said body.
27435         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
27436         subprogram only if inner one comes from source.
27437         (Analyze_Function_Call): If the call is given in object notation, the
27438         analysis of the name rewrites the node and analyzes it with the proper
27439         argument list. After analyzing the name, if the call has been rewritten
27440         and the result type is set, no further analysis is needed.
27441         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
27442         mark in function specification, in a context where the formals are
27443         visible and hide outer homographs.
27444
27445         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
27446         as the tagged type for the cases of abstract formal subprograms and
27447         renamings of those.  Clean up spec comments.
27448         (Check_Dispatching_Context): Add error message to indicate "abstract
27449         procedure", covering the case of a call to a formal abstract procedure
27450         that has statically tagged operands.
27451         (Check_Dispatching_Call): Check for the case of an actual given by
27452         a tag-indeterminate function call whose type is an ancestor of the
27453         containing call's associated tagged type. This situation can occur
27454         for inherited primitives with function defaults. In this case we
27455         use the tagged type's tag directly as the controlling argument for
27456         the calls.
27457         (Expand_Call): Name change on call to Expand_Dispatch_Call.
27458
27459         * sprint.adb (Sprint_Node_Actual): Split
27460         N_Formal_Subprogram_Declaration into two alternatives for the new
27461         cases N_Formal_Abstract_Subprogram_Declaration and
27462         N_Formal_Concrete_Subprogram_Declaration.
27463         Char_Literal_Value field is now a Uint.
27464
27465         * trans.c: Get rid of junk Uint2 reference.
27466         Char_Literal_Value field is now a Uint.
27467         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
27468         (gigi): Correct third arg to gimplify_body.
27469
27470         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
27471         (TYPE_LANG_FLAG_0): Check for record or union.
27472
27473         * treepr.adb: Char_Literal_Value field is now a Uint
27474
27475         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
27476         UI_From_CC.
27477
27478         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
27479         Add full UTF-32 support
27480         Char_Code is now 32 bits
27481
27482         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
27483         wide character UTF_32 line terminators.
27484         Initialize Main_Source_File to avoid error when no main
27485         source is loaded.
27486
27487         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
27488         (Main_Source_File) when no main source has been loaded, to avoid
27489         potential crash.
27490
27491 2005-02-09  Robert Dewar  <dewar@adacore.com>
27492
27493         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
27494         Fix name of Set routine
27495
27496         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
27497         fixed packages.
27498
27499         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
27500         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
27501         fixed packages
27502
27503         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
27504         forms of Get_Line subprograms for AI-301.
27505
27506         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
27507         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
27508         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
27509         a-stwima.ads: Minor reformatting.
27510
27511 2005-02-09  Doug Rupp  <rupp@adacore.com>
27512             Thomas Quinot  <quinot@adacore.com>
27513
27514         * adaint.c, adaint.h
27515         [VMS] (to_ptr32): New function.
27516         (MAYBE_TO_PTR32): New macro.
27517         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
27518         for pointer size.
27519         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
27520         [VMS] (#define fork()): Remove since unneccessary.
27521         (__gnat_set_close_on_exec): New routine to support
27522         GNAT.OS_Lib.Set_Close_On_Exec.
27523
27524         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
27525         the parent side as close-on-exec so that they are not inherited by the
27526         child.
27527
27528         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
27529         set or clear the FD_CLOEXEC flag on a file descriptor.
27530
27531 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27532             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27533
27534         PR ada/19386
27535         * decl.c:
27536         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
27537         on the field if Pragma Component_Alignment (Storage_Unit).
27538         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
27539         side-effects as if it were a constant; also make SAVE_EXPR to protect
27540         side-effects.
27541         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
27542         UNION_TYPE.
27543         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
27544         (components_to_record): Test it.
27545         Fix improper usage of REFERENCE_CLASS_P.
27546
27547         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
27548         RECORD_TYPE.
27549
27550         * utils2.c: Minor reformatting.
27551
27552         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
27553         handle other cases like RECORD_TYPE.
27554
27555         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
27556
27557 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27558
27559         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
27560         component of an array of arrays in an assignment context, and the
27561         aggregate has component associations that require sliding on
27562         assignment, force reanalysis of the aggregate to generate a temporary
27563         before the assignment.
27564         (Must_Slide): Make global to the package, for use in Gen_Assign.
27565
27566 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27567
27568         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
27569         unchecked union with no inferable discriminants, return a
27570         Raise_Program_Error node, rather than inserting it at the point the
27571         type is frozen.
27572         (Expand_Record_Equality, Component_Equality): Handle properly the case
27573         where some subcomponent is an unchecked union whose generated equality
27574         code raises program error.
27575
27576 2005-02-09  Doug Rupp  <rupp@adacore.com>
27577
27578         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
27579         [VMS] (#define exit hack): Remove.
27580
27581 2005-02-09  Pascal Obry  <obry@adacore.com>
27582             Arnaud Charlet  <charlet@adacore.com>
27583
27584         * init.c (__gnat_initialize): Add a new parameter eh which contains the
27585         address of the exception registration. The Win32 version of this
27586         routine calls __gnat_install_SEH_handler() to initialize the SEH
27587         (Structured Exception Handling) handler.
27588         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
27589         SEH (Structured Exception Handling) now.
27590         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
27591         (__gnat_initialize for ppc-vxworks): Adjust comments and the
27592         preprocessor condition protecting the call to the extra eh setup
27593         subprogram, which is only available for the ppc target.
27594         (__gnat_clear_exception_count): replaced reference to
27595         variable taskIdCurrent by call to taskIdSelf(), cleaner.
27596
27597         * seh_init.c: New file.
27598
27599         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
27600         (GNATBIND_OBJS): Idem.
27601
27602         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
27603         routine takes a new parameter (a pointer to the exception registration
27604         for the SEH (Structured Exception Handling) support.
27605
27606         * raise.h: (__gnat_install_SEH_handler): New prototype.
27607         Update copyright notice.
27608
27609         * s-tassta.adb (Task_Wrapper): Declare the exception registration
27610         record and initialize it by calling __gnat_install_SEH_handler.
27611
27612 2005-02-09  Vincent Celier  <celier@adacore.com>
27613
27614         * make.adb (Gnatmake): Do not fail when the main project has no object
27615         directory.
27616
27617 2005-02-09  Doug Rupp  <rupp@adacore.com>
27618
27619         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
27620         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
27621         [VMS]: Add translations for g-enblsp.adb.
27622
27623         * s-asthan-vms.adb: Removed.
27624         * s-asthan-vms-alpha.adb: Added.
27625
27626 2005-02-09  Pascal Obry  <obry@adacore.com>
27627
27628         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
27629         (LIBGNAT_OBJS): Add seh_init.o.
27630
27631 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27632
27633         PR ada/16592
27634         * Makefile.in: Link all gnat tools with -static-libgcc, since
27635         -shared-libgcc is now used by default on some systems (e.g. linux with
27636         recent binutils).
27637         Remove references to Makefile.prolog/generic, no longer used.
27638
27639 2005-02-09  Vincent Celier  <celier@adacore.com>
27640
27641         * prj-makr.adb (Process_Directory): Put file name in canonical case
27642         before matching against the patterns.
27643         If gnatname has been invoked as <prefix>-gnatname
27644         then invoke the compiler as <prefix>-gcc, not just "gcc".
27645
27646 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27647
27648         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
27649         with expansion disabled. The actual subtype is needed among other
27650         places when the selected component appears in the context of a loop
27651         bound, and denotes a packed array.
27652         (Operator_Check): Always use the first subtype in the
27653         error message, to avoid the appearance of internal base types.
27654         (Transform_Object_Operation): Copy each actual in full
27655         to the parameter associations of the constructed call, rather than
27656         using the shallow copy mechanism of New_Copy_List. This ensures that
27657         the chaining of named associations is done properly.
27658         (Complete_Object_Operation): Rewrite node, rather than
27659         replacing it, so that we can trace back to the original selected
27660         component.
27661
27662         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
27663         and calls that use object notation, if the called function is not
27664         declared  in a withed unit, place the elaboration constraint on the
27665         unit in the context that makes the function accessible.
27666         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
27667         imposes an elaboration constraint between two packages.
27668
27669 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27670
27671         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
27672         views of a private type after handling its private dependents, to
27673         maintain proper stack discipline between entry and exit from the
27674         package.
27675
27676 2005-02-09  Cyrille Comar  <comar@adacore.com>
27677
27678         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
27679         Minor reformatting.
27680
27681 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27682
27683         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
27684         fields for foreign threads.
27685
27686 2005-02-09  Doug Rupp  <rupp@adacore.com>
27687
27688         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
27689         recursion warnings when compiled with -gnatdm.
27690
27691 2005-02-09  Robert Dewar  <dewar@adacore.com>
27692
27693         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
27694         Slight fix to documentation of -gnaty with no parameters
27695
27696         * xr_tabls.ads: Add ??? comment for missing overall comment
27697
27698         * xsinfo.adb: Make default file name be sinfo.h, since this is what
27699         we now use by default.
27700
27701         * xsnames.adb: Adjust end of file test to look for five space followed
27702         by '#' instead of six spaces. The format of xsnames.adb was modified
27703         in the last update.
27704
27705         * a-numeri.ads: Add reference to AI-388 for greek letter pi
27706         identifier.
27707
27708         * clean.adb: Minor reformatting.
27709
27710         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
27711         gnatname.adb: Minor reformatting
27712         Add 2005 to copyright output when utility is run
27713
27714         * csets.adb: Eliminate obsolete comment
27715
27716         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
27717         Update comments.
27718
27719         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
27720
27721 2005-02-09  Sergey Rybin  <rybin@adacore.com>
27722
27723         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
27724         the difference between compact and incompact layout and add the record
27725         representation clause to the example illustrating different layouts.
27726         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
27727         component clauses").
27728
27729 2005-02-09  Florian Villoing  <villoing@adacore.com>
27730
27731         * gnat_ugn.texi: Fix typos.
27732         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
27733         @file.
27734         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
27735         in the generated documentation.
27736
27737 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27738
27739         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
27740         longer supported.
27741         Update linker wrapper when linking with non GNU C++.
27742
27743 2005-02-09  Pascal Obry  <obry@adacore.com>
27744
27745         * gnat_ugn.texi:
27746         Document the procedure to debug the DllMain routine on Windows.
27747         Add note about -funwind-tables and mixed Ada and C/C++ programming in
27748         ZCX mode.
27749         Document new BIND qualifer /RETURN_CODES=VMS.
27750
27751 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
27752
27753         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
27754         Edited gnatmetric chapter
27755
27756 2005-02-09  Robert Dewar  <dewar@adacore.com>
27757
27758         * gnat_rm.texi:
27759         Changes to document new wide wide character support
27760         For AI-285
27761         Update documentation on Normalize_Scalars and Initialize_Scalars
27762
27763 2005-02-09  Pascal Obry  <obry@adacore.com>
27764
27765         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
27766
27767 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
27768
27769         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
27770         from the VxWorks kernel) that is needed for getting the active
27771         priority of the different tasks.
27772
27773         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
27774         Use a pragma Elaborate_Body in the spec file instead.
27775         Noticed by code reading.
27776
27777 2005-02-09  Thomas Quinot  <quinot@adacore.com>
27778
27779         * exp_util.ads: Minor correction in comment.
27780
27781 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27782
27783         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
27784         since this procedure is now too complex to be worth inlining.
27785
27786 2005-02-09  Richard Henderson  <rth@redhat.com>
27787
27788         * utils.c (gnat_define_builtin): Remove.
27789         (gnat_install_builtins): Use build_common_builtin_nodes.
27790
27791 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27792
27793         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27794         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
27795         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
27796         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
27797         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
27798         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
27799         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
27800         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
27801         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
27802         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27803         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
27804         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
27805         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
27806         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
27807         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
27808         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
27809         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
27810         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
27811         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
27812         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
27813         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
27814         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
27815         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
27816         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
27817         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
27818         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
27819         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27820         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
27821         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
27822         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
27823         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27824         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
27825         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
27826         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
27827         library.
27828
27829 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27830
27831         * Makefile.in: Fix a-intnam.ads from previous commit,
27832         add 2005 to copyright.
27833         * a-intman-rtems.ads: Renamed to...
27834         * a-intnam-rtems.ads:
27835
27836 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27837
27838         * Makefile.in: Rename GNAT RTEMS specific files.
27839         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
27840         5rosinte.ads, 5rparame.adb: Replaced by files below.
27841         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
27842         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
27843
27844 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
27845             Laurent Guerby  <laurent@guerby.net>
27846
27847         PR ada/19488
27848         * 5rosinte.ads: Add No_Key constant.
27849         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27850         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
27851
27852 2005-01-26  Laurent Guerby  <laurent@guerby.net>
27853
27854         PR ada/19414
27855         * i-cobol.adb (Valid_Numeric): Handle zero length case.
27856
27857 2005-01-20  Richard Henderson  <rth@redhat.com>
27858
27859         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27860         a-intnam-linux.ads and system-linux-alpha.ads.
27861         * a-intnam-linux-alpha.ads: Remove file.
27862         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27863         * system-linux-alpha.ads: New file.
27864
27865 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
27866
27867         PR ada/13470
27868         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27869         set to the new string.
27870
27871 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
27872
27873         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27874         to True.
27875
27876 2005-01-18  Richard Henderson  <rth@redhat.com>
27877
27878         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27879         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27880         for alpha-linux.
27881         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27882
27883 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
27884
27885         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27886         (GCC_ZCX_Support): Likewise.
27887
27888 2005-01-11  Bastian Blank  <waldi@debian.org>
27889
27890         * system-linux-s390.ads: Define Preallocated_Stacks.
27891         * system-linux-s390x.ads: Likewise.
27892
27893 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
27894
27895         * gnat_ugn.texi: Fix texi errors with null variables.
27896
27897 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27898
27899         * gen-soccon.c: New utility program to generate g-soccon.ads
27900         automatically.
27901
27902         * socket.c, gsocket.h: Split inclusion of system header files into a
27903         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27904
27905         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27906         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27907         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27908         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27909         should not be edited by hand anymore, but should be regenerated using
27910         gen-soccon.
27911
27912 2005-01-03  Robert Dewar  <dewar@adacore.com>
27913             Ed Schonberg  <schonberg@adacore.com>
27914             Vincent Celier  <celier@adacore.com>
27915
27916         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27917         on/off, since this is an obsolescent feature, for which we now generate
27918         a warning.
27919
27920         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27921         warning mode is set and obsolescent usage of this attribute occurs.
27922         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27923         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27924         predates, and partly motivates, the adoption of the AI.
27925         Implement new Ada 2005 attribute Mod
27926
27927         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27928         attribute Mod.
27929
27930         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27931
27932         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27933         pragma restrictions.
27934         New entry for Ada 2005 attribute Mod.
27935
27936         * par-prag.adb:
27937         Add recognition of new pragma Restrictions No_Dependence
27938         Recognize restriction No_Obsolescent_Features at parse time
27939
27940         * bcheck.adb: Add circuitry for checking for consistency of
27941         No_Dependence restrictions.
27942
27943         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27944         restrictions.
27945
27946         * restrict.ads, restrict.adb: Add subprograms to deal with
27947         No_Dependence restrictions.
27948
27949         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27950         restrictions.
27951
27952         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27953         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27954
27955         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27956         dummy parameter to scng instantiation.
27957         Needed for new restriction No_Obsolescent_Features
27958
27959         * scn.adb: (Obsolescent_Check): New procedure
27960         Needed for new restriction No_Obsolescent_Features
27961
27962         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27963         specified by AI-285, needed for implementation of AI-388 (adding greek
27964         pi to Ada.Numerics).
27965         Add new generic formal to scng, needed for new restriction
27966         No_Obsolescent_Features.
27967
27968         * s-rident.ads: Add new restriction No_Obsolescent_Features.
27969
27970         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27971         restrictions lines.
27972         (Scan_ALI): When finding an unexpected character on an R line, raise
27973         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27974         Ignore_Errors is True, default restrictions are set and scanning of the
27975         ALI file continues with the next line. Also, when Bad_R_Line is raised
27976         and Ignore_Errors is True, skip to the end of le line.
27977
27978         * sem_ch10.adb: Check that explicit with's do not violate
27979         No_Dependence restrictions.
27980         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27981         illegal context clauses containing child units of instance.
27982
27983         * sem_prag.adb: Processing and checking for new No_Dependence
27984         restrictions.
27985         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27986         analyze and check the External argument.
27987
27988         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27989
27990 2005-01-03  Robert Dewar  <dewar@adacore.com>
27991
27992         * atree.adb: Add a fifth component to entities
27993         This allows us to add 32 flags and four new fields
27994
27995         * atree.ads: Add a fifth component to entities
27996         This allows us to add 32 flags and four new fields
27997
27998         * einfo.ads, einfo.adb: Document new fields and new flags now available
27999         Add routines for printing new fields
28000
28001         * treepr.adb: Call routines to print out additional fields if present
28002
28003 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28004
28005         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28006         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28007
28008         * Makefile.in: Add support to build shared Ada libraries on solaris x86
28009         Remove gpr2make, replaced by gprmake.
28010         Remove references to gnatmem and libaddr2line.
28011         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28012         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28013         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28014         a-numaux-darwin.ads and a-numaux-darwin.adb
28015         Enable mlib-tgt-lynxos.adb on lynxos.
28016
28017         * Make-lang.in: Remove rules for gpr2make.
28018         When generating sdefault.adb, do not call Relocate_Path
28019         on S3 for function Target_Name, as it is not a path.
28020         Remove references to gnatmem and libaddr2line.
28021
28022         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28023         files.
28024
28025 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
28026
28027         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28028         address is incompatible with its base type alignment constraints when
28029         this can be decided statically.
28030
28031 2005-01-03  Olivier Hainque  <hainque@adacore.com>
28032
28033         * decl.c (compatible_signatures_p): New function. The intended purpose
28034         is to check if two function signatures for a call-site and a callee are
28035         compatible enough for the call to be valid. The underlying purpose is
28036         to check if a call to a mapped builtin is using the right interface.
28037         The current code actually does not check antyhing - this a placeholder
28038         for future refinements.
28039         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28040         builtin calls for convention Intrinsic.
28041
28042         * gigi.h (builtin_decl_for): Declare (new function).
28043
28044         * utils.c (gnat_install_builtins): Install the target specific builtins.
28045         (builtin_decl_for): New function, provide a dummy body for now.
28046
28047 2005-01-03  Geert Bosch  <bosch@adacore.com>
28048
28049         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28050         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28051         (Pred): Implement in terms of Succ.
28052
28053         * trans.c (convert_with_check): Reimplement conversion of float to
28054         integer.
28055
28056 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28057             Vincent Celier  <celier@adacore.com>
28058
28059         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28060         bounds can be negative, and must be declared Int, not Nat.
28061
28062         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28063         array is checked after using the index in the array.
28064
28065         * makegpr.adb (Add_Switches): Check if there is a package for the
28066         processor. If there is no package, do not look for switches.
28067
28068 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28069
28070         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28071         generation of predefined stream operations (specs and bodies) should
28072         proceed. Under various restrictions these subprograms must not be
28073         generated.
28074
28075 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28076
28077         * exp_dist.adb:
28078         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28079         amount of PCS-specific code in RACW stubs generation.
28080         (Copy_Specification): Set Etype on copied formal parameter entities, as
28081         this information is needed for PolyORB stubs generation.
28082         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28083         variable Dynamic_Async.
28084         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28085         (Build_RPC_Receiver_Specification): Make generic again, as recent
28086         changes have allowed RPC receivers to have the same profile for both
28087         variants of the PCS.
28088         Reorganise RPC receiver generation to reduce differences between the
28089         structure of GARLIC and PolyORB RPC receivers.
28090         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28091         PCS-specific.
28092         Simplify elaboration code for RCI packages.
28093
28094         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28095         generation to reduce differences between the structure of GARLIC and
28096         PolyORB RPC receivers.
28097
28098         * s-stratt.adb: Fix typo in comment.
28099
28100 2005-01-03  Thomas Quinot  <quinot@adacore.com>
28101
28102         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28103         copied from Make_Init_Call).
28104
28105         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28106         reads and assignments on a temporary variable declared with appropriate
28107         discriminants.
28108
28109 2005-01-03  Robert Dewar  <dewar@adacore.com>
28110
28111         * i-c.adb (To_C): Raise CE if string is null and Append_Null
28112
28113 2005-01-03  Robert Dewar  <dewar@adacore.com>
28114
28115         * i-cstrin.adb (Update): Do not append a null in form called with a
28116         String. This avoids unintended behavior.
28117
28118 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28119
28120         PR ada/17527
28121         * init.c: Fix warnings on Free BSD section.
28122
28123 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28124
28125         PR ada/16949
28126         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28127         xsinfo.adb).
28128
28129 2005-01-03  Vincent Celier  <celier@adacore.com>
28130
28131         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28132         libraries when Unique_Compile is True (-u switch).
28133         (Gnatmake): ditto.
28134
28135 2005-01-03  Robert Dewar  <dewar@adacore.com>
28136
28137         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28138         upper case letter or underscore after W, as allowed by spec.
28139
28140 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28141
28142         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28143         darwin port by using proper type definitions from header files.
28144         Use SIGTERM instead of SIGABRT for SIGADAABORT.
28145
28146 2005-01-03  Robert Dewar  <dewar@adacore.com>
28147
28148         * par.adb: Enhance error message handling for configuration file
28149         pragmas.
28150
28151 2005-01-03  Robert Dewar  <dewar@adacore.com>
28152
28153         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28154         removed during the previous update (test properly for case of dividing
28155         largest negative number by -1, which generates overflow).
28156
28157 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28158             Sergey Rybin  <rybin@adacore.com>
28159
28160         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28161         to use as the defining identifier for a formal package.
28162         (Remove_Parent): If the instance takes place within (an instance of)
28163         a sibling, preserve private declarations of common parent.
28164
28165 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28166
28167         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28168         to determine whether one of the operands is a fixed-point type for
28169         which a user-defined multiplication or division operation might be
28170         defined.
28171
28172         * sem_res.adb (Valid_Conversion): The legality rules for conversions
28173         of access types are symmetric in Ada 2005: either designated type can
28174         be unconstrained.
28175
28176 2005-01-03  Vincent Celier  <celier@adacore.com>
28177
28178         * s-fileio.adb (Temp_File_Record): Change length of string component
28179         Name from L_tmpnam + 1 to max_path_len + 1.
28180
28181 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28182
28183         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28184         Self_Id.Deferral_Level = 0.
28185         (Do_Pending_Action): Move this function to the spec.
28186
28187         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28188         Do_Pending_Action explicitely when needed, in case we're using
28189         No_Abort restrictions.
28190
28191         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28192         deferral level since it will not get changed by the generated code.
28193         Keeping a default value of 1 would prevent some operations (e.g.
28194         select or delay) to proceed successfully.
28195
28196 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
28197             Robert Dewar  <dewar@adacore.com>
28198             Cyrille Comar  <comar@adacore.com>
28199
28200         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28201         porting guide chapter (vms version).
28202         Revised doc title (removed "for native platforms") and subtitle.
28203         Add discussion on warning flag for obsolescent features. First we
28204         note that it applies to obsolete GNAT features, which was previously
28205         omitted. Second we contrast the behavior with that of the new
28206         Ada 2005 AI-368 restriction No_Obsolescent_Features.
28207         Preliminary rewriting of GNAT & libraries chapter in order to take
28208         into account default project locations & new project manager
28209         capabilities.
28210
28211 2005-01-03  Robert Dewar  <dewar@adacore.com>
28212
28213         * cstand.adb (Create_Operators): Clean up format and documentation of
28214         unary and binary operator result tables. No change in code, just
28215         reformatting and addition of comments.
28216
28217         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28218         sem_ch2.adb: Minor reformatting
28219
28220         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28221         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28222         comments for Tree_Read and Tree_Write.
28223
28224 2005-01-03  Pascal Obry  <obry@adacore.com>
28225
28226         * exp_attr.ads: Minor reformatting.
28227
28228 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
28229
28230         * comperr.adb (Compiler_Abort): Add specialized message for GAP
28231         versions.
28232
28233 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28234
28235         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28236         whether the ancestor type is private, as may be the case with nested
28237         instantiations.
28238
28239 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
28240
28241         PR ada/19128
28242         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28243
28244 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
28245
28246         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28247         * utils2.c (build_unary_op): Likewise.
28248
28249 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28250
28251         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28252
28253 2004-12-19  Richard Henderson  <rth@redhat.com>
28254
28255         * trans.c (gigi): Update gimplify_body call.
28256
28257 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
28258
28259         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28260
28261 2004-12-07  Ed Falis  <falis@adacore.com>
28262
28263         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28264         current task being suspended.
28265
28266         * init.c (__gnat_clear_exception): added to reset VxWorks exception
28267         count.
28268         (__gnat_map_signal): removed test for current task being suspended.
28269
28270 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28271
28272         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28273         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28274         targets (such as AAMP).
28275
28276 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28277
28278         * atree.adb (Visit_Itype): Create a new name for the generated itype,
28279         because the back-end may otherwise treat it as a redefinition of the
28280         old symbol.
28281
28282 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
28283
28284         * back_end.adb (Scan_Back_End_Switches): Accept --param.
28285
28286         * lang-specs.h: Accept --param.
28287
28288 2004-12-07  Vincent Celier  <celier@adacore.com>
28289
28290         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
28291         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
28292         Current_Body_Suffix => Ada_Body_Suffix).
28293         Take into account Externally_Built attribute.
28294
28295         * clean.adb (In_Extension_Chain): Always return False when one of the
28296         parameter is No_Project.
28297         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
28298         Ada_Language_Index).
28299         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
28300         Process_Languages for procedure Parse).
28301
28302         * gnatcmd.adb (Carg_Switches): New table.
28303         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
28304         Adapt to name changes in package Prj (Current_Spec_Suffix =>
28305         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
28306
28307         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
28308         Header_Num and function Hash are now declared in package Prj,
28309         not Prj.Com.
28310
28311         * prj.adb (Suffix_Of): New function.
28312         (Set (Suffix)): New procedure.
28313         (Hash): One function moved from Prj.Com
28314         (Is_Present, Language_Processing_Data_Of): New functions
28315         (Set): Two new procedures
28316         (Add_Language_Name, Display_Language_Name): New procedures
28317
28318         * prj.ads: (Suffix_Of): New function
28319         (Set (Suffix)): New procedure
28320         Add several types and tables for multi-language support.
28321         (Header_Num): Type moved from Prj.Com
28322         (Hash): Two functions moved from Prj.Com
28323         (Is_Present, Language_Processing_Data_Of): New functions
28324         (Set): Two new procedures
28325         (Add_Language_Name, Display_Language_Name): New procedures
28326         (Naming): Component name changes:
28327         Current_Spec_Suffix => Ada_Spec_Suffix,
28328         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
28329         Impl_Suffixes, Supp_Suffixes.
28330         (Project_Data): New components: Externally_Built, Supp_Languages,
28331         First_Language_Processing, Supp_Language_Processing, Default_Linker,
28332         Default_Linker_Path.
28333
28334         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
28335         new package Language_Processing with its attributes (Compiler_Driver,
28336         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
28337         Binder_Driver, Default_Linker).
28338
28339         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
28340         (Header_Num): Type moved to package Prj
28341
28342         * prj-env.adb: Adapt to name changes in package Prj
28343         (Current_Spec_Suffix => Ada_Spec_Suffix,
28344         Current_Body_Suffix => Ada_Body_Suffix).
28345
28346         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
28347         default to the project path, except the "-" is one of the directories
28348         in env var ADA_PROJECT_PATH.
28349         (Current_Project_Path): Global variable, replacing Project_Path
28350         that was in the body of Prj.Part.
28351         (Project_Path): New function
28352         (Set_Project_Path): New procedure
28353         Initialize Current_Project_Path during elaboration of the package
28354         Remove dependency on Prj.Com, no longer needed
28355
28356         * prj-ext.ads (Project_Path): New function
28357         (Set_Project_Path): New procedure
28358
28359         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
28360         suffix is defined for language <lang>.
28361         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
28362         accessing directly the components of Naming.
28363         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
28364         Reorganise of this package.
28365         Break procedure Check in several procedures.
28366
28367         * prj-nmsc.ads: Replace all procedures (Ada_Check,
28368         Other_Languages_Check and Language_Independent_Check) with a single
28369         procedure Check.
28370
28371         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
28372         Process_Languages, no longer needed.
28373
28374         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
28375         Current_Project_Path.
28376         Remove elaboration code, moved to the body of Prj.Ext
28377         Use new function Prj.Ext.Project_Path instead of old variable
28378         Project_Path.
28379         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
28380         When comparing with project paths on the stack, first put the resolved
28381         path in canonical case.
28382         (Parse_Single_Project): Set the path name of the project file in the
28383         tree to the normalized path.
28384
28385         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
28386         parameter Process_Languages, no longer needed.
28387         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
28388         Other_Languages_Check.
28389
28390         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
28391         to store the resolved canonical path of the project file.
28392         Remove dependency to Prj.Com, no longer needed
28393
28394         * prj-util.adb: Adapt to name changes in package Prj
28395         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
28396         Ada_Body_Suffix).
28397
28398         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
28399         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
28400         Externally_Built, Include_Option, Language_Processing.
28401
28402         * makegpr.adb: Numerous changes due to changes in packages
28403         Prj and Prj.Nmsc.
28404
28405         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
28406         default to the project path, except whe "-" is one of the directories
28407         in env var ADA_PROJECT_PATH.
28408         (Gnatls): In verbose mode, add the new section "Project Search Path:"
28409
28410 2004-12-07  Robert Dewar  <dewar@adacore.com>
28411
28412         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
28413
28414         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
28415         set -gnatR3m mode.
28416
28417         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
28418         flag. No longer needed now that we handle this in gnat1drv.adb.
28419
28420         * repinfo.ads: Minor reformatting
28421
28422 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28423             Olivier Hainque  <hainque@adacore.com>
28424             Eric Botcazou  <ebotcazou@adacore.com>
28425
28426         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
28427         TYPE_SIZE_UNIT of result type if SIZE is not specified.
28428         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
28429         of a bitfield, which we know is useless and causes trouble because of
28430         alignment implications.
28431
28432         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
28433         BSS sections.
28434         (process_attributes): Clear DECL_COMMON again when a section attribute
28435         is present.
28436         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
28437         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
28438         (create_field_decl): Special case ADDRESSABLE negative to mean
28439         "no bitfield creation", to be used by make_aligning_type. Don't
28440         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
28441         fields claimed addressable still have to be bitfields. Use
28442         value_factor_p instead of a raw binop construction to check for the
28443         position's alignment.
28444
28445 2004-12-07  Geert Bosch  <bosch@adacore.com>
28446
28447         * eval_fat.adb: Revert previous change.
28448
28449 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28450             Ed Schonberg  <schonberg@adacore.com>
28451
28452         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
28453         with an implicit dereference as its prefix, use
28454         Insert_Explicit_Dereference instead of merely rewriting the prefix into
28455         an explicit dereference. This ensures that a reference to the original
28456         prefix is generated, if appropriate.
28457
28458         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
28459         dereference is rewritten to an explicit one, generate a reference to
28460         the entity denoted by its prefix using the original prefix node, so
28461         the dereference can be properly recorded as a read of the denoted
28462         access value, if appropriate.
28463
28464         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
28465         emitting 'assigned but never read' warning on a variable on the basis
28466         that it has an access type.
28467         (Check_References): Emit unreferenced warning when the scope is a
28468         subprogram body.
28469
28470 2004-12-07  Robert Dewar  <dewar@adacore.com>
28471             Ed Schonberg  <schonberg@adacore.com>
28472
28473         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
28474         intrinsic
28475
28476         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
28477         leaving call unchanged.
28478         This deals with the case where the pragma Import specified
28479         an external name, to be handled by the back end.
28480
28481         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
28482         subprogram which is Imported with convention Intrinsic if an
28483         External_Name argument is specified.
28484         (Process_Import_Or_Interface): Properly diagnose link name argument.
28485         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
28486         with Sem_Ch6.Cannot_Inline.
28487         (Process_Inline): Provide separate warning for inapplicable inline
28488         pragma.
28489         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
28490         treatment is uniform on different targets.
28491
28492 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28493
28494         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
28495         construct is rewritten, preserve end label to permit source navigation.
28496
28497 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28498
28499         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
28500         Specific_Build_Stub_Target): New subprograms.
28501         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
28502         the PCS implementation used, using the above PCS-customized subprograms.
28503         Minor reformatting.
28504         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
28505         for generation of DSA code targeted to the PolyORB PCS.
28506         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
28507         implementation of the partition communication subsystem in ancillary
28508         subprograms.
28509         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
28510         PolyORB_Support.Build_Stub_Type): New subrograms containing the
28511         PCS-specific part of Add_Stub_Type.
28512         (Insert_Partition_Check): Use runtime library function to perform
28513         E.4(19) check.
28514
28515         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
28516         (RE_Same_Partition): New entity, from s-parint.
28517
28518         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
28519
28520 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28521
28522         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
28523         Output the copyright message on a separate line from the version
28524         message.
28525
28526 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
28527
28528         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
28529         compile-time warning.
28530
28531 2004-12-07  Robert Dewar  <dewar@adacore.com>
28532
28533         * g-regpat.adb: (Match): Change a misuse of or to or else
28534
28535 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28536
28537         * lib-xref.adb:
28538         (Generate_Reference): Handle properly a reference to an entry formal,
28539          when an accept statement has a pragma Unreferenced for it.
28540
28541         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
28542         and the Has_Pragma_Unreferenced flag for each formal before analyzing
28543         the body, to ensure that warnings are properly emitted for each accept
28544         statement of a given task entry.
28545
28546 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
28547
28548         * Makefile.in: Add support for foreign threads on VMS.
28549
28550 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28551
28552         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
28553         Remove.
28554         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
28555
28556         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
28557
28558         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
28559         exception.
28560         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
28561
28562 2004-12-07  Robert Dewar  <dewar@adacore.com>
28563
28564         * nlists.adb (Prepend_Debug): Remove parameters and nest within
28565         Prepend.
28566         (Remove_Next_Debug): Same fix
28567
28568         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
28569         maintain back pointers now, though we did not used to, and comments
28570         were out of date).
28571         (Prepend): Remove pragma Inline.
28572         (Remove_Next): Same cleanup
28573
28574 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28575
28576         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
28577         used to record an implicit dereference as a read operation on its
28578         prefix when operating under -gnatc. Necessary to avoid spurious
28579         'variable assigned but never read' warnings in that mode.
28580         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
28581         is a non-overloaded implicit dereference, call the above subprogram to
28582         ensure proper recording of references.
28583
28584 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28585
28586         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
28587         to be resolved later as part of Analyze_Iteration_Scheme's call to
28588         Make_Index.
28589
28590 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28591
28592         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
28593         prefix is not a scalar type, place error message on prefix, not on
28594         type entity.
28595
28596 2004-12-07  Bernard Banner  <banner@adacore.com>
28597
28598         * vxaddr2line.adb: Add support for x86 vxworks
28599
28600 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28601
28602         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
28603         documentation of the behaviour of these functions when passed an IP
28604         address that has no record in the system hosts database and no reverse
28605         record in the DNS.
28606
28607         * cstand.adb, a-tags.ads: Fix typos in comment.
28608
28609 2004-12-07  Robert Dewar  <dewar@adacore.com>
28610
28611         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
28612         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
28613         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
28614         s-poosiz.ads: Minor reformatting
28615
28616         * make.adb: Minor reformatting
28617         Add some ??? comments asking for more comments
28618
28619         * s-poosiz.adb: Minor reformatting
28620         Add comments on alignment requirement
28621
28622         * sinfo.ads: Remove obsolete comment and fix typo.
28623
28624 2004-12-07  Vincent Celier  <celier@adacore.com>
28625             Sergey Rybin  <rybin@adacore.com>
28626
28627         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
28628         Files" with the new tool and package names.
28629         Reformatting to suppress most of the warnings for line too long
28630         Document the new section "Project Search Path:" in the output of
28631         gnatls -v.
28632         Add gnatmetric section
28633
28634 2004-12-07  Vincent Celier  <celier@adacore.com>
28635
28636         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
28637         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
28638         and -eit to -ept. Added qualifier
28639         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
28640
28641 2004-11-27  Andreas Schwab  <schwab@suse.de>
28642
28643         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
28644
28645 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28646
28647         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
28648         internal implementation unit GNAT.Sockets.Thin,
28649         as their usage for sockets is non-portable (using the read and write
28650         functions from the system runtime library is fine on UNIX but won't
28651         work under Windows).
28652
28653         * mingw32.h: Update copyright notice.
28654
28655 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28656
28657         * ada-tree.h: Minor reformatting of previous change to avoid lines
28658         longer than 79 characters.
28659
28660 2004-11-25  Olivier Hainque  <hainque@adacore.com>
28661
28662         * tb-gcc.c: GCC infrastructure based implementation of
28663         __gnat_backtrace.
28664
28665 2004-11-24  Steven Bosscher  <stevenb@suse.de>
28666
28667         * misc.c (gnat_post_options): Don't clear
28668         flag_inline_functions.
28669
28670 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
28671
28672         PR ada/17986
28673         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
28674         tree.
28675
28676 2004-11-21  Andreas Jaeger  <aj@suse.de>
28677
28678         * stylesw.adb: Change Style_Check_Subprogram_Order to
28679         Style_Check_Order_Subprograms.
28680
28681 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
28682
28683         * adaint.h, adaint.c
28684         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
28685         to avoid warnings.
28686         Add also a cast to kill another warning.
28687         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
28688         parameter with the priority class of the parent process instead of
28689         always using the NORMAL_PRIORITY_CLASS.
28690         (__gnat_dup): New function.
28691         (__gnat_dup2): New function.
28692         (__gnat_is_symbolic_link): Enable the effective body of this
28693         function when __APPLE__ is defined.
28694
28695         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
28696         Update comments.
28697
28698 2004-11-18  Olivier Hainque  <hainque@adacore.com>
28699
28700         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
28701         address of which may be used to represent "others" and "all others"
28702         choices in exception tables, instead of the current harcoded
28703         (void *)0 and (void *)1.
28704         (Setup_Exception): Do nothing in the GNAT SJLJ case.
28705
28706         * gigi.h (others_decl, all_others_decl): New decls representing the
28707         new Others_Value and All_Others_Value objects.
28708         (struct attrib): Rename "arg" component as "args", since GCC expects a
28709         list of arguments in there.
28710
28711         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
28712         corresponding objects exported by a-exexpr, instead of hardcoded dummy
28713         addresses.
28714
28715         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
28716         others_decl and all_others_decl instead of hardcoded dummy addresses
28717         to represent "others" and "all others" choices, which is cleaner and
28718         more flexible with respect to the possible eh pointer encoding policies.
28719
28720         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
28721         (process_attributes): Account for the naming change of the "args"
28722         attribute list entry component.
28723
28724         * decl.c (build_attr_list): Rename into prepend_attributes to allow
28725         cumulating attributes for different entities into a single list.
28726         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
28727         attributes for the current entity and propagate first subtype
28728         attributes to other subtypes.
28729         <E_Procedure>: Attribute arguments are attr->args and not
28730         attr->arg any more.
28731         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
28732         argument provided, as this is what GCC expects. Use NULL_TREE instead
28733         of 0 for trees.
28734
28735 2004-11-18  Robert Dewar  <dewar@adacore.com>
28736
28737         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
28738         Minor reformatting througout (including new function specs)
28739         Add ??? comments asking for clarification.
28740
28741 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28742
28743         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
28744         incomplete duplicate implementation of this subprogram from butil.
28745
28746 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28747
28748         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
28749         procedures factors the common processing for building an RPC receiver
28750         for an RCI package or an RACW type.
28751         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
28752         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
28753         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
28754         in use.
28755         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
28756         Add_RACW_Features.
28757         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
28758         Add_RAST_Features.
28759         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
28760         distribution subprogram identifiers that are either subprogram numbers
28761         or strings.
28762         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
28763         string distribution identifiers assigned to a given subprogram.
28764         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
28765         (Add_RAS_Dereference_TSS): Add comments.
28766         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
28767         is not referenced yet because it will be used by the PolyORB DSA
28768         implementation.
28769         (Insert_Partition_Check): Remove fossile code.
28770         (First_RCI_Subprogram_Id): Document this constant.
28771         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
28772         RAS_Access TSS.
28773         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
28774         replaced with calls to Get_Library_Unit_Name_String. Previously there
28775         were several instances of the same code in different locations in the
28776         compiler; this checkin completes the replacement of all of these
28777         instances with calls to a common subprogram.
28778         Minor reformatting.
28779
28780         * sem_dist.adb: Remove comment noting that RPC receiver generation
28781         should be disabled for RACWs that implement RASs.
28782         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
28783
28784         * sem_util.ads, sem_util.adb (Has_Stream): New function
28785         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
28786         qualified name of a library unit into the name buffer.
28787         (Note_Possible_Modification): Generate a reference only
28788         if the context comes from source.
28789
28790         * snames.ads (PCS_Names): New subtype corresponding to names of
28791         supported implementations of the Partition Communication Subsystem
28792         (PCS) (i.e. the runtime library support modules for the distributed
28793         systems annex).
28794
28795 2004-11-18  Robert Dewar  <dewar@adacore.com>
28796             Ed Schonberg  <schonberg@adacore.com>
28797
28798         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
28799         (Has_Rep_Pragma): New function
28800         (Has_Attribute_Definition_Clause): New function
28801         (Record_Rep_Pragma): Moved here from sem_ch13.adb
28802         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
28803
28804         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
28805
28806         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
28807         (Expand_Pragma_Psect_Object): New procedure
28808         These procedures contain the revised and cleaned up processing for
28809         these two pragmas. This processing was formerly in Sem_Prag, but
28810         is more appropriately moved here. The cleanup involves making sure
28811         that the pragmas are properly attached to the tree, and that no
28812         nodes are improperly shared.
28813
28814         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
28815         pragmas to Exp_Prag, which is more appropriate.
28816         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
28817         check for duplicates Remove use of Is_Psected flag, no longer needed.
28818         Use new Make_String_Literal function with string.
28819
28820         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
28821         that are functions return universal values, that have to be converted
28822         to the context type.
28823         Use new Make_String_Literal function with string.
28824         (Get_Stream_Convert_Pragma): New function, replaces the use of
28825         Get_Rep_Pragma, which had to be kludged to work in this case.
28826
28827         * freeze.adb: Use new Has_Rep_Pragma function
28828
28829         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
28830         function with string.
28831         Use new Has_Rep_Pragma function.
28832
28833         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
28834         string argument.
28835
28836 2004-11-18  Robert Dewar  <dewar@adacore.com>
28837
28838         * errout.ads, errout.adb: (First_Sloc): New function
28839
28840         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
28841         check (-gnatyx) instead of being included as a redundant construct
28842         warning.
28843
28844         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28845         Style_Check_Order_Subprograms.
28846
28847         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28848         stylesw.adb: Add Style_Check_Xtra_Parens
28849
28850         * usage.adb: Add line for -gnatyx (check extra parens)
28851
28852         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28853
28854 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28855             Robert Dewar  <dewar@adacore.com>
28856
28857         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28858         discriminant of a constrained subtype, analyze the copy of the
28859         corresponding constraint, because in some cases it may be only
28860         partially analyzed.
28861         Removes long-lived ??? comments.
28862
28863         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28864         handled controlled or secondary-stack expressions within the
28865         iteration_scheme of a loop.
28866
28867         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28868         bounds that may contain functions calls, to prevent memory leaks when
28869         the bound contains a call to a function that uses the secondary stack.
28870         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28871         generate temporaries for loop bounds that might contain function calls
28872         that require secondary stack and/or finalization actions.
28873
28874         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28875         selected component and the selector is overloadable (not just a
28876         function) treat as function call, Analyze_Call will disambiguate if
28877         necessary.
28878         (Analyze_Selected_Component): Do not generate an actual subtype for the
28879         selected component if expansion is disabled. The actual subtype is only
28880         needed for constraint checks.
28881         (Analyze_Allocator): If restriction No_Streams is set, then do
28882         not permit objects to be declared of a stream type, or of a
28883         composite type containing a stream.
28884
28885         * restrict.ads: Remove the a-stream entry from Unit_Array, since
28886         No_Streams no longer prohibits with'ing this package.
28887
28888         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28889         discriminants, but the parent base has unknown discriminants, there is
28890         no discriminant constraint to inherit. Such a discrepancy can arise
28891         when the actual for a formal type with unknown discriminants is a
28892         similar private type whose full view has discriminants.
28893         (Analyze_Object_Declaration): If restriction No_Streams is set, then
28894         do not permit objects to be declared of a stream type, or of a
28895         composite type containing a stream.
28896
28897 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28898
28899         * exp_dbug.ads: Update documentation to reflect simpler encoding for
28900         protected operations.
28901
28902         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28903         generated name, it complicates decoding in gdb and hinders debugging
28904         of protected operations.
28905         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28906         flag for the protected entry barrier function.
28907         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28908         flag for the protected entry function.
28909
28910 2004-11-18  Nicolas Setton  <setton@adacore.com>
28911
28912         * expect.c: Define __unix__ when __APPLE__ is defined.
28913
28914         * Makefile.in: Inform the value of the variable GMEM_LIB in the
28915         Darwin-specific section.
28916
28917         * lang-specs.h: Change the placement of the %1 marker.
28918         Works around the fact that gcc adds -fPIC by default under Darwin.
28919
28920 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28921
28922         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28923         type of the object with the packed array type, set the Analyzed flag
28924         on the object if it is an entity or simple indexed component, to avoid
28925         spurious type errors.
28926
28927 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
28928
28929         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28930         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28931         separate line from the version message.
28932
28933 2004-11-18  Ed Falis  <falis@adacore.com>
28934
28935         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28936         vthreads.
28937         (init_float): Eliminate initialization of floating point status for
28938         AE653. The instructions have no effect for vThreads.
28939
28940 2004-11-18  Vincent Celier  <celier@adacore.com>
28941
28942         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28943         gnatbind is invoked with -shared.
28944
28945 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
28946
28947         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28948         for Detect_Blocking which is redundant with the check done within the
28949         procedure Protected_Single_Entry_Call.
28950         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28951         Detect_Blocking which is redundant with the check done within the
28952         procedure Protected_Single_Entry_Call.
28953
28954 2004-11-18  Vincent Celier  <celier@adacore.com>
28955
28956         * makegpr.adb (Compile): Put the compiling switches (in package
28957         Compiler and on the command line) immediately after "-c", instead of
28958         at the end of the command line invocation of the compiler, when
28959         compiling a non-Ada file.
28960         (Build_Global_Archive): When there is no need to rebuild the archive,
28961         set Global_Archive_Exists, so that the archive is passed to the linker
28962         if one is needed.
28963
28964 2004-11-18  Robert Dewar  <dewar@adacore.com>
28965             Sergey Rybin  <rybin@adacore.com>
28966
28967         * gnat_ugn.texi:
28968         Remove extra paren check from list of checks for redundant constructs
28969         Add documentation of new -gnatyx style check (check extra parens)
28970         Remove paragraph about gnatelim debug options.
28971
28972         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28973         objects rather than forbidding dependencies on the package Ada.Streams.
28974
28975         * sinfo.ads: Add ??? note that we should document pragmas passed to
28976         back end.
28977
28978         * g-expect.ads: Fix a few typos in the comments.
28979
28980 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
28981
28982         * misc.c (gnat_handle_option): Use %< and %> for quoting in
28983         warning message.
28984
28985 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28986
28987         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28988
28989 2004-11-07  Andreas Schwab  <schwab@suse.de>
28990
28991         * Makefile.in (install-gnatlib): Remove spurious hyphen.
28992
28993 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
28994
28995         PR ada/18228
28996         * Makefile.in (darwin): Set soext to .dylib.
28997
28998 2004-10-26  Vincent Celier  <celier@gnat.com>
28999             Thomas Quinot   <quinot@act-europe.fr>
29000
29001         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29002         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29003         there is no use of GNAT.Sockets.Constants.
29004         Remove remaining pragma Import for C_Write
29005         Remove C_Read and C_Write from internal implementation unit
29006         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29007         the read and write functions from the system runtime library is fine
29008         on UNIX but won't work under Windows).
29009
29010         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29011         (Check_Selector): Use C_Recv instead of C_Read.
29012         Selectors are the GNAT.Sockets abstraction to perform a select()
29013         call on a set of descriptors. To allow abortion of an ongoing
29014         select operation, some data is written to a dedicated socket that
29015         is always monitored.
29016         Under Windows, the write and read library functions cannot operate
29017         on sockets, so we need to use send and recv instead, which is portable
29018         across all supported platforms.
29019
29020         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29021         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29022         (using the read and write functions from the system runtime library is
29023         fine on UNIX but won't work under Windows).
29024
29025 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
29026
29027         * mlib-tgt-darwin.adb: New file.
29028
29029         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29030         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29031         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29032         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29033         subprogram body.
29034
29035         * Makefile.in: Add support for building shared libraries under Darwin.
29036         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29037         the low level EH init subprogram to be called from __gnat_initialize.
29038
29039         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29040         indicates which options to pass to the archive indexer.
29041
29042         * mlib-utl.adb: Add support for calling ranlib with additional
29043         options. This is needed for instance under Mac OS X.
29044         (Ranlib_Options): New global variable, used to store the potential
29045         options to pass to ranlib.
29046         (Ar): Use Ranlib_Options when spawning ranlib.
29047         (Initialize): Set the value of ranlib option.
29048
29049 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29050
29051         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29052         instead of 8K, to reflect the real potential needs for stack-checking
29053         in the ZCX case.
29054
29055 2004-10-26  Pascal Obry  <obry@gnat.com>
29056
29057         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29058
29059         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29060         Windows only the initial thread stack size can be set so it is good to
29061         start we a low stack size.
29062         The OS will adjust the size as needed.
29063
29064 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
29065             Nicolas Setton  <setton@act-europe.fr>
29066
29067         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29068         "__unix__" instead of "unix".
29069         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29070         sections were just mistakenly ignored. The former is
29071         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29072         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29073         of hpux. This prevents an unwanted definition of the symbol
29074         convert_addresses in adaint.o.
29075
29076 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29077
29078         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29079         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29080
29081 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29082
29083         * a-filico.ads, a-filico.adb: fix incorrect header.
29084
29085 2004-10-26  Javier Miranda  <miranda@gnat.com>
29086
29087         * a-ststio.ads: Fix typo in identifier
29088
29089 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29090
29091         * sem_ch4.adb: Minor reformatting.
29092
29093 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29094
29095         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29096         enabled, check the result of unary and binary operations when the
29097         expression is the right-hand side of an assignment.
29098
29099 2004-10-26  Vincent Celier  <celier@gnat.com>
29100
29101         * clean.adb (Delete): Do not output warnings when in quiet output and
29102         not in verbose mode.
29103         (Force_Deletions): New Boolean flag, defaulted to False
29104         (Delete): Only delete a file if it is writable, and when
29105         Force_Deletions is True.
29106         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29107         (Usage): Line for new switch -f
29108         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29109         own.
29110
29111 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29112
29113         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29114         JM type only if its size matches that of the wrapper.  When a size is
29115         prescribed and the field is not aliased, remove the wrapper of a JM
29116         type only if the size is not greater than that of the packed array.
29117         (gnat_to_gnu_entity): Change the extension of packed array wrappers
29118         from LJM to JM.
29119
29120 2004-10-26  Geert Bosch  <bosch@gnat.com>
29121
29122         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29123         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29124         (Pred): Implement in terms of Succ.
29125
29126 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29127
29128         * exp_aggr.adb (Safe_Component): An aggregate component that is an
29129         unchecked conversion is safe for in-place use if the expression of the
29130         conversion is safe.
29131         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29132         be expandable in place even if the aggregate does not come from source.
29133         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29134         designated object of an allocator in place, rather than building it
29135         first on the stack. The previous scheme forces a full copy of the array,
29136         and may be altogether unsusable if the size of the array is too large
29137         for stack allocation.
29138
29139 2004-10-26  Robert Dewar  <dewar@gnat.com>
29140
29141         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29142         compares if the component is atomic.
29143
29144         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29145         array assignment if the component type is atomic.
29146
29147 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29148             Eric Botcazou  <ebotcazou@act-europe.fr>
29149
29150         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29151         is aliased and is a by_reference type, do not pass by copy.
29152         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29153         detect whether the call is in the right side of an assignment or
29154         the expression of an object declaration.  Recurse on component
29155         association within aggregates.
29156         Call it in the condition that determines whether the temporary is
29157         necessary for correct stack-checking.
29158
29159 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29160
29161         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29162         RACW_Type, used in the PolyORB version.
29163         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29164         version and the GARLIC version.
29165
29166         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29167         Rename RCI_Info to RCI_Locator for better consistency between the
29168         GARLIC and PolyORB versions of the distributed systems annex.
29169         (DSA_Implementation_Name): This enumeration lists the possible
29170         implementations of the Partition Communication Subsystem for the
29171         Distributed Systems Annex (DSA). The three available implementations
29172         are the dummy stub implementation (No_DSA), and two versions based on
29173         two different distribution runtime libraries: GARLIC and PolyORB. Both
29174         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29175         technology.
29176         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29177         that organization.
29178
29179         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29180         between the GARLIC and PolyORB versions of the distributed systems
29181         annex.
29182         Remove RE_Unbounded_Reclaim_Pool since it is unused.
29183
29184 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29185
29186         * gnat1drv.adb: Suppress calling the back end when
29187         Frontend_Layout_On_Target is true.
29188
29189 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29190
29191         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29192         Set_Read_Only): New subprograms.
29193         These new routines allow the user to set or unset the Owner execute
29194         and Owner write permission flags on a file.
29195
29196         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29197         GNAT.OS_Lib.Set_Executable instead of rolling our own.
29198
29199 2004-10-26  Matthew Gingell  <gingell@gnat.com>
29200
29201         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29202
29203 2004-10-26  Pascal Obry  <obry@gnat.com>
29204
29205         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29206         memory before the faulting page we properly test the process read
29207         access for this address using appropriate Win32 routine.
29208         (HPUX sections): guard with "__hpux__" instead of "hpux".
29209
29210 2004-10-26  Robert Dewar  <dewar@gnat.com>
29211
29212         * lib-xref.adb (Generate_Reference): Don't complain about reference to
29213         entry parameter if pragma Unreferenced set, since we do not properly
29214         handle the case of multiple parameters.
29215
29216 2004-10-26  Vincent Celier  <celier@gnat.com>
29217
29218         * prj-env.adb: (Contains_ALI_Files): New Boolean function
29219         (Ada_Objects_Path.Add): For a library project, add to the object path
29220         the library directory only if there is no object directory or if the
29221         library directory contains ALI files.
29222         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29223
29224 2004-10-26  Vincent Celier  <celier@gnat.com>
29225
29226         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29227         extension of library projects.
29228
29229         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29230         path defaults to ".:<prefix>/lib/gnat".
29231         (Parse): For an extending all project, allow direct import of a project
29232         that is virtually extended.
29233
29234         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29235         the specified name is directly imported, return its ID. Otherwise, if
29236         an extension of this project is imported, return the ID of the
29237         extension.
29238
29239 2004-10-26  Robert Dewar  <dewar@gnat.com>
29240
29241         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29242         (Sub3): New procedure, used by Scaled_Divide
29243         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29244         correct more than one instance of failure to propagate carries
29245         correctly.
29246         (Double_Divide): Handle overflow case of largest negative number
29247         divided by minus one.
29248
29249         * s-arit64.ads (Double_Divide): Document that overflow can occur in
29250         the case of a quotient value out of range.
29251         Fix comments.
29252
29253 2004-10-26  Robert Dewar  <dewar@gnat.com>
29254
29255         * s-bitops.adb (Bit_Eq): Remove redundant check.
29256
29257         * s-bitops.ads: Minor comment updates
29258         Change some occurrences of Address to System.Address
29259
29260         * s-carsi8.ads: Fix minor cut-and-paste error in comments
29261
29262 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29263
29264         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29265         accessibility check to prefix that is a protected operation.
29266
29267 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29268
29269         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29270         empty, post message on stub.
29271
29272 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29273             Javier Miranda  <miranda@gnat.com>
29274
29275         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29276         current instance appears within a unit that is directly in the context
29277         of the main unit.
29278         Used to determine whether the body of the instance should be analyzed
29279         immediately after its spec, to make its subprogram bodies available
29280         for front-end inlining.
29281         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29282         constraint is not allowed on the component type (AARM 12.5.3(3))
29283
29284 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29285
29286         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29287         'Storage_Pool): enhance, document & limit detection of non-sharable
29288         internal pools.
29289
29290         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
29291
29292         * s-pooglo.ads: Add more documentation now that this pool is properly
29293         documented.
29294
29295 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29296
29297         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
29298         or protected type with discriminants, do not constrain the
29299         corresponding record type if the subtype declaration has no
29300         discriminant constraints. This can be the case in source code, or in
29301         the subtype declaration created to rename an actual type within an
29302         instantiation.
29303
29304 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29305
29306         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
29307         different kind of stub (possibly wrong name for file), do not check
29308         for conformance.
29309         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
29310         includes call to some function that returns an unconstrained type, do
29311         not inline.
29312
29313 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29314
29315         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
29316         appear in the code for the main unit. Dependencies among units in the
29317         context of the main unit are established when those other units are
29318         compiled. Otherwise spurious elaboration constraints can generate
29319         incorrect elaboration circularities.
29320
29321 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29322             Ed Schonberg   <schonberg@gnat.com>
29323
29324         * sem_util.adb (Is_Aliased_View): Defend against the case where this
29325         subprogram is called with a parameter that is not an object name. This
29326         situation arises for some cases of illegal code, which is diagnosed
29327         later, and in this case it is wrong to call Is_Aliased, as that might
29328         cause a compiler crash.
29329         (Explain_Limited_Type): Refine previous fix to include
29330         inherited components of derived types, to provide complete information.
29331
29332         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
29333         is the prival for a protected object.
29334         It is necessary to mark this entity as a variable, in addition to
29335         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
29336         modified to avoid checking the Aliased flag on entities that are not
29337         objects. (Checking that flag for non-objects is erroneous and could
29338         lead to a compiler crash).
29339
29340 2004-10-26  Robert Dewar  <dewar@gnat.com>
29341
29342         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
29343         X_Frac = 0.5, then we know that the number X must be positive.
29344         (Succ): Remove the same redundant test, and also fix the primary test
29345         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
29346         Minor reformatting
29347         (Decompose): Add fuller comments to spec
29348
29349 2004-10-26  Pascal Obry  <obry@gnat.com>
29350
29351         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
29352         validity (process must have read access). Set to 0 in all other cases.
29353         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
29354         violation on Win32.
29355         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
29356         segmentation violation.
29357
29358 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29359
29360         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
29361         whose type is a constructed subtype of an aliased object with an
29362         unconstrained nominal subtype, convert the actual to the constructed
29363         subtype before taking its address.
29364
29365 2004-10-26  Vincent Celier  <celier@gnat.com>
29366
29367         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
29368         (Is_Path_Name_Case_Sensitive): New function
29369
29370         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
29371         (Base_Name, Simple_Name, Current_Directory, Compose,
29372         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
29373         the result.
29374
29375 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
29376             Vasiliy Fofanov  <fofanov@act-europe.fr>
29377             Vincent Celier   <celier@gnat.com>
29378
29379         * gnat_ugn.texi: Generalize "finding memory problems" section into a
29380         "memory management issues" section and document some of the useful
29381         memory pools provided as part of the GNAT library.
29382         Remove "virtual" from declaration of A::method2 in
29383         the simple example of Ada/C++ mixed system.
29384         Library Projects may be virtually extended: their virtual extensions
29385         are not Library Projects.
29386         Added section on extending project hierarchies.
29387
29388 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
29389
29390         * adaint.c (__gnat_get_libraries_from_registry): Cast value
29391         to LPBYTE.
29392         (__gnat_portable_spawn): Remove const.
29393
29394         * mingw32.h (MAXPATHLEN): Check for previous definition.
29395
29396 2004-10-17  Matthias Klose  <doko@debian.org>
29397
29398         * gnatvsn.ads: Set gnat library version to 4.0.
29399
29400 2004-10-05  Vincent Celier  <celier@gnat.com>
29401
29402         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
29403
29404 2004-10-04  Laurent Guerby  <laurent@guerby.net>
29405
29406         PR ada/15156
29407         * Makefile.in: Define and use RANLIB_FLAGS.
29408
29409 2004-10-04  Pascal Obry  <obry@gnat.com>
29410
29411         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
29412         other x86 platforms).
29413
29414 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
29415
29416         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
29417         in general and triggers stack alignment adjustment for thread entry
29418         points on targets where this is necessary.
29419
29420 2004-10-04  Bernard Banner  <banner@gnat.com>
29421
29422         PR ada/13897
29423         * Makefile.in: Add section for powerpc linux
29424         Add variant i-vxwork-x86.ads
29425
29426         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
29427
29428 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
29429
29430         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
29431         table registration calls when need be. Ensures no reference to the crt
29432         ctors symbol are issued in the SJLJ case, which avoids possible
29433         undefined symbol errors in the case of modules to be statically linked
29434         with the kernel.
29435
29436 2004-10-04  Javier Miranda  <miranda@gnat.com>
29437
29438         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
29439         in-line the code corresponding to subprogram Analyze_Actuals. In
29440         addition, analyze the actuals only in case of subprogram call.
29441
29442 2004-10-04  Ed Falis  <falis@gnat.com>
29443
29444         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
29445
29446 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
29447
29448         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
29449         in the documentation.
29450
29451 2004-10-04  Robert Dewar  <dewar@gnat.com>
29452
29453         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
29454         IF and CASE.
29455         (Analyze_Block_Statement): Add circuitry to detect following dead code
29456         (Check_Unreachable_Code): Handle case of block exit
29457
29458 2004-10-04  Robert Dewar  <dewar@gnat.com>
29459
29460         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
29461         (XMatchD): Avoid warning for Logic_Error call
29462
29463 2004-10-04  Robert Dewar  <dewar@gnat.com>
29464
29465         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
29466         consider expressions buried within a procedure actual to be an actual.
29467         This caused some blowups with uses of packed slices within a procedure
29468         actual.
29469
29470 2004-10-04  Robert Dewar  <dewar@gnat.com>
29471
29472         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
29473         longer need to be initialized to zero.
29474         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
29475         initialized to zero.
29476
29477         * checks.adb (Expr_Known_Valid): Packed arrays are now always
29478         considered valid, even if the representation is modular. That's correct
29479         now that we no longer initialize packed modular arrays to zero.
29480
29481         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
29482         suffixes. These are now documented as the only cases in which the
29483         debugger ignores outer records.
29484         Previously, the spec allowed arbitrary suffixes for this purpose.
29485         Change name of LJM to JM for packed array pad records
29486         Create separate section on packed array handling, and add a whole new
29487         set of comments to this section describing the situation with packed
29488         modular types and justification requirements depending on endianness.
29489
29490 2004-10-04  Robert Dewar  <dewar@gnat.com>
29491
29492         * a-except.adb: Add a comment for last change
29493
29494         * einfo.ads: Minor spelling correction in comment
29495
29496         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
29497
29498         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
29499         messages.
29500
29501         * sem_util.ads: Minor comment update
29502
29503 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29504
29505         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
29506         Inline_Always when in Configurable_Run_Time mode.
29507
29508         * sem_prag.adb (Process_Convention): If entity is an inherited
29509         subprogram, apply convention to parent subprogram if in same scope.
29510         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
29511         when in Configurable_Run_Time mode.
29512
29513 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29514
29515         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
29516         class_wide type after component list has been inherited.
29517
29518 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29519
29520         * sem_ch12.adb (Check_Generic_Actuals): New predicate
29521         Denotes_Previous_Actual, to handle properly the case of a private
29522         actual that is also the component type of a subsequent array actual.
29523         The visibility status of the first actual is not affected when the
29524         second is installed.
29525         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
29526         make fully recursive the treatment of formals of packages declared
29527         with a box.
29528         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
29529         the above on exit from an instantiation.
29530         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
29531         current instantiation which is now complete.
29532         (Analyze_Package_Instantiation): No instantiated body is needed if the
29533         main unit is generic. Efficient, and avoid anomalies when a instance
29534         appears in a package accessed through rtsfind.
29535
29536 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29537
29538         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
29539         do not generate a declaration for a temporary if the call is part of a
29540         library-level instantiation.
29541
29542 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29543
29544         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
29545         searching for a limited component to flag.
29546
29547         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
29548         expansion of Input, to account for the fact that the implicit call
29549         generated by the attribute reference must freeze the user-defined
29550         stream subprogram. This is only relevant to 'Input, because it can
29551         appear in an object declaration, prior to the body of the subprogram.
29552
29553         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
29554         expansion can proceed and further errors uncovered.
29555         (Minor clean up): Fix cases of using | instead of \ for continuation
29556         messages.
29557
29558 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29559
29560         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
29561
29562         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
29563         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
29564         Use gcc_assert and gcc_unreachable.
29565
29566         * decl.c (gnat_to_gnu_entity, case object): Check and process a
29567         specified alignment before validating size.
29568         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
29569         stripped-down declaration for the type of the inner field when making
29570         a JM type.
29571
29572         * utils.c (finish_record_type): Do not compute the size in units
29573         incrementally. Instead compute it once for the rep clause case.
29574         Use gcc_assert and gcc_unreachable.
29575
29576 2004-10-04  Vincent Celier  <celier@gnat.com>
29577
29578         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
29579         in file name.
29580         (Is_Valid_Path_Name): Take '/' as a directory separator.
29581
29582 2004-10-04  Vincent Celier  <celier@gnat.com>
29583
29584         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
29585         (Extended_Project) only if Extended_Project is defined, to avoid
29586         assertion error.
29587         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
29588         resolved path.
29589         (Parse_Single_Project): Ditto.
29590
29591         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
29592         Add_To_Project_Path for virtual projects.
29593
29594 2004-10-04  Vincent Celier  <celier@gnat.com>
29595
29596         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29597         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29598         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
29599         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
29600         parameter Options_2.
29601
29602         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
29603         Build_Dynamic_Library with an empty Options_2.
29604
29605         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
29606         default anymore.
29607
29608         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
29609         directory separator, if any.
29610         (Gprmake): Do not allow mains on the command line for library projects.
29611         Do not attempt to link when the project is a library project.
29612         (Library_Opts): New table to store Library_Options.
29613         (Build_Library): If Library_Options is specified, pass these options
29614         when building a shared library.
29615
29616 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
29617
29618         * s-tposen.adb (Service_Entry): The object must be always unlocked at
29619         the end of this procedure now that the unlock operation was inserted
29620         by the expander.
29621
29622 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
29623
29624         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
29625         corresponding to the Preallocated_Stacks flags in System.
29626         (Get_Target_Parameters): Including the processing for
29627         Preallocated_Stacks.
29628
29629         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
29630         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
29631         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29632         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
29633         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
29634         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
29635         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
29636         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
29637         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
29638         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
29639         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
29640         used to signal whether the compiler creates the required stacks and
29641         descriptors for the different tasks (when True) or it is done by the
29642         underlying operating system at run time (when False).
29643         It is initially set to False in all targets.
29644
29645         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
29646         if it is supported by the target.
29647         (Make_Task_Create_Call): Pass the stack address if it has been
29648         previously created. Otherwise pass a Null_Address.
29649
29650         * snames.adb: Add _stack.
29651
29652         * snames.ads: Add Name_uStack. Required to allow the expander to
29653         statically allocated task stacks.
29654
29655         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
29656         Stack_Address argument.
29657         Check that its value is equal to Null_Address because this target does
29658         not support the static stack allocation.
29659
29660 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29661
29662         * usage.adb: Change "pragma inline" to "pragma Inline" in information
29663         and error messages
29664
29665 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29666
29667         * exp_dist.adb: Split declaration of asynchronous flag out of
29668         Add_RACW_Read_Attribute.
29669         Minor reformatting for better alignment with PolyORB version.
29670         Store the entity for the asynchronous flag of an RACW, rather than the
29671         expression, in the asynchronous flags table. This will allow this flag
29672         to be used in other subprograms beside Add_RACW_Read_Attribute.
29673
29674 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29675
29676         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
29677         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29678         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
29679         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
29680         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
29681         sockets constant MSG_NOSIGNAL (Linux-specific).
29682         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
29683         all Send operations.
29684         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
29685         from trigerring SIGPIPE.
29686         Rename components to avoid clash with Ada 2005 possible reserved
29687         word 'interface'.
29688         (Check_Selector): When the select system call returns with an error
29689         condition, propagate Socket_Error to the caller.
29690
29691 2004-10-01  Jan Hubicka  <jh@suse.cz>
29692
29693         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
29694
29695 2004-09-23  Robert Dewar  <dewar@gnat.com>
29696
29697         PR ada/17540
29698         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
29699         instead do this at freeze time (we won't do it if there is an address
29700         clause).
29701         Change "pragma inline" to "pragma Inline" in information and error
29702         messages.
29703         Minor reformatting.
29704
29705         * freeze.adb (Check_Address_Clause): Remove previous change, not the
29706         right way of doing things after all.
29707         (Freeze_Entity): For object, set Is_Public for imported entities
29708         unless there is an address clause present.
29709
29710 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
29711
29712         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
29713         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
29714         ensures proper handling of types with rep clauses, which might have
29715         their TYPE_SIZE set already.
29716
29717 2004-09-21  Robert Dewar  <dewar@gnat.com>
29718
29719         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
29720         packed array types in both little- and big-endian cases. This change
29721         ensures that we no longer count on the unused bits being initialized
29722         for such types (and in particular ensures that equality testing will
29723         only read the relevant bits).
29724         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29725         These changes mean that we no longer need to initialize small packed
29726         arrays.
29727         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
29728         optimization to an LJM field as to its parent field.
29729
29730         * ada-tree.h, trans.c, utils.c, utils2.c:
29731         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29732
29733 2004-09-20  Jan Hubicka  <jh@suse.cz>
29734
29735         * utils.c (gnat_finalize): Remove.
29736         (end_subprog_body): Directly call cgraph_finalize_function;
29737         do not lower the nested functions.
29738
29739 2004-09-20  Robert Dewar  <dewar@gnat.com>
29740
29741         PR ada/17540
29742         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
29743         if an address clause is present, since that means that the Import
29744         should be ignored.
29745
29746 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
29747
29748         * 5tsystem.ads: Removed, no longer used.
29749
29750 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
29751             Zack Weinberg  <zack@codesourcery.com>
29752
29753         * ada-tree.def: Use tree_code_class enumeration constants
29754         instead of code letters.
29755         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
29756         Update for new tree-class enumeration constants.
29757
29758 2004-09-17  Vincent Celier  <celier@gnat.com>
29759
29760         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
29761         capabilities of the general project manager.
29762
29763 2004-09-09  Vincent Celier  <celier@gnat.com>
29764
29765         * a-direct.ads: Add pragma Ada_05
29766         (Directory_Entry_Type): Give default value to component Kind to avoid
29767         not initialized warnings.
29768
29769         * a-direct.adb (Current_Directory): Remove directory separator at the
29770         end.
29771         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
29772         an existing directory.
29773         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
29774         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
29775         Convert the result to File_Size.
29776
29777         * prj.ads: (Project_Error): New exception
29778
29779         * prj-attr.adb: Except in procedure Initialize, Fail comes from
29780         Prj.Com, not from Osint.
29781         (Attrs, Package_Attributes): Tables moved to private part of spec
29782         (Add_Attribute, Add_Unknown_Package): Moved to new child package
29783         Prj.Attr.PM.
29784         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
29785         Prj.Project_Error after call to Fail.
29786         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
29787         Fail. Check that package name is not already in use.
29788
29789         * prj-attr.ads: Comment updates to indicate that all subprograms may be
29790         used by tools, not only by the project manager, and to indicate that
29791         exception Prj.Prj_Error may be raised in case of problem.
29792         (Add_Unknown_Package, Add_Attribute): Moved to new child package
29793         Prj.Attr.PM.
29794         (Attrs, Package_Attributes): Table instantiations moved from the body to
29795         the private part to be accessible from Prj.Attr.PM body.
29796
29797         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
29798         from new package Prj.Attr.PM.
29799         (Parse_Attribute_Declaration): Call Add_Attribute from new package
29800         Prj.Attr.PM.
29801
29802         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
29803
29804         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
29805         instead of Elaboration_Checks).
29806
29807         * a-calend.adb: Minor reformatting
29808
29809 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29810
29811         * gigi.h (maybe_pad_type): New declaration.
29812         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
29813
29814         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
29815
29816         * cuintp.c: Convert to use buildN.
29817
29818         * decl.c (maybe_pad_type): No longer static.
29819         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
29820         target pointer.
29821         Convert to use buildN.
29822
29823         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
29824         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
29825         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
29826         RHS.
29827         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
29828         (gnat_gimplify_expr, case ADDR_EXPR): New case.
29829         Convert to use buildN.
29830
29831         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
29832         TREE_READONLY for const.
29833         Convert to use buildN.
29834
29835         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
29836         (create_var_decl): Refine when TREE_STATIC is set.
29837         Convert to use buildN.
29838
29839 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
29840
29841         * gnat_ugn.texi: Delete text relating to checking of ali and object
29842         consistency.
29843
29844         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29845         routines.
29846
29847 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
29848
29849         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29850         pragmas recognized by GNAT.
29851
29852         * gnat_rm.texi: Document pragma Detect_Blocking.
29853
29854         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29855         raise Program_Error if called from a protected operation.
29856
29857         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29858         the protected action nesting level.
29859         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29860         protected action nesting level.
29861         (Unlock): When pragma Detect_Blocking is active decrease the protected
29862         action nesting level.
29863
29864         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29865         Protected_Action_Nesting.
29866
29867         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29868         Common_ATCB record. It contains the dynamic level of protected action
29869         nesting for each task. It is needed for checking whether potentially
29870         blocking operations are called from protected operations.
29871         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29872         Detect_Blocking is active or not in the partition.
29873
29874         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29875         raise Program_Error if called from a protected operation.
29876         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29877         Program_Error if called from a protected operation.
29878         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29879         Program_Error if called from a protected operation.
29880
29881         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29882         raise Program_Error if called from a protected operation.
29883
29884         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29885         raise Program_Error if called from a protected operation, and increase
29886         the protected action nesting level.
29887         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29888         Program_Error if called from a protected operation, and increase the
29889         protected action nesting level.
29890         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29891         protected action nesting level.
29892
29893         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29894         raise Program_Error if called from a protected operation, and increase
29895         the protected action nesting level.
29896         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29897         Program_Error if called from a protected operation, and increase the
29898         protected action nesting level.
29899         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29900         raise Program_Error if called from a protected operation.
29901         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29902         active, raise Program_Error if called from a protected operation.
29903         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29904         protected action nesting level.
29905
29906         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29907         insertion of the statement raising Program_Error. The run time
29908         contains the required machinery for handling that.
29909
29910         * sem_util.ads: Change comment associated to procedure
29911         Check_Potentially_Blocking_Operation.
29912         This procedure does not insert a call for raising the exception because
29913         that is currently done by the run time.
29914
29915         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29916
29917         * init.c: Add the global variable __gl_detect_blocking that indicates
29918         whether pragma Detect_Blocking is active (1) or not (0). Needed for
29919         making the pragma available at run time.
29920         (__gnat_set_globals): Pass and update the detect_blocking parameter.
29921
29922         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29923         pragma Detect_Blocking is active.
29924
29925         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29926
29927         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29928         DB is found in the ali file. Any unit compiled with pragma
29929         Detect_Blocking active forces its effect in the whole partition.
29930
29931         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29932         Detect_Blocking is active and delay is called from a protected
29933         operation.
29934
29935         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29936         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29937         Detect_Blocking is active (0 otherwise).
29938         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29939         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29940         otherwise).
29941
29942 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
29943
29944         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29945         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29946         package.
29947
29948         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29949         (Register_Receiving_Stub): Add Subp_Info formal parameter.
29950         Update API in placeholder implemetation of s-parint to reflect changes
29951         in distribution runtime library.
29952
29953         * sem_ch3.adb (Expand_Derived_Record): Rename to
29954         Expand_Record_Extension.
29955
29956         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29957         primitive operations of potentially distributed object types that have
29958         non-controlling anonymous access formals.
29959
29960         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29961         subprogram.
29962         New implementation of expansion for remote access-to-subprogram types,
29963         based on the RACW infrastructure.
29964         This version of sem_dist is compatible with PolyORB/DSA as well as
29965         GLADE.
29966
29967         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29968         Asynchrronous that applies to a remote access-to-subprogram type, mark
29969         the underlying RACW type as asynchronous.
29970
29971         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29972          __gnat_using_gnu_linker to 1.
29973
29974         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29975         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29976         GNAT.Perfect_Hash_Generators, and remove the empty
29977         GNAT.Perfect_Hash package.
29978
29979         * atree.adb: Minor reformatting
29980
29981         * exp_ch3.adb (Expand_Derived_Record): Rename to
29982         Expand_Record_Extension.
29983         (Build_Record_Init_Proc.Build_Assignment): The default expression in
29984         a component declaration must remain attached at that point in the
29985         tree so New_Copy_Tree copies it if the enclosing record type is derived.
29986         It is therefore necessary to take a copy of the expression when building
29987         the corresponding assignment statement in the init proc.
29988         As a side effect, in the case of a derived record type, we now see the
29989         original expression, without any rewriting that could have occurred
29990         during expansion of the ancestor type's init proc, and we do not need
29991         to go back to Original_Node.
29992
29993         * exp_ch3.ads (Expand_Derived_Record): Rename to
29994         Expand_Record_Extension.
29995
29996         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29997         Returns the RACW type used to implement a remote access-to-subprogram
29998         type.
29999         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30000         New subprograms. Used to create a proxy tagged object for a remote
30001         subprogram. The proxy object is used as the designated object
30002         for RAS values on the same partition (unless All_Calls_Remote applies).
30003         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30004         System.Partition_Interface.Get_Unique_Remote_Pointer.
30005         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30006         Renamed from Add_RAS_*_Attribute.
30007         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30008         subprograms.
30009         New implementation of expansion for remote access-to-subprogram types,
30010         based on the RACW infrastructure.
30011
30012         * exp_dist.ads (Copy_Specification): Update comment to note that this
30013         function can copy the specification from either a subprogram
30014         specification or an access-to-subprogram type definition.
30015
30016 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
30017
30018         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30019         in an instance, between an explicit subprogram an one inherited from a
30020         type derived from an actual.
30021
30022         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30023         add a polling call if the subprogram is to be inlined by the back-end,
30024         to avoid repeated calls with multiple inlinings.
30025
30026         * checks.adb (Apply_Alignment_Check): If the expression in the address
30027         clause is a call whose name is not a static entity (e.g. a dispatching
30028         call), treat as dynamic.
30029
30030 2004-09-09  Robert Dewar  <dewar@gnat.com>
30031
30032         * g-trasym.ads: Minor reformatting
30033
30034         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30035         packed arrays, since unused bits are expected to be zero for a
30036         comparison.
30037
30038 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
30039
30040         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30041         comment.
30042
30043 2004-09-09  Pascal Obry  <obry@gnat.com>
30044
30045         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30046         enable map file generation. Add the right option to generate the map
30047         file if Map_File is set to True.
30048
30049         * gnatdll.adb (Gen_Map_File): New variable.
30050         (Syntax): Add info about new -m (Map_File) option.
30051         (Parse_Command_Line): Add support for -m option.
30052         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30053         Minor reformatting.
30054
30055 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
30056
30057         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30058         new gnatdist implementation.
30059         Define a subpackage isolating the output routines specific to this
30060         verbose mode.
30061
30062 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
30063
30064         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30065
30066         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30067
30068 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
30069
30070         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30071         internal unit.
30072
30073         * opt.ads: Add Ada_Version_Runtime constant used to decide which
30074         version of the language is used to compile the run time.
30075
30076 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
30077
30078         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30079         of variable length temporaries for function return now that the
30080         back-end and gigi support it.
30081
30082 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30083
30084         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30085
30086         * trans.c (struct stmt_group): Delete field GLOBAL.
30087         (gnat_init_stmt_group): Do not initialize it.
30088         (call_to_gnu): Use save_expr, not protect_multiple_eval.
30089         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30090         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30091         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30092         (start_stmt_group): Likewise.
30093         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30094
30095         * utils2.c (ggc.h): Include.
30096         (build_call_raise): Call build_int_cst, not build_int_2.
30097
30098         * utils.c (gnat_init_decl_processing): Fix arg to
30099         build_common_tree_nodes.
30100         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30101         (gnat_define_builtin): Set built_in_decls.
30102         (init_gigi_decls): Call build_int_cst, not build_int_2.
30103
30104         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30105         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30106         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30107         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30108         SET_TYPE_MODULE): Use them.
30109         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30110         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30111         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30112         SET_TYPE_ADA_SIZE): Likewise.
30113         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30114         (DECL_CONST_CORRESPONDING_VAR,
30115         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30116         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30117         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30118         (TYPE_RM_SIZE_NUM): New macro.
30119         (TYPE_RM_SIZE): Modified to use above.
30120
30121         * cuintp.c: (build_cst_from_int): New function.
30122         (UI_To_gnu): Use it.
30123
30124         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30125         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30126         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30127         MIN_EXPR for the size, copy it into new.
30128
30129 2004-09-01  Robert Dewar  <dewar@gnat.com>
30130
30131         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30132         packed indexed component where array is an IN OUT formal. This
30133         generated garbage code previously.
30134
30135         * gnat_ugn.texi: Document -fverbose-asm
30136
30137         * gnat-style.texi: Minor updates (note that boolean constants and
30138         variables are joined with AND/OR rather than short circuit forms).
30139
30140 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
30141
30142         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30143         it is an upward conversion of an untagged type with no representation
30144         change.
30145
30146 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
30147
30148         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30149         System.Partition_Interface.
30150
30151         * checks.adb (Apply_Access_Checks): Do not generate checks when
30152         expander is not active (but check for unset reference to prefix of
30153         dereference).
30154
30155         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30156         pragma Debug as an if statement with a constant condition, for
30157         consistent treatment of entity references contained within the
30158         enclosed procedure call.
30159
30160 2004-09-01  Vincent Celier  <celier@gnat.com>
30161
30162         * bindgen.adb: (Set_EA_Last): New procedure
30163         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30164         Set_EA_Last.
30165         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30166         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30167         linked without errors.
30168         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30169         ST and EA.
30170         (Gen_Exception_Table_C): Correct same bugs
30171
30172         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30173
30174         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30175         on Windows, make sure that the drive letter is in upper case.
30176
30177         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30178         Windows, when the drive letter is added and Case_Sensitive is True, the
30179         drive letter is forced to upper case.
30180
30181         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30182         to Options_2 for the call to MLib.Utl.Gcc.
30183
30184         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30185         directory separator when defining BASE_DIR.
30186
30187 2004-09-01  Pascal Obry  <obry@gnat.com>
30188
30189         * gprcmd.adb (Extend): Do not output trailing directory separator. This
30190         is not needed and it confuses Windows GNU/make which does not report
30191         directory terminated by a slash as a directory.
30192         (gprcmd): Idem for "pwd" internal command.
30193
30194         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30195         target names rewrite to fix regressions with recent version of
30196         GNU/make. Starting with GNU/make 3.80 the pipe character was not
30197         handled properly anymore.
30198
30199 2004-09-01  Andreas Schwab  <schwab@suse.de>
30200
30201         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30202         * raise.c [!IN_RTS]: Undef abort.
30203
30204 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
30205
30206         * utils2.c (build_allocator): Use ssize_int.
30207
30208         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30209
30210 2004-08-27  Andreas Schwab  <schwab@suse.de>
30211
30212         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30213
30214 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30215             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30216
30217         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30218
30219 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30220
30221         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30222         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30223         * utils.c (init_gigi_decls): Likewise.
30224         * utils2.c (build_call_raise, build_allocator): Likewise.
30225
30226 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
30227
30228         * utils.c (gnat_init_decl_processing): Adjust
30229         build_common_tree_nodes call.
30230
30231 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
30232
30233         * utils2.c (build_allocator): Use build_int_cst for negative
30234         size types.
30235
30236 2004-08-18  Richard Henderson  <rth@redhat.com>
30237
30238         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30239
30240 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
30241
30242         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30243         call.s
30244         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30245         (gnat_to_gnu): Likewise.
30246
30247 2004-08-16  Pascal Obry  <obry@gnat.com>
30248
30249         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30250         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30251         option and not mdll anymore. Update comment.
30252
30253 2004-08-16  Pascal Obry  <obry@gnat.com>
30254
30255         * bld.adb (Put_Include_Project): Properly handle directory separators
30256         on Windows.
30257
30258 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
30259
30260         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30261         decreasing the number of allocated junk nodes while searching for the
30262         appropriate subprogram.
30263
30264 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
30265
30266         * cuintp.c (UI_To_gnu): Use build_int_cst..
30267         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30268         * utils.c (init_gigi_decls): Likewise.
30269         * utils2.c (build_call_raise): Likewise.
30270
30271 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
30272
30273         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30274         for a global aliased object with a variable size and an unconstrained
30275         nominal subtype, pretend there is no initializer if the one we have is
30276         incomplete, and avoid referencing an inexistant component in there. The
30277         part we have will be rebuilt anyway and the reference may confuse
30278         further operations.
30279
30280 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
30281
30282         * einfo.ads: Minor reformatting
30283
30284         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30285         restrictions in the ALI if we only want to warn about violations.
30286
30287 2004-08-13  Vincent Celier  <celier@gnat.com>
30288
30289         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
30290         when creating a new Unit_Record in table Units.
30291
30292         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
30293         that are violated, if any.
30294
30295         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
30296         add directory separator if path already ends with a directory separator.
30297
30298 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30299
30300         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
30301         unit, this is an attempt to inline a construct that is not available in
30302         the current restricted mode, so abort rather than trying to continue.
30303
30304         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
30305         discriminants that rename those of the parent, recover names of
30306         original discriminants for the constraint on the full view of the
30307         parent.
30308         (Complete_Private_Subtype): Do not create a subtype declaration if the
30309         subtype is an itype.
30310
30311         * gnat_rm.texi: Added section on implementation of discriminated
30312         records with default values for discriminants.
30313
30314 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30315
30316         PR ada/15601
30317         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
30318         the second operand is overloaded.
30319
30320 2004-08-10  Richard Henderson  <rth@redhat.com>
30321
30322         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
30323         add __builtin_alloca.
30324
30325 2004-08-10  Richard Henderson  <rth@redhat.com>
30326
30327         * config-lang.in (boot_language): Yes.
30328
30329 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
30330
30331         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
30332         from complaining on potential uninitialized reference.
30333         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
30334         new specification and test explicitly for non-zero return value.
30335
30336         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
30337         returning C.int, to avoid using a derived boolean type.
30338
30339         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
30340         Duplicate_Subexpr_No_Checks in preference to direct use of
30341         Remove_Side_Effects and New_Copy_Tree.
30342         Clear Comes_From_Source on prefix of 'Size attribute reference.
30343
30344         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
30345         g-socthi-vxworks.adb: Change calls to
30346         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
30347         and test explicitly for non-zero return value.
30348
30349         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
30350         (Is_Socket_In_Set): Declare imported function as returning C.int, to
30351         avoid using a derived boolean type.
30352
30353 2004-08-09  Albert Lee  <lee@gnat.com>
30354
30355         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
30356
30357 2004-08-09  Pascal Obry  <obry@gnat.com>
30358
30359         * gnat_ugn.texi: Document new way to build DLLs on Windows using
30360         GCC's -shared option.
30361
30362         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
30363         Options_2 parameter (options put after object files).
30364
30365 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
30366
30367         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
30368         ignore overflows on low and high bounds of an index to also account for
30369         differences in signedness between sizetype and gnu_index_subtype.
30370         These are as legitimate as the ones caused by a lower TYPE_PRECISION
30371         on sizetype.
30372
30373 2004-08-09  Robert Dewar  <dewar@gnat.com>
30374
30375         * s-solita.ads, s-solita.adb: Minor reformatting
30376
30377         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
30378         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
30379         obsolescent section
30380         Add note that No_Implicit_Conditionals does not suppress
30381         run time constraint checks.
30382
30383         * vms_conv.ads: Minor reformatting
30384
30385         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
30386         and necessary for following change).
30387         (Mark): Return new format Mark_Id containing sec stack address
30388         (Release): Use sec stack address from Mark_Id avoiding Self call
30389
30390         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
30391         pointer (cleanup and necessary for following change).
30392         Define Mark_Id as record containing address of secondary stack, that way
30393         Release does not need to find the stack again, decreasing the number of
30394         calls to Self and improving efficiency.
30395
30396         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
30397
30398         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
30399         case variable into the individual case branches when possible.
30400
30401         * sem_ch11.adb: Minor reformatting
30402
30403         * prj.ads: Correct spelling of suffixs
30404
30405         * prj-nmsc.adb: Minor reformatting
30406         Correct spelling suffixs throughout (also in identifiers)
30407
30408         * freeze.adb: Minor spelling correction
30409
30410         * exp_ch2.adb: Cleanups to handling of Current_Value
30411         (no functional effect).
30412
30413         * bld.adb: Correct spelling of suffixs
30414
30415         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
30416
30417 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
30418
30419         PR ada/15408
30420         * sem_ch7.adb (Install_Private_Declarations): In the body of the
30421         package or of a child, private entities are both immediately_visible
30422         and not hidden.
30423
30424 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
30425
30426         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
30427         there are no range checks on the value of the literal.
30428
30429         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
30430         wrapped is the triggering alternative of an asynchronous select, action
30431         statements mustbe inserted before the select itself.
30432
30433         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
30434         case where the prefix is a protected function call.
30435         (Resolve_Attribute, case 'Access): The attribute reference on a
30436         subprogram is legal in a generic body if the subprogram is declared
30437         elsewhere.
30438
30439 2004-08-09  Vincent Celier  <celier@gnat.com>
30440
30441         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
30442         languages, otherwise building the library may fail with unresolved
30443         symbols.
30444         (Compile_Sources): Do not build libraries if -c switch is used
30445
30446         * gnatlink.adb (Process_Args): New switches -M and -Mmap
30447         (Write_Usage): If map file creation is supported, output new switches
30448         -M and -Mmap.
30449         (Gnatlink): When -M is specified, add the necessary switch(es) to the
30450         gcc call, when supported.
30451
30452         * Makefile.in: Added indepsw.o to the object list for gnatlink
30453         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
30454
30455         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
30456         indepsw.adb, indepsw.ads: New files.
30457
30458 2004-08-09  Bernard Banner  <banner@gnat.com>
30459
30460         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
30461
30462         * Makefile.in: add section for vxworks x86
30463
30464 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
30465
30466         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
30467         per-object constrained components where the discriminant is of an
30468         Access type.
30469         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
30470         the parent initialization procedure for derived Unchecked_Unions.
30471         Instead, derived Unchecked_Unions build their own initialization
30472         procedure.
30473         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
30474         Check the body of the subprogram for details.
30475         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
30476         functions for derived Unchecked_Union types by introducing a condition.
30477         Allow the creation of TSS equality functions for Unchecked_Unions.
30478         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
30479         Add formal parameter Discr to function signature. Discr is used to
30480         control the generated case statement for Unchecked_Union types.
30481         (Make_Eq_If): Rename formal parameter Node to E in function signature.
30482
30483         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
30484         Unchecked_Unions.
30485         Check the body of the subprogram for details.
30486         (Expand_Composite_Equality): Augment composite type equality to include
30487         correct handling of Unchecked_Union components.
30488         (Expand_N_In): Add condition to detect illegal membership tests when the
30489         subtype mark is a constrained Unchecked_Union and the expression lacks
30490         inferable discriminants, and build a Raise_Program_Error node.
30491         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
30492         to detect types that contain components of unconstrained Unchecked_Union
30493         subtype. Add condition to detect equality between types that have an
30494         unconstrained Unchecked_Union component, and build a Raise_Program_Error
30495         node. Add condition to detect equality between Unchecked_Union types
30496         that lack inferable discriminants, and build a Raise_Program_Error node.
30497         Otherwise build a TSS equality function call.
30498         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
30499         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
30500         with the operand lacking inferable discriminants, and build a Raise_
30501         Program_Error node.
30502         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
30503         composite equality.
30504         (Has_Inferable_Discriminants): Implement new predicate for objects and
30505         expressions of Unchecked_Union type. Check the body of subprogram for
30506         details.
30507         (Has_Unconstrained_UU_Components): Add function
30508         Component_Is_Unconstrained_UU. It is used to detect whether a single
30509         component is of an unconstrained Unchecked_Union subtype. Add function
30510         Variant_Is_Unconstrained_UU. It is used to detect whether a single
30511         component inside a variant is of an unconstrained Unchecked_Union type.
30512
30513         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
30514         inferred discriminant values. Add condition to generate a case
30515         statement with an inferred discriminant as the switch.
30516         (Make_Component_List_Assign): Introduce a Boolean flag that determines
30517         the behaviour of the subprogram in the presence of an Unchecked_Union.
30518         Add condition to trigger the usage of the inferred discriminant value
30519         as the generated case statement switch.
30520         (Make_Field_Assign): Introduce a Boolean flag that determines the
30521         behaviour of the subprogram in the presence of an Unchecked_Union. Add
30522         condition to trigger the usage of the inferred discriminant value as
30523         the right-hand side of the generated assignment.
30524
30525         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
30526         parameter generation when dealing with Unchecked_Unions.
30527
30528         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
30529         checks for Unchecked_Unions.
30530
30531         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
30532
30533         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
30534         Raise_Program_Error nodes for the execution of Read and Write
30535         attributes of Unchecked_Union types and the execution of Input and
30536         Output attributes of Unchecked_Union types that lack default
30537         discriminant values.
30538
30539         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
30540         Unchecked_Union. Add procedure Check_Component. It is used to inspect
30541         per-object constrained components of Unchecked_Unions for being
30542         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
30543         check individual components withing a variant.
30544
30545         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
30546         comparison of Unchecked_Unions.
30547         (Resolve_Equality_OP): Remove guard that prevents equality between
30548         Unchecked_Unions.
30549
30550         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
30551         of component subtypes for Unchecked_Union components.
30552         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
30553         since it is the actual subtype.
30554
30555         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
30556         pass of Unchecked_Union subtypes as generic actuals to formal types
30557         that lack known_discriminant_parts or that are derived Unchecked_Union
30558         types, and do nothing. In any other case, produce an error message.
30559
30560         * sem_ch3.adb (Analyze_Component_Declaration): Add function
30561         Contains_POC. It determines whether a constraint uses the discriminant
30562         of an enclosing record type.
30563         Add condition to detect per-object constrained component and set the
30564         appropriate flag.
30565         (Derived_Type_Declaration): Remove guard that prevents derivation from
30566         Unchecked_Union types.
30567         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
30568         Union subtypes.
30569
30570         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
30571         references to Unchecked_Union discriminants.
30572
30573         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
30574         formal generation when dealing with Unchecked_Unions.
30575         (Set_Actual_Subtypes): Add condition to prevent generation of actual
30576         subtypes for Unchecked_Unions.
30577
30578         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
30579         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
30580         completions of discriminated partial views by Unchecked_Unions and
30581         produce an error message.
30582
30583 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30584
30585         * trans.c (struct stmt_group): New field, GLOBAL.
30586         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
30587         (struct elab_info): New struct.
30588         (elab_info_list, gnu_elab_proc_stack): New variables.
30589         (Compilation_Unit_to_gnu): New procedure.
30590         (gigi): Call it and also handle elaboration procs we've saved.
30591         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
30592         global field from parent.
30593         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
30594         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
30595         (start_stmt_group): Initialize global field from parent.
30596         (add_decl_expr): Set to global for current statement group.
30597         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
30598         post.
30599
30600         * utils.c (global_bindings_p): True when no current_function_decl; no
30601         longer check current_binding_level.
30602
30603 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
30604
30605         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
30606         choice.
30607
30608         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
30609
30610 2004-08-06  Andreas Schwab  <schwab@suse.de>
30611
30612         * utils.c (gnat_define_builtin): Remove second parameter of
30613         make_decl_rtl.
30614         (begin_subprog_body): Likewise.
30615
30616 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
30617
30618         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
30619         optimization, not supported by the tree-ssa back-end.
30620
30621 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
30622
30623         * s-mastop-irix.adb: Update comments.
30624
30625         * a-except.adb (Exception_Information): Raise Constraint_Error if
30626         exception Id is Null_Id.
30627         This is required behavior, which is more reliably and clearly checked
30628         at the top level interface level.
30629
30630 2004-07-26  Javier Miranda  <miranda@gnat.com>
30631
30632         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
30633         call if a component has no default_expression and the box is used.
30634
30635         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
30636         default_expression and you use box, it behaves as if you had declared a
30637         stand-alone object.
30638         (Resolve_Record_Aggregate): If a component has no default_expression and
30639         you use box, it behaves as if you had declared a stand-alone object.
30640
30641         * sem_ch10.adb (Install_Siblings): Do not make visible the private
30642         entities of private-with siblings.
30643
30644 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30645
30646         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
30647         for a component of an itype, set the parent pointer for analysis,
30648         there is no list in which to insert it.
30649
30650         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
30651         bona-fide renamings, not for inherited operations.
30652
30653         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
30654         actual for a formal that is an access parameter, create local
30655         finalization list even if the expression is not an aggregate.
30656
30657 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30658
30659         PR ada/16213
30660         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
30661         Diagnose properly illegal subprogram renamings that are library units.
30662
30663 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30664
30665         PR ada/15588
30666         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
30667         conversion rewritten as an unchecked conversion, check that original
30668         expression is a variable.
30669
30670         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
30671         unchecked_conversion, create new node rather than rewriting in place,
30672         to preserve original construct.
30673
30674 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30675
30676         * gigi.h (gnat_expand_body): Deleted.
30677
30678         * Make-lang.in: (trans.o): Depends on function.h.
30679
30680         * misc.c: (gnat_expand_body): Moved to here.
30681
30682         * trans.c (gnat_expand_body_1): Deleted.
30683         (gnat_expand_body): Moved from here.
30684         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
30685         (add_stmt): Check for marked visited with global_bindings_p.
30686         (gnat_gimplify_expr, case COMPONENT_REF): New case.
30687         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
30688
30689         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
30690         VIEW_CONVERT_EXPR if not operation type.
30691
30692         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
30693         fat pointer.
30694
30695         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
30696         changes: reformatting of negation operators, removing unneeded
30697         inequality comparison with zero, converting equality comparisons with
30698         zero to negations, changing int/0/1 to bool/false/true, replace calls
30699         to gigi_abort with abort, and various other similar changes.
30700
30701 2004-07-26  Vincent Celier  <celier@gnat.com>
30702
30703         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
30704         "setup".
30705
30706         * make.adb (Gnatmake): Fail when a library is not present and there is
30707         no object directory.
30708
30709         * mlib-prj.adb (Check_Library): No need to check if the library needs
30710         to be rebuilt if there is no object directory, hence no object files
30711         to build the library.
30712
30713         * opt.ads (Setup_Projects): New Boolean flag.
30714
30715         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
30716         Location.
30717         Create directory when Kind /= "" and in "gnat setup". Report error if
30718         directory cannot be created.
30719         (Ada_Check): Create library interface copy dir if it does not exist
30720         and we are in "gnat setup".
30721         (Find_Sources): No error if in "gnat setup" and no Ada sources were
30722         found.
30723         (Language_Independent_Check): Create object directory, exec directory
30724         and/or library directory if they do not exist and we are in
30725         "gnat setup".
30726
30727         * vms_conv.ads: (Command_Type): New command Setup.
30728
30729         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
30730
30731         * vms_data.ads: Add qualifiers/switches for new built-in command
30732         "setup".
30733
30734 2004-07-25  Richard Henderson  <rth@redhat.com>
30735
30736         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
30737         DECL_IGNORED_P on RESULT_DECL.
30738
30739 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
30740
30741         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
30742         allocation and potentially overflowing update with
30743         Tailored_Exception_Information. Use the sec-stack free procedural
30744         interface to output Exception_Information instead.
30745
30746         * a-except.adb (To_Stderr): New subprogram for character, and string
30747         version moved from a-exextr to be visible from other separate units.
30748         (Tailored_Exception_Information): Remove the procedural version,
30749         previously used by the default Last_Chance_Handler and not any more.
30750         Adjust various comments.
30751
30752         * a-exexda.adb: Generalize the exception information procedural
30753         interface, to minimize the use of secondary stack and the need for
30754         local buffers when the info is to be output to stderr:
30755         (Address_Image): Removed.
30756         (Append_Info_Character): New subprogram, checking for overflows and
30757         outputing to stderr if buffer to fill is of length 0.
30758         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
30759         (Append_Info_Address, Append_Info_Exception_Name,
30760         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
30761         Append_Info_Basic_Exception_Traceback,
30762         Append_Info_Exception_Information): New subprograms.
30763         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
30764         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
30765         Exception_Info_Maxlength, Exception_Name_Length,
30766         Exception_Message_Length): New subprograms.
30767         (Exception_Information): Use Append_Info_Exception_Information.
30768         (Tailored_Exception_Information): Use
30769         Append_Info_Basic_Exception_Information.
30770         Export services for the default Last_Chance_Handler.
30771
30772         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
30773         other separate units.
30774
30775 2004-07-20  Vincent Celier  <celier@gnat.com>
30776
30777         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
30778
30779 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30780
30781         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
30782         emit itype references for the designated types of component types that
30783         are declared outside of the full record declaration, and that may
30784         denote a partial view of that record type.
30785
30786 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30787
30788         PR ada/15607
30789         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
30790         which is the designated type in an access component declaration, to the
30791         list of incomplete dependents of the parent type, to avoid elaboration
30792         issues with out-of-scope subtypes.
30793         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
30794         full view of the parent.
30795
30796 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30797
30798         PR ada/15610
30799         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
30800         entities that are hidden, such as references to generic actuals
30801         outside an instance.
30802
30803 2004-07-20  Javier Miranda  <miranda@gnat.com>
30804
30805         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
30806         support to the new notation.
30807         (Analyze_Selected_Component): Add call to Try_Object_Operation.
30808
30809 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
30810
30811         * s-taprob.adb: Adding the elaboration code required for initializing
30812         the tasking soft links that are common to the full and the restricted
30813         run times.
30814
30815         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
30816         restricted run time has been moved to the package
30817         System.Soft_Links.Tasking.
30818
30819         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
30820         restricted run time has been moved to the package
30821         System.Soft_Links.Tasking.
30822
30823         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
30824
30825         * s-solita.ads, s-solita.adb: New files.
30826
30827 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30828
30829         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
30830         Case_Statement_to_gnu): Split off from gnat_to_gnu.
30831         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
30832         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
30833         Exception_Handler_to_gnu_zcx): Likewise.
30834
30835 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
30836
30837         * gigi.h (builtin_function): Declare.
30838
30839 2004-07-15  Robert Dewar  <dewar@gnat.com>
30840
30841         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
30842         reformatting
30843
30844         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30845         access values as an example of a warning.
30846
30847         * gnat_rm.texi: Document new attribute Has_Access_Values
30848
30849         * gnat-style.texi: Document that box comments belong on nested
30850         subprograms
30851
30852         * sem_util.ads (Has_Access_Values): Improved documentation
30853
30854         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30855
30856         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30857         (Process_Interface_Name): Call to this new procedure
30858         (Set_Extended_Import_Export_External_Name): Call to this new procedure
30859
30860         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30861
30862         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30863
30864         * einfo.ads: Minor comment typo fixed
30865
30866 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
30867
30868         * snames.adb: Add _atcb.
30869
30870         * snames.ads: Add Name_uATCB.
30871
30872         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30873         (in the expanded code) when using the restricted run time.
30874
30875         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30876         a in parameter in order to allow ATCBs to be preallocated (in the
30877         expanded code).
30878
30879         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30880         order to allow ATCBs to be preallocated. In case of error, the ATCB is
30881         deallocated in System.Tasking.Stages.
30882
30883         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30884         order to allow ATCBs to be preallocated.
30885
30886         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30887         here. It was previously done in Initialize_ATCB.
30888
30889         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30890
30891         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30892         Restricted run time.
30893
30894         * exp_ch3.adb: When using the Restricted run time, pass the
30895         preallocated Ada_Task_Control_Block when creating a task.
30896
30897 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
30898
30899         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30900         function call that is itself an actual in an enclosing call, diagnose
30901         problem here rather than assuming that resolution will catch it.
30902
30903         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30904         the local copy of a generic unit for a formal package, and the generic
30905         is a child unit, install private part of ancestors before compiling
30906         private part of spec.
30907
30908         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30909         use scope entities rather than tree structures, to handle properly
30910         parent units that are instances rewritten as bodies for inlining
30911         purposes.
30912
30913         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30914         Remove_Parents): Handle properly a parent unit that is an
30915         instantiation, when the unit has been rewritten as a body for inlining
30916         purposes.
30917
30918         * par.adb (Goto_List): Global variable to collect goto statements in a
30919         given unit, for use in detecting natural loops.
30920
30921         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30922         use in detecting natural loops.
30923
30924         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30925         backwards goto's, and rewrite as a infinite loop, to improve locality
30926         of temporaries.
30927
30928         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30929         subcomponent that includes an indexed reference, to prevent the
30930         generation of copies that would miscompile the desired assignment
30931         statement.
30932         (Build_Task_Image_Decls): Add a numeric suffix to
30933         generated name for string variable, to avoid spurious conflicts with
30934         the name of the type of a single protected object.
30935
30936         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30937         loop with an explicit exit statement, to avoid generating an
30938         out-of-range value with 'Succ leading to spurious constraint_errors
30939         when compiling with -gnatVo.
30940
30941 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
30942
30943         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30944         might not be analyzed yet, even if its Etype is already set (case of an
30945         unchecked conversion built using Unchecked_Convert_To, for example).
30946         If the prefix has already been analyzed, this will be a nop anyway.
30947
30948         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30949         controller type, or an assignment of a record type with controlled
30950         components, copy only user data, and leave the finalization chain
30951         pointers untouched.
30952
30953 2004-07-15  Vincent Celier  <celier@gnat.com>
30954
30955         * make.adb (Collect_Arguments): Improve error message when attempting
30956         to compile a source not part of any project, when -x is not used.
30957
30958         * prj.ads: (Defined_Variable_Kind): New subtype
30959
30960         * prj-attr.adb (Register_New_Package): Two new procedures to register
30961         a package with or without its attributes.
30962         (Register_New_Attribute): Mew procedure to register a new attribute in a
30963         package.
30964         New attribute oriented subprograms: Attribute_Node_Id_Of,
30965         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30966         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30967         Next_Attribute.
30968         New package oriented subprograms: Package_Node_Id_Of,
30969         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30970
30971         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30972         type.
30973         (Package_Node_Id): Now a private, self initialized type
30974         (Register_New_Package): New procedure to register a package with its
30975         attributes.
30976         New attribute oriented subprograms: Attribute_Node_Id_Of,
30977         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30978         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30979         Next_Attribute.
30980         New package oriented subprograms: Package_Node_Id_Of,
30981         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30982
30983         * prj-dect.adb (Parse_Attribute_Declaration,
30984         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30985
30986         * prj-makr.adb (Make): Parse existing project file before creating
30987         other files. Fail if there was an error during parsing.
30988
30989         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30990         new spec of Prj.Attr.
30991
30992         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30993         to new spec of Prj.Attr.
30994
30995 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30996
30997         * utils2.c: Fix typo in comment.
30998
30999 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31000
31001         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31002         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31003
31004 2004-07-14  Andreas Schwab  <schwab@suse.de>
31005
31006         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31007
31008 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31009
31010         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31011         object type.
31012         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31013         TYPE_STUB_DECL.
31014
31015         * misc.c (gnat_types_compatible_p): New function.
31016         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31017         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31018
31019         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31020         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31021         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31022         (mark_visited): Don't mark dummy type.
31023         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31024         parameter, we must remove any LJM building from GNU_NAME.
31025         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31026         (pos_to_constructor): Use int_const_binop.
31027         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31028         PARM_DECL.
31029
31030         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31031         (gnat_pushlevel): Set TREE_USE on BLOCK node.
31032         (gnat_install_builtins): Add __builtin_memset.
31033
31034 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
31035
31036         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31037         for a renaming, stabilize the initialization expression if we are at a
31038         local level.  At the local level, uses of the renaming may be performed
31039         by a direct dereference of the initializing expression, and we don't
31040         want possible variables there to be evaluated for every use.
31041
31042         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31043         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31044         them on the way.  Account for the fact that we may introduce side
31045         effects in the process.
31046
31047 2004-07-13  Richard Henderson  <rth@redhat.com>
31048
31049         * misc.c (default_pass_by_ref): Use pass_by_reference.
31050
31051 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
31052
31053         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31054         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31055
31056 2004-07-08  Richard Henderson  <rth@redhat.com>
31057
31058         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31059         commentary.
31060
31061 2004-07-06  Vincent Celier  <celier@gnat.com>
31062
31063         * vms_conv.ads: Minor reformatting.
31064         Alphabetical order for enumerated values of type Command_Type, to have
31065         the command in alphabetical order for the usage.
31066
31067         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31068         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31069
31070         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31071
31072         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31073         (Add_Archive_Path): Only add the global archive if there is one.
31074         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31075         or not any object file to put in the global archive, and don't build
31076         a global archive if there is none.
31077         (X_Switches): New table
31078         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31079         in the X_Switches table, if any.
31080         (Initialize): Make sure the X_Switches table is empty
31081         (Scan_Arg): Record -X switches in table X_Switches
31082
31083         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31084
31085         * make.adb: Minor comment fix
31086
31087         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31088         invoked with directory information, add the directory in front of the
31089         path.
31090
31091         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31092         invoked with directory information, add the directory in front of the
31093         path.
31094
31095         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31096         when Keep_Temporary_Files is False.
31097         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31098         directory information, add the directory in front of the path.
31099         When not on VMS, handle new switch -dn before the command to set
31100         Keep_Temporary_Files to True.
31101         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31102         everywhere.
31103
31104         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31105         invoked with directory information, add the directory in front of the
31106         path.
31107
31108 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
31109
31110         * snames.ads, snames.adb (Name_Stub): New name for the distributed
31111         systems annex.
31112
31113         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31114         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31115
31116         * g-socket.adb (To_Timeval): Fix incorrect conversion of
31117         Selector_Duration to Timeval for the case of 0.0.
31118
31119         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31120         documentation from Evolve_And_Then.
31121
31122 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
31123
31124         * s-taprop-tru64.adb, s-taprop-os2.adb,
31125         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31126
31127 2004-07-06  Robert Dewar  <dewar@gnat.com>
31128
31129         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31130         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31131         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31132         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31133         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31134         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31135         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31136         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31137         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31138         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31139         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31140         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31141         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31142         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31143         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31144         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31145         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31146         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31147         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31148         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31149         vms_data.ads: Minor reformatting,
31150         Fix bad box comment format.
31151
31152         * gnat_rm.texi: Fix minor grammatical error
31153
31154         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31155
31156         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31157         more cases of discriminated records to be recognized as not needing a
31158         secondary stack.
31159         (Has_Access_Values): New function.
31160
31161         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31162
31163         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31164         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31165         with LRM terminology).
31166         Change terminology in comments primitive type => elementary type.
31167
31168 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31169
31170         PR ada/15602
31171         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31172         parameters do not impose any requirements on the presence of a body.
31173
31174 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31175
31176         PR ada/15593
31177         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31178         compilation unit and is in an open scope at the point of instantiation,
31179         assume that a body may be present later.
31180
31181 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31182
31183         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31184         Improve error message when specified size is not supported.
31185
31186         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31187         is never a primitive operation.
31188
31189 2004-07-05  Andreas Schwab  <schwab@suse.de>
31190
31191         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31192         RECORD_OR_UNION_CHECK.
31193         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31194
31195 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
31196
31197         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31198         dependency on xgnatugn, instead build it via a submake.
31199         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31200
31201 2004-07-04  Richard Henderson  <rth@redhat.com>
31202
31203         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31204
31205 2004-07-01  Richard Henderson  <rth@redhat.com>
31206
31207         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31208         * utils.c (max_size): Likewise.
31209
31210 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31211
31212         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31213         and rest_of_type_compilation; add arg to create_*_decl.
31214         (annotate_decl_with_node): Deleted.
31215         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31216         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31217         (get_current_block_context, gnat_pushdecl): New declarations.
31218         (gnat_init_stmt_group): Likewise.
31219         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31220         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31221         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31222         (gnat_init): Call gnat_init_stmt_group.
31223         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31224         (gnu_pending_elaboration_list): Deleted.
31225         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31226         (gigi): Rearrange initialization calls and move some to last above.
31227         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31228         Delete calls to add_decl_expr; add arg to create_*_decl.
31229         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31230         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31231         begin_subprog_body and call it.
31232         Don't push and pop ggc context.
31233         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31234         (add_stmt): Remove handling of DECL_EXPR from here.
31235         If not in function, mark visited.
31236         (add_decl_expr): Put global at top level.
31237         Check for cases of DECL_INITIAL we have to handle here.
31238         (process_type): Add extra arg to create_type_decl.
31239         (build_unit_elab): Rework to just gimplify.
31240         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31241         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31242         (get_pending_elaborations, pending_elaborations_p): Likewise.
31243         (push_pending_elaborations, pop_pending_elaborations): Likewise.
31244         (get_elaboration_location, insert_elaboration_list): Likewise.
31245         (gnat_binding_level): Renamed from ada_binding_level.
31246         (init_gnat_to_gnu): Don't clear pending_elaborations.
31247         (global_bindings_p): Treat as global if no current_binding_level.
31248         (set_current_block_context): New function.
31249         (gnat_pushdecl): Renamed from pushdecl; major rework.
31250         All callers changed.
31251         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31252         (finish_record_type): Call call pushdecl for stub decl.
31253         (function_nesting_depth): Deleted.
31254         (begin_subprog_body): Delete obsolete code.
31255         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31256
31257 2004-06-28  Robert Dewar  <dewar@gnat.com>
31258
31259         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31260         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31261         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31262         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31263         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31264
31265         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31266         deal with problem of inefficient slices on machines with strict
31267         alignment, when the slice is a component of a composite.
31268
31269         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31270         machines, we need the check there as well.
31271
31272 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31273
31274         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31275         determine safe copying direction for overlapping slice assignments
31276         when component is controlled.
31277
31278         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31279         formal derived type in the actual for a formal package are visible in
31280         the enclosing instance.
31281
31282 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31283
31284         PR ada/15600
31285         * sem_util.adb (Trace_Components): Diagnose properly an illegal
31286         circularity involving a private type whose completion includes a
31287         self-referential component.
31288         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
31289         renaming or an instantiation from an implicit derived operation.
31290
31291 2004-06-28  Pascal Obry  <obry@gnat.com>
31292
31293         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
31294         DLL.
31295         (Library_File_Name_For): Idem.
31296
31297 2004-06-28  Matthew Gingell  <gingell@gnat.com>
31298
31299         * g-traceb.ads: Add explanatory note on the format of addresses
31300         expected by addr2line.
31301
31302 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
31303
31304         * Makefile.in: Force debugging information on s-tasdeb.adb,
31305         a-except.adb and s-assert.adb needed by the debugger.
31306
31307 2004-06-28  Vincent Celier  <celier@gnat.com>
31308
31309         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
31310         Need_To_Build_Lib.
31311         (Gnatmake): Ditto.
31312
31313         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
31314
31315         * prj.adb: Minor reformatting
31316         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
31317
31318         * prj.ads: Comment updates
31319         Minor reformatting
31320         (Project_Data): Change Flag1 to Need_To_Build_Lib.
31321         Remove Flag2: not used.
31322
31323         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
31324         declaration.
31325
31326         * gnat_ugn.texi: Put a "null;" declaration in one project file example
31327
31328         * gnat_rm.texi: Document Empty declarations "null;".
31329
31330         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
31331         front of the linker options.
31332         (Link_Foreign): Put the global archives and the libraries in front of
31333         the linker options.
31334
31335 2004-06-28  Javier Miranda  <miranda@gnat.com>
31336
31337         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
31338         (RTU_Loaded): Code cleanup
31339         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
31340         withed predefined units.
31341
31342         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
31343         explicitly withed predefined units.
31344         Fix typo in comment
31345
31346         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
31347         explicitly withed predefined units.
31348
31349 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31350
31351         * ada-tree.def (DECL_STMT): Deleted.
31352         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
31353         (DECL_STMT_VAR): Deleted.
31354         * decl.c: add_decl_stmt now add_decl_expr.
31355         * gigi.h: Likewise.
31356         * trans.c: Likewise.
31357         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31358         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
31359         (add_stmt): Only handle padded type here.
31360         (add_stmt_with_node): Allow gnat_node to not be present.
31361         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
31362         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
31363         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
31364         make a SAVE_EXPR for the entire fat pointer.
31365         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
31366         (create_index_type): Make a DECL_EXPR.
31367         (end_subprog_body): Don't call allocate_struct_function here but
31368         do clear cfun.
31369
31370 2004-06-25  Pascal Obry  <obry@gnat.com>
31371
31372         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
31373         Relocatable from Build_Dynamic_Library call.
31374
31375         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
31376         Relocatable are now synonym.
31377
31378         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
31379
31380         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
31381         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
31382         call.
31383
31384         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
31385         Lib_Address and Relocatable.
31386         (Default_DLL_Address): Removed.
31387
31388         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31389         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31390         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
31391         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
31392         (Default_DLL_Address): Removed.
31393
31394         * mlib-tgt-mingw.adb: Ditto.
31395         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
31396
31397         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
31398         the initial thread stack size.
31399
31400         * a-strmap.ads: Move package L to private part as it is not used in
31401         the spec. Found while reading code.
31402
31403 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
31404
31405         * tracebak.c: Introduce support for a GCC infrastructure based
31406         implementation of __gnat_backtrace.
31407
31408         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
31409         any more. Use accessors instead. This eases maintenance and relaxes
31410         some alignment constraints.
31411         (_GNAT_Exception structure): Remove the Ada specific fields
31412         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
31413         a-exexpr.adb.
31414         (is_handled_by, __gnat_eh_personality): Replace component references to
31415         exception structure by use of the new accessors.
31416
31417         * init.c (__gnat_initialize): Adjust comments to match the just
31418         reverted meaning of the -static link-time option.
31419
31420         * adaint.c (convert_addresses): Arrange not to define a stub for
31421         mips-irix any more, as we now want to rely on a real version from a
31422         recent libaddr2line.
31423
31424         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
31425         the personality routine can use them and not have to rely on a C
31426         counterpart of the record anymore. This simplifies maintenance and
31427         relaxes the constraint of having Standard'Maximum_Alignment match
31428         BIGGEST_ALIGNMENT.
31429         Update comments, and add a section on the common header alignment issue.
31430
31431 2004-06-25  Geert Bosch  <bosch@gnat.com>
31432
31433         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
31434         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
31435
31436 2004-06-25  Robert Dewar  <dewar@gnat.com>
31437
31438         * gnat_rm.texi: Fix section on component clauses to indicate that the
31439         restriction on byte boundary placement still applies for bit packed
31440         arrays.
31441         Add comment on stack usage from Initialize_Scalars
31442
31443         * gnat_ugn.texi: Add documentation for -gnatyLnnn
31444
31445         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
31446         limiting nesting level.
31447
31448         * usage.adb: Add line for -gnatyLnnn switch
31449
31450         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
31451         sem_ch13.adb, exp_aggr.adb: Minor reformatting
31452
31453         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
31454         type as well as on the subtype. This corrects a problem in freeze in
31455         setting alignments of atomic types.
31456
31457         * sem_eval.ads: Minor comment typo fixed
31458
31459         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
31460         level.  Minor reformatting.
31461
31462         * fname.adb (Is_Predefined_File_Name): Require a letter after the
31463         minus sign. This means that file names like a--b.adb will not be
31464         considered predefined.
31465
31466         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
31467         record Test new flag and give diagnostic for bad component clause.
31468         (Freeze_Entity): Set alignment of array from component alignment in
31469         cases where this is safe to do.
31470
31471         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
31472         arrays.
31473
31474         * cstand.adb: (Create_Standard): Set alignment of String to 1
31475
31476         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
31477
31478         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
31479         code in the common constrained array cases.
31480
31481         * a-storio.adb: Change implementation to avoid possible alignment
31482         problems on machines requiring strict alignment (data should be moved
31483         as type Buffer, not type Elmt).
31484
31485         * checks.adb (Apply_Array_Size_Check): Improve these checks by
31486         killing the overflow checks which we really do not need (64-bits is
31487         enough).
31488
31489 2004-06-25  Vincent Celier  <celier@gnat.com>
31490
31491         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
31492         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
31493         inconditionally for the main project.
31494         (Recursive_Add_Archives.Add_Archive_Path): New procedure
31495         (Link_Executables.Check_Time_Stamps): New procedure
31496         (Link_Executables.Link_Foreign): New procedure
31497         Changes made to reduce nesting level of this package
31498         (Check): New procedure
31499         (Add_Switches): When not in quiet output, check that a switch is not
31500         the concatenation of several valid switches. If it is, issue a warning.
31501         (Build_Global_Archive): If the global archive is rebuilt, linking need
31502         to be done.
31503         (Compile_Sources): Rebuilding a library archive does not imply
31504         rebuilding the global archive.
31505         (Build_Global_Archive): New procedure
31506         (Build_Library): New name for Build_Archive, now only for library
31507         project
31508         (Check_Archive_Builder): New procedure
31509         (Create_Global_Archive_Dependency_File): New procedure
31510         (Gprmake): Call Build_Global_Archive before linking
31511         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
31512         throughout.
31513         (Scan_Arg): Display the Copyright notice when -v is used
31514
31515         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
31516         for gnatls.
31517
31518         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
31519         COMPILE.
31520         Add new GNAT LIST qualifier /FILES=
31521         Added qualifier /DIRECTORY= to GNAT METRIC
31522         Added qualifier /FILES= to GNAT METRIC
31523         Added qualifier /FILES to GNAT PRETTY
31524
31525         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
31526         to take into account both versions of the switch.
31527
31528         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
31529         always be the last switch to the gcc driver. Disable switch storing so
31530         that switches automatically added by the gcc driver are not put in the
31531         ALI file.
31532
31533         * prj.adb (Project_Empty): Take into account changes in components of
31534         Project_Data.
31535
31536         * prj.ads (Languages_Processed): New enumaration value All_Languages.
31537
31538         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
31539         used. Split Boolean component Ada_Sources_Present in two Boolean
31540         components Ada_Sources_Present and Other_Sources_Present.
31541         Minor reformatting
31542
31543         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
31544         instead of Sources_Present.
31545         (Set_Ada_Paths.Add.Recursive_Add): Ditto
31546
31547         * prj-nmsc.adb: Minor reformatting
31548         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
31549         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
31550         Check_Ada_Naming_Scheme.
31551         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
31552         throughout.
31553
31554         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
31555         In_Limited.
31556         Make sure that all cycles where there is at least one "limited with"
31557         are detected.
31558         (Parse_Single_Project): New Boolean parameter In_Limited
31559
31560         * prj-proc.adb (Recursive_Check): When Process_Languages is
31561         All_Languages, call first Prj.Nmsc.Ada_Check, then
31562         Prj.Nmsc.Other_Languages_Check.
31563
31564         * prj-proc.adb (Process): Use Ada_Sources_Present or
31565         Other_Sources_Present (instead of Sources_Present) depending on
31566         Process_Languages.
31567
31568         * lang-specs.h: Keep -g and -m switches in the same order, and as the
31569         last switches.
31570
31571         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
31572         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
31573         False.
31574         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
31575         False.
31576
31577         * lib.ads (Disable_Switch_Storing): New procedure.
31578
31579         * make.adb: Modifications to reduce nesting level of this package.
31580         (Check_Standard_Library): New procedure
31581         (Gnatmake.Check_Mains): New procedure
31582         (Gnatmake.Create_Binder_Mapping_File): New procedure
31583         (Compile_Sources.Compile): Add switch -gnatez as the last option
31584         (Display): Never display -gnatez
31585
31586         * Makefile.generic:
31587         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
31588
31589         * gnatcmd.adb (Check_Project): New function
31590         (Process_Link): New procedure to reduce nesting depth
31591         (Check_Files): New procedure to reduce the nesting depth.
31592         For GNAT METRIC, include the inherited sources in extending projects.
31593         (GNATCmd): When GNAT LS is invoked with a project file and no files,
31594         add the list of files from the sources of the project file. If this list
31595         is too long, put it in a temp text files and use switch -files=
31596         (Delete_Temp_Config_Files): Delete the temp text file that contains
31597         a list of source for gnatpp or gnatmetric, if one has been created.
31598         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
31599         in the project file is too large, create a temporary text file that
31600         list them and pass it to the tool with "-files=<temp text file>".
31601         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
31602
31603         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
31604         generated file is in not in Ada.
31605
31606         * gnatls.adb: Remove all parameters And_Save that are no longer used.
31607         (Scan_Ls_Arg): Add processing for -files=
31608         (Usage): Add line for -files=
31609
31610         * g-os_lib.adb (On_Windows): New global constant Boolean flag
31611         (Normalize_Pathname): When on Windows and the path starts with a
31612         directory separator, make sure that the resulting path will start with
31613         a drive letter.
31614
31615         * clean.adb (Clean_Archive): New procedure
31616         (Clean_Project): When there is non-Ada code, delete the global archive,
31617         the archive dependency files, the object files and their dependency
31618         files, if they exist.
31619         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
31620
31621 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
31622
31623         * sinfo.ads: Fix typo in comment.
31624
31625         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
31626         the TSS for remote access-to-subprogram types, since these TSS are
31627         always present once the type has been analyzed.
31628         (RAS_E_Dereference): Same.
31629
31630         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
31631         reference raises Bad_Attribute, mark the reference as analyzed so the
31632         node (and any children resulting from rewrites that could have occurred
31633         during the analysis that ultimately failed) is not analyzed again.
31634
31635         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
31636
31637         * exp_dist.adb: Minor comment fix.
31638
31639         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
31640         type is an anonymous access type, no unchecked deallocation of the
31641         allocated object can occur. If the object is controlled, attach it with
31642         a count of 1. This allows attachment to the Global_Final_List, if
31643         no other relevant list is available.
31644         (Get_Allocator_Final_List): For an anonymous access type that is
31645         the type of a discriminant or record component, the corresponding
31646         finalisation list is the one of the scope of the type.
31647
31648 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31649
31650         * sem_ch3.adb (Replace_Type): When computing the signature of an
31651         inherited subprogram, use the first subtype if the derived type
31652         declaration has no constraint.
31653
31654         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
31655         before applying previous optimization. Minor code cleanup.
31656
31657         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
31658         placed at the beginning of an unpacked record without explicit
31659         alignment, a slice of it will be aligned and does not need a copy when
31660         used as an actual.
31661
31662 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31663
31664         PR ada/15591
31665         PR ada/15592
31666         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
31667         reference is written with expressions mimicking parameters.
31668
31669 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
31670
31671         PR ada/15589
31672         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
31673         STEP 2a. The constraints of a full type declaration of a derived record
31674         type are checked for conformance with those declared in the
31675         corresponding private extension declaration. The message
31676         "not conformant with previous declaration" is emitted if an error is
31677         detected.
31678
31679 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
31680
31681         * g-traceb.ads: Document the need for -E binder switch in the spec.
31682
31683         * g-trasym.ads: Document the need for -E binder switch in the spec.
31684
31685 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
31686
31687         * sem_prag.adb: Add handling of pragma Detect_Blocking.
31688
31689         * snames.h, snames.ads, snames.adb: Add entry for pragma
31690         Detect_Blocking.
31691
31692         * s-rident.ads: Change reference to pragma Detect_Blocking.
31693
31694         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
31695         system.ads.
31696
31697         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
31698         to indicate whether pragma Detect_Blocking is active.
31699
31700         * par-prag.adb: Add entry for pragma Detect_Blocking.
31701
31702         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
31703         of not handling WITH.
31704         Note that this replaces the previous update which was incorrect.
31705
31706 2004-06-25  Javier Miranda  <miranda@gnat.com>
31707
31708         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
31709         use-clauses to have a clean environment.
31710
31711         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
31712         the installation of the use-clauses to stablish a clean environment in
31713         case of compilation of a separate unit; otherwise the call to
31714         use_one_package is protected by the barrier Applicable_Use.
31715
31716         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
31717         the installation of the use-clauses to stablish a clean environment in
31718         case of compilation of a separate unit.
31719         (End_Use_Clauses): Minor comment cleanup.
31720
31721 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
31722
31723         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
31724
31725 2004-06-23  Richard Henderson  <rth@redhat.com>
31726
31727         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
31728
31729 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31730
31731         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
31732         now bool instead of int.
31733         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
31734         * trans.c (gnu_switch_label_stack): New function.
31735         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
31736         elaboration of renamed entity returns.
31737         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
31738         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
31739         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
31740         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
31741         DECL_SIZE_UNIT and simplify variable-sized case.
31742         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31743         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
31744         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
31745         (build_unit_elab): Disable for now.
31746         * utils.c (mark_visited): New function.
31747         (pushdecl): Walk tree to call it for global decl.
31748         (update_pointer_to): Update all variants of pointer and ref types.
31749         Add arg to COMPONENT_REF.
31750         (convert): Likewise.
31751         Move check for converting between variants lower down.
31752         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
31753         (build_allocator): Don't force type of MODIFY_EXPR.
31754         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
31755         put_var_into_stack.
31756
31757 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31758
31759         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
31760         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
31761         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
31762         subprograms.
31763         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
31764         all callers changed.
31765         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
31766         the way that EXIT_STMT finds the loop label.
31767         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
31768         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
31769         (add_stmt): Use annotate_with_locus insted of setting directly.
31770         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
31771         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
31772         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
31773         (build_vms_descriptor): Add extra args to ARRAY_REF.
31774         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
31775         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
31776         New cases.
31777         (build_binary_op): Don't make explicit CONVERT_EXPR.
31778         Add extra rgs to ARRAY_REF.
31779
31780 2004-06-14  Pascal Obry  <obry@gnat.com>
31781
31782         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
31783         Windows.  Fix minor typo.
31784
31785         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
31786         which is now supported on Windows. With this implementation using the
31787         Library Project feature is no different on Windows than on UNIX.
31788
31789 2004-06-14  Vincent Celier  <celier@gnat.com>
31790
31791         * makegpr.adb (Compile_Sources): Nothing to do when there are no
31792         non-Ada sources.
31793
31794         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
31795
31796         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
31797         found, show the project name and the path of the previously parsed
31798         project file.
31799
31800 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
31801
31802         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
31803         array, avoid copying the actual before the call.
31804
31805 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
31806
31807         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
31808         Instead, allocate memory on worst-case alignment assumptions, and then
31809         return an aligned address within the allocated zone.
31810
31811 2004-06-14  Robert Dewar  <dewar@gnat.com>
31812
31813         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
31814         elab entities in predefined units in No_Run_Time_Mode.
31815         (Gen_Adainit_C): Same fix
31816         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
31817         units in No_Run_Time_Mode
31818         (Gen_Elab_Calls_C): Same fix
31819
31820         * symbols-vms-alpha.adb: Minor reformatting
31821
31822         * g-debpoo.ads: Minor reformatting
31823
31824         * lib.adb (In_Same_Extended_Unit): Version working on node id's
31825
31826         * lib.ads (In_Same_Extended_Unit): Version working on node id's
31827
31828         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
31829         working on nodes.
31830
31831         * make.adb: Minor reformatting
31832
31833         * par-ch12.adb: Minor reformatting
31834
31835         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
31836
31837         * prj-strt.adb: Minor reformatting
31838
31839         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
31840         be more general.
31841
31842         * sem_attr.adb: Minor reformatting
31843
31844         * sem_ch7.adb: Minor reformatting
31845
31846         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31847         for type in the same unit as the object declaration.
31848
31849         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31850         static string expressions and not just string literals.
31851         Minor reformatting
31852         (Set_Warning): Reset restriction warning flag for restriction pragma
31853         Implement pragma Profile_Warnings
31854         Implement pragma Profile (Restricted)
31855         Give obolescent messages for old restrictions and pragmas
31856
31857         * snames.h, snames.ads, snames.adb: Add new entry for pragma
31858         Profile_Warnings.
31859
31860         * s-rident.ads: Add declarations for restrictions required by profile
31861         Restricted and profile Ravenscar.
31862
31863         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31864
31865         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31866         configuration pragmas.
31867
31868 2004-06-11  Vincent Celier  <celier@gnat.com>
31869
31870         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31871         gnatsym, when symbol policy is Restricted.
31872
31873         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31874         gnatsym, when symbol policy is Restricted.
31875
31876         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31877         read the symbol file.
31878         (Finalize): Fail in symbol policy Restricted if a symbol in the original
31879         symbol file is not in the object files. Do not create a new symbol file
31880         when symbol policy is Restricted.
31881
31882         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31883         in Scng.
31884
31885         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31886         Restricted.
31887         (Usage): Line for new switch -R
31888
31889         * make.adb (Initialize): When the platform is not VMS, add the
31890         directory where gnatmake is invoked in the front of the path, if
31891         gnatmake is invoked with directory information.  Change the Scan_Args
31892         while loop to a for loop.
31893         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31894         if Depth is equal or greater than the proposed depth, there is nothing
31895         to do.
31896         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31897         instead of 0.
31898
31899         * prj.ads: Add new symbol policy Restricted.
31900
31901         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31902         with the new parameters Check_All_Labels and Case_Location.
31903
31904         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31905         (Library_Symbol_File needs to be defined).
31906
31907         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31908         and Case_Location If Check_All_Labels is True, check that all values of
31909         the string type are used, and output warning(s) if they are not.
31910
31911         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31912         and Case_Location.
31913
31914         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31915
31916         * gnat_ugn.texi: Update documentation about the library directory in
31917         Library Projects.
31918
31919         * makegpr.adb (Display_Command): In verbose mode, also display the
31920         value of the CPATH env var, when the compiler is gcc.
31921         (Initialize): Change the Scan_Args while loop to a for loop
31922         (Compile_Individual_Sources): Change directory to object directory
31923         before compilations.
31924
31925         * symbols.ads: New symbol policy Restricted.
31926
31927 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
31928
31929         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31930         is now taken care of internally in the Exception_Propagation package
31931         and does not require clients assistance any more.
31932
31933         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31934         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31935         functions. Helpers to maintain a predicate required in the handling of
31936         occurrence transfer between tasks.
31937         This is now handled internally and does not require clients assistance
31938         for the setup/propagate separation anymore.
31939         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31940         allocation strategy, handle the Setup_And_Not_Propagated predicate and
31941         document.
31942
31943         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31944         raise_after_setup, now that everything is handled internally within the
31945         setup/propagation engine.
31946
31947 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31948
31949         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31950         Add additional conditions for the case of an actual being a simple
31951         name or literal. Improve inlining by preventing the generation
31952         of temporaries with a short lifetime (one use).
31953
31954 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31955
31956         PR ada/15587
31957         * einfo.ads: Minor comment updates for Has_Completion and
31958         E_Constant list of flags.
31959
31960         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31961         and constant redeclarations now set the Has_Completion flag of their
31962         defining identifiers.
31963
31964         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31965         Inspect_Deferred_Constant_Completion.
31966         Used to detect private deferred constants that have not been completed
31967         either by a constant redeclaration or pragma Import. Emits error message
31968         "constant declaration requires initialization expression".
31969
31970         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31971         completes a deferred constant.
31972
31973 2004-06-11  Geert Bosch  <bosch@gnat.com>
31974
31975         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31976
31977         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31978         calculating exponent for scaling denormal numbers.
31979         (Leading_Part): Properly raise Constraint_Error for zero or negative
31980         Adjustment.
31981         (Remainder): Properly raise Constraint_Error for zero divisor.
31982
31983 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
31984
31985         * sem_util.adb: Minor reformatting.
31986
31987         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31988         dereference when accessing the entry parameter record.
31989         (Check_Array_Type): Always check for possible implicit dereference.
31990         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31991         Abort if a pointer is still present (denoting that an implicit
31992         dereference was left in the tree by the front-end).
31993
31994         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31995         dereference when accessing the entry parameter record.
31996         (Check_Array_Type): Always check for possible implicit dereference.
31997         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31998         Abort if a pointer is still present (denoting that an implicit
31999         dereference was left in the tree by the front-end).
32000
32001 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
32002
32003         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32004         message, like the compiler itself does. Easier to parse the output.
32005
32006         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32007
32008         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32009         be base names, and not includes directories.
32010
32011 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32012
32013         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32014         so that dependencies are properly taken into account by make.
32015
32016 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
32017
32018         PR ada/15622
32019         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32020         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32021
32022 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
32023
32024         * Makefile.in (install-gnatlib): install target-specific run-time files.
32025
32026         * Make-lang.in: Remove obsolete targets.
32027
32028 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32029
32030         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32031         specification, to catch misuses of program unit names.
32032
32033         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32034         superfluous conversions in an instance.
32035
32036 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
32037
32038         PR ada/15403
32039         * sem_ch12.adb (Save_References): If operator node has been folded to
32040         enumeration literal, associated_node must be discarded.
32041
32042 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
32043
32044         * s-stchop-vxworks.adb: Add required pragma Convention to
32045         Task_Descriptor because it is updated by a C function.
32046
32047 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
32048
32049         PR ada/15568
32050         * Makefile.in: Remove target specific SO_OPT on IRIX
32051
32052 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32053
32054         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32055         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32056         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32057         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32058         (STMT_STMT, USE_STMT): New statement codes.
32059         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32060         * ada-tree.h: Reflect above changes.
32061         (struct tree_loop_id): Deleted.
32062         (union lang_tree_node, struct lang_decl, struct lang_type):
32063         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32064         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32065         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32066         (IS_ADA_STMT): New macro.
32067         * decl.c (annotate_decl_with_node): New function.
32068         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32069         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32070         Call add_stmt_with_node to do needed assignments.
32071         Add call to update setjmp buffer directly, not via EXPR_STMT.
32072         (maybe_variable): Argment GNAT_NODE deleted.
32073         * gigi.h (maybe_variable): Likewise.
32074         (make_transform, add_stmt_with_node, set_block_for_group): New.
32075         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32076         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32077         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32078         (set_lineno, set_lineno_from_sloc): Likewise.
32079         (record_code_position, insert_code_for): Likewise.
32080         (gnat_poplevel): Now returns void.
32081         (end_subprog_body): Now takes argument.
32082         * misc.c (cgraph.h, tree-inline.h): New includes.
32083         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32084         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32085         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32086         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32087         (gnat_parse_file): Don't set immediate_size_expand.
32088         Call cgraph functions.
32089         (gnat_expand_expr): Remove most cases.
32090         (record_code_position, insert_code_for): Remove from here.
32091         * trans.c (toplev.h, tree-gimple.h): Now included.
32092         (discard_file_names): Deleted.
32093         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32094         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32095         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32096         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32097         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32098         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32099         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32100         (set_block_for_group, add_stmt_list): Likewise.
32101         (start_stmt_group): Renamed from start_block_stmt.
32102         (end_stmt_group): Likewise, from end_block_stmt.
32103         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32104         (gigi): Don't set discard_file_names or call set_lineno.
32105         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32106         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32107         Numerous changes throughout to reflect new names and complete
32108         function-at-a-time implementation.
32109         (gnat_expand_stmt): Delete or comment out all cases.
32110         (process_inlined_subprograms): Use add_stmt.
32111         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32112         call set_lineno; also remove unneeded block handling.
32113         (process_type): Remove unneeded block handling.
32114         (build_unit_elab): Remove calls to deleted functions.
32115         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32116         (tree-dump.h): Likewise.
32117         (struct ada_binding_level): Add field jmpbuf_decl.
32118         (gnat_define_builtin, gnat_install_builtins): New.
32119         (gnat_gimplify_function, gnat_finalize): Likewise.
32120         (gnat_poplevel): No longer return BLOCK, set it instead.
32121         Remove code dealing with nested functions.
32122         (gnat_init_decl_processing): Also set size_type_node.
32123         Call gnat_install_builtins.
32124         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32125         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32126         Remove special-case for "main".
32127         (end_subprog_body): Add arg and rework for tree-ssa.
32128         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32129         Add case for BOOLEAN_TYPE.
32130         * utils2.c (rtl.h): Now include.
32131         (build_call_raise): Test Debug_Flag_NN directly.
32132         (build_call_alloc_dealloc): Don't use local stack allocation for now.
32133         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32134         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32135
32136 2004-06-07  Robert Dewar  <dewar@gnat.com>
32137
32138         * a-direct.ads, einfo.ads: Minor comment updates
32139
32140         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32141         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32142         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32143         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32144         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32145
32146         * s-interr-sigaction.adb: Remove unreferenced variable
32147         (Attached_Interrupts).  Minor reformatting.
32148         Avoid use of variable I (replace by J).
32149
32150         * par-ch10.adb: Fix text of one error message
32151
32152         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32153         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32154         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32155         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32156         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32157         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32158         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32159         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32160         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32161         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32162         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32163         2005 support.
32164
32165 2004-06-07  Doug Rupp  <rupp@gnat.com>
32166
32167         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32168
32169         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32170
32171         * mlib-tgt-vms-ia64.adb: New file.
32172
32173         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32174         Add mlib-tgt-vms-ia64.adb
32175         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32176         Move to alpha specific ifeq section.
32177         Add VMS specific versions of symbols.adb
32178         Renaming of 5q vms files.
32179
32180         * 5qsystem.ads renamed to system-vms_64.ads.
32181
32182 2004-06-07  Vincent Celier  <celier@gnat.com>
32183
32184         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32185         explain that when a time of day corresponding to the non existing hour
32186         on the day switching to DST is specified, Split may return a different
32187         value for Seconds.
32188
32189         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32190         to GNAT PRETTY.
32191
32192         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32193         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32194
32195         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32196         to False.
32197         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32198         the linking options.
32199         (Build_Library.Check_Libs): On VMS, if there is a dependency on
32200         g-trasym.ads, set Gtrasymobj_Needed to True.
32201
32202         * prj-attr.adb: Add new package Metrics for gnatmetric
32203
32204         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32205         canonical case to take into account files with upper case characters on
32206         Windows.
32207         (Ada_Check): Load the reference symbol file name in the name buffer to
32208         check it, not the symbol file name.
32209
32210         * snames.ads, snames.adb: Add standard name Metrics (name of project
32211         file package for gnatmetric).
32212
32213         * vms_conv.ads: Add Metric to Comment_Type
32214
32215         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32216
32217         * vms_data.ads: Add qualifiers for GNAT METRIC
32218
32219         * makegpr.adb (Link_Executables): Take into account the switches
32220         specified in package Linker of the main project.
32221
32222 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
32223
32224         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32225         the index of the last element is Units.Last, not Units.Table'Last
32226         (which is usually not a valid index within the actually allocated
32227         storage for the table).
32228
32229         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32230         determines whether to generate a call to a checked storage pool
32231         Dereference action.
32232         Generate such a call only for a dereference that either comes from
32233         source, or is the result of rewriting a dereference that comes from
32234         source.
32235
32236 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
32237
32238         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32239
32240 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
32241
32242         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32243         file level, elaborate the stride for inner dimensions in alignment
32244         units, not bytes.
32245
32246         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32247         in a comment.
32248
32249 2004-06-07  Javier Miranda  <miranda@gnat.com>
32250
32251         * exp_ch6.adb: Correct wrong modification in previous patch
32252
32253 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
32254
32255         * g-trasym.ads: Corrected comment to properly reflect level of support
32256         on VMS.
32257
32258 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
32259
32260         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32261         includes case of a variable referenced on the left hand side of an
32262         assignment, therefore remove redundant code. Variables and prefixes of
32263         indexed or selected components are now marked as referenced on left
32264         hand side. Warnings are now properly emitted when variables or prefixes
32265         are assigned but not read.
32266
32267         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32268         left hand side referenced variables. Private access types do not
32269         produce the warning "variable ... is assigned but never read".
32270         Add also additional checks to left hand side referenced variables.
32271         Aliased, renamed objects and access types do not produce the warning
32272         "variable ... is assigned but never read" since other entities may read
32273         the memory location.
32274
32275 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
32276
32277         * Makefile.in: In the powerpc/vxworks-specific section, restore
32278         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32279         by mistake).
32280
32281 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
32282
32283         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32284         predefined operators.
32285         Removes spurious type errors from g-trasym-vms.adb.
32286
32287         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
32288         distinct from the operator appearing in the source, call appropriate
32289         routine to insert conversions when needed, and complete resolution of
32290         node.
32291         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
32292         interpretations for rewritten right operand.
32293         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
32294         the other operand is overloaded and the context is a type conversion.
32295
32296 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32297
32298         * ada-tree.def (BLOCK_STMT): Now has two operands.
32299         (BREAK_STMT): New.
32300
32301         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
32302
32303         * gigi.h: (gnat_poplevel): Now returns a tree.
32304
32305         * trans.c (end_block_stmt): Add arg; all callers changed.
32306         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
32307         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
32308         (add_stmt): Set TREE_TYPE.
32309         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
32310         (gnat_expand_stmt, case BREAK_STMT): New case.
32311
32312         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
32313
32314 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
32315
32316         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
32317         procedure Set_Stack_Size that is not needed.
32318
32319 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
32320
32321         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
32322         used for gnatpp input file and for the files upon which it depends
32323
32324 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
32325
32326         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32327
32328 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
32329
32330         * gnatvsn.ads: Bump version numbers appropriately.
32331         Add new build type.
32332
32333 2004-06-07  Pascal Obry  <obry@gnat.com>
32334
32335         * gnat_ugn.texi: Improve comments about imported names and link names
32336         on Windows. Add a note about the requirement to use -k gnatdll's option
32337         when working with a DLL which has stripped stdcall symbols (no @nn
32338         suffix).
32339
32340 2004-05-27  Vincent Celier  <celier@gnat.com>
32341
32342         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
32343         COMMENTS_LAYOUT=UNTOUCHED
32344
32345         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
32346         symbols-vms-alpha.adb
32347
32348 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
32349
32350         * sem.ads: Clarify documentation on checks suppression.
32351
32352         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
32353
32354 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
32355
32356         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
32357         the case of multiple derivations.
32358         (Is_Object_Reference): For a selected component, verify that the prefix
32359         is itself an object and not a value.
32360
32361         * sem_ch12.adb (Same_Instantiated_Constant): New name for
32362         Same_Instantiated_Entity.
32363         (Same_Instantiated_Variable): Subsidiary to
32364         Check_Formal_Package_Instance, to recognize actuals for in-out generic
32365         formals that are obtained from a previous formal package.
32366         (Instantiate_Subprogram_Body): Emit proper error when
32367         generating code and the proper body of a stub is missing.
32368
32369         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
32370         has a universal interpretation, do the disambiguation here.
32371
32372         * exp_ch4.adb (Expand_N_Type_Conversion,
32373         Expand_N_Unchecked_Type_Conversion): Special handling when target type
32374         is Address, to avoid typing anomalies when Address is a visible integer
32375         type.
32376
32377         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
32378         to determine whether a subprogram should not be marked Pure, even when
32379         declared in a pure package.
32380
32381 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
32382
32383         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
32384
32385         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
32386         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
32387         Update the documentation about the Ravenscar profile, following the
32388         definition found in AI-249.
32389
32390         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
32391         setting the Profile (Ravenscar). This must be done in addition to
32392         setting the required restrictions.
32393
32394         * rtsfind.ads: Add the set of operations defined in package
32395         Ada.Interrupts.
32396
32397         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
32398         restriction.
32399
32400 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
32401
32402         lang-specs.h: Always require -c or -S and always redirect to /dev/null
32403         if -gnatc or -gnats is passed.
32404
32405 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
32406
32407         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
32408         a significant reference. Warnings are now properly emitted when a
32409         discriminated type is not referenced.
32410
32411         * lib-xref.adb (Generate_Reference): A deferred constant completion,
32412         record representation clause or record type discriminant does not
32413         produce a reference to its corresponding entity. Warnings are now
32414         properly emitted when deferred constants and record types are not
32415         referenced.
32416
32417 2004-05-27  Geert Bosch  <bosch@gnat.com>
32418
32419         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
32420         Fixes ACATS Annex G tests.
32421
32422 2004-05-27  Robert Dewar  <dewar@gnat.com>
32423
32424         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
32425         handling WITH
32426
32427 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
32428
32429         * s-interr.adb (Server_Task): Take into account case of early return
32430         from sigwait under e.g. linux.
32431
32432 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
32433
32434         * gnat_ugn.texi: Add description for the new gnatpp options:
32435          -rnb - replace the original source without creating its backup copy
32436          -c0 - do not format comments
32437
32438 2004-05-24  Geert Bosch  <bosch@gnat.com>
32439
32440         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
32441         with 192 bits of precision, sufficient to reduce a double-extended
32442         arguments X with a maximum relative error of T'Machine_Epsilon, for X
32443         in -2.0**32 .. 2.0**32.
32444         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
32445         reduction by the processor, which only uses a 68-bit approximation of
32446         Pi.
32447         (Tan): Always reduce arguments and compute function either using
32448         the processor's fptan instruction, or by dividing sin and cos as needed.
32449
32450 2004-05-24  Doug Rupp  <rupp@gnat.com>
32451
32452         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
32453         gcc error on 32/64 bit VMS.
32454
32455 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
32456
32457         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
32458         since this is what we get for stack overflows although not documented
32459         as such.
32460         Document the issues which may require adjustments to our signal
32461         handlers.
32462
32463 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
32464
32465         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
32466         enclosing dynamic scope if the instantiation is within a generic unit.
32467
32468 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
32469
32470         * exp_dbug.ads: Fix typo.
32471
32472         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
32473         Rename it to its proper name: system-linux-ia64.ads
32474         (stamp-gnatlib1): Remove extra target specific run time files when
32475         setting up the rts directory.
32476
32477 2004-05-24  Javier Miranda  <miranda@gnat.com>
32478
32479         * einfo.ads, einfo.adb (Limited_Views): Removed.
32480         (Limited_View): New attribute that replaces the previous one. It is
32481         now a bona fide package with the limited-view list through the
32482         first_entity and first_private attributes.
32483
32484         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
32485         limited-private-with clause.
32486         (Install_Limited_Withed_Unit): Install the private declarations of a
32487         limited-private-withed package. Update the installation of the shadow
32488         entities according to the new structure (see Build_Limited_Views)
32489         (Build_Limited_Views): Replace the previous implementation of the
32490         limited view by a package entity that references the first shadow
32491         entity plus the first shadow private entity (required for limited-
32492         private-with clause)
32493         (New_Internal_Shadow_Entity): Code cleanup.
32494         (Remove_Limited_With_Clause): Update the implementation to undo the
32495         new work carried out by Build_Limited_Views.
32496         (Build_Chain): Complete documentation.
32497         Replace Ada0Y by Ada 0Y in comments
32498         Minor reformating
32499
32500         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
32501         types the level of accessibility depends on the enclosing type
32502         declaration.
32503
32504         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
32505         entities. Complete documentation of previous change.
32506
32507 2004-05-24  Robert Dewar  <dewar@gnat.com>
32508
32509         * namet.adb: Minor reformatting
32510         Avoid use of name I (replace by J)
32511         Minor code restructuring
32512
32513         * sem_ch6.adb: Minor reformatting
32514
32515         * lib-writ.adb: Do not set restriction as active if this is a
32516         Restriction_Warning case.
32517
32518         * sem_prag.adb: Reset restriction warning flag if real pragma
32519         restriction encountered.
32520
32521         * s-htable.adb: Minor reformatting
32522         Change rotate count to 3 in Hash (improves hash for small strings)
32523
32524         * 5qsystem.ads: Add comments for type Address (no literals allowed).
32525
32526         * gnat_ugn.texi: Add new section of documentation "Code Generation
32527         Control", which describes the use of -m switches.
32528
32529 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
32530
32531         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
32532         through the DECL_INITIAL for renamed variables.
32533
32534 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
32535
32536         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
32537
32538 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
32539
32540         * exp_dbug.ads: Correct comments concerning handling of overloading,
32541         since we no longer use $ anymore.
32542
32543 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
32544
32545         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
32546         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
32547         with illegal subunits.
32548
32549 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
32550
32551         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
32552         body with front-end inlining enabled, check whether an inline pragma
32553         appears immediately after the body and applies to it.
32554
32555         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
32556         enabled and the pragma appears after the body of the subprogram.
32557
32558 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32559
32560         Part of function-at-a-time conversion
32561
32562         * misc.c (adjust_decl_rtl): Deleted.
32563         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
32564         Define.
32565
32566         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
32567         (add_decl_stmt, add_stmt, block_has_vars): New functions.
32568         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
32569
32570         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
32571         when making a decl.
32572         (gnat_to_gnu_entity): Likewise.
32573         Use add_stmt to update setjmp buffer.
32574         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
32575         flush_addressof.
32576         No longer call adjust_decl_rtl.
32577         (DECL_INIT_BY_ASSIGN_P): New macro.
32578         (DECL_STMT_VAR): Likewise.
32579
32580         * trans.c (gigi): Call start_block_stmt to make the outermost
32581         BLOCK_STMT.
32582         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
32583         Call start_block_stmt and end_block_stmt temporarily.
32584         Use gnat_expand_stmt instead of expand_expr_stmt.
32585         (add_decl_stmt): New function.
32586         (tree_transform): Call it.
32587         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
32588         (end_block_stmt): Set type and NULL_STMT.
32589         (gnat_expand_stmt): Make recursize call instead of calling
32590         expand_expr_stmt.
32591         (gnat_expand_stmt, case DECL_STMT): New case.
32592         (set_lineno_from_sloc): Do nothing if global.
32593         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
32594         (start_block_stmt, add_stmt, end_block_stmt): New functions.
32595         (build_block_stmt): Call them.
32596         (gnat_to_code): Don't expand NULL_STMT.
32597         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
32598         args.
32599         (tree_transform): Likewise.
32600         (tree_transform, case N_Null_Statement): Return NULL_STMT.
32601         (gnat_expand_stmt, case NULL_STMT): New case.
32602         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
32603         IF_STMT_TRUE.
32604
32605         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
32606         TREE_ADDRESSABLE.
32607
32608         * utils.c (create_var_decl): Do not call expand_decl or
32609         expand_decl_init.
32610         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
32611         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
32612         here.
32613         (struct e_stack): Add chain_next to GTY.
32614         (struct binding_level): Deleted.
32615         (struct ada_binding_level): New struct.
32616         (free_block_chain): New.
32617         (global_binding_level, clear_binding_level): Deleted.
32618         (global_bindings_p): Rework to see if no chain.
32619         (kept_level_p, set_block): Deleted.
32620         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
32621         new data structure and work directly on BLOCK node.
32622         (gnat_poplevel): Similarly.
32623         (get_decls): Look at BLOCK_VARS.
32624         (insert_block): Work directly on BLOCK node.
32625         (block_has_var): New function.
32626         (pushdecl): Rework for new binding structures.
32627         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
32628         poplevel.
32629         (build_subprog_body): Likewise.
32630         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
32631
32632         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
32633
32634         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
32635         (DECL_STMT_VAR): Likewise.
32636
32637 2004-05-17  Robert Dewar  <dewar@gnat.com>
32638
32639         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
32640         procedure
32641
32642         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
32643         of restriction synonyums by using
32644         Restrict.Process_Restriction_Synonyms.
32645
32646         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
32647
32648         * s-restri.ads (Tasking_Allowed): Correct missing comment
32649
32650         * s-rident.ads: Add entries for restriction synonyms
32651
32652         * ali.adb: Fix some problems with badly formatted ALI files that can
32653         result in infinite loops.
32654
32655         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
32656         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
32657         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32658         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
32659         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
32660         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
32661         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
32662         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
32663         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
32664         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
32665         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
32666         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
32667         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
32668         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32669         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32670         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32671         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32672         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32673         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
32674         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
32675         to Task_Id (minor cleanup).
32676
32677 2004-05-17  Vincent Celier  <celier@gnat.com>
32678
32679         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
32680         directory separator.
32681
32682         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
32683         project being extended, if Languages is not declared in extending
32684         project.
32685
32686 2004-05-17  Javier Miranda  <miranda@gnat.com>
32687
32688         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
32689         limited view of a visible sibling.
32690
32691 2004-05-14  Robert Dewar  <dewar@gnat.com>
32692
32693         * gnat_ugn.texi: Minor change to -gnatS documentation
32694
32695         * sprint.adb: Remove some instances of Assert (False) and for this
32696         purpose replace them by output of a ??? string.
32697
32698         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
32699         Assert (False).
32700
32701         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
32702         flag processing. This was suppressing required dependencies in
32703         No_Run_Time mode and is not needed since the binder does not generate
32704         references for things in libgnat anyway.
32705
32706         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
32707         warning.
32708
32709 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
32710
32711         * gnat_ugn.texi: Document AIX-specific issue with initialization of
32712         resolver library.
32713
32714         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
32715         action for the case of an actual parameter in an init proc call.
32716
32717 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
32718
32719         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
32720         subtype, check visible entities in base type.
32721
32722         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
32723         actions if the object is a renaming.
32724
32725         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
32726         Check_Formal_Package_Instance, to determine more precisely when the
32727         formal and the actual denote the same entity.
32728
32729 2004-05-14  Javier Miranda  <miranda@gnat.com>
32730
32731         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
32732
32733         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
32734         corresponding to a private_with must be removed from visibility; it
32735         will be made visible later, just before we analyze the private part of
32736         the package.
32737         (Check_Private_Child_Unit): Allow private_with clauses in public
32738         siblings.
32739         (Install_Siblings): Make visible the private entities of private-withed
32740         siblings.
32741         (Install_Withed_Unit): Do not install the private withed unit if we
32742         are compiling a package declaration and the Private_With_OK flag was
32743         not set by the caller. These declarations will be installed later,
32744         just before we analyze the private part of the package.
32745
32746         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
32747         during the evaluation of the expression that initializes the object,
32748         decorate it with the expected type to avoid cascade errors.
32749         Code cleanup.
32750
32751         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
32752         subprogram we have to install the private_with clauses after its
32753         specification has been analyzed (as documented in AI-262.TXT).
32754
32755         * sem_ch8.adb (Has_Private_With): New function. Determines if the
32756         current compilation unit has a private with on a given entity.
32757         (Find_Direct_Name): Detect the Beaujolais problem described in
32758         AI-262.TXT
32759
32760         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
32761         provides the functionality of the function Is_Ancestor that was
32762         previously available in sem_ch10. It has been renamed to avoid
32763         overloading.
32764
32765         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
32766
32767 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32768
32769         * utils.c (build_vms_descriptor): Use SImode pointers.
32770
32771 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
32772
32773         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
32774
32775 2004-05-14  GNAT Script  <nobody@gnat.com>
32776
32777         * Make-lang.in: Makefile automatically updated
32778
32779 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
32780
32781         Renaming of target specific files for clarity
32782
32783         * Makefile.in: Rename GNAT target specific files.
32784
32785         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
32786         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
32787         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
32788         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
32789         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
32790         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
32791         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
32792         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
32793         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
32794         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
32795         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
32796         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
32797         51osinte.adb, 51osinte.ads, 51system.ads,
32798         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
32799         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
32800         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
32801         56tpopsp.adb, 57system.ads, 58system.ads,
32802         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
32803         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32804         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
32805         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
32806         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
32807         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32808         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
32809         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32810         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32811         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
32812         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
32813         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
32814         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
32815         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
32816         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
32817         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32818         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32819         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32820         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
32821         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
32822         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
32823         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
32824         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
32825         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32826         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
32827         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
32828         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32829         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
32830         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32831         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
32832         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
32833         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
32834         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
32835         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
32836         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
32837         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
32838         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
32839         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
32840         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
32841         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
32842
32843         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32844         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32845         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32846         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32847         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32848         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32849         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32850         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32851         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32852         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32853         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32854         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32855         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32856         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32857         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32858         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32859         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32860         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32861         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32862         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32863         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32864         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32865         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32866         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32867         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32868         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32869         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32870         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32871         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32872         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32873         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32874         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32875         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32876         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32877         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32878         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32879         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32880         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32881         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32882         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32883         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32884         s-osinte-vms.ads, s-osinte-vxworks.adb,
32885         s-osinte-vxworks.ads, s-osprim-mingw.adb,
32886         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32887         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32888         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32889         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32890         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32891         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32892         s-stchop-vxworks.adb, s-taprop-dummy.adb,
32893         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32894         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32895         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32896         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32897         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32898         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32899         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32900         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32901         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32902         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32903         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32904         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32905         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32906         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32907         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32908         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32909         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32910         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32911         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32912         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32913         system-irix-o32.ads, system-linux-x86_64.ads,
32914         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32915         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32916         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32917         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32918         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32919         system-vxworks-mips.ads, system-vxworks-ppc.ads,
32920         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32921         above.
32922
32923 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
32924
32925         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32926
32927 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
32928
32929         Merge from tree-ssa-20020619-branch.
32930
32931         * config-lang.in (boot_language, build_by_default): Set
32932         to no.
32933         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32934         (max_size): Add static chain op for call_expr.
32935
32936 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
32937
32938         PR target/15331
32939         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32940
32941 2004-05-11  Roger Sayle  <roger@eyesopen.com>
32942
32943         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32944         COND_EXPR.
32945
32946 2004-05-10  Doug Rupp  <rupp@gnat.com>
32947
32948         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32949         system.aux_dec.
32950
32951         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32952
32953         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32954
32955         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32956         Fixes undefined symbols in IA64 gnatlib.
32957
32958         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32959
32960         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32961         Short_Address). This will be moved to system.auxdec.
32962
32963 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
32964
32965         * sem_util.adb: Replace test for presence of a node that is always
32966         present with a call to Discard_Node.
32967
32968         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32969         Analyze on the library unit node after generation of distribution stub
32970         constructs.  The call was a no-op because Unit_Node has already been
32971         Analyzed, and the tree fragments for the distribution stubs are
32972         analyzed as they are inserted in Exp_Dist.
32973         Update comment regarding to distribution stubs to reflect that we
32974         do not generate stub in separate files anymore.
32975
32976         * einfo.ads: Clarify the fact that a tagged private type has the
32977         E_Record_Type_With_Private Ekind.
32978
32979         * erroutc.adb: Minor reformatting
32980
32981         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32982         values if line length is increased using -gnatyM (noticed during code
32983         reading).
32984
32985         * eval_fat.adb: Minor reformatting
32986         Put spaces around exponentiation operator
32987
32988 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32989
32990         PR ada/15005
32991         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32992         has been rewritten as an explicit dereference, retrieve type of
32993         original node to check for possibly unconstrained record type.
32994
32995 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32996
32997         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32998         overriding, use the operation of the parent unconditionally.
32999
33000         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33001         operation when either operand is a literal, to avoid further
33002         ambiguities.
33003
33004         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33005         overridden by a previous explicit declaration, mark the previous entity
33006         as overriding.
33007
33008         * sem_disp.adb (Check_Dispatching_Operation): New predicate
33009         Is_Visibly_Controlled, to determine whether a declaration of a
33010         primitive control operation for a derived type overrides an inherited
33011         one. Add warning if the explicit declaration does not override.
33012
33013 2004-05-10  Vincent Celier  <celier@gnat.com>
33014
33015         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33016         some cases when the sources are no longer present.
33017
33018         * make.adb (Collect_Arguments): Fail if an external source, not part
33019         of any project need to be compiled, when switch -x has not been
33020         specified.
33021
33022         * makeusg.adb: Document new switch -x
33023
33024         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33025         defaulted to False.
33026
33027         * switch-m.adb (Scan_Make_Switches): New switch -x
33028
33029         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33030         gnatmake switch -x.
33031
33032         * gnat_ugn.texi: Document new gnatmake switch -x
33033
33034 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
33035
33036         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33037
33038         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33039         (process_attributes): Likewise.
33040
33041 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
33042
33043         * s-inmaop.ads: Fix spelling mistake in one of the comments.
33044
33045 2004-05-10  Robert Dewar  <dewar@gnat.com>
33046
33047         * gnat_ugn.texi: Document that for config pragma files, the maximum
33048         line length is always 32767.
33049
33050         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33051         literals is now allowed.
33052
33053         * gnat-style.texi: Remove statement about splitting long lines before
33054         an operator rather than after, since we do not follow this rule at all.
33055         Clarify rule (really lack of rule) for spaces around exponentiation
33056
33057         * sem_elim.adb: Allow concatenation of string literals as well as a
33058         single string literal for pragma arguments.
33059
33060         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33061
33062         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33063         written for append case.
33064
33065         * frontend.adb: Changes to avoid checking max line length in config
33066         pragma files.
33067
33068         * g-os_lib.ads: Minor reformatting
33069
33070         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33071         wrong in any case. Instead use standard value. Noticed during code
33072         reading.
33073
33074         * opt.ads (Max_Line_Length): New field, used to implement removal of
33075         limitation on length of lines when scanning config pragma files.
33076
33077         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33078         makeutl.ads, makeutl.adb: Minor reformatting
33079
33080         * scn.adb: Do not check line length while scanning config pragma files
33081         Do not check line length while scanning out license information
33082
33083         * scng.adb: Changes to avoid line length checks while parsing config
33084         pragma files.
33085
33086 2004-05-10  GNAT Script  <nobody@gnat.com>
33087
33088         * Make-lang.in: Makefile automatically updated
33089
33090 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
33091
33092         * osint.adb (Find_Program_Name): Fix handling of VMS version
33093         number.
33094
33095 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
33096
33097         * g-os_lib.ads (Invalid_Time): New constant
33098
33099         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33100         return OS_Time instead of time_t to match what is imported by Ada.
33101         Now return -1 if the file doesn't exist, instead of a random value
33102
33103 2004-05-05  Robert Dewar  <dewar@gnat.com>
33104
33105         * usage.adb: Add line for -gnatR?s switch
33106
33107         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33108
33109         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33110         and for Match (Data_First, Data_last)
33111
33112         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33113         written when we are dealing with multi-unit files.
33114
33115 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
33116
33117         * Makefile.in: Remove unused targets and variables.
33118
33119 2004-05-05  Vincent Celier  <celier@gnat.com>
33120
33121         * switch-m.adb: New gnatmake switch -eI
33122
33123         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33124         of new gnatmake switch -eInnn.
33125
33126         * makegpr.adb: Take into account new parameters Index and Src_Index in
33127         Prj.Util.
33128
33129         * clean.adb: Implement support for multi-unit sources, including new
33130         switch -i.
33131
33132         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33133         Src_Index.
33134
33135         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33136         (Extract_From_Q): New out parameter Index
33137         (Mark, Is_Marked): Subprograms moved to Makeutl
33138         (Switches_Of): New parameter Source_Index
33139         (Add_Switch): New parameter Index
33140         (Check): New parameter Source_Index
33141         (Collect_Arguments): New parameter Source_Index
33142         (Collect_Arguments_And_Compile): New parameter Source_Index
33143         (Compile): New parameter Source_Index
33144         Put subprograms in alphabetical order
33145         Add support for multi-source sources, including in project files.
33146
33147         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33148         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33149         Make.
33150
33151         * makeusg.adb: New gnatmake switch -eInnn
33152
33153         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33154         Prj.Util.Value_Of.
33155
33156         * opt.ads (Main_Index): New variable, defaulted to 0.
33157
33158         * osint.ads, osinte.adb (Add_File): New parameter Index
33159         (Current_Source_Index): New function
33160
33161         * prj.adb: Take into account new components Index and Src_Index
33162
33163         * prj.ads (String_Element): New component Index
33164         (Variable_Value): New component Index
33165         (Array_Element): New component Src_Index
33166
33167         * prj-attr.adb: Indicate that optional index may be specified for
33168         attributes Main, Executable, Spec, Body and some of Switches.
33169
33170         * prj-attr.ads (Attribute_Kind): New values for optional indexes
33171         (Attribute_Record): New component Optional_Index
33172
33173         * prj-com.ads (File_Name_Data): New component Index
33174
33175         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33176
33177         * prj-env.adb (Put): Output optional index
33178
33179         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33180         attributes Spec and Body.
33181
33182         * prj-nmsc.adb: Process optional indexes
33183
33184         * prj-pp.adb: Ouput "at" for optional indexes
33185
33186         * prj-proc.adb: Take into account optional indexes
33187
33188         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33189         Optional_Index. For string literal,
33190         process optional index when Optional_Index is True.
33191         (Parse_Expresion): New Boolean parameter Optional_Index
33192
33193         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33194         (Set_Source_Index_Of): New procedure
33195
33196         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33197         index.
33198
33199         * prj-util.ads (Executable_Of): New parameter Index
33200         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33201         New parameter Src_Index, defaulted to 0.
33202
33203 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33204
33205         PR ada/15257
33206         * sem_ch3.adb (Access_Definition): If this is an access parameter
33207         whose designated type is imported through a limited_with clause, do
33208         not add the enclosing subprogram to the list of private dependents of
33209         the type.
33210
33211 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33212
33213         PR ada/15258
33214         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33215         a limited_with clause, and the other is its non-limited view.
33216
33217 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
33218
33219         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33220
33221         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33222         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33223         Stand.Boolean_Literals to produce references to entities
33224         Standard_False and Standard_True from compile-time computed boolean
33225         values.
33226
33227         * stand.ads (Boolean_Literals): New variable, provides the entity
33228         values for False and True, for use by the expander.
33229
33230 2004-05-05  Doug Rupp  <rupp@gnat.com>
33231
33232         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33233         5vinmaop.adb: Unchecked convert Short_Address vice Address
33234
33235         * adaint.c, raise.c: Caste CRTL function return value
33236         to avoid gcc error on 32/64 bit IVMS.
33237
33238         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33239         target = IA64/VMS.
33240
33241         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33242
33243         * 5qsystem.ads (Address): Declare as Long_Integer
33244         (Short_Address): Declare as 32 bit subtype of Address
33245         Declare  abstract address operations to avoid gratuitous ambiguities.
33246
33247 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
33248
33249         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33250         instead of the old Boolean_Entry_Barriers.
33251         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33252
33253 2004-05-05  GNAT Script  <nobody@gnat.com>
33254
33255         * Make-lang.in: Makefile automatically updated
33256
33257 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33258
33259         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33260
33261 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
33262
33263         PR ada/15152
33264         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33265         alone. Replacing object references by literals is inappropriate in a
33266         so low level context.
33267
33268 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33269
33270         * a-exexpr.adb: Add comments
33271
33272 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
33273
33274         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33275         declare the Ancestor_Tags array in Type_Specific_Data with a small size
33276         without risking a bounds check error when accessing one of its
33277         components.
33278         (Type_Specific_Data): Define Ancestor_Tags as a small array.
33279         This prevents us from hitting a limitation during the debug info
33280         generation when using stabs.
33281
33282         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33283         small array.
33284         This prevents us from hitting a limitation during the debug info
33285         generation when using stabs.
33286
33287 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
33288
33289         lang-specs.h: Remove -gnatz* from specs.
33290
33291 2004-05-03  Vincent Celier  <celier@gnat.com>
33292
33293         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
33294
33295         * Make-lang.in, Makefile.in: Add gprmake
33296
33297 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
33298
33299         * sem_aggr.adb: Fix typo in comment.
33300
33301 2004-05-03  Robert Dewar  <dewar@gnat.com>
33302
33303         * make.adb: Minor reformatting
33304
33305         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
33306
33307         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
33308         so that it works when address is not a private type.
33309
33310         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
33311         properly with rewritten unchecked conversions. This prevents
33312         order-of-elaboration issues that can otherwise arise.
33313         (Minimum_Size): Don't check size of access types under VMS
33314
33315         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
33316         interpretations of integer literals as type System.Address.
33317
33318         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
33319         (Is_Descendent_Of): New function
33320
33321 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
33322
33323         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33324         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
33325         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
33326
33327         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
33328         of the old Max_Entry_Queue_Depth.
33329
33330         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33331         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
33332         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
33333
33334         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
33335         New entry for proper handling of Max_Entry_Queue_Depth.
33336         New entry for proper handling of No_Dynamic_Interrupts.
33337
33338         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
33339         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33340         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
33341         the GNAT specific restriction Max_Entry_Queue_Depth.
33342         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
33343         the GNAT specific restriction No_Dynamic_Interrupts.
33344
33345         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
33346         instead of the old Boolean_Entry_Barriers.
33347         Use the new restriction No_Dynamic_Attachment instead of the old
33348         No_Dynamic_Interrupts.
33349
33350         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
33351         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33352
33353         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
33354         of the old Max_Entry_Queue_Depth.
33355
33356 2004-05-03  GNAT Script  <nobody@gnat.com>
33357
33358         * Make-lang.in: Makefile automatically updated
33359
33360 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
33361
33362         * checks.adb (Enable_Range_Check): If the prefix of an index component
33363         is an access to an unconstrained array, perform check unconditionally.
33364
33365 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33366
33367         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
33368         Component_Clause.
33369
33370 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
33371
33372         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
33373         alternate stack setting. There was no support for the tasking cases
33374         and the changes eventually caused a number of side-effect failures in
33375         the non-tasking case too.
33376
33377 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
33378
33379         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
33380         -gnats is passed.
33381
33382 2004-04-29  Vincent Celier  <celier@gnat.com>
33383
33384         * make.adb (Gnatmake): Increase max size of argument array for
33385         gnatbind for the potential addition of -F.
33386         If there are Stand-Alone Library projects, invoke gnatbind with -F to
33387         be sure that elaboration flags will be checked.
33388
33389         * switch-c.adb: Correct call to Scan_Pos for -gnateI
33390
33391 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
33392
33393         * sem_warn.adb (Check_References): Move '<access-variable> may be
33394         null' warning out of under Warn_On_No_Value_Assigned.
33395
33396 2004-04-29  Ed Falis  <falis@gnat.com>
33397
33398         * gnat_ugn.texi: Fixed texi error
33399
33400 2004-04-29  Robert Dewar  <dewar@gnat.com>
33401
33402         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
33403         abstract operations if they come from predefined files.
33404
33405         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
33406         Dynamic, not RM).
33407
33408         * s-addope.adb: Correct obvious error in mod function
33409
33410 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
33411
33412         * Makefile.in: Add target pairs for powerpc darwin*
33413         tasking support.
33414
33415         * a-intnam-darwin.ads, s-osinte-darwin.adb,
33416         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
33417
33418 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
33419
33420         * Makefile.in: Add target macro definitions for s390*-linux*.
33421         * system-linux-s390.ads: New file.
33422         * system-linux-s390x.ads: New file.
33423
33424 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
33425
33426         * gnat_ugn.texi: Correct argument to @setfilename.
33427
33428 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
33429
33430         * a-exexpr.adb (Unwind_Word): New data type.
33431         (Unwind_Exception): Use it as type of Private1 and Private2.
33432
33433         * raise.c (db_action_for): Fix debug printf.
33434
33435 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
33436
33437         * a-wtmoio.ads: Formal type must be a modular type, not a signed
33438         integer type.
33439
33440 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33441
33442         * decl.c (gnat_to_gnu_entity, case object): Call
33443         __builtin_update_setjmp_buf.
33444
33445         * gigi.h (update_setjmp_buf): Deleted.
33446         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
33447
33448         * misc.c: (update_setjmp_buf): Deleted.
33449
33450         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
33451         around block of RTL.
33452
33453         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
33454
33455 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
33456
33457         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
33458         subprogram for which no pragma All_Calls_Remote applies, store the
33459         address of the real subprogram in the underlying record type, so local
33460         dereferences do not go through the PCS.
33461
33462 2004-04-26  Robert Dewar  <dewar@gnat.com>
33463
33464         * i-c.ads: Add some type qualifications to avoid ambiguities when
33465         compiling with s-auxdec.ads and a non-private address type.
33466
33467 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
33468
33469         * Makefile.rtl: Fix error in previous check-in:
33470         Add s-addope.o to non tasking object list (rather than tasking object
33471         list).
33472
33473 2004-04-26  Javier Miranda  <miranda@gnat.com>
33474
33475         * sem_aggr.adb: Fix typo in comments
33476         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
33477         Required to check the null-exclusion attribute.
33478
33479         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
33480         case of anonymous access types in record and array components. For a
33481         component definition the level is the same of the enclosing composite
33482         type.
33483
33484         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
33485         that are anonymous access types the level of accessibility depends on
33486         the enclosing type declaration. In order to have this information, set
33487         the scope of the anonymous access type to the enclosing record type
33488         declaration.
33489         (Array_Type_Declaration): In case of components that are anonymous
33490         access types the level of accessibility depends on the enclosing type
33491         declaration. In order to have this information, set the scope of the
33492         anonymous access type to the enclosing array type declaration.
33493
33494         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
33495         access type.
33496
33497         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
33498         renaming of anonymous access-to-constant types allowed if and only if
33499         the renamed object is access-to-constant.
33500
33501         * sem_util.adb (Type_Access_Level): In case of anonymous access types
33502         that are component_definition or discriminants of a nonlimited type,
33503         the level is the same as that of the enclosing component type.
33504
33505 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
33506
33507         * sem_elim.adb: Some minor code reorganization from code reading. Fix
33508         misprint in the function name (File_Name_Match).
33509
33510 2004-04-23  Laurent Guerby  <laurent@guerby.net>
33511
33512         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
33513         install.
33514
33515 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33516
33517         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
33518
33519 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
33520
33521         * adaint.c (__gnat_try_lock): No longer requires that the parent
33522         directory be writable, the directory itself is enough.
33523         (gnat_is_absolute_path): Change profile, so that the call from
33524         GNAT.OS_Lib can be made more efficient.
33525
33526         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
33527         from GNAT.OS_Lib can be made more efficient.
33528
33529         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
33530         one copy of the file name. Found by code reading.
33531
33532 2004-04-23  Vincent Celier  <celier@gnat.com>
33533
33534         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
33535         Correct documentation on gnatmake switches transmitted to the compiler
33536
33537         * ali.ads: Minor comment fix
33538
33539 2004-04-23  Javier Miranda  <miranda@gnat.com>
33540
33541         * sem_ch6.adb: (Confirming Types): Code cleanup
33542
33543         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
33544         subprogram types: E_Anonymous_Access_Subprogram_Type and
33545         E_Anonymous_Access_Protected_Subprogram_Type.
33546
33547 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
33548
33549         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33550         whether a pragma All_Calls_Remote applies to the subprogram on which
33551         'Access is taken.
33552         No functional change is introduced by this revision; the new parameter
33553         will be used to allow calls to local RCI subprograms to be optimized
33554         to not use the PCS in the case where no pragma All_Calls_Remote applies,
33555         as is already done in the PolyORB implementation of the DSA.
33556
33557         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33558         whether a pragma All_Calls_Remote applies to the subprogram on which
33559         'Access is taken.
33560         No functional change is introduced by this revision; the new parameter
33561         will be used to allow calls to local RCI subprograms to be optimized
33562         to not use the PCS in the case where no pragma All_Calls_Remote applies,
33563         as is already done in the PolyORB implementation of the DSA.
33564
33565 2004-04-23  Robert Dewar  <dewar@gnat.com>
33566
33567         * Makefile.rtl: Add entry for s-addope.o in run time library list
33568         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
33569         * s-addope.ads, s-addope.adb: New files.
33570
33571         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
33572         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
33573         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
33574         System.Address to be non-private and signed.
33575
33576         * sem_elim.adb: Minor reformatting (fairly extensive)
33577         Some minor code reorganization from code reading
33578         Add a couple of ??? comments
33579
33580 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33581
33582         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
33583         (tree_transform, case N_If_Statement): Remove non-determinism.
33584
33585         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
33586
33587 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
33588
33589         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
33590         Eliminate' section.
33591
33592         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
33593         no longer used as a parameter name for Eliminate pragma).
33594
33595 2004-04-22  Laurent Guerby  <laurent@guerby.net>
33596
33597         PR optimization/14984
33598         PR optimization/14985
33599         * trans.c (gigi): Fix non determinism leading to bootstrap
33600         comparison failures.
33601
33602 2004-04-21  Pascal Obry  <obry@gnat.com>
33603
33604         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
33605         passed to spawnvp() to properly handle program pathname with spaces on
33606         Win32.
33607
33608 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
33609
33610         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
33611         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
33612         unlocked in case of exceptions.
33613
33614 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
33615
33616         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
33617         This function does not exist anymore.
33618
33619 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
33620
33621         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
33622
33623         * link.c: Move variables to the __gnat name space.
33624
33625         * Makefile.in: list link.o explicitly when needed.
33626
33627         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
33628
33629 2004-04-21  Javier Miranda  <miranda@gnat.com>
33630
33631         * einfo.adb (Original_Access_Type): New subprogram
33632         (Set_Original_Access_Type): New subprogram
33633         (Write_Field21_Name): Write the name of the new field
33634
33635         * einfo.ads (Original_Access_Type): New field present in access to
33636         subprogram types.
33637         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
33638         E_Anonymous_Access_Protected_Subprogram_Type.
33639
33640         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
33641         subprogram types.
33642
33643         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
33644         to anonymous access to subprogram types.
33645
33646         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
33647         to subprogram types.
33648
33649         * sem_ch3.adb (Access_Definition): Complete decoration of entities
33650         corresponding to anonymous access to subprogram types.
33651         (Analyze_Component_Declaration): Add new actual to the call to
33652         subprogram replace_anonymous_access_to_protected_subprogram.
33653         (Array_Type_Declaration): Add new actual to the call to subprogram
33654         replace_anonymous_access_to_protected_subprogram.
33655         (Process_Discriminants): Add new actual to the call to subprogram
33656         replace_anonymous_access_to_protected_subprogram.
33657         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
33658
33659         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33660         formal.
33661
33662         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
33663         access to subprogram types.
33664
33665         * sem_util.adb (Has_Declarations): Addition of package_specification
33666         nodes.
33667
33668 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
33669
33670         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
33671         inlined flags to renamed entity only if in current unit.
33672
33673 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
33674
33675         * s-parint.ads: Add DSA implementation marker.
33676
33677         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
33678         value of System.Partition_Interface.DSA_Implementation to determine
33679         what version of the distributed systems annex is available (no
33680         implementation, GLADE, or PolyORB).
33681
33682 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
33683
33684         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
33685
33686 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33687
33688         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
33689         with new type if alias sets differ.
33690         Fixes ACATS c41103b.
33691
33692 2004-04-21  Vincent Celier  <celier@gnat.com>
33693
33694         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
33695         Add array Lang_Args for the language specific compiling argument
33696         switches.
33697
33698         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
33699
33700 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
33701
33702         * gnat_rm.texi: Update the descripton of the Eliminate pragma
33703         according to the recent changes in the format of the parameters of the
33704         pragma (replacing Homonym_Number with Source_Location).
33705
33706 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
33707
33708         * 5isystem.ads: Removed, unused.
33709
33710         * gnat_rm.texi: Redo 1.13 change.
33711
33712 2004-04-19  Robert Dewar  <dewar@gnat.com>
33713
33714         * s-stoele.ads: Clean up definition of Storage_Offset (the new
33715         definition is cleaner, avoids the kludge of explicit Standard operator
33716         references, and also is consistent with a visible System.Address with
33717         no visible operations.
33718
33719         * s-geveop.adb: Add declarations to avoid assumption of visible
33720         operations on type System.Address (since these might not be available
33721         if Address is a non-private type for which the operations
33722         are made abstract).
33723
33724         * sem_eval.adb: Minor reformatting
33725
33726         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
33727         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
33728         reformatting (new function spec format).
33729
33730         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
33731         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
33732         s-caun64.adb: Add declarations to avoid assumption of visible
33733         operations on type System.Address (since these might not be available
33734         if Address is a non-private type for which the operations are made
33735         abstract).
33736
33737         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
33738
33739         * exp_intr.adb: Minor comment update
33740
33741         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
33742
33743         * 5omastop.adb: Add declarations to avoid assumption of visible
33744         operations on type System.Address (since these might not be available
33745         if Address is a non-private type for which the operations
33746         are made abstract).
33747
33748 2004-04-19  Vincent Celier  <celier@gnat.com>
33749
33750         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
33751
33752         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
33753         defaulted to Ada.
33754
33755         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
33756         defaulted to Ada.
33757         Call Check with Process_Languages.
33758         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
33759         with Process_Languages.
33760         (Recursive_Check): New Boolean parameter Process_Languages. Call
33761         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
33762         Process_Languages.
33763
33764         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
33765
33766         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
33767         parameter Ada_Main, defaulted to True.
33768         Check for Ada specific characteristics only when Ada_Main is True.
33769
33770         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
33771
33772         * prj.adb: (Project_Empty): Add new Project_Data components.
33773
33774         * prj.ads: New types and tables for non Ada languages.
33775         (Project_Data): New components Languages, Impl_Suffixes,
33776         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
33777         Include_Path, Include_Data_Set.
33778
33779         * prj-env.ads, prj-env.adb: Minor reformatting
33780
33781         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
33782         Put subprograms in alphabetical order
33783
33784         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
33785         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
33786         Opt.Follow_Links.
33787
33788         * mlib-prj.adb: Back out modification in last version, as they are
33789         incorrect.
33790         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
33791
33792         * make.adb: (Mains): Moved to package Makeutl
33793         (Linker_Opts): Moved to package Makeutl
33794         (Is_External_Assignment): Moved to package Makeutl
33795         (Test_If_Relative_Path): Moved to package Makeutl
33796         (Gnatmake): Move sorting of linker options to function
33797         Makeutl.Linker_Options_Switches.
33798
33799         * makeutl.ads, makeutl.adb: New files.
33800
33801         * Makefile.in: Add makeutl.o to the object files for gnatmake
33802
33803         * makeusg.adb: Add line for new switch -eL.
33804
33805         * gnatls.adb (Image): New function.
33806         (Output_Unit): If in verbose mode, output the list of restrictions
33807         specified by pragmas Restrictions.
33808
33809         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
33810         Text_IO.
33811
33812         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
33813         needed, to put it in the range 1970 (included) - 2026 (excluded).
33814         (Time_Of): Do not shift Unix_Min_Year (1970).
33815         Shift the date by multiple of 56 years, if needed, to put it in the
33816         range 1970 (included) - 2026 (excluded).
33817
33818         * adaint.h, adaint.c (__gnat_set_executable): New function.
33819
33820 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33821
33822         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
33823         and pop GC context.
33824         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
33825         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
33826         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
33827         (tree_transform, case N_Code_Statement): Likewise.
33828         (gnat_expand_stmt, case LABEL_STMT): Don't look at
33829         LABEL_STMT_FIRST_IN_EH.
33830         (gnat_expand_stmt, case ASM_STMT): New case.
33831
33832         * utils2.c (build_unary_op): Properly set TREE_READONLY of
33833         UNCONSTRAINED_ARRAY_REF.
33834
33835         * utils.c (poplevel): Temporarily push/pop GC context around inline
33836         function expansion.
33837
33838         * decl.c (maybe_variable): Properly set TREE_READONLY of
33839         UNCONSTRAINED_ARRAY_REF.
33840         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
33841
33842         * ada-tree.def: (ASM_STMT): New.
33843
33844         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33845         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33846         ASM_STMT_INPUT): New.
33847         (ASM_STMT_CLOBBER): Likewise.
33848
33849 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
33850
33851         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33852         general rcheck mechanism to raise Program_Error for E.4(18), instead
33853         of a custom raiser in System.Partition_Interface.
33854         Part of general cleanup work before PolyORB integration.
33855
33856         * snames.ads, snames.adb: Add new runtime library entities and names
33857         for PolyORB DSA.
33858
33859         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33860         exp_dist.
33861         (Build_Subprogram_Id): New subprogram provided by exp_dist
33862         Code reorganisation in preparation for PolyORB integration.
33863
33864         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33865         exp_dist.
33866         (Build_Subprogram_Id): New subprogram provided by exp_dist
33867
33868         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33869         actual parameter types for call to dereference of an
33870         access-to-subprogram type.
33871
33872         * rtsfind.ads: Add new runtime library entities and names for PolyORB
33873         DSA.
33874
33875         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33876         instead, which has the same behaviour here since we never pass it a
33877         NULL pointer.
33878
33879         * link.c (run_path_option, Solaris case): Use -Wl, as for other
33880         platforms.
33881
33882         * Makefile.in: adjust object file lists for gnatlink and gnatmake
33883         to account for new dependency upon Interfaces.C.Strings + link.o
33884         For x86 FreeBSD, use 86numaux.
33885
33886         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33887         from Mlib.Tgt to Mlib.
33888
33889         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33890         target-independent.
33891
33892         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33893         target-specific versions of this subprogram, now implemented as a
33894         target-independent function in Mlib.
33895
33896         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33897         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33898         (Linker_Library_Path_Option): Remove target-specific versions of this
33899         subprogram, now implemented as a target-independent function in Mlib.
33900
33901         * atree.adb: (Allocate_Initialize_Node): New subprogram.
33902         Factors out node table slots allocation.
33903         (Fix_Parents): New subprogram.
33904         Encapsulate the pattern of fixing up parent pointers for syntactic
33905         children of a rewritten node.
33906         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33907         (Rewrite): Use New_Copy when creating saved copy of original node.
33908         (Replace): Use Copy_Node to copy nodes.
33909
33910 2004-04-19  Javier Miranda  <miranda@gnat.com>
33911
33912         * sprint.adb (Sprint_Node_Actual): Give support to the new
33913         Access_To_Subprogram node available in Access_Definition nodes. In
33914         addition, give support to the AI-231 node fields: null-exclusion,
33915         all-present, constant-present.
33916
33917         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33918
33919         * sinfo.ads, sinfo.adb:
33920         New field Access_To_Subprogram_Definition in Access_Definition nodes
33921
33922         * sem_ch6.adb (Process_Formals): Move here the code that creates and
33923         decorates internal subtype declaration corresponding to the
33924         null-excluding formal. This code was previously in Set_Actual_Subtypes.
33925         In addition, carry out some code cleanup on this code. In case of
33926         access to protected subprogram call
33927         Replace_Anonymous_Access_To_Protected_Subprogram.
33928         (Set_Actual_Subtypes): Code cleanup.
33929
33930         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33931         Find_Type in case of anonymous access renamings. Add warning in case of
33932         null-excluding attribute used in anonymous access renaming.
33933
33934         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33935         subprogram
33936
33937         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33938         subprogram.
33939         (Access_Definition): In case of anonymous access to subprograms call
33940         the corresponding semantic routine to decorate the node.
33941         (Access_Subprogram_Declaration): Addition of some comments indicating
33942         some code that probably should be added here. Detected by comparison
33943         with the access_definition subprogram.
33944         (Analyze_Component_Declaration): In case of access to protected
33945         subprogram call Replace_Anonymous_Access_To_Protected.
33946         (Array_Type_Declaration): In case of access to protected subprogram call
33947         Replace_Anonymous_Access_To_Protected_Subprogram.
33948         (Process_Discriminants): In case of access to protected subprogram call
33949         Replace_Anonymous_Access_To_Protected_Subprogram.
33950
33951         * par.adb (P_Access_Definition): New formal that indicates if the
33952         null-exclusion part was present.
33953         (P_Access_Type_Definition): New formal that indicates if the caller has
33954         already parsed the null-excluding part.
33955
33956         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33957         (P_Identifier_Declarations): Code cleanup and give support to renamings
33958         of anonymous access to subprogram types.
33959         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33960         (P_Array_Type_Definition): Give support to AI-254.
33961         (P_Component_Items): Give support to AI-254.
33962         (P_Access_Definition): New formal that indicates if the header was
33963         already parsed by the caller.
33964         (P_Access_Type_Definition): New formal that indicates if the caller has
33965         already parsed the null-excluding part.
33966
33967         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33968         call to P_Access_Definition.
33969
33970 2004-04-19  Geert Bosch  <bosch@gnat.com>
33971
33972         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33973         the delicate semantics of floating-point to integer conversion.
33974         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33975
33976         * eval_fat.adb (Machine_Mantissa): Moved to spec.
33977         (Machine_Radix): New function.
33978
33979         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33980         conversion checks.
33981         (Machine_Radix): New function also for use in conversion checks.
33982
33983 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
33984
33985         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33986
33987         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33988         to decorate the access-to-protected subprogram and the equivalent type.
33989
33990         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33991         to anonymous access to subprogram types.
33992
33993         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33994         constant-folding, for legality checks in contexts that require an RM
33995         static expression.
33996
33997         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33998         temporary but stack checking is not enabled, increment serial number
33999         to so that symbol generation is consistent with and without stack
34000         checking.
34001
34002         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34003         independent on whether stack checking is enabled, caller must check
34004         the corresponding flag.
34005
34006         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34007         range checks.
34008         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34009         parent if it has discriminants.
34010         (Build_Derived_Private_Type): Constructed full view does
34011         not come from source.
34012         (Process_Discriminants): Default discriminants on a tagged type are
34013         legal if this is the internal completion of a private untagged
34014         derivation.
34015
34016         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34017         no constraint checks, because it corresponds to an existing object.
34018
34019         * sem_prag.adb (Process_Convention): Pragma applies
34020         only to subprograms in the same declarative part, i.e. the same unit,
34021         not the same scope.
34022
34023         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34024         ignore type mismatch on a numeric conversion if expression comes from
34025         expansion.
34026
34027 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
34028
34029         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34030         Homonym_Number parameter, add processing for Source_Location parameter
34031         corresponding.
34032         (Check_Eliminated): Remove the check for homonym numbers, add the check
34033         for source location traces.
34034
34035         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34036         with Arg_Source_Location corresponding to the changes in the format of
34037         the pragma.
34038
34039         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34040         Eliminate pragma corresponding to the changes in the format of the
34041         pragma: Homonym_Number is replaced with Source_Location, two ways of
34042         distinguishing homonyms are mutially-exclusive.
34043
34044 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
34045
34046         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34047
34048         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34049         No_Dollar_In_Label, no longer necessary, as it is always True.
34050         (Strip_Suffixes): Likewise.
34051
34052 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
34053
34054         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34055         modulus for compatibility with size clause on targets with 16-bit
34056         Integer.
34057
34058         * layout.adb (Discrimify): In the case of private types, set Vtyp to
34059         full type to fix type mismatches on calls to size functions for
34060         discriminant-dependent array components.
34061
34062 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
34063
34064         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34065         lib.
34066
34067 2004-04-19  Pascal Obry  <obry@gnat.com>
34068
34069         * mdll-utl.adb (Locate): New version is idempotent.
34070
34071 2004-04-17  Laurent Guerby  <laurent@guerby.net>
34072
34073         PR ada/14988 (partial)
34074         * impunit.adb: Fix typo.
34075
34076 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
34077
34078         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34079         and install-rts-cert targets.  Remove all gnatlib and gnattools
34080         targets and all other rts-* targets (moved to libada).  Remove (now)
34081         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34082         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34083
34084 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34085
34086         * trans.c (tree_transform): Shortcut returning error_mark_node for
34087         statements in annotate_only_mode.
34088         (tree_transform, case N_Label, case N_Return_Statement,
34089         N_Goto_Statement): Make statement tree instead of generating code.
34090         (tree_transform, case N_Assignment_Statement): No longer check
34091         type_annotate_only.
34092         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34093         RETURN_STMT): New.
34094         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34095         New fcns.
34096         (gnat_to_gnu): Collect any RTL generated and deal with it.
34097         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34098         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34099         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34100
34101         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34102
34103         * ada-tree.def (EXPR_STMT): Fix typo in name.
34104         (BLOCK_STMT, IF_STMT): New nodes.
34105
34106         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34107         LABEL_STMT_FIRST_IN_EH): New macros.
34108         (RETURN_STMT_EXPR): Likewise.
34109
34110         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34111         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34112
34113 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34114
34115         * atree.ads: Correct documentation on extended nodes.
34116
34117         * link.c: Set run_path_option for FreeBSD.
34118
34119 2004-04-08  Vincent Celier  <celier@gnat.com>
34120
34121         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34122         one of the ALI file, do not link with DEC lib.
34123
34124         * par.adb Remove the last two characters ("%s" or "%b") when checking
34125         if a language defined unit may be recompiled.
34126
34127 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
34128
34129         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34130         removal of abstract operation leaves no possible interpretation for
34131         expression.
34132
34133         * sem_eval.adb (Eval_Qualified_Expression): Use
34134         Set_Raises_Constraint_Error on node when needed, so that it does not
34135         get optimized away by subsequent optimizations.
34136
34137         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34138         operands even when they are not wrapped in a type conversion.
34139
34140 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
34141
34142         * sem_prag.adb (Set_Exported): Warn about making static as result of
34143         export only when the export is coming from source. This may be not
34144         be true e.g. on VMS where we expand export pragmas for exception codes
34145         together with imported or exported exceptions, and we don't want the
34146         user to be warned about something he didn't write.
34147
34148 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34149
34150         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34151         duplication between normal entities and those declared as renamings.
34152         No functional change.
34153
34154         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34155         inline functions returning an unconstrained result.
34156
34157 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
34158
34159         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34160         conform to what other front-ends do.
34161
34162 2004-04-08  Doug Rupp  <rupp@gnat.com>
34163
34164         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34165         libraries.
34166
34167 2004-04-06  Pascal Obry  <obry@gnat.com>
34168
34169         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34170
34171         * osint.adb (Program_Name): Do not look past a directory separator.
34172
34173 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
34174
34175         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34176
34177         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34178         requirement for preserving a copy of the original assignment node.
34179
34180         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34181
34182 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
34183
34184         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34185         when supported.
34186
34187 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
34188
34189         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34190         operator calls in functional notation, and apply
34191         Universal_Interpretation to operands, not to their type.
34192
34193 2004-04-06  Robert Dewar  <dewar@gnat.com>
34194
34195         * 5wdirval.adb: Minor reformatting
34196
34197 2004-04-06  Ed Falis  <falis@gnat.com>
34198
34199         * gnat_rm.texi: Improve a reference to the GCC manual
34200
34201 2004-04-05  Vincent Celier  <celier@gnat.com>
34202
34203         * adaint.h, adaint.c: Add function __gnat_named_file_length
34204
34205         * impunit.adb: Add Ada.Directories to the list
34206
34207         * Makefile.in: Add VMS and Windows versions of
34208         Ada.Directories.Validity package body.
34209
34210         * Makefile.rtl: Add a-direct and a-dirval
34211
34212         * mlib-tgt.ads: Minor comment update.
34213
34214         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34215         a-direct.ads, a-direct.adb: New files.
34216
34217 2004-04-05  Vincent Celier  <celier@gnat.com>
34218
34219         PR ada/13620
34220         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34221         just to the compiler.
34222
34223 2004-04-05  Robert Dewar  <dewar@gnat.com>
34224
34225         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34226         returned string is 1.
34227
34228         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34229
34230         * eval_fat.ads: Minor reformatting
34231
34232         * g-curexc.ads: Document that lower bound of returned string values
34233         is always one.
34234
34235         * gnatlink.adb: Add ??? comment for previous change
34236         (need to document why this is VMS specific)
34237
34238         * s-stoele.ads: Minor reformatting
34239
34240         * tbuild.ads: Minor reformatting throughout (new function specs)
34241
34242         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34243         after WITH.
34244
34245         * scng.adb: Minor reformatting
34246
34247 2004-04-05  Geert Bosch  <bosch@gnat.com>
34248
34249         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34250         (Leading_Part): Still perform truncation to machine number if the
34251         specified radix_digits is greater or equal to machine_mantissa.
34252
34253 2004-04-05  Javier Miranda  <miranda@gnat.com>
34254
34255         * par-ch3.adb: Complete documentation of previous change
34256         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34257         (aliased must appear before constant).
34258
34259         * par-ch4.adb: Complete documentation of previous change.
34260
34261         * par-ch6.adb: Complete documentation of previous change.
34262
34263         * sinfo.ads: Fix typo in commment.
34264
34265 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
34266
34267         * sem_ch3.adb (Inherit_Components): If derived type is private and has
34268         stored discriminants, use its discriminants to constrain parent type,
34269         as is done for non-private derived record types.
34270
34271         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34272         Ada 2005 AI-310: an abstract non-dispatching operation is not a
34273         candidate interpretation in an overloaded call.
34274
34275         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34276         expression is Null and target type is not an access type (e.g. a
34277         non-private address type).
34278
34279 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
34280
34281         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34282         statement whose right-hand side is an inlined call, save a copy of the
34283         original assignment subtree to preserve enough consistency for
34284         Analyze_Assignment to proceed.
34285
34286         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34287         complete assignment subtree which is now unnecessary, as the expansion
34288         of inlined call has been improved to preserve a consistent assignment
34289         tree.  Note_Possible_Modification must be called only
34290         after checks have been applied, or else unnecessary checks will
34291         be generated.
34292
34293         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
34294         of explicit dereferences that do not Come_From_Source:
34295          - be selective on cases where we must go back to the dereferenced
34296            pointer (an assignment to an implicit dereference must not be
34297            recorded as modifying the pointer);
34298          - do not rely on Original_Node being present (Analyze_Assignment
34299            calls Note_Possible_Modification on a copied tree).
34300
34301         * sem_warn.adb (Check_References): When an unset reference to a pointer
34302         that is never assigned is encountered, prefer '<pointer> may be null'
34303         warning over '<pointer> is never assigned a value'.
34304
34305 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
34306
34307         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
34308         the ABI.
34309
34310 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
34311
34312         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
34313         libexc. We currently don't reference anything in this library and
34314         linking it in triggers linker warnings we don't want to see.
34315
34316         * init.c: Update comments.
34317
34318 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34319
34320         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
34321         * utils.c (create_field_decl): Likewise.
34322         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
34323
34324 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
34325
34326         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
34327         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
34328         Add info directory entry and category.
34329
34330 2004-04-02  Jan Hubicka  <jh@suse.cz>
34331
34332         * utils.c: Include function.h
34333         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
34334
34335 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34336
34337         PR ada/14150
34338         * Make-lang.in: Clean up generation of documentation
34339
34340         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
34341
34342         * xgnatug.adb: Removed, replaced by xgnatugn.adb
34343
34344         * xgnatugn.adb: Replaces xgnatug.adb
34345
34346         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
34347
34348         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
34349
34350         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34351         gnat_ug_wnt.texi: Removed.
34352
34353 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34354
34355         * utils2.c: Update copyright notice.
34356
34357 2004-04-01  Robert Dewar  <dewar@gnat.com>
34358
34359         * checks.adb: Minor reformatting throughout
34360         Note that prev checkin added RM reference to alignment warning
34361
34362 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
34363
34364         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
34365         non-static when building aggregate for bit-packed array.
34366
34367         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
34368         function call that is itself the actual in a procedure call, build
34369         temporary for it.
34370
34371         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
34372         a string literal, create a temporary for it, constant folding only
34373         handles scalars here.
34374
34375 2004-04-01  Vincent Celier  <celier@gnat.com>
34376
34377         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
34378         Error_Msg_SP): New empty procedures to instantiate the Scanner.
34379         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
34380         tokens.
34381         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
34382         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
34383         and get the checksum.
34384
34385         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
34386         already in the Q.
34387         Increase the Marking_Label at the end of the Multiple_Main_Loop,
34388         instead of at the beginning.
34389
34390         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
34391         directly.
34392         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
34393         on VMS.
34394
34395         * osint.ads (Multi_Unit_Index_Character): New Character global variable
34396
34397         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
34398         not '~' directly.
34399
34400         * par.adb: Remove test on file name to detect language defined units.
34401         Add test on unit name, after parsing, to detect language defined units
34402         that are not compiled with -gnatg (except System.RPC and its children)
34403
34404         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
34405         following units without style checking.
34406
34407         * switch-c.adb: Change -gnatC to -gnateI
34408
34409         * usage.adb: Document new switch -gnateInnn
34410
34411         * scng.adb (Accumulate_Token_Checksum): New procedure
34412         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
34413         word or literal number.
34414         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
34415         numbers.
34416
34417 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
34418
34419         * a-tasatt.adb,
34420         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
34421         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
34422         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
34423         5vtpopde.adb: Add missing 'constant' keywords.
34424
34425 2004-04-01  Javier Miranda  <miranda@gnat.com>
34426
34427         * par-ch4.adb: (P_Allocator): Code cleanup
34428
34429         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
34430         attribute.
34431
34432         * sinfo.ads: Complete documentation of previous change
34433
34434 2004-04-01  Pascal Obry  <obry@gnat.com>
34435
34436         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
34437         only on VMS.  This special handling was done because an old GNU/ld bug
34438         on Windows which has been fixed.
34439
34440 2004-04-01  GNAT Script  <nobody@gnat.com>
34441
34442         * Make-lang.in: Makefile automatically updated
34443
34444 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34445
34446         * decl.c (gnat_to_gnu_entity, make_type_from_size):
34447         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
34448         * trans.c (tree_transform, convert_with_check): Likewise.
34449         * utils.c (gnat_signed_or_unsigned_type): Likewise.
34450         (build_vms_descriptor, unchecked_convert): Likewise.
34451         * utils2.c (nonbinary_modular_operation): Likewise.
34452
34453 2004-03-29  Javier Miranda  <miranda@gnat.com>
34454
34455         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
34456         (Install_Null_Excluding_Check): Local subprogram that determines whether
34457         an access node requires a runtime access check and if so inserts the
34458         appropriate run-time check.
34459         (Apply_Access_Check): Call Install_Null_Excluding check if required
34460         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
34461
34462         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
34463
34464         * einfo.ads: Fix typo in comment
34465
34466         * exp_ch3.adb (Build_Assignment): Generate conversion to the
34467         null-excluding type to force the corresponding run-time check.
34468         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
34469         type to force the corresponding run-time check.
34470
34471         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
34472         the null-excluding type to force the corresponding run-time check.
34473
34474         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
34475         case of access types unless they have the null-excluding attribute.
34476
34477         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
34478         part.
34479
34480         * exp_util.ads: Fix typo in comment
34481
34482         * par.adb (P_Null_Exclusion): New subprogram
34483         (P_Subtype_Indication): New formal that indicates if the null-excluding
34484         part has been scanned-out and it was present
34485
34486         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
34487
34488         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
34489         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
34490         type to force the corresponding run-time check
34491         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
34492         components
34493         (Resolve_Array_Aggregate): Carry out some static checks
34494         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
34495
34496         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
34497         attribute must be set only if specified by means of the null-excluding
34498         part. In addition, we must also propagate the access-constant attribute
34499         if present.
34500         (Access_Subprogram_Declaration, Access_Type_Declaration,
34501         Analyze_Component_Declaration, Analyze_Object_Declaration,
34502         Array_Type_Declaration, Process_Discriminants,
34503         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
34504         and carry out some static checks.
34505         (Build_Derived_Access_Type): Set the null-excluding attribute
34506         (Derived_Type_Declaration, Process_Subtype): Carry out some static
34507         checks.
34508
34509         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
34510
34511         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
34512
34513         * sem_ch6.adb (Process_Formals): Carry out some static checks.
34514         (Set_Actual_Subtypes): Generate null-excluding subtype if the
34515         null-excluding part was present; it is not required to be done here in
34516         case of anonymous access types.
34517         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
34518         value.
34519
34520         * sem_res.adb (Resolve_Actuals): Carry out some static check
34521         (Resolve_Null): Allow null in anonymous access
34522
34523         * sinfo.adb: New subprogram Null_Exclusion_Present
34524         All_Present and Constant_Present available on access_definition nodes
34525
34526         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
34527         object_declaration, derived_type_definition, component_definition,
34528         discriminant_specification, access_to_object_definition,
34529         access_function_definition, allocator, access_procedure_definition,
34530         access_definition, parameter_specification, All_Present and
34531         Constant_Present flags available on access_definition nodes.
34532
34533 2004-03-29  Robert Dewar  <dewar@gnat.com>
34534
34535         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
34536         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
34537         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
34538         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
34539         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
34540         sem_prag.adb: Updates to handle multiple units/file
34541
34542         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
34543
34544         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
34545         sem_util.adb: Minor reformatting
34546
34547         * sem_ch12.adb: Add comment for previous change
34548
34549 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
34550
34551         * osint.adb (Executable_Prefix): Set Exec_Name to the current
34552         executable name when not initialized. Otherwise, use its current value.
34553
34554         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
34555         initialize it to another executable name than the current one. This
34556         allows to configure paths for an executable name (gnatmake) different
34557         from the current one (gnatdist).
34558
34559 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
34560
34561         * exp_ch6.adb (Expand_Call): A call to a function declared in the
34562         current unit cannot be inlined if it appears in the body of a withed
34563         unit, to avoid order of elaboration problems in gigi.
34564
34565         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
34566         information for protected (wrapper) operation as well, to simplify gdb
34567         use.
34568
34569         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
34570         protected body, indicate that the entity for the generated spec comes
34571         from source, to ensure that references are properly generated for it.
34572         (Build_Body_To_Inline): Do not inline a function that returns a
34573         controlled type.
34574
34575         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
34576         apply convention to homonyms that are declared explicitly.
34577
34578         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
34579         that renames an equality operator and the operands are overloaded,
34580         resolve them with the declared formal types, before rewriting as an
34581         operator.
34582
34583 2004-03-29  GNAT Script  <nobody@gnat.com>
34584
34585         * Make-lang.in: Makefile automatically updated
34586
34587 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
34588
34589         * memtrack.adb: Log realloc calls, which are treated as free followed
34590         by alloc.
34591
34592 2004-03-25  Vincent Celier  <celier@gnat.com>
34593
34594         * prj-makr.adb (Process_Directories): Detect when a file contains
34595         several units. Do not include such files in the config pragmas or
34596         in the naming scheme.
34597
34598         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
34599         Resolve links only when not in Trusted_Mode.
34600         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
34601         Do not resolve links for the display names.
34602
34603         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
34604         resolve links when computing the display names.
34605
34606 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
34607
34608         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
34609         attribute reference does not denote a subtype, it can be any
34610         expression that has a classwide type, potentially after an implicit
34611         dereference.  In particular, the prefix can be a view conversion for
34612         a classwide type (for which Is_Object_Reference holds), but it can
34613         also be a value conversion for an access-to-classwide type. In the
34614         latter case, there is an implicit dereference, and the original node
34615         for the prefix does not verify Is_Object_Reference.
34616
34617         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
34618         conversion of a discriminant-dependent component of a mutable object
34619         is one itself.
34620
34621 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
34622
34623         * freeze.adb (Freeze_Entity): When an inherited subprogram is
34624         inherited, has convention C, and has unconstrained array parameters,
34625         place the corresponding warning on the derived type declaration rather
34626         than the original subprogram.
34627
34628         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
34629         indication on renaming declaration, if formal has a box and actual
34630         is absent.
34631
34632         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
34633         determine whether to generate an implicit or explicit reference to
34634         the renamed entity.
34635
34636         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
34637         subprogram renaming comes from a defaulted formal subprogram in an
34638         instance.
34639
34640 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
34641
34642         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
34643         value expressions to ensure that calls within a component definition
34644         will be checked (since those are evaluated during the record type's
34645         elaboration).
34646
34647 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
34648
34649         * s-tpobop.adb: Code clean up:
34650         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
34651         code.
34652         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
34653
34654 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
34655
34656         * Makefile.in: Clean up in the ravenscar run time.
34657
34658 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34659
34660         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
34661         of No_Strict_Aliasing to build_pointer_type_for_mode.
34662         * utils.c (update_pointer_to): Walk pointer and ref chains.
34663
34664 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
34665
34666         * ali.ads: Fix Comment about Dynamic_Elab.
34667
34668         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
34669         Has_RACW, Is_Generic, etc.)
34670         (Output_Object, Gnatls): Take into account ALI files not attached to
34671         an object.
34672
34673 2004-03-22  Vincent Celier  <celier@gnat.com>
34674
34675         * gprep.adb: Change all String_Access to Name_Id
34676         (Is_ASCII_Letter): new function
34677         (Double_File_Name_Buffer): New procedure
34678         (Preprocess_Infile_Name): New procedure
34679         (Process_Files): New procedure
34680         (Gnatprep): Check if output and input are existing directories.
34681         Call Process_Files to do the real job.
34682
34683 2004-03-22  Robert Dewar  <dewar@gnat.com>
34684
34685         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
34686         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
34687
34688 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
34689
34690         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
34691         case when the source contains only comments.
34692
34693 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
34694
34695         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
34696         declaration for a child subprogram body that acts as a spec, indicate
34697         that the entity in the declaration needs debugging information.
34698
34699         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
34700         full view if the subtype is created for a constrained record component;
34701         gigi has enough information to construct the record, and there is no
34702         place in the tree for the declaration.
34703
34704         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
34705         serial number for the dummy body that is built for analysis, to avoid
34706         inconsistencies in the generation of internal names when compiling
34707         with -gnatN.
34708
34709 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
34710
34711         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
34712         object.
34713
34714 2004-03-22  GNAT Script  <nobody@gnat.com>
34715
34716         * Make-lang.in: Makefile automatically updated
34717
34718 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34719
34720         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34721         * trans.c (tree_transform, emit_index_check): Likewise.
34722         * utils.c (build_template): Likewise.
34723         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
34724         (maybe_unconstrained_array, unchecked_convert): Likewise.
34725         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
34726         (build_unary_op): Likewise.
34727         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34728         (fill_vms_descriptor): Likewise.
34729         (build_call_alloc_dealloc): Likewise.
34730         ALIGN is unsigned.
34731         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
34732
34733 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
34734
34735         PR other/14630
34736         * gnat_ug.texi: Add info directory category and entry.
34737         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34738         gnat_ug_wnt.texi: Regenerate.
34739
34740 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
34741
34742         * ada-tree.h: Update copyright notice.
34743         Minor reformatting.
34744
34745 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
34746
34747         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
34748         as regular exception objects and not as mere integers representing the
34749         condition code.  The latter approach required some dynamics to mask off
34750         severity bits, which did not fit well into the GCC table based model.
34751         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
34752         exception data objects. We don't it and it would conflict with the other
34753         external symbol we have to generate for such exceptions.
34754
34755         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
34756         the special code for VMS exceptions, since these are now represented
34757         as regular exceptions objects.
34758
34759 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34760
34761         * decl.c (debug_no_type_hash): Remove.
34762         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
34763         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
34764
34765 2004-03-19  Laurent Guerby  <laurent@guerby.net>
34766
34767         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
34768         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
34769
34770 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34771
34772         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
34773         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
34774         (TYPE_RM_SIZE_INT): Directly use type.values.
34775         (TREE_LOOP_ID): Clean up check.
34776         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
34777         TYPE_VALUES, not TYPE_FIELDS.
34778         * trans.c (convert_with_check): Delay access of bounds of basetype
34779         until sure is numeric.
34780
34781 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
34782
34783         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
34784
34785         Code clean up:
34786         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
34787         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
34788         Specific.Set instead of direct call to e.g pthread_setspecific.
34789
34790 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
34791
34792         * adaint.c: Update comments.
34793
34794         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
34795         GNATLIB_SHARED for FreeBSD.
34796
34797 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
34798
34799         * init.c [VxWorks]: Do not fix the stack size for the environment task.
34800         When needed (stack checking) the stack size is retrieved
34801         from the VxWorks kernel.
34802
34803         * Makefile.in: Flag -nostdinc is required when building the run time
34804         for avoiding looking for files in the base compiler.
34805         Add the VxWorks specific version of the package body for
34806         System.Stack_checking.Operations (5zstchop.adb).
34807
34808         * Make-lang.in: Add the object file for
34809         System.Stack_Checking.Operations.
34810
34811         * Makefile.rtl: Add object file for the package
34812         System.Stack_Checking.Operations.
34813
34814         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
34815
34816         * s-stache.ads, s-stache.adb: Move the operations related to stack
34817         checking from this package to package System.Stack_Checking.Operations.
34818         This way, stack checking operations are only linked in the final
34819         executable when using the -fstack-check flag.
34820
34821 2004-03-18  Doug Rupp  <rupp@gnat.com>
34822
34823         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
34824         Reorganize ifeq's.
34825
34826         * 5qsystem.ads, 5xcrtl.ads: New files.
34827
34828 2004-03-18  Vincent Celier  <celier@gnat.com>
34829
34830         * prj.adb (Reset): Reset hash table Files_Htable
34831
34832         * prj-env.adb (Source_Paths, Object_Paths): New tables.
34833         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
34834         the procedures Add_To_Path_File.
34835         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
34836         making sure that each directory is present only once and, for object
34837         dirs, when a directory already present is added, the duplicate is
34838         removed and the directory is always put as the last in the table.
34839         Write the path files at the end of these accumulations.
34840
34841         * prj-nmsc.adb (Record_Source): Add source file name in hash table
34842         Files_Htable for all sources.
34843
34844         * prj-proc.adb (Process): Remove restrictions between not directly
34845         related extending projects.
34846
34847 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
34848
34849         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34850         (Find_Sources): Minor speed optimization.
34851
34852         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34853         parameter Trusted_Mode.
34854
34855 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
34856
34857         * scn.adb (Determine_License): Take into account a degenerated case
34858         when the source contains only comments.
34859
34860 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
34861
34862         * sem_warn.adb (Check_References): For a warning on a selected
34863         component that does not come from source, locate an uninitialized
34864         component of the record type to produce a more precise error message.
34865
34866 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
34867
34868         * 3zsoccon.ads: Fix multicast options.
34869
34870         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34871         in the spec.
34872
34873 2004-03-15  Robert Dewar  <dewar@gnat.com>
34874
34875         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34876         pragma used for a private type.
34877
34878         * lib-xref.adb (Generate_Reference): Do not generate warning if
34879         reference is in a different unit from the pragma Unreferenced.
34880
34881         * 5vtpopde.adb: Minor reformatting
34882         Fix casing of To_Task_ID
34883
34884         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34885         flag if we have an unchecked conversion to an access type in the same
34886         unit.
34887
34888 2004-03-15  Geert Bosch  <bosch@gnat.com>
34889
34890         * a-ngcoty.adb (Modulus): In alternate formula for large real or
34891         imaginary parts, use Double precision throughout.
34892
34893         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34894         we want to be able to compile run-time with -gnata for testing, but
34895         this may also be instantiated in user code that is compiled with -gnata.
34896
34897 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
34898
34899         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34900         codes. Having a separate type for this is useful to enforce consistency
34901         throughout the various run-time units.
34902         (Exception_Data): Use Exception_Code for Import_Code.
34903
34904         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34905         Natural and Integer in various places.
34906         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34907         with the severity bits masked off.
34908         (Register_VMS_Exception): Handle the additional exception data pointer
34909         argument.
34910
34911         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34912         component, now reflected by an exported accessor.
34913         (is_handled_by): New routine to compute whether the propagated
34914         occurrence matches some handler choice specification. Extracted out of
34915         get_action_description_for, and expanded to take care of the VMS
34916         specifities.
34917         (get_action_description_for): Use is_handled_by instead of an explicit
34918         complex condition to decide if the current choice at hand catches the
34919         propagated occurrence.
34920
34921         * raise.h (Exception_Code): New type for C.
34922
34923         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34924         System.Standard_Library.Exception_Code, to allow references from the
34925         pragma import/export expander.
34926
34927         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34928         New accessors to allow easy access to GNAT exception data
34929         characteristics.
34930         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34931         redundant Handled_By_Others component, helper for the personality
34932         routine which will now be able to call the appropriate exception data
34933         accessor instead.
34934
34935         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34936         component of Standard_Exception_Type to be the closest possible to
34937         Exception_Code in System.Standard_Library, that we cannot get at this
34938         point. Expand a ??? comment to notify that this type node should
34939         probably be rewritten later on.
34940
34941         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34942         registration call to include a pointer to the exception object in the
34943         arguments.
34944
34945         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34946         instead of int and explicit bitmasks.
34947
34948 2004-03-15  Vincent Celier  <celier@gnat.com>
34949
34950         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34951         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34952
34953         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34954         longer needed now that it is in the spec of
34955         System.Tasking.Task_Attributes.
34956
34957         * adaint.h, adaint.c: (__gnat_create_output_file): New function
34958
34959         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34960
34961         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34962
34963         * make.adb (Gnatmake): Do not check the executable suffix; it is being
34964         taken care of in Scan_Make_Arg.
34965         (Scan_Make_Arg): Add the executable suffix only if the argument
34966         following -o, in canonical case, does not end with the executable
34967         suffix.  When in verbose mode and executable file name does not end
34968         with executable suffix, output the executable name, in canonical case.
34969
34970         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34971         to avoid warnings when instantiating Ada.Task_Attributes.
34972         Minor reformating.
34973
34974         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34975         in the correct order.
34976
34977         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34978         redirect standard output and error to a file for the invocation of the
34979         compiler, then read the file.
34980
34981         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34982         directory, instead of the Value.
34983         (Find_Source_Dirs): Remove useless code & comments.
34984
34985 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
34986
34987         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34988         tagged type is inherited, and the parent operation is not frozen yet,
34989         force generation of a freeze node for the inherited operation, so the
34990         corresponding dispatch entry is properly initialized.
34991         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34992         when looking for user-defined equality operation.
34993
34994         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34995         boolean when locating primitive equality of tagged component.
34996
34997         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34998         bit-aligned field and the right-hand side a string literal, introduce
34999         a temporary before expanding assignment into a loop.
35000
35001         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35002         priority in full, to ensure that any expanded subepxressions of it are
35003         elaborated in the scope of the init_proc.
35004
35005         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35006         after object declaration, skipping over code that may have been
35007         generated for validity checks.
35008
35009         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35010         discriminants, ignore the known discriminants of its full view, if
35011         any, to check legality.
35012
35013         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35014         component if type has unknown discriminants.
35015         (Analyze_Private_Extension_Declaration): Discriminant constraint is
35016         null if type has unknown discriminants.
35017
35018         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35019         for end label when present.
35020
35021         * s-fileio.adb (Open): When called with a C_Stream, use given name for
35022         temporary file, rather than an empty string.
35023
35024 2004-03-15  Ed Falis  <falis@gnat.com>
35025
35026         * s-thread.adb: Removed, no longer used.
35027
35028 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35029
35030         * decl.c (target.h): Now include.
35031         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35032         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35033         (validate_size): For POINTER_TYPE, get smallest size permitted on
35034         machine.
35035
35036         * fe.h: Sort Einfo decls and add Set_Mechanism.
35037
35038         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35039         (ada/decl.o): Depends on target.h.
35040
35041         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35042         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35043
35044 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
35045
35046         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35047
35048         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35049         Insert_Dereference_Action when rewriting an implicit dereference into
35050         an explicit one, this will be taken care of during expansion of the
35051         explicit dereference.
35052         (Expand_N_Slice): Same. Always do the rewriting, even for the case
35053         of non-packed slices, since the dereference action generated by
35054         expansion of the explicit dereference is needed in any case.
35055         (Expand_N_Selected_Component): When rewriting an implicit dereference,
35056         analyze and resolve the rewritten explicit dereference so it is seen
35057         by the expander.
35058         (Insert_Dereference_Action): This procedure is now called only for the
35059         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35060         dereferences that do not come from source (including explicit
35061         dereferences resulting from rewriting implicit ones), but do not
35062         recursively insert a check for the dereference nodes contained within
35063         the check.
35064         (Insert_Dereference_Action): Clarify and correct comment.
35065
35066 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
35067
35068         PR ada/14131
35069         Move language detection to the top level.
35070         * config-lang.in: Build by default.
35071
35072 2004-03-05  Robert Dewar  <dewar@gnat.com>
35073
35074         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35075
35076         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35077         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35078         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35079         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35080         unchecked conversion to spec to avoid warnings.
35081
35082         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35083         to Task_ID
35084
35085         * 7stpopsp.adb: Correct casing in To_Task_ID call
35086
35087         * a-strsea.ads, a-strsea.adb: Minor reformatting
35088
35089         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35090
35091         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35092         Adjust Max_Msg_Length to be clearly large enough.
35093
35094         * fe.h: Define In_Same_Source_Unit
35095
35096         * osint.adb: Add pragma Warnings Off to suppress warnings
35097         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35098         aliasing warnings.
35099
35100         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35101
35102         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35103
35104         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35105
35106         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35107
35108         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35109
35110         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35111         node. We now do generate them for gcc back end.
35112
35113         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35114         warning.
35115
35116         * sinput-c.adb: Fix bad name in header.
35117         Add pragma Warnings Off to suppress aliasing warning.
35118
35119         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35120
35121         * snames.h, snames.ads, snames.adb: Add entry for pragma
35122         No_Strict_Aliasing.
35123
35124 2004-03-05  Vincent Celier  <celier@gnat.com>
35125
35126         * prj-com.ads: Add hash table Files_Htable to check when a file name
35127         is already a source of another project.
35128
35129         * prj-nmsc.adb (Record_Source): Before recording a new source, check
35130         if its file name is not already a source of another project. Report an
35131         error if it is.
35132
35133         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35134         source file name, call gnatpp with all the sources of the main project.
35135
35136         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35137         of file names.
35138
35139         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35140         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35141         /RUNTIME_SYSTEM=, converted to --RTS=
35142         /NOTABS, converted to -notabs
35143
35144 2004-03-05  Pascal Obry  <obry@gnat.com>
35145
35146         * make.adb: Minor reformatting.
35147
35148 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
35149
35150         Part of implemention of AI-262.
35151         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35152
35153         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35154         procedure.
35155
35156         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35157         when component type is a partially constrained class-wide subtype.
35158         (Constrain_Discriminated_Type): If parent type has unknown
35159         discriminants, a constraint is illegal, even if full view has
35160         discriminants.
35161         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35162         with unknown discriminants whose full view is a discriminated record.
35163
35164         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35165         flag, to handle properly derivations of tagged types with unknown
35166         discriminants.
35167         (Analyze_Package_Spec, Analyze_Package_Body): Install
35168         Private_With_Clauses before analyzing private part or body.
35169
35170         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35171         Has_Discriminants can be true for a given type (documentation).
35172
35173 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
35174
35175         * s-restri.ads: Fix license (GPL->GMGPL).
35176
35177         * s-tassta.adb: Minor reformatting.
35178
35179         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35180         by calls to Exit_One_ATC_Level, since additional clean up is performed
35181         by this function.
35182
35183         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35184         by calls to Exit_One_ATC_Level, since additional clean up is performed
35185         by this function.
35186
35187 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35188
35189         * trans.c: Reflect GCC changes to fix bootstrap problem.
35190         Add warning for suspicious aliasing unchecked conversion.
35191
35192 2004-03-05  GNAT Script  <nobody@gnat.com>
35193
35194         * Make-lang.in: Makefile automatically updated
35195
35196 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
35197
35198         * ali.adb (Read_Instantiation_Instance): Do not modify the
35199         current_file_num when reading information about instantiations, since
35200         this corrupts files in later references.
35201
35202 2004-03-02  Vincent Celier  <celier@gnat.com>
35203
35204         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35205         before checking if it is read-only.
35206
35207         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35208         of SRC_DIRS and eliminate duplicates.
35209
35210         * gprcmd.adb: Replace command "path" with command "path_sep" to return
35211         the path separator.
35212         (Usage): Document path_sep
35213
35214         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35215         C++ compiler. No need for a script.
35216         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35217         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35218         subst.
35219
35220         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35221         where there are Ada sources.
35222         (Set_Ada_Paths): Only add to the include path the source dirs of project
35223         with Ada sources.
35224         (Add_To_Path): Add the Display_Values of the directories, not their
35225         Values.
35226
35227         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35228         data.
35229
35230         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35231         is not No_Name.
35232         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35233         Value is canonicalized.
35234         (Language_Independent_Check): Do not copy Value to Display_Value when
35235         canonicalizing Value.
35236
35237         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35238         path to find limited with cycles.
35239         (Parse_Single_Project): Use canonical cased path to find the end of a
35240         with cycle.
35241
35242 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
35243
35244         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35245         and not a child unit.
35246
35247         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35248         appear in a with_clause.
35249
35250         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35251         only happen in type_annotate mode, do not try to elaborate it.
35252
35253         * exp_util.adb (Force_Evaluation): If expression is a selected
35254         component on the left of an assignment, use a renaming rather than a
35255         temporary to remove side effects.
35256
35257         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35258         inlined instance body, which is analyzed before the end of the
35259         enclosing scope.
35260
35261 2004-03-02  Robert Dewar  <dewar@gnat.com>
35262
35263         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35264         sem_ch4.adb: Use new feature for substitution of keywords in VMS
35265
35266         * errout.ads, errout.adb: Implement new circuit for substitution of
35267         keywords in VMS.
35268
35269         * sem_case.adb (Analyze_Choices): Place message properly when case is
35270         a subtype reference rather than an explicit range.
35271
35272         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35273
35274 2004-03-02  Doug Rupp  <rupp@gnat.com>
35275
35276         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35277
35278 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
35279
35280         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35281
35282 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35283
35284         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35285         BLKmode bitfield.
35286
35287 2004-02-25  Robert Dewar  <dewar@gnat.com>
35288
35289         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
35290         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
35291         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
35292         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
35293         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
35294         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
35295         the defining instance of the type to avoid aliasing problems.
35296         Fix copyright header.  Fix bad comments in package header.
35297
35298         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
35299
35300 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
35301
35302         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
35303         rewritten as references when aliased through an address clause.
35304
35305         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
35306         whether call can be interpreted as an indirect call to the result of a
35307         parameterless function call returning an access subprogram.
35308
35309 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
35310
35311         Code clean up:
35312         * exp_ch7.adb (Make_Clean): Remove generation of calls to
35313         Unlock[_Entries], since this is now done by Service_Entries directly.
35314
35315         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
35316
35317         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
35318         Requeue_Call for better code readability. Change spec and update calls:
35319         PO_Service_Entries now unlock the PO on exit.
35320         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
35321         PO_Service_Entries.
35322
35323         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
35324
35325         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
35326
35327 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
35328
35329         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
35330         protected subprogram call and analyzing the result of such expanding
35331         in case when the called protected subprogram is eliminated.
35332
35333         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
35334         names.
35335
35336 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
35337
35338         * Makefile.in: Clean ups.
35339
35340 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
35341
35342         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
35343         protected operations if original subprogram is flagged as eliminated.
35344         (Expand_N_Subprogram_Body): For a protected operation, create
35345         discriminals for next operation before checking whether the operation
35346         is eliminated.
35347
35348         * exp_ch9.adb (Expand_N_Protected_Body,
35349         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
35350         for internal protected operations if the original subprogram is
35351         eliminated.
35352
35353         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
35354         declared in a single protected object.
35355
35356 2004-02-23  Vincent Celier  <celier@gnat.com>
35357
35358         * prj-attr.adb: Make attribute Builder'Executable an associative array,
35359         case insensitive if file names are case insensitive, instead of a
35360         standard associative array.
35361
35362         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
35363         them as case insensitive on platforms where the file names are case
35364         sensitive.
35365
35366         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
35367         project file has already been parsed that canonical path are compared.
35368
35369 2004-02-23  Robert Dewar  <dewar@gnat.com>
35370
35371         * sinput-c.ads: Correct bad unit title in header
35372
35373         * freeze.adb: Minor reformatting
35374
35375 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35376
35377         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
35378         nonaddressable COMPONENT_REF that is removing padding that we are
35379         taking the address of, take the address of the padded record instead
35380         if item is variable size.
35381
35382 2004-02-20  Robert Dewar  <dewar@gnat.com>
35383
35384         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
35385
35386 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
35387
35388         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
35389         itype references for the constrained designated type of a component
35390         whose base type is already frozen.
35391
35392 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
35393
35394         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
35395         avoid GCC warnings.
35396
35397 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
35398
35399         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
35400         identifier for a phantom package that rewrites the formal package
35401         declaration with a box. The Add semantic decorations for the defining
35402         identifier from the original node (that represents the formal package).
35403
35404 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
35405
35406         * Make-lang.in (ada/stamp-sdefault): Use the top level
35407         move-if-change.
35408
35409 2004-02-19  Richard Henderson  <rth@redhat.com>
35410
35411         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
35412
35413 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
35414
35415         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
35416         Scan_ALI can be used for multiple ALI files without reinitializing
35417         between calls.
35418
35419 2004-02-18  Robert Dewar  <dewar@gnat.com>
35420
35421         * debug.adb: Minor reformatting.
35422
35423 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35424
35425         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
35426         to zero if there is an address clause.
35427
35428 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
35429
35430         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
35431
35432 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
35433
35434         * layout.adb (Layout_Component_List): Revise generation of call to
35435         discriminant-checking function to pass selections of all of the type's
35436         discriminants rather than just the variant-controlling discriminant.
35437
35438 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
35439
35440         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
35441         fail in the current setup and triggers spurious system error messages.
35442         Pretend it occurred and failed instead.
35443
35444 2004-02-18  Vincent Celier  <celier@gnat.com>
35445
35446         * bld.adb: Mark FLDFLAGS as saved
35447         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
35448         it is not the root project.  Put each directory to be
35449         extended between double quotes to prevent it to be expanded on Windows.
35450         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
35451         the project file. Set them back to their initial values if they have not
35452         been set in the project file.
35453
35454         * gprcmd.adb: (Gprdebug, Debug): New global variables
35455         (Display_Command): New procedure
35456         (Usage): Document new command "linkopts"
35457         Call Display_Command when env var GPRDEBUG has the value "TRUE"
35458         Implement new command "linkopts"
35459         Remove quotes that may be around arguments for "extend"
35460         Always call Normalize_Pathname with arguments formatted for the platform
35461
35462         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
35463         Change @echo to @$(display) in target clean to be able to clean silently
35464
35465         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
35466
35467         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
35468         canonical case.
35469
35470         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
35471         = Extending_All when current project is an extending all project.
35472
35473         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
35474         set to True only for LINK command, after Unix switch -o.
35475         (Process_Arguments): Set Output_File_Expected to True for LINK command
35476         after Unix switch -o. When Output_File_Expected is True, never add an
35477         extension to a file name.
35478
35479         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
35480         option file name, only to the --for-linker= switch.
35481         (Option_File_Name): If option file name do not end with ".opt", append
35482         "/OPTIONS".
35483
35484 2004-02-18  GNAT Script  <nobody@gnat.com>
35485
35486         * Make-lang.in: Makefile automatically updated
35487
35488 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
35489
35490         * Make-lang.in (stamp-sdefault): Do not depend on
35491         move-if-change.
35492
35493 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
35494
35495         * config-lang.in: Disable Ada by default until probe logic for
35496         a bootstrap Ada compiler can be moved to the top level configure
35497         script.
35498
35499 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
35500
35501         * decl.c (components_to_record): Don't claim that the internal fields
35502         we make to hold the variant parts are semantically addressable, because
35503         they are not.
35504
35505         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
35506         adjust the comment describing the modular type form when we can use it.
35507         (Install_PAT): Account for the Esiz renaming.
35508
35509         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
35510         sc_onstack context indication before raising the exception to which
35511         the signal is mapped. Allows better handling of later signals possibly
35512         triggered by the resumed user code if the exception is handled.
35513
35514 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
35515
35516         * 5zinit.adb: Removed, no longer used.
35517
35518 2004-02-12  Robert Dewar  <dewar@gnat.com>
35519
35520         * ali.adb: Remove separating space between parameters on R line. Makes
35521         format consistent with format used by the binder for Set_Globals call.
35522
35523         * atree.ads, atree.adb: Minor reformatting (new function header format)
35524
35525         * bindgen.adb: Add Run-Time Globals documentation section containing
35526         detailed documentation of the globals passed from the binder file to
35527         the run time.
35528
35529         * gnatls.adb: Minor reformatting
35530
35531         * init.c (__gnat_set_globals): Add note pointing to documentation in
35532         bindgen.
35533
35534         * lib-writ.ads, lib-writ.adb: Remove separating space between
35535         parameters on R line.
35536         Makes format consistent with format used by the binder for Set_Globals
35537         call.
35538
35539         * osint.ads: Add 2004 to copyright notice
35540         Minor reformatting
35541
35542         * snames.ads: Correct capitalization of FIFO_Within_Priorities
35543         Noticed during code reading, documentation issue only
35544
35545         * usage.adb: Remove junk line for obsolete C switch
35546         Noticed during code reading
35547
35548 2004-02-12  Vincent Celier  <celier@gnat.com>
35549
35550         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
35551         extend for each directory, so that multiple /** directories are
35552         extended individually.
35553         (Recursive_Process): Set the default for LANGUAGES to ada
35554
35555         * gprcmd.adb: Define new command "ignore", to do nothing.
35556         Implement new comment "path".
35557
35558         * Makefile.generic: Suppress output when SILENT is set
35559         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
35560         used, so that the correct compiler is invoked.
35561         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
35562         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
35563
35564 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
35565
35566         * Makefile.in: Clean ups and remove obsolete targets.
35567
35568 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
35569
35570         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
35571         predicate declared in exp_util.
35572
35573         * exp_util.adb: Add comments.
35574
35575         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
35576         visibility before compiling context of the subunit.
35577
35578         * sem_res.adb (Check_Parameterless_Call): If the context expects a
35579         value but the name is a procedure, do not attempt to analyze as a call,
35580         in order to obtain more telling diagnostics.
35581
35582         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
35583         'Access on parameterless function calls.
35584         (Normalize_Actuals): For a parameterless function call with missing
35585         actuals, defer diagnostic until resolution of enclosing call.
35586
35587         * sem_util.adb (Wrong_Type): If the context type is an access to
35588         subprogram and the expression is a procedure name, suggest a missing
35589         'attribute.
35590
35591 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
35592             Nathanael Nerode  <neroden@gcc.gnu.org>
35593
35594         PR ada/6637
35595         PR ada/5911
35596         Merge with libada-branch:
35597         * config-lang.in: Build libada only when ada is built.
35598
35599 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
35600
35601         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
35602         for a tagged type, verify that both formals have the same type.
35603
35604         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
35605         temporary when the formal is an in-parameter and the actual a possibly
35606         unaligned slice.
35607
35608         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
35609         when expansion is disabled, to ensure proper name capture with
35610         overloaded literals.  Condition can be of any boolean type, resolve
35611         accordingly.
35612
35613         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
35614         renaming is for a formal subprogram with a default operator name, and
35615         there is a usable operator that is visible at the point of
35616         instantiation.
35617
35618 2004-02-09  Robert Dewar  <dewar@gnat.com>
35619
35620         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
35621         rewrite to ignore errors in ali files, intended to allow tools downward
35622         compatibility with new versions of ali files.
35623
35624         * ali.ads: Add new parameter Ignore_Errors
35625
35626         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
35627         duplicating the error message giving the file with restrictions.
35628
35629         * debug.adb: Add debug flag I for gnatbind
35630
35631         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
35632         operators for the case where the operator is a defining operator.
35633
35634         * exp_ch3.adb: Minor reformatting (new function spec format).
35635
35636         * exp_ch4.adb: Add comment for previous change, and make minor
35637         adjustment to loop to always check for improper loop termination.
35638         Minor reformatting throughout (new function spec format).
35639
35640         * gnatbind.adb: Implement -di debug flag for gnatbind
35641
35642         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
35643
35644         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
35645
35646         * lib-load.adb: Fix bad assertion.
35647         Found by testing and code reading.
35648         Minor reformatting.
35649
35650         * lib-load.ads: Minor reformatting.
35651
35652         * lib-writ.adb: There is only one R line now.
35653
35654         * lib-writ.ads: Add documentation on making downward compatible changes
35655         to ali files so old tools work with new ali files.
35656         There is only one R line now.
35657         Add documentation on format incompatibilities (with special GPS note)
35658
35659         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
35660
35661         * par-load.adb: Minor reformatting
35662
35663         * sem_ch8.adb: Fix to error message from last update
35664         Minor reformatting and restructuring of code from last update
35665
35666         * par-prag.adb, snames.adb, snames.ads, snames.h,
35667         sem_prag.adb: Implement pragma Profile.
35668
35669         * stylesw.adb: Implement -gnatyN switch to turn off all style check
35670         options.
35671
35672         * usage.adb: Add line for -gnatyN switch
35673
35674         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
35675
35676 2004-02-09  Albert Lee  <lee@gnat.com>
35677
35678         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
35679
35680 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
35681
35682         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
35683         slices.
35684
35685         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
35686         is nested in an instance that is not frozen yet, to avoid
35687         order-of-elaboration problems in gigi.
35688
35689         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
35690         body the attribute is legal.
35691
35692 2004-02-09  Robert Dewar  <dewar@gnat.com>
35693
35694         * s-rident.ads: Minor comment correction
35695
35696         * targparm.adb: Remove dependence on uintp completely. There was
35697         always a bug in Make in that it called Targparm before initializing
35698         the Uint package. The old code appeared to get away with this, but
35699         the new code did not! This caused an assertion error in gnatmake.
35700
35701         * targparm.ads: Fix bad comment, restriction pragmas with parameters
35702         are indeed fully supported.
35703
35704 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
35705
35706         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
35707
35708 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
35709
35710         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
35711         with targetm.calls.promote_prototypes.
35712
35713 2004-02-04  Robert Dewar  <dewar@gnat.com>
35714
35715         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
35716         ali.ads, gprcmd.adb: Minor reformatting
35717
35718         * bindgen.adb: Output restrictions string for new style restrictions
35719         handling
35720
35721         * impunit.adb: Add s-rident.ads (System.Rident) and
35722         s-restri (System.Restrictions)
35723
35724         * lib-writ.adb: Fix bug in writing restrictions string (last few
35725         entries wrong)
35726
35727         * s-restri.ads, s-restri.adb: Change name Restrictions to
35728         Run_Time_Restrictions to avoid conflict with package name.
35729         Add circuit to read and acquire run time restrictions.
35730
35731 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
35732
35733         * restrict.ads, restrict.adb: Use the new restriction
35734         No_Task_Attributes_Package instead of the old No_Task_Attributes.
35735
35736         * sem_prag.adb: No_Task_Attributes is a synonym of
35737         No_Task_Attributes_Package.
35738
35739         * snames.ads, snames.adb: New entry for proper handling of
35740         No_Task_Attributes.
35741
35742         * s-rident.ads: Adding restriction No_Task_Attributes_Package
35743         (AI-00249) that supersedes the GNAT specific restriction
35744         No_Task_Attributes.
35745
35746 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
35747
35748         * sem_prag.adb:
35749         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
35750          body, an identifier may be wrapped in an unchecked conversion.
35751
35752 2004-02-04  Vincent Celier  <celier@gnat.com>
35753
35754         * lib-writ.ads: Comment update for the W lines
35755
35756         * bld.adb: (Expression): An empty string list is static
35757
35758         * fname-uf.adb: Minor comment update
35759
35760         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
35761
35762         * gnatbind.adb: Initialize Cumulative_Restrictions with the
35763         restrictions on the target.
35764
35765 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
35766
35767         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
35768         gen_rtx.
35769
35770 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
35771
35772         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
35773
35774 2004-02-02  Vincent Celier  <celier@gnat.com>
35775
35776         * gprcmd.adb (Check_Args): If condition is false, print the invoked
35777         comment before the usage.
35778         Gprcmd: Fail when command is not recognized.
35779         (Usage): Document command "prefix"
35780
35781         * g-md5.adb (Digest): Process last block.
35782         (Update): Do not process last block. Store remaining characters and
35783         length in Context.
35784
35785         * g-md5.ads (Update): Document that several call to update are
35786         equivalent to one call with the concatenated string.
35787         (Context): Add fields to allow new Update behaviour.
35788
35789         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
35790         defaulted to False.
35791         When May_Fail is True and no existing file can be found, return No_File.
35792
35793         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
35794         functions.
35795
35796         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
35797         spec file name instead on the W line.
35798
35799 2004-02-02  Robert Dewar  <dewar@gnat.com>
35800
35801         * ali.adb: Read and acquire info from new format restrictions lines
35802
35803         * bcheck.adb: Add circuits for checking restrictions with parameters
35804
35805         * bindgen.adb: Output dummy restrictions data
35806         To be changed later
35807
35808         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35809         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
35810         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
35811         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
35812         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
35813
35814         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
35815         the warning message on access to possibly uninitialized variable S)
35816         Minor changes for new restrictions handling.
35817
35818         * gnatbind.adb: Minor reformatting
35819         Minor changes for new restrictions handling
35820         Move circuit for -r processing here from bcheck (cleaner)
35821
35822         * gnatcmd.adb, gnatlink.adb: Minor reformatting
35823
35824         * lib-writ.adb: Output new format restrictions lines
35825
35826         * lib-writ.ads: Document new R format lines for new restrictions
35827         handling.
35828
35829         * s-restri.ads/adb: New files
35830
35831         * Makefile.rtl: Add entry for s-restri.ads/adb
35832
35833         * par-ch3.adb: Fix bad error messages starting with upper case letter
35834         Minor reformatting
35835
35836         * restrict.adb: Major rewrite throughout for new restrictions handling
35837         Major point is to handle restrictions with parameters
35838
35839         * restrict.ads: Major changes in interface to handle restrictions with
35840         parameters. Also generally simplifies setting of restrictions.
35841
35842         * snames.ads/adb: New entry for proper handling of No_Requeue
35843
35844         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35845         restriction counting.
35846         Other minor changes for new restrictions handling
35847
35848         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35849         Restriction_Warnings now allows full parameter notation
35850         Major rewrite of Restrictions for new restrictions handling
35851
35852 2004-02-02  Javier Miranda  <miranda@gnat.com>
35853
35854         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35855         syntax rule for object renaming declarations.
35856         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35857         component definitions.
35858
35859         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35860         components.
35861         (Array_Type_Declaration): Give support to access components. In addition
35862         it was also modified to reflect the name of the object in anonymous
35863         array types. The old code did not take into account that it is possible
35864         to have an unconstrained anonymous array with an initial value.
35865         (Check_Or_Process_Discriminants): Allow access discriminant in
35866         non-limited types.
35867         (Process_Discriminants): Allow access discriminant in non-limited types
35868         Initialize the new Access_Definition field in N_Object_Renaming_Decl
35869         node.  Change Ada0Y to Ada 0Y in comments
35870
35871         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35872         equality operators.
35873         Change Ada0Y to Ada 0Y in comments
35874
35875         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35876         renamings Change Ada0Y to Ada 0Y in comments
35877
35878         * sem_type.adb (Find_Unique_Type): Give support to the equality
35879         operators for universal access types
35880         Change Ada0Y to Ada 0Y in comments
35881
35882         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35883
35884         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35885         field.
35886         (N_Object_Renaming_Declaration): Addition of Access_Definition field
35887         Change Ada0Y to Ada 0Y in comments
35888
35889         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35890         component definition and object renaming nodes
35891         Change Ada0Y to Ada 0Y in comments
35892
35893 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
35894
35895         * restrict.adb: Use the new restriction identifier
35896         No_Requeue_Statements instead of the old No_Requeue for defining the
35897         restricted profile.
35898
35899         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35900         No_Requeue_Statements.
35901
35902         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35903         that supersedes the GNAT specific restriction No_Requeue. The later is
35904         kept for backward compatibility.
35905
35906 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
35907
35908         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35909         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35910         pragma and fix incorrect ones.
35911
35912         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35913         warning if the pragma is redundant.
35914
35915 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
35916
35917         * 5staprop.adb: Add missing 'constant' keywords.
35918
35919         * Makefile.in: use consistent value for SYMLIB on
35920         platforms where libaddr2line is supported.
35921
35922 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35923
35924         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35925         annotating types.
35926
35927 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
35928
35929         * init.c (__gnat_install_handler): Setup an alternate stack for signal
35930         handlers in the environment thread. This allows proper propagation of
35931         an exception on stack overflows in this thread even when the builtin
35932         ABI stack-checking scheme is used without support for a stack reserve
35933         region.
35934
35935         * utils.c (create_field_decl): Augment the head comment about bitfield
35936         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35937         here, because the former is not accurate enough at this point.
35938         Let finish_record_type decide instead.
35939         Don't make a bitfield if the field is to be addressable.
35940         Always set a size for the field if the record is packed, to ensure the
35941         checks for bitfield creation are triggered.
35942         (finish_record_type): During last pass over the fields, clear
35943         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35944         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
35945         from DECL_BIT_FIELD.
35946
35947 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
35948
35949         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
35950         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35951         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35952
35953 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35954
35955         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35956
35957         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35958         (ZCX_By_Default): Likewise.
35959         (Front_End_ZCX_Support): Likewise.
35960
35961         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35962         (Initialize_Lock): Mark Level unreferenced.
35963         (Sleep): Mark Reason unreferenced.
35964         (Timed_Sleep): Likewise.
35965         (Wakeup): Likewise.
35966         (Exit_Task): Use Result.
35967         (Check_No_Locks): Mark Self_ID unreferenced.
35968
35969         * 5gtasinf.adb (New_Sproc): Make Attr constant.
35970         (Bound_Thread_Attributes): Make Sproc constant.
35971         (New_Bound_Thread_Attributes): Likewise.
35972
35973 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
35974
35975         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35976         one-dimensional array an slice assignments, when component type is
35977         controlled.
35978
35979         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35980         component type is controlled, and control_actions are in effect, use
35981         TSS procedure rather than generating inline code.
35982
35983         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35984         arrays with controlled components.
35985
35986 2004-01-26  Vincent Celier  <celier@gnat.com>
35987
35988         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35989         command line for the non VMS case.
35990
35991         * gnatlink.adb (Process_Binder_File): When building object file, if
35992         GNU linker is used, put all object paths between quotes, to prevent ld
35993         error when there are unusual characters (such as '!') in the paths.
35994
35995         * Makefile.generic: When there are sources in Ada and the main is in
35996         C/C++, invoke gnatmake with -B, instead of -z.
35997
35998         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35999         from VMS_Conversion.
36000         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36001         specification of argument file on the command line.
36002
36003 2004-01-26  Bernard Banner  <banner@gnat.com>
36004
36005         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36006
36007 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
36008
36009         * snames.adb: Update copyright notice.
36010         Add info on slice assignment for controlled arrays.
36011
36012 2004-01-23  Robert Dewar  <dewar@gnat.com>
36013
36014         * exp_aggr.adb: Minor reformatting
36015
36016         * exp_ch9.adb: Minor code clean up
36017         Minor reformatting
36018         Fix bad character in comment
36019
36020         PR ada/13471
36021         * targparm.adb (Get_Target_Parameters): Give clean abort error on
36022         unexpected end of file, along with more detailed message.
36023
36024 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36025
36026         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36027         PAT.
36028
36029         * decl.c (copy_alias_set): New function.
36030         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36031
36032 2004-01-23  Doug Rupp  <rupp@gnat.com>
36033
36034         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36035         lib$${file} in case subsequent character is not a separator.
36036
36037 2004-01-23  Vincent Celier  <celier@gnat.com>
36038
36039         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36040         when the GCC version is at least 3.
36041
36042         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36043         Remove all "Opt.", to prepare for opt split
36044
36045         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36046         Extends_All. Set to True when the project parsed is an extending all
36047         project. Fails for importing an extending all project only when the
36048         imported project is an extending all project.
36049         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36050         depending on the value of Extends_All returned.
36051
36052         * prj-proc.adb (Process): Check that no project shares its object
36053         directory with a project that extends it, directly or indirectly,
36054         including a virtual project.
36055         Check that no project extended by another project shares its object
36056         directory with another also extended project.
36057
36058         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36059         Kind = N_With_Clause
36060
36061         * prj-tree.ads: Minor reformatting
36062         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36063
36064 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
36065
36066         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36067         applies to a type with an incomplete view, use full view in Name of
36068         clause, for consistency with uses of Get_Attribute_Definition_Clause.
36069
36070 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
36071
36072         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36073         SCHED_RR, since other values are not supported by this policy.
36074         (Initialize): Move initialization of mutex attribute to package
36075         elaboration, to prevent early access to this variable.
36076
36077         * Makefile.in: Remove mention of Makefile.adalib, unused.
36078
36079         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36080         1ssecsta.ads: Removed, unused.
36081
36082 2004-01-21  Javier Miranda  <miranda@gnat.com>
36083
36084         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36085         entity if already built in the current scope.
36086
36087         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36088         reminder in internal scopes. Required for nested limited aggregates.
36089
36090 2004-01-21  Doug Rupp  <rupp@gnat.com>
36091
36092         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36093         VMS. Replace all occurences of libgnat- and libgnarl- with
36094         libgnat$(hyphen) and libgnarl$(hyphen).
36095         Fixed shared library build problem on VMS.
36096
36097 2004-01-21  Robert Dewar  <dewar@gnat.com>
36098
36099         * mlib-prj.adb: Minor reformatting
36100
36101 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
36102
36103         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36104         'constant' keywords for declaration of pointers that are not modified.
36105
36106         * exp_pakd.adb: Fix English in comment.
36107
36108 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
36109
36110         PR ada/10889
36111         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36112         copy all attributes of the parent, including the foreign language
36113         convention.
36114
36115 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
36116
36117         PR ada/10565
36118         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36119         for 'delay until' statement.
36120
36121 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
36122
36123         * Make-lang.in: Replace $(docdir) with doc.
36124         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36125         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36126         to use consistent MAKEINFO rule.
36127         (ada.man, ada.srcman): Dummy entry.
36128         (ADA_INFOFILES): Define.
36129         (ada.info, ada.srcinfo): New rules.
36130
36131 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
36132
36133         * utils.c: Update copyright notice, missed in previous change.
36134
36135 2004-01-19  Vincent Celier  <celier@gnat.com>
36136
36137         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36138         args if Bind is True. Set First_ALI, if not already done.
36139         (Build_Library): For Stand Alone Libraries, extract from one ALI file
36140         an eventual --RTS switch, for gnatbind, and all backend switches +
36141         --RTS, for linking.
36142
36143 2004-01-19  Robert Dewar  <dewar@gnat.com>
36144
36145         * sem_attr.adb, memtrack.adb: Minor reformatting
36146
36147 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
36148
36149         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36150         that rename enumeration literals. This is properly done in sem_eval.
36151
36152         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36153         to functions that rename enumeration literals.
36154
36155         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36156         functions that rename enumeration literals.
36157
36158 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
36159
36160         * Make-lang.in (utils.o): Depend on target.h.
36161         * utils.c: Include target.h.
36162         (process_attributes): Use targetm.have_named_sections instead
36163         of ASM_OUTPUT_SECTION_NAME.
36164
36165 2004-01-16  Andreas Jaeger  <aj@suse.de>
36166
36167         * Makefile.in: Add $(DESTDIR).
36168
36169 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
36170
36171         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36172         also when not defining if a Size clause applies. That information is
36173         not to be ignored.
36174
36175 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
36176
36177         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36178         symbolic links for the shared gnat run time when needed.
36179
36180 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
36181
36182         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36183         for writing, and terminate with an error message if not.
36184
36185 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
36186
36187         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36188         warning on an access to subprogram in an instance, when the target
36189         type is declared in the same generic unit.
36190         (Eval_Attribute): If 'access is known to fail accessibility check,
36191         rewrite as a raise statement.
36192
36193 2004-01-15  GNAT Script  <nobody@gnat.com>
36194
36195         * Make-lang.in: Makefile automatically updated
36196
36197 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
36198
36199         * Make-lang.in (ada.srcextra): Dummy entry.
36200
36201 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
36202
36203         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36204
36205 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
36206
36207         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36208         components that are initialized with aggregates.
36209
36210 2004-01-13  Vincent Celier  <celier@gnat.com>
36211
36212         * gnatlink.adb (Process_Binder_File): To find directory of shared
36213         libgcc, if "gcc-lib" is not a subdirectory, look for the last
36214         subdirectory "lib" in the path of the shared libgnat or libgnarl.
36215
36216         * make.adb (Gnatmake): If GCC version is at least 3, link with
36217         -shared-libgcc, when there is at least one shared library project.
36218
36219         * opt.ads (GCC_Version): New integer constant.
36220
36221         * adaint.c (get_gcc_version): New function.
36222
36223 2004-01-13  Robert Dewar  <dewar@gnat.com>
36224
36225         * sem_dist.adb, sem_res.adb, sem_util.adb,
36226         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36227         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36228
36229 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
36230
36231         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36232         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36233         declarations.
36234
36235 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
36236
36237         * misc.c: Remove trailing spaces.
36238         Update copyright notice missed in previous change.
36239
36240         PR ada/13572
36241         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36242         prefix/share/make
36243
36244         * Makefile.generic: Update copyright.
36245         Add license notice.
36246
36247         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36248         of prefix/share/make.
36249
36250         * Makefile.prolog: Update copyright.
36251         Add license notice.
36252
36253 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
36254
36255         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36256         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36257         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36258         instead of String.
36259
36260         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36261         signature.
36262
36263 2004-01-12  Javier Miranda  <miranda@gnat.com>
36264
36265         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36266         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36267         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36268         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36269         Component_Definition node.
36270
36271 2004-01-12  Ed Falis  <falis@gnat.com>
36272
36273         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36274
36275 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
36276
36277         * link.c: Change default libgnat kind to STATIC for FreeBSD.
36278
36279 2004-01-12  Bernard Banner  <banner@gnat.com>
36280
36281         * Makefile.in: map 86numaux to a-numaux for x86_64
36282
36283 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
36284
36285         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36286         generated to rename a generic actual, go to the actual itself, the
36287         subtype is not a user-visible entity.
36288
36289         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
36290         part is a private subtype, reset the visibility of its full view, if
36291         any, to be consistent.
36292
36293         PR ada/13417
36294         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
36295         to use a generic package G as a formal package for another generic
36296         declared within G.
36297
36298 2004-01-12  Robert Dewar  <dewar@gnat.com>
36299
36300         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
36301
36302         * usage.adb: Remove mention of obsolete -gnatwb switch
36303         Noticed during code reading
36304
36305 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
36306
36307         * 1ssecsta.adb: Minor changes for -gnatwa warnings
36308
36309 2004-01-12  GNAT Script  <nobody@gnat.com>
36310
36311         * Make-lang.in: Makefile automatically updated
36312
36313 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
36314
36315         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
36316
36317 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36318
36319         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
36320
36321 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
36322
36323         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
36324         Update comment and copyright date.
36325         * stamp-xgnatug: Delete.
36326
36327 2004-01-05  Robert Dewar  <dewar@gnat.com>
36328
36329         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
36330         be modified by the binder generated main program if the -D switch is
36331         used.
36332
36333         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
36334         imported functions (since now we expect this to be done for imported
36335         functions)
36336
36337         * 5vtaprop.adb: Add several ??? for sections requiring more comments
36338         Minor reformatting throughout
36339
36340         * 5zinit.adb: Minor reformatting
36341         Add 2004 to copyright date
36342         Minor changes to avoid -gnatwa warnings
36343         Correct some instances of using OR instead of OR ELSE (noted while
36344         doing reformatting)
36345
36346         * sprint.adb: Minor updates to avoid -gnatwa warnings
36347
36348         * s-secsta.ads, s-secsta.adb:
36349         (SS_Get_Max): New function to obtain high water mark for ss stack
36350         Default_Secondary_Stack is not a constant since it may be modified by
36351         the binder generated main program if the -D switch is used.
36352
36353         * switch-b.adb: New -Dnnn switch for binder
36354
36355         * switch-c.adb:
36356         Make -gnatg imply all warnings currently in -gnatwa
36357
36358         * vms_conv.adb: Minor reformatting
36359         Add 2004 to copyright notice
36360         Add 2004 to printed copyright notice
36361
36362         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
36363         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
36364         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
36365         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
36366         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
36367         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
36368         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
36369         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
36370         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
36371         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
36372         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
36373         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
36374         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
36375         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
36376         checks.adb, clean.adb, cstand.adb, einfo.ads,
36377         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
36378         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
36379         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
36380         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
36381         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
36382         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
36383         Minor reformatting and code clean ups.
36384         Minor changes to prevent -gnatwa warnings
36385
36386         * ali.adb: Minor reformatting and cleanup of code
36387         Acquire new SS indication of secondary stack use from ali files
36388
36389         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
36390         (since now we expect this to be done for imported functions)
36391
36392         * bindgen.adb: Generate call to modify default secondary stack size if
36393         -Dnnn switch given
36394
36395         * bindusg.adb: Add line for new -D switch
36396
36397         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
36398         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
36399         Add circuitry for both records and arrays to avoid gigi
36400         processing if the type involved has non-bit-aligned components
36401
36402         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
36403         N_String_Literal node always references an E_String_Literal_Subtype
36404         entity. This may not be true in the future.
36405         (Possible_Bit_Aligned_Component): Move processing of
36406         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
36407
36408         * exp_ch6.adb (Expand_Thread_Body): Pick up
36409         Default_Secondary_Stack_Size as variable so that we get value modified
36410         by possible -Dnnn binder parameter.
36411
36412         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
36413         (Type_May_Have_Bit_Aligned_Components): New function.
36414
36415         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
36416         (Type_May_Have_Bit_Aligned_Components): New function.
36417
36418         * fe.h: (Set_Identifier_Casing): Fix prototype.
36419         Add declaration for Sem_Elim.Eliminate_Error_Msg.
36420         Minor reformatting.
36421
36422         * freeze.adb (Freeze_Entity): Add RM reference to error message about
36423         importing constant atomic/volatile objects.
36424         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
36425         unless explicit Pure_Function pragma given, to avoid insidious bug of
36426         call to non-pure imported function getting eliminated.
36427
36428         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
36429         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
36430         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
36431         Add 2004 to printed copyright notice
36432
36433         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
36434         stack used.
36435
36436         * Makefile.rtl: Add entry for g-sestin.o
36437         g-sestin.ads: New file.
36438
36439         * mdll.adb: Minor changes to avoid -gnatwa warnings
36440
36441         * mlib-tgt.adb: Minor reformatting
36442
36443         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
36444         New switch Sec_Stack_Used (GNAT, GNATBIND)
36445         Make Default_Secondary_Stack_Size a variable instead of a constant,
36446         so that it can be modified by the new -Dnnn bind switch.
36447
36448         * rtsfind.adb (Load_Fail): Give full error message in configurable
36449         run-time mode if all_errors mode is set. This was not done in the case
36450         of a file not found, which was an oversight.
36451         Note if secondary stack unit is used by compiler.
36452
36453         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
36454         ineffective elaborate all pragmas on non-visible packages (this
36455         happened when a renamed subprogram was called). Now the elaborate all
36456         always goes on the package containing the renaming rather than the one
36457         containing the renamed subprogram.
36458
36459         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
36460         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
36461
36462         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
36463         has an Etype that references an E_String_Literal.
36464         (Eval_String_Literal): Avoid assumption that N_String_Literal node
36465         always references an E_String_Literal_Subtype entity. This may not
36466         be true in the future.
36467
36468         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
36469         pragma location.
36470
36471         * sem_res.adb (Resolve): Specialize msg for function name used in proc
36472         call.
36473
36474 2004-01-05  Ed Falis  <falis@gnat.com>
36475
36476         * g-debuti.adb: Replaced direct boolean operator with short-circuit
36477         form.
36478
36479 2004-01-05  Vincent Celier  <celier@gnat.com>
36480
36481         * bld.adb: Minor comment updates
36482         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
36483         of Item_Name).
36484
36485         * make.adb (Gnatmake): Special process for files to compile/check when
36486         -B is specified. Fail when there are only foreign mains in attribute
36487         Main of the project file and -B is not specified. Do not skip bind/link
36488         steps when -B is specified.
36489
36490         * makeusg.adb: Document new switch -B
36491
36492         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
36493
36494         * switch-m.adb: (Scan_Make_Switches): Process -B switch
36495
36496         * vms_data.ads: Add new GNAT PRETTY qualifier
36497         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
36498
36499 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36500
36501         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
36502         case.
36503
36504         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
36505         Set_Identifier_Casing.
36506
36507         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
36508         has size that overflows.
36509
36510 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
36511
36512         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
36513         -gnatwa warning on static condition.
36514
36515 2004-01-05  Doug Rupp  <rupp@gnat.com>
36516
36517         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
36518
36519 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
36520
36521         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
36522         all attributes, including read-only attribute.
36523
36524 2004-01-05  Pascal Obry  <obry@gnat.com>
36525
36526         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
36527         library naming scheme.
36528
36529         * mlib-prj.adb (Build_Library): Generate different names for the static
36530         or dynamic version of the GNAT runtime. This is needed to support the
36531         new shared library naming scheme.
36532         (Process_Binder_File): Add detection of shared library in binder file
36533         based on the new naming scheme.
36534
36535         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
36536         scheme for the shared runtime libraries.
36537
36538         * Makefile.in:
36539         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
36540         scheme.
36541         (install-gnatlib): Do not create symlinks for shared libraries.
36542         (gnatlib-shared-default): Idem.
36543         (gnatlib-shared-dual-win32): New target. Not used for now as the
36544         auto-import feature does not support arrays/records.
36545         (gnatlib-shared-win32): Do not create copy for the shared libraries.
36546         (gnatlib-shared-vms): Fix shared runtime libraries names.
36547
36548         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
36549         dependent runtime shared library name.
36550
36551 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
36552
36553         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
36554         than the object.
36555
36556 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
36557
36558         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
36559         protected objects when allocator has a subtype indication, not a
36560         qualified expression. Note that qualified expressions may have to be
36561         checked when limited aggregates are implemented.
36562
36563         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
36564         pure, emit warning.
36565         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
36566         subprogram is imported, remove warning.
36567
36568 2004-01-05  Geert Bosch  <bosch@gnat.com>
36569
36570         * s-poosiz.adb: Update copyright notice.
36571         (Allocate): Use Task_Lock to protect against concurrent access.
36572         (Deallocate): Likewise.
36573
36574 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
36575
36576         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
36577         comment.
36578
36579 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
36580
36581         * gnat_ug.texi: Force a CVS commit by updating copyright.
36582         * gnat_ug_vxw.texi: Regenerate.
36583         * gnat_ug_wnt.texi: Regenerate.
36584         * gnat_ug_vms.texi: Regenerate.
36585         * gnat_ug_unx.texi: Regenerate.
36586
36587 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
36588
36589         * trans.c: Remove uses of "register" specifier in
36590         declarations of local variables.
36591
36592 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
36593
36594         * stamp-xgnatug: New stamp file.
36595         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
36596         (ada/doctools/xgnatug): Add $(build_exeext).
36597         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
36598         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
36599
36600 2003-12-17  Ed Falis  <falis@gnat.com>
36601
36602         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
36603         eliminate warning.
36604
36605         * a-exextr.adb: Add context clause for
36606         Ada.Exceptions.Last_Chance_Handler.
36607
36608 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
36609
36610         * cstand.adb (Create_Standard): Change the way how the declaration of
36611         the Duration type is created (making it the same way as it is for all
36612         the other standard types).
36613
36614 2003-12-17  Robert Dewar  <dewar@gnat.com>
36615
36616         * s-crtl.ads: Fix header format
36617         Change Pure to Preelaborate
36618
36619 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
36620
36621         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
36622         the expression type only if it is declared in the current unit.
36623
36624         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
36625         are universal and already analyzed, as can occur in constrained
36626         subcomponents that depend on discriminants, when one constraint is a
36627         subtype mark.
36628
36629         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
36630         type Any_Fixed is legal as the argument of a conversion, if only one
36631         fixed-point type is in context.
36632
36633 2003-12-17  GNAT Script  <nobody@gnat.com>
36634
36635         * Make-lang.in: Makefile automatically updated
36636
36637 2003-12-15  Robert Dewar  <dewar@gnat.com>
36638
36639         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
36640         sec stack size.
36641
36642 2003-12-15  Vincent Celier  <celier@gnat.com>
36643
36644         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
36645         (Gnatchop): Do not set failure status when reporting the number of
36646         warnings.
36647
36648 2003-12-15  Doug Rupp  <rupp@gnat.com>
36649
36650         * s-ctrl.ads: New file.
36651
36652         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
36653
36654         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
36655         (GNATBIND_OBJS): Add ada/s-crtl.o.
36656
36657         * Makefile.in [VMS]: Clean up ifeq rules.
36658
36659         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
36660         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
36661         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
36662         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
36663         s-tasdeb.adb: Update copyright.
36664         Import System.CRTL.
36665         Make minor modifications to use System.CRTL declared functions instead
36666         of importing locally.
36667
36668 2003-12-15  GNAT Script  <nobody@gnat.com>
36669
36670         * Make-lang.in: Makefile automatically updated
36671
36672 2003-12-11  Ed Falis  <falis@gnat.com>
36673
36674         * 5zinit.adb: Clean up.
36675
36676         * 5zintman.adb (Notify_Exception): replaced case statement with a call
36677         to __gnat_map_signal, imported from init.c to support
36678         signal -> exception mappings that depend on the vxWorks version.
36679
36680         * init.c:
36681         Created and exported __gnat_map_signal to support signal -> exception
36682         mapping that is dependent on the VxWorks version.
36683         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
36684
36685 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
36686
36687         * 5wosinte.ads: Link with -mthreads switch.
36688
36689 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
36690
36691         * init.c (__gnat_install_handler [NetBSD]): Set
36692         __gnat_handler_installed, as done on all other platforms.
36693         Remove duplicated code.
36694
36695 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
36696
36697         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
36698
36699 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
36700
36701         * sinfo.ads: Fix inconsistent example code in comment.
36702
36703 2003-12-11  Robert Dewar  <dewar@gnat.com>
36704
36705         * a-tiinau.adb: Add a couple of comments
36706
36707         * sem_ch3.adb: Minor reformatting
36708
36709         * sem_prag.adb:
36710         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
36711         Minor reformatting throughout
36712
36713 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
36714
36715         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
36716         bounds of a loop, create a separate block in order to generate proper
36717         cleanup actions to prevent memory leaks.
36718
36719         * sem_res.adb (Resolve_Call): After a call to
36720         Establish_Transient_Scope, the call may be rewritten and relocated, in
36721         which case no further processing is needed.
36722
36723         * sem_util.adb: (Wrong_Type): Refine previous fix.
36724          Fixes ACATS regressions.
36725
36726         PR ada/13353
36727         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
36728         be inlined.
36729
36730 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
36731
36732         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
36733         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
36734         obsolete files.
36735
36736         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
36737         (rts-zfp): Ditto.
36738
36739 2003-12-08  Robert Dewar  <dewar@gnat.com>
36740
36741         * 7sintman.adb: Minor reformatting
36742
36743         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
36744         standard linker options to get standard libraries linked. We now plan
36745         to provide dummy versions of these libraries to match the appropriate
36746         configurable run-time (e.g. if a library is not needed at all, provide
36747         a dummy empty library).
36748
36749         * targparm.ads: Configurable_Run_Time mode no longer affects linker
36750         options (-L parameters and standard libraries). What we plan to do is
36751         to provide dummy libraries where the libraries are not required.
36752
36753         * gnatbind.adb: Minor comment improvement
36754
36755 2003-12-08  Javier Miranda  <miranda@gnat.com>
36756
36757         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
36758         aggregate in the parent. Otherwise constants with limited aggregates
36759         are not supported. Add new formal to pass the component type (Ctype).
36760         It is required to call the corresponding IP subprogram in case of
36761         default initialized components.
36762         (Gen_Assign): In case of default-initialized component, generate a
36763         call to the IP subprogram associated with the component.
36764         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
36765         of aggregate with default initialized components.
36766         (Has_Default_Init_Comps): Improve implementation to recursively check
36767         all the present expressions.
36768
36769         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
36770         to indicate that the initialization call corresponds to a
36771         default-initialized component of an aggregate.
36772         In case of default initialized aggregate with tasks this parameter is
36773         used to generate a null string (this is just a workaround that must be
36774         improved later). In case of discriminants, this parameter is used to
36775         generate a selected component node that gives access to the discriminant
36776         value.
36777
36778         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
36779         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
36780         allocated aggregates with default-initialized components.
36781
36782         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
36783         the box notation is used in positional aggregates.
36784
36785 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
36786
36787         * lib.ads: Fix typo in comment
36788
36789 2003-12-08  Vincent Celier  <celier@gnat.com>
36790
36791         * prj.adb (Project_Empty): New component Unkept_Comments
36792         (Scan): Remove procedure; moved to Prj.Err.
36793
36794         * prj.ads (Project_Data): New Boolean component Unkept_Comments
36795         (Scan): Remove procedure; moved to Prj.Err.
36796
36797         * prj-dect.adb: Manage comments for the different declarations.
36798
36799         * prj-part.adb (With_Record): New component Node
36800         (Parse): New Boolean parameter Store_Comments, defaulted to False.
36801         Set the scanner to return ends of line and comments as tokens, if
36802         Store_Comments is True.
36803         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
36804         comments are associated with these nodes. Store the node IDs in the
36805         With_Records.
36806         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
36807         With_Records.
36808         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
36809         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
36810         current project. Call Tree.Restore afterwards. Set the various nodes
36811         for comment storage (Next_End, End_Of_Line, Previous_Line,
36812         Previous_End).
36813
36814         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
36815         defaulted to False.
36816
36817         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
36818         to False. When Truncated is True, truncate the string, never go to the
36819         next line.
36820         (Write_End_Of_Line_Comment): New procedure
36821         (Print): Process comments for nodes N_With_Clause,
36822         N_Package_Declaration, N_String_Type_Declaration,
36823         N_Attribute_Declaration, N_Typed_Variable_Declaration,
36824         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
36825         Process nodes N_Comment.
36826
36827         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
36828         without comments and there are some comments, set the flag
36829         Unkept_Comments to True.
36830         (Scan): If there are comments, set the flag Unkept_Comments to True and
36831         clear the comments.
36832         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
36833         (Next_End_Nodes: New table
36834         (Comment_Zones_Of): New function
36835         (Scan): New procedure; moved from Prj. Accumulate comments in the
36836         Comments table and set end of line comments, comments after, after end
36837         and before end.
36838         (Add_Comments): New procedure
36839         (Save, Restore, Seset_State): New procedures
36840         (There_Are_Unkept_Comments): New function
36841         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
36842         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
36843         procedures.
36844         (First_Comment_After, First_Comment_After_End): New functions
36845         (First_Comment_Before, First_Comment_Before_End): New functions
36846         (Next_Comment): New function
36847         (End_Of_Line_Comment, Follows_Empty_Line,
36848         Is_Followed_By_Empty_Line): New functions
36849         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36850         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36851         (Set_Next_Comment): New procedure
36852         (Default_Project_Node): Associate comment before if the node can store
36853         comments.
36854
36855         * scans.ads (Token_Type): New enumeration value Tok_Comment
36856         (Comment_Id): New global variable
36857
36858         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36859         defaulted to False.
36860         (Scan): Store position of start of comment. If comments are tokens, set
36861         Comment_Id and set Token to Tok_Comment when scanning a comment.
36862         (Set_Comment_As_Token): New procedure
36863
36864         * sinput-p.adb: Update Copyright notice
36865         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36866         that no longer exists.
36867
36868 2003-12-08  Javier Miranda  <miranda@gnat.com>
36869
36870         * sem_aggr.adb: Add dependence on Exp_Tss package
36871         Correct typo in comment
36872         (Resolve_Aggregate): In case of array aggregates set the estimated
36873         type of the aggregate before calling resolve. This is needed to know
36874         the name of the corresponding IP in case of limited array aggregates.
36875         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36876         in case of default initialized array components.
36877
36878         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36879         types. Required to give support to limited aggregates in generic
36880         formals.
36881
36882 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
36883
36884         * sem_ch3.adb (Check_Initialization): For legality purposes, an
36885         inlined body functions like an instantiation.
36886         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36887         until bounds are analyzed, to diagnose premature use of type.
36888
36889         * sem_util.adb (Wrong_Type): Improve error message when the type of
36890         the expression is used prematurely.
36891
36892 2003-12-08  GNAT Script  <nobody@gnat.com>
36893
36894         * Make-lang.in: Makefile automatically updated
36895
36896 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
36897
36898         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36899         they are automatically generated by Make-lang.in and cause nothing but
36900         maintenance troubles.
36901
36902 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
36903
36904         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36905         version of this unit).
36906
36907 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
36908
36909         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36910         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36911         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36912         the body of System.Interrupt_Management common to several targets.
36913         Update copyright notice when appropriate.
36914
36915         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36916         constant.
36917
36918         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36919         to ensure that the kernel fills in the interrupted context structure
36920         before calling a signal handler, which is necessary to be able to
36921         unwind past it. Update the copyright notice.
36922
36923 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
36924
36925         * a-elchha.ads: New file.
36926
36927         * a-elchha.adb: New default last chance handler. Contents taken from
36928         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36929
36930         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36931         is moved to a-elchha.adb to provide a target-independent default last
36932         chance handler.
36933
36934         * Makefile.rtl: Add a-elchha.o
36935
36936         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36937
36938 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
36939
36940         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36941         declared in an instance, do not inline the call if the instance is not
36942         frozen yet, to prevent order of elaboration problems.
36943
36944         * sem_prag.adb: Add comments for previous fix.
36945
36946 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
36947
36948         * g-table.adb: Use the right variable in Set_Item.
36949         Update copyright notice.
36950
36951 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
36952
36953         * Makefile.in: Remove unused rules.
36954
36955 2003-12-05  Vincent Celier  <celier@gnat.com>
36956
36957         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36958         -nostdlib. Not needed here after all.
36959
36960 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
36961
36962         PR ada/11724
36963         * adaint.h, adaint.c, g-os_lib.ads:
36964         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36965         on some platforms (including FreeBSD), it is a 64 bit value.
36966         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36967
36968 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
36969
36970         * gnatvsn.ads (Library_Version): Now contain only the relevant
36971         version info.
36972         (Verbose_Library_Version): New constant.
36973
36974         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36975         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36976         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36977
36978         * gnatlbr.adb: Clean up: replace Library_Version by
36979         Verbose_Library_Version.
36980
36981         * make.adb, lib-writ.adb, exp_attr.adb:
36982         Clean up: replace Library_Version by Verbose_Library_Version.
36983
36984         * 5lintman.adb: Removed.
36985
36986         * Makefile.in:
36987         Update and simplify computation of LIBRARY_VERSION.
36988         Fix computation of GSMATCH_VERSION.
36989         5lintman.adb is no longer used: replaced by 7sintman.adb.
36990
36991 2003-12-03  Robert Dewar  <dewar@gnat.com>
36992
36993         * exp_ch5.adb:
36994         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36995         name. Modified to consider small non-bit-packed arrays as troublesome
36996         and in need of component-by-component assigment expansion.
36997
36998 2003-12-03  Vincent Celier  <celier@gnat.com>
36999
37000         * lang-specs.h: Process nostdlib as nostdinc
37001
37002         * back_end.adb: Update Copyright notice
37003         (Scan_Compiler_Arguments): Process -nostdlib directly.
37004
37005 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
37006
37007         * Makefile.in:
37008         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37009         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37010         included in HIE_NONE_TARGET_PAIRS.
37011
37012 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
37013
37014         * sem_attr.adb:
37015         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37016         is legal in an instance, because legality is cheched in the template.
37017
37018         * sem_prag.adb:
37019         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37020         appplied to an unchecked conversion of a formal parameter.
37021
37022         * sem_warn.adb:
37023         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37024         variables.
37025
37026 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
37027
37028         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37029         routines. The second one is new functionality to deal with backtracing
37030         through signal handlers.
37031         (unwind): Split into the two separate subroutines above.
37032         Update the documentation, and deal properly with sizeof (REG) different
37033         from sizeof (void*).
37034
37035 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
37036
37037         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37038         so that the debugger can reliably access the value of the parameter,
37039         and therefore is able to display the exception name when an exception
37040         breakpoint is reached.
37041
37042 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
37043
37044         * fmap.adb: Fix typo in warning message.
37045
37046         * g-socket.ads, g-socket.adb: Make Free a visible instance of
37047         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37048
37049 2003-12-01  Vincent Celier  <celier@gnat.com>
37050
37051         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37052         ther is no Afile.
37053         (Build_Library): Get the switches only if Default_Switches is declared
37054         in package Binder.
37055
37056 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
37057
37058         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37059         actuals that are indexed components, reanalyze actual to ensure that
37060         packed array references are properly expanded.
37061
37062         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37063         attempted assignment to a discriminant.
37064
37065 2003-12-01  Robert Dewar  <dewar@gnat.com>
37066
37067         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37068         reformatting.
37069
37070         * switch-c.adb: Minor reformatting of comments
37071
37072 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37073
37074         * Makefile.in: Clean ups.
37075
37076 2003-12-01  GNAT Script  <nobody@gnat.com>
37077
37078         * Make-lang.in: Makefile automatically updated
37079
37080 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
37081
37082         * 5wsystem.ads: Disable zero cost exception, not ready yet.
37083
37084 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
37085
37086         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37087         to force serialization.
37088
37089 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
37090
37091         * g-socket.ads, g-socket.adb:
37092         Clarify documentation of function Stream. Introduce a Free procedure
37093         to release the returned Stream once it becomes unused.
37094
37095         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37096
37097 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
37098
37099         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37100         since NT 4 cannot handle timeout values that are too large,
37101         e.g. DWORD'Last - 1.
37102
37103 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
37104
37105         * exp_ch4.adb:
37106         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37107         in procedure calls and whose expansion must be deferred.
37108
37109         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37110         is in exp_ch4.
37111
37112         * sem_ch3.adb:
37113         (Build_Derived_Array_Type): Create operator for unconstrained type
37114         if ancestor is unconstrained.
37115
37116 2003-11-26  Vincent Celier  <celier@gnat.com>
37117
37118         * make.adb (Project_Object_Directory): New global variable
37119         (Change_To_Object_Directory): New procedure
37120         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37121         of Change_Dir directly. Do not change working directory to object
37122         directory of main project after each compilation.
37123         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37124         directly.
37125         Change to object directory of main project before binding step.
37126         (Initialize): Initialize Project_Object_Directory to No_Project
37127
37128         * mlib-prj.adb:
37129         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37130         binding a Stand-Alone Library.
37131
37132         * output.adb: Update Copyright notice
37133         (Write_Char): Output buffer when full
37134
37135 2003-11-26  Robert Dewar  <dewar@gnat.com>
37136
37137         * sem_ch13.adb: (Check_Size): Reset size if size is too small
37138
37139         * sem_ch13.ads:
37140         (Check_Size): Fix documentation to include bit-packed array case
37141
37142         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37143
37144         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37145
37146         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37147
37148 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
37149
37150         PR ada/13142
37151         * utils.c (init_gigi_decls): Change name of built-in setjmp to
37152         __builtin_setjmp, since this is apparently needed by recent
37153         non Ada changes.
37154
37155 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37156
37157         * adadecode.c: Only include ctype.h if not IN_GCC.
37158         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37159
37160 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
37161
37162         * Makefile.in:
37163         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37164         signals and interrupts.
37165
37166         * 5zintman.ads: New File.
37167
37168         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37169         add exception signals to the set of unmasked signals.
37170
37171         * 5ztaprop.adb:
37172         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37173         between signals and interrupts.
37174         Add to Unblocked_Signal_Mask the set of signals that are in
37175         Keep_Unmasked.
37176
37177         * 7sinmaop.adb:
37178         Adding a check to see whether the Interrupt_ID we want to unmask is in
37179         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37180         reason is that the index type of the Keep_Unmasked array is not always
37181         Interrupt_ID; it may be a subtype of Interrupt_ID.
37182
37183 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
37184
37185         * exp_util.adb:
37186         (Remove_Side_Effects): Condition constantness of object created for a
37187          an unchecked type conversion on the constantness of the expression
37188          to ensure the correct value for 'Constrained when passing components
37189          of view-converted class-wide objects.
37190
37191 2003-11-24  Robert Dewar  <dewar@gnat.com>
37192
37193         * par-load.adb (Load): Improve handling of misspelled and missing units
37194         Removes several cases of compilation abandoned messages
37195
37196         * lib.adb: (Remove_Unit): New procedure
37197
37198         * lib.ads: (Remove_Unit): New procedure
37199
37200         * lib-load.adb: Minor reformatting
37201
37202 2003-11-24  Vincent Celier  <celier@gnat.com>
37203
37204         * make.adb:
37205         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37206         (Marking_Label): Label to mark processed source files. Incremented for
37207         each executable.
37208         (Gnatmake): Increase Marking_Labet for each executable
37209         (Is_Marked): Compare against marking label
37210         (Mark): Mark with marking label
37211
37212 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
37213
37214         * s-thread.ads:
37215         Move the declaration of the TSD for System.Threads to System.Soft_Links.
37216         Add some comments.
37217
37218         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37219         (rts-cert): build a single relocatable object for the run-time lib.
37220         Fix perms.
37221
37222 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
37223
37224         * Make-lang.in:
37225         Use gnatls rather than gcc to obtain the location of GNAT RTL for
37226         crosstools build.
37227
37228 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
37229
37230         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37231         can not use it as before (that is, as a variable) when dumping it into
37232         the tree file. Add a local variable to store the result of this
37233         function and to be used as the string to be written into the tree.
37234
37235         * scn.adb (Initialize_Scanner): Add comments explaining the recent
37236         changes.
37237
37238         * sinput.adb (Source_First, Source_Last): In case of
37239         Internal_Source_File, replace returning attributes of
37240         Internal_Source_Ptr (which is wrong) with returning attributes of
37241         Internal_Source.
37242
37243 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
37244
37245         * sem_ch3.adb:
37246         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37247         used for implicit concatenation operators.
37248         Code cleanup.
37249
37250         * sem_elab.adb:
37251         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37252         task bodies that are in the scope of a Suppress pragma.
37253         (Check_A Call): Use the flag to prevent spurious elaboration checks.
37254
37255         * sinfo.ads, sinfo.adb:
37256         New flag No_Elaboration_Check on function/procedure calls, to properly
37257         suppress checks on calls in task bodies that are within a local suppress
37258         pragma.
37259
37260         * exp_ch4.adb:
37261         (Expand_Concatenate_Other): Use the proper integer type for the
37262         expression for the upper bound, to avoid universal_integer computations
37263         when possible.
37264
37265 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
37266
37267         * .cvsignore: Delete.
37268
37269 2003-11-21  Andreas Schwab  <schwab@suse.de>
37270
37271         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37272
37273 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
37274
37275         * 5wsystem.ads: Enable zero cost exception.
37276
37277 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
37278
37279         * 5ztiitho.adb: Remove an unreferenced variable.
37280
37281 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
37282
37283         * adaint.c: For FreeBSD, use mkstemp.
37284
37285 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
37286
37287         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
37288
37289 2003-11-21  Robert Dewar  <dewar@gnat.com>
37290
37291         * bld.adb: Remove useless USE of gnatvsn
37292
37293         * gnatchop.adb: Minor reformatting
37294         Clean up version handling to be more consistent
37295
37296         * gnatxref.adb: Minor reformatting
37297
37298         * gprcmd.adb: Minor reformatting
37299         Fix output of copyright to be more consistent with other tools
37300
37301 2003-11-21  Vincent Celier  <celier@gnat.com>
37302
37303         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
37304
37305 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
37306
37307         * atree.adb (Initialize): Add initializations for global variables
37308         used in New_Copy_Tree.
37309
37310         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
37311         Internal_Source_File as the actual).
37312         Put the set of statements creating Any_Character before the set of
37313         statements creating Any_Array to have Any_Character fully initialized
37314         when it is used in creating Any_Array.
37315
37316         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
37317         not call Scan in case if the actual is Internal_Source_File
37318         Add 2003 to copyright note.
37319
37320         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
37321         processing Internal_Source_File.
37322
37323         * types.ads: Add the constant Internal_Source_File representing the
37324         source buffer for artificial source-code-like strings created within
37325         the compiler (the definition of Source_File_Index is changed).
37326
37327 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
37328
37329         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
37330         56system.ads: New file, FreeBSD version.
37331
37332 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
37333
37334         * Make-lang.in (ada.extraclean): Delete.
37335
37336 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
37337
37338         * gnatmem.adb: Clean up verbose output.
37339
37340         * gprcmd.adb: Change copyright to FSF.
37341
37342 2003-11-19  Vincent Celier  <celier@gnat.com>
37343
37344         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
37345         and Version (ignored).
37346
37347         * symbols.ads: (Policy): New type
37348         (Initialize): New parameter Reference, Symbol_Policy and
37349         Library_Version.
37350         Remove parameter Force.
37351         Minor reformatting.
37352
37353         * snames.ads, snames.adbadb: New standard names
37354         Library_Reference_Symbol_File and Library_Symbol_Policy
37355
37356         * mlib-prj.adb:
37357         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
37358         project.
37359
37360         * mlib-tgt.adb:
37361         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
37362
37363         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
37364
37365         * prj.adb: (Project_Empty): New component Symbol_Data
37366
37367         * prj.ads: (Policy, Symbol_Record): New types
37368         (Project_Data): New component Symbol_Data
37369
37370         * prj-attr.adb:
37371         New attributes Library_Symbol_File, Library_Symbol_Policy and
37372         Library_Reference_Symbol_File.
37373
37374         * prj-nmsc.adb:
37375         (Ada_Check): When project is a Stand-Alone library project, process
37376         attribute Library_Symbol_File, Library_Symbol_Policy and
37377         Library_Reference_Symbol_File.
37378
37379         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37380         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
37381         5sml-tgt.adb (Build_Dynamic_Library): New parameter
37382         Symbol_Data (ignored).
37383
37384         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
37385         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
37386         functions Option_File_Name and Version_String. Set new options of
37387         gnatsym related to symbol file, symbol policy and reference symbol
37388         file.
37389
37390         * 5vsymbol.adb:
37391         Extensive modifications to take into account the reference symbol file,
37392         the symbol policy, the library version and to put in the symbol file the
37393         minor and major IDs.
37394
37395         * bld.adb (Process_Declarative_Items): Put second argument of
37396         gprcmd to_absolute between single quotes, to avoid problems with
37397         Windows.
37398
37399         * bld-io.adb: Update Copyright notice.
37400         (Flush): Remove last character of a line, if it is a back slash, to
37401         avoid make problems.
37402
37403         * gnatsym.adb:
37404         Implement new scheme with reference symbol file and symbol policy.
37405
37406         * g-os_lib.ads: (Is_Directory): Clarify comment
37407
37408 2003-11-19  Robert Dewar  <dewar@gnat.com>
37409
37410         * atree.adb: Move New_Copy_Tree global variables to head of package
37411
37412         * errout.adb: Minor reformatting
37413
37414 2003-11-19  Javier Miranda  <miranda@gnat.com>
37415
37416         * sem_ch4.adb: (Diagnose_Call): Improve error message.
37417         Add reference to Ada0Y (AI-50217)
37418
37419         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
37420         sem_util.adb: Add reference to AI-50217
37421
37422         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
37423
37424         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
37425
37426         * sem_aggr.adb: Complete documentation of AI-287 changes
37427
37428         * par-ch4.adb: Document previous changes.
37429
37430         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
37431         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
37432         Ada0Y (AI-50217)
37433
37434         * exp_aggr.adb: Add references to AI-287 in previous changes
37435
37436 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
37437
37438         * exp_ch6.adb:
37439         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
37440         in the rewriting is the result of an inlined call.
37441
37442         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
37443         parameter is a type conversion, use original node to construct the
37444         post-call assignment, because expression may have been rewritten, e.g.
37445         if it is a packed array.
37446
37447         * sem_attr.adb:
37448         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
37449         body, just as it is in an instance.
37450         Categorization routines
37451
37452         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
37453         Instantiate_Object): Set proper sloc reference for message on missing
37454         actual.
37455
37456 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
37457
37458         * Makefile.in: Add FreeBSD libgnat pairs.
37459
37460         * usage.adb: Fix typo in usage message.
37461
37462 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
37463
37464         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
37465         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
37466         pragma Thread_Body.
37467         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
37468
37469         * s-thread.adb: This file is now a dummy implementation of
37470         System.Thread.
37471
37472 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
37473
37474         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
37475
37476 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
37477
37478         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37479         instanciation references in the parent type description.
37480
37481 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37482
37483         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
37484
37485         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
37486         TYPE_PRECISION directly from esize.
37487
37488 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
37489
37490         * cstreams.c:
37491         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
37492
37493         * init.c: Initialization routines for FreeBSD
37494
37495         * link.c: Link info for FreeBSD
37496
37497         * sysdep.c: Add the case of FreeBSD
37498
37499 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
37500
37501         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
37502         already called in System.Threads.
37503
37504         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
37505         environment task, as it has been moved to System.Threads.Initialization.
37506
37507 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
37508
37509         * adaint.c (__gnatlib_install_locks): Only reference
37510         __gnat_install_locks on VMS, since other platforms can avoid using
37511         --enable-threads=gnat
37512
37513 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37514
37515         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
37516
37517         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
37518         TYPE_PACKED_ARRAY_TYPE_P.
37519         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
37520
37521         Part of PR ada/12806
37522         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
37523         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
37524
37525 2003-11-17  Vincent Celier  <celier@gnat.com>
37526
37527         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
37528         to False.
37529         Do not set exit status to Failure when Warning is True.
37530         (Gnatchop): Make errors "no compilation units found" and
37531         "no source files written" warnings only.
37532
37533         * make.adb (Gnatmake): When using a project file, set
37534         Look_In_Primary_Dir to False.
37535         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
37536         and Local_Configuration_Pragmas in the project where they are declared
37537         not an extending project which might have inherited them.
37538
37539         * osint.adb (Locate_File): If Name is already an absolute path, do not
37540         look for a directory.
37541
37542         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
37543         -gnats (Check_Syntax) is used, issue only a warning, not an error.
37544
37545         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
37546         in objects of type Variable_Value.
37547
37548         * prj.ads: (Variable_Value): New component Project
37549
37550         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
37551         is in a project extended by Project.
37552
37553         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
37554         Project of Variable_Values to this new parameter value.
37555         (Expression): Set component Project of Variable_Values.
37556         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
37557         Set the component Project in array elements.
37558
37559 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
37560
37561         * errout.adb: (Initialize): Add initialization for error nodes.
37562
37563         * sem_ch12.adb (Initialize): Add missing initializations for
37564         Exchanged_Views and Hidden_Entities.
37565
37566 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
37567
37568         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
37569         already instantiated tree for use in subsequent inlining.
37570         (Analyze_Associations, Instantiate_Formal_Subprogram,
37571         Instantiate_Object): improve error message for mismatch in
37572         instantiations.
37573
37574         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
37575         instantiations of subprograms declared in instances.
37576
37577 2003-11-17  Javier Miranda  <miranda@gnat.com>
37578
37579         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
37580         executed only under the Extensions_Allowed flag.
37581
37582 2003-11-17  Robert Dewar  <dewar@gnat.com>
37583
37584         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
37585         zeroes suppressed.
37586         (Address_Image): Fix bug of returning 0x instead of 0x0
37587         Minor reformatting (function specs).
37588
37589         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
37590         (missed case of 33-63)
37591
37592         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
37593
37594         * s-thread.adb: Add comments for pragma Restriction
37595
37596         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
37597         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
37598
37599 2003-11-17  Ed Falis  <falis@gnat.com>
37600
37601         * s-thread.adb: Added No_Tasking restriction for this implementation.
37602
37603 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
37604
37605         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37606         instanciation references in the parent type description.
37607
37608 2003-11-17  GNAT Script  <nobody@gnat.com>
37609
37610         * Make-lang.in: Makefile automatically updated
37611
37612 2003-11-16  Jason Merrill  <jason@redhat.com>
37613
37614         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
37615         and TAGS files that include them for each front end.
37616
37617 2003-11-14  Andreas Jaeger  <aj@suse.de>
37618
37619         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
37620         is the canonical version.
37621         * misc.c (gnat_handle_option): Likewise.
37622
37623         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
37624
37625         * 5nsystem.ads: New file for x86_64-linux-gnu.
37626
37627 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
37628
37629         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
37630
37631         * comperr.adb: Fix logic in previous change.
37632
37633 2003-11-13  Vincent Celier  <celier@gnat.com>
37634
37635         * 5bml-tgt.adb (Build_Dynamic_Library): Use
37636         Osint.Include_Dir_Default_Prefix instead of
37637         Sdefault.Include_Dir_Default_Name.
37638
37639         * gnatlbr.adb: Update Copyright notice
37640         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
37641         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
37642         instead of Sdefault.Object_Dir_Default_Name
37643
37644         * gnatlink.adb:
37645         (Process_Binder_File): Never suppress the option following -Xlinker
37646
37647         * mdll-utl.adb:
37648         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
37649         Sdefault.Object_Dir_Default_Name.
37650
37651         * osint.ads, osint.adb:
37652         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
37653         Minor reformatting.
37654
37655         * vms_conv.ads: Minor reformating
37656         Remove GNAT STANDARD and GNAT PSTA
37657
37658         * vms_conv.adb:
37659         Allow GNAT MAKE to have several files on the command line.
37660         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
37661         Sdefault.Object_Dir_Default_Name.
37662         Minor Reformating
37663         Remove data for GNAT STANDARD
37664
37665         * vms_data.ads:
37666         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
37667         Remove data for GNAT STANDARD
37668         Remove options and documentation for -gnatwb/-gnatwB: these warning
37669         options no longer exist.
37670
37671 2003-11-13  Ed Falis  <falis@gnat.com>
37672
37673         * 5zthrini.adb: (Init_RTS): Made visible
37674
37675         * 5zthrini.adb:
37676         (Register): Removed unnecessary call to taskVarGet that checked whether
37677          an ATSD was already set as a task var for the argument thread.
37678
37679         * s-thread.adb:
37680         Updated comment to reflect that this is a VxWorks version
37681         Added context clause for System.Threads.Initialization
37682         Added call to System.Threads.Initialization.Init_RTS
37683
37684 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
37685
37686         * 5zthrini.adb:
37687         (Init_RTS): New procedure, for the initialization of the run-time lib.
37688
37689         * s-thread.adb:
37690         Remove dependancy on System.Init, so that this file can be used in the
37691         AE653 sequential run-time lib.
37692
37693 2003-11-13  Robert Dewar  <dewar@gnat.com>
37694
37695         * bindgen.adb: Minor reformatting
37696
37697 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
37698
37699         * checks.adb:
37700         (Apply_Discriminant_Check): Do no apply check if target type is derived
37701         from source type with no applicable constraint.
37702
37703         * lib-writ.adb:
37704         (Ensure_System_Dependency): Do not apply the style checks that may have
37705         been specified for the main unit.
37706
37707         * sem_ch8.adb:
37708         (Find_Selected_Component): Further improvement in error message, with
37709         RM reference.
37710
37711         * sem_res.adb:
37712         (Resolve): Handle properly the case of an illegal overloaded protected
37713         procedure.
37714
37715 2003-11-13  Javier Miranda  <miranda@gnat.com>
37716
37717         * exp_aggr.adb:
37718         (Has_Default_Init_Comps): New function to check the presence of
37719         default initialization in an aggregate.
37720         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
37721         extension aggregate of a limited record. In addition, a new formal
37722         was added to do not initialize the record controller (if any) during
37723         this recursive expansion of ancestors.
37724         (Init_Controller): Add support for limited record components.
37725         (Expand_Record_Aggregate): In case of default initialized components
37726         convert the aggregate into a set of assignments.
37727
37728         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
37729         describing the new syntax.
37730         Nothing else needed to be done because this subprogram delegates part of
37731         its work to P_Precord_Or_Array_Component_Association.
37732         (P_Record_Or_Array_Component_Association): Give support to the new
37733         syntax for default initialization of components.
37734
37735         * sem_aggr.adb:
37736         (Resolve_Aggregate): Relax the strictness of the frontend in case of
37737         limited aggregates.
37738         (Resolve_Record_Aggregate): Give support to default initialized
37739         components.
37740         (Get_Value): In case of default initialized components, duplicate
37741         the corresponding default expression (from the record type
37742         declaration). In case of default initialization in the *others*
37743         choice, do not check that all components have the same type.
37744         (Resolve_Extension_Aggregate): Give support to limited extension
37745         aggregates.
37746
37747         * sem_ch3.adb:
37748         (Check_Initialization): Relax the strictness of the front-end in case
37749         of aggregate and extension aggregates. This test is now done in
37750         Get_Value in a per-component manner.
37751
37752         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
37753         expression corresponds to a limited aggregate. This test is now done
37754         in Get_Value.
37755
37756         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
37757         Box_Present flag.
37758
37759         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
37760         present in an N_Component_Association node
37761
37762 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
37763
37764         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
37765         type-conformant entry only if they are homographs.
37766
37767 2003-11-13  GNAT Script  <nobody@gnat.com>
37768
37769         * Make-lang.in: Makefile automatically updated
37770
37771 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37772
37773         * adadecode.c: Use <> form of include for ctype.h.
37774         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
37775
37776 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37777
37778         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
37779         Works around PR middle-end/6552.
37780
37781 2003-11-10  Ed Falis  <falis@gnat.com>
37782
37783         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
37784
37785         * 5zinit.adb: (Install_Handler): Moved back to spec
37786         (Install_Signal_Handlers): Deleted
37787
37788         * 5zthrini.adb: Added context clause for System.Storage_Elements
37789         (Register): Only handles creation of taskVar; initialization moved to
37790         Thread_Body_Enter.
37791         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
37792         Added declaration of environment task secondary stack and
37793         initialization.
37794
37795         * s-thread.adb: Implement bodies for thread body processing
37796
37797         * s-thread.ads:
37798         Added comment identifying supported targets for pragma Thread_Body.
37799
37800 2003-11-10  Pascal Obry  <obry@gnat.com>
37801
37802         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
37803         GNAT_MAX_PATH_LEN.
37804
37805         * s-fileio.adb:
37806         (Open): Properly check for string length before copying into the buffer.
37807         Raises Name_Error if buffer is too small. Note that this was a potential
37808         buffer overflow.
37809
37810 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
37811
37812         * bindgen.adb, comperr.adb: Code clean ups.
37813         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
37814
37815 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
37816
37817         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
37818
37819 2003-11-10  Vincent Celier  <celier@gnat.com>
37820
37821         * gprcmd.adb:
37822         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
37823         installation.
37824
37825         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
37826
37827         * prj.adb: (Project_Empty): Add new boolean component Virtual
37828
37829         * prj.ads: (Virtual_Prefix): New constant string
37830         (Project_Data): New boolean component Virtual
37831
37832         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
37833         a library project is extended by a virtual extending project.
37834
37835         * prj-part.adb:
37836         Modifications throughout to implement extending-all project, including:
37837         (Virtual_Hash, Processed_Hash): New hash tables
37838         (Create_Virtual_Extending_Project): New procedure
37839         (Look_For_Virtual_Projects_For): New procedure
37840
37841         * prj-proc.adb:
37842         (Process): After checking the projects, if main project is an
37843         extending-all project, set the object directory of all virtual extending
37844         project to the object directory of the main project.
37845         Adjust error message when a virtual extending project has the same
37846         object directory as an project being extended.
37847         (Recursive_Process): If name starts with the virtual prefix, set Virtual
37848         to True in the project data.
37849
37850         * prj-tree.adb:
37851         (Default_Project_Node): Add new boolean component Extending_All
37852         (Is_Extending_All): New function
37853         (Set_Is_Extending_All): New procedure
37854
37855         * prj-tree.ads: (Is_Extending_All): New function
37856         (Set_Is_Extending_All): New procedure
37857         (Project_Node_Record): New boolean component Extending_All
37858
37859         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37860
37861         * vms_data.ads:
37862         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37863
37864         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37865         "gprcmd prefix" to define it.
37866
37867 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
37868
37869         * einfo.ads: Fix a typo and remove an extraneous word in comments.
37870
37871         * lib-load.adb:
37872         (Create_Dummy_Package_Unit): Set the scope of the entity for the
37873         created dummy package to Standard_Standard, not to itself, to
37874         defend other parts of the front-end against encoutering a cycle in
37875         the scope chain.
37876
37877         * sem_ch10.adb:
37878         (Analyze_With_Clause): When setting the entities for the successive
37879         N_Expanded_Names that constitute the name of a child unit, do not
37880         attempt to go further than Standard_Standard in the chain of scopes.
37881         This case arises from the placeholder units created by
37882         Create_Dummy_Package_Unit in the case of a with_clause for a
37883         nonexistent child unit.
37884
37885 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
37886
37887         * exp_ch6.adb:
37888         (Expand_Thread_Body): Place subprogram on scope stack, so that new
37889         declarations are given the proper scope.
37890
37891         * sem_ch13.adb:
37892         (Check_Expr_Constants): Reject an expression that contains a constant
37893         created during expansion, and that appears after the object to which
37894         the address clause applies.
37895
37896         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37897         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37898         that uses 'Range of a function call with controlled components, so
37899         that the function result can be finalized before starting the loop.
37900
37901         * sem_ch8.adb:
37902         (Find_Selected_Component): Improve error message when prefix is
37903         an implicit dereference of an incomplete type.
37904
37905 2003-11-10  Robert Dewar  <dewar@gnat.com>
37906
37907         * opt.ads: New Print_Standard flag for -gnatS switch
37908
37909         * sem_ch13.adb: Remove some additional checks for unaligned arrays
37910
37911         * cstand.adb (Create_Standard): Print out package standard if -gnatS
37912         switch set
37913
37914         * debug.adb: Update doc for -gnatds to discuss relationship with new
37915         -gnatS flag
37916
37917         * sinfo.adb: Add new field Entity_Or_Associated_Node
37918
37919         * sinfo.ads: Add new field Entity_Or_Associated_Node
37920         Update documentation for Associated_Node and Entity fields to clarify
37921         relationship and usage.
37922
37923         * sprint.adb:
37924         (Write_Id): Properly process Associated_Node field in generic template
37925
37926         * switch-c.adb:
37927         Recognize new -gnatS switch for printing package Standard
37928         This replaces gnatpsta
37929
37930         * usage.adb:
37931         Add line for  new -gnatS switch for printing package Standard
37932         This replaces gnatpsta
37933
37934 2003-11-10  Andreas Jaeger  <aj@suse.de>
37935
37936         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37937         integer.
37938
37939 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37940
37941         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37942         by gnat1.
37943
37944 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37945
37946         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37947         no longer needed.
37948
37949         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37950
37951         * sysdep.c: Add handling of cygwin.
37952
37953 2003-11-10  GNAT Script  <nobody@gnat.com>
37954
37955         * Make-lang.in: Makefile automatically updated
37956
37957 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37958
37959         PR 12950
37960         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37961         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37962         Replace GNAT_ROOT by GCC_ROOT.
37963
37964         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37965
37966 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
37967
37968         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37969         and update for changed meaning of GET_MODE_BITSIZE.
37970
37971 2003-11-04  Doug Rupp  <rupp@gnat.com>
37972
37973         * sysdep.c: Problem discovered during IA64 VMS port.
37974         [VMS] #include <unixio.h> to get proper prototypes.
37975
37976         * adaint.c:
37977         Issues discovered/problems fixed during IA64 VMS port.
37978         [VMS] #define _POSIX_EXIT for proper semantics.
37979         [VMS] #include <unixio.h> for proper prototypes.
37980         [VMS] (fork): #define IA64 version.
37981         (__gnat_os_exit): Remove unnecessary VMS specific code.
37982
37983 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37984
37985         Part of PR ada/12806
37986         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37987         tree, not integer.
37988
37989         * decl.c:
37990         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37991         not integer.
37992
37993         * targtyps.c, decl.c, misc.c,
37994         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37995         routines to work around change in FP sizing semantics in GCC.
37996
37997         * utils.c:
37998         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37999
38000         * gigi.h: (enumerate_modes): New function.
38001
38002         * Make-lang.in: (ada/misc.o): Add real.h.
38003
38004         * misc.c: (enumerate_modes): New function.
38005
38006 2003-11-04  Robert Dewar  <dewar@gnat.com>
38007
38008         * 3vtrasym.adb: Minor reformatting
38009         Use terminology encoded/decoded name, rather than C++ specific notion
38010         of mangling (this is the terminology used throughout GNAT).
38011
38012         * einfo.h: Regenerated
38013
38014         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38015
38016         * exp_ch6.adb:
38017         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38018
38019         * par-prag.adb: Add dummy entry for Thread_Body pragma
38020
38021         * rtsfind.ads:
38022         Add entries for System.Threads entities for thread body processing
38023
38024         * sem_attr.adb:
38025         (Analyze_Pragma, Access attributes): Check these are not applied to a
38026         thread body, since this is not permitted
38027
38028         * sem_prag.adb: Add processing for Thread_Body pragma.
38029         Minor comment fix.
38030
38031         * sem_res.adb:
38032         (Resolve_Call): Check for incorrect attempt to call a thread body
38033          procedure with a direct call.
38034
38035         * snames.ads, snames.adb: Add entry for Thread_Body pragma
38036         Add names associated with thread body expansion
38037
38038         * snames.h: Add entry for Thread_Body pragma
38039
38040         * s-thread.adb: Add entries for thread body processing
38041         These are dummy bodies so far
38042
38043         * s-thread.ads: Add documentation on thread body handling.
38044         Add entries for thread body processing.
38045
38046 2003-11-04  Javier Miranda  <miranda@gnat.com>
38047
38048         * sem_ch10.adb:
38049         (Build_Limited_Views): Return after posting an error in case of limited
38050         with_clause on subprograms, generics, instances or generic renamings
38051         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38052         on subprograms, generics, instances or generic renamings
38053
38054 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
38055
38056         * raise.c (setup_to_install): Correct mistake in last revision; two
38057         arguments out of order.
38058
38059         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38060         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38061         notice, missed in previous change.
38062         Remove trailing blanks and other style errors introduced in previous
38063         change.
38064
38065 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
38066
38067         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38068         rid of the wrapper for a LJM type, ensuring we don't do that if the
38069         field is addressable.  This avoids potential low level type view
38070         mismatches later on, for instance in a by-reference argument passing
38071         process.
38072
38073 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38074
38075         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38076         aligned at byte boundary.
38077
38078 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
38079
38080         * decl.c (components_to_record): Do not delete the empty variants from
38081         the end of the union type.
38082
38083 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
38084
38085         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38086         operation for a derived type, an explicit declaration may use a local
38087         subtype of Boolean.
38088
38089 2003-11-04  Vincent Celier  <celier@gnat.com>
38090
38091         * make.adb (Gnatmake): Allow main sources on the command line with a
38092         library project when it is only for compilation (no binding or
38093         linking).
38094
38095 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38096
38097         * Makefile.in: Remove many duplicate variables.
38098
38099 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
38100
38101         * Make-lang.in (dvi): Move targets to $(docobjdir).
38102         (gnat_ug_vms.dvi): Simplify rule and adjust target.
38103         (gnat_ug_wnt.dvi): Likewise.
38104         (gnat_ug_unx.dvi): Likewise.
38105         (gnat_ug_vxw.dvi): Likewise.
38106         (gnat_rm.dvi): Likewise.
38107         (gnat-style.dvi): Likewise.
38108
38109 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38110
38111         * gigi.h: Missed commit from update for C90.
38112
38113 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
38114
38115         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38116
38117 2003-10-31  Andreas Schwab  <schwab@suse.de>
38118
38119         * raise.c (get_action_description_for): Fix typo in last change.
38120
38121 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
38122
38123         PR ada/12761
38124         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38125         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38126
38127 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
38128
38129         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38130         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38131         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38132         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38133         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38134
38135 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
38136
38137         * 3vtrasym.adb:
38138         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38139         numbers when symbol name is too long.
38140
38141 2003-10-30  Ed Falis  <falis@gnat.com>
38142
38143         * g-signal.ads, g-signal.adb: New files
38144
38145         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38146
38147         * Makefile.rtl: Introduce GNAT.Signals
38148
38149 2003-10-30  Robert Dewar  <dewar@gnat.com>
38150
38151         * freeze.adb: Minor reformatting
38152
38153         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38154
38155         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38156         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38157         New handling of Id_Check parameter to improve recognition of keywords
38158         used as identifiers.
38159         Update copyright notice to include 2003
38160
38161 2003-10-29  Robert Dewar  <dewar@gnat.com>
38162
38163         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38164         sem_ch10.adb: Minor reformatting
38165
38166         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38167         (Expand_Assign_Record): Test right hand side for bit unaligned as well
38168
38169 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
38170
38171         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38172         Support for TBK$SYMBOLIZE-based symbolic traceback.
38173
38174 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
38175
38176         * exp_disp.adb:
38177         Revert previous change, that did not work well when pragma No_Run_Time
38178         was used in conjunction with a run-time other than ZFP.
38179
38180 2003-10-29  Vincent Celier  <celier@gnat.com>
38181
38182         * make.adb:
38183         (Gnatmake): When there are no Ada mains in attribute Main, disable the
38184          bind and link steps only is switch -z is not used.
38185
38186 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
38187
38188         * Makefile.generic: Remove duplicated setting of CC.
38189
38190         * Makefile.prolog: Set CC to gcc by default, to override make's
38191         default (cc).
38192
38193         * einfo.h: Regenerated.
38194
38195 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
38196
38197         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38198         current body, after compiling subunit.
38199
38200         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38201         when in deleted code, because gigi needs properly ordered freeze
38202         actions to annotate types.
38203
38204         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38205         prevent the premature freezing of record type that contains
38206         subcomponents with a private type that does not yet have a completion.
38207
38208 2003-10-29  Javier Miranda  <miranda@gnat.com>
38209
38210         * sem_ch12.adb:
38211         (Analyze_Package_Instantiation): Check that instances can not be used in
38212         limited with_clauses.
38213
38214         * sem_ch8.adb:
38215         (Analyze_Package_Renaming): Check that limited withed packages cannot
38216         be renamed. Improve text on error messages related to limited
38217         with_clauses.
38218
38219         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38220
38221         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38222         Update copyright notice.
38223
38224         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38225         (Install_Limited_Context_Clauses): New subprogram that isolates all the
38226         checks required for limited context_clauses and installs the limited
38227         view.
38228         (Install_Limited_Withed_Unit): Complete its documentation.
38229         (Analyze_Context): Check that limited with_clauses are only allowed in
38230         package specs.
38231         (Install_Context): Call Install_Limited_Context_Clauses after the
38232         parents have been installed.
38233         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38234         package as 'From_With_Type'; this mark indicates that the limited view
38235         is installed. Used to check bad usages of limited with_clauses.
38236         (Build_Limited_Views): Do not add shadow entities to the scope's list
38237         of entities. Do not add real entities to the Non_Limited_Views chain.
38238         Improve error notification.
38239         (Remove_Context_Clauses): Remove context clauses in two phases:
38240         limited views first and regular views later (to maintain the
38241         stack model).
38242         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38243         its visible entities.
38244
38245 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
38246
38247         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38248         with any type that Is_Fixed_Point_Type.
38249
38250         * sinfo.ads: Fix documentation for Associated_Node attribute.
38251
38252 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
38253
38254         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38255         both '-gnatc' and '-gnatt' are specified.
38256
38257         * atree.adb (Initialize): Add initialization for Node_Count (set to
38258         zero).
38259
38260 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38261
38262         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38263         do not consider as Pure.
38264
38265         Part of implementation of function-at-a-time:
38266
38267         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38268         (tree_transform): Add new argument to build_component_ref.
38269         (tree_transform, case N_Assignment_Statement): Make and return an
38270         EXPR_STMT.
38271         (tree_transform): If result IS_STMT, set flags and return it.
38272         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38273
38274         * utils2.c (build_simple_component_ref, build_component_ref): Add new
38275         arg, NO_FOLD_P.
38276         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38277         (build_allocator): Likewise.
38278
38279         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38280         Add new arg to build_component_ref.
38281         (maybe_unconstrained_array, unchecked_convert): Likewise.
38282
38283         * ada-tree.def (EXPR_STMT): New code.
38284
38285         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38286
38287         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
38288         build_component_ref calls.
38289
38290         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
38291
38292         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38293         (build_component_ref): Add new argument, NO_FOLD_P.
38294
38295 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
38296
38297         * Makefile.generic: Add missing substitution on object_deps handling.
38298
38299         PR ada/5909
38300         * Make-lang.in (check-ada): Enable ACATS test suite.
38301
38302 2003-10-27  Robert Dewar  <dewar@gnat.com>
38303
38304         * exp_ch3.adb:
38305         (Freeze_Array_Type): We do not need an initialization routine for types
38306         derived from String or Wide_String. They should be treated the same
38307         as String and Wide_String themselves. This caused problems with the
38308         use of Initialize_Scalars.
38309
38310         * exp_ch5.adb:
38311         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
38312         composites. This allows use of component clauses that are not byte
38313         aligned.
38314
38315         * sem_prag.adb:
38316         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
38317         is an attempt to pack an array of atomic objects.
38318
38319         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
38320
38321 2003-10-27  Pascal Obry  <obry@gnat.com>
38322
38323         * g-dirope.adb:
38324         (Basename): Check for drive letters in a pathname only on DOS based OS.
38325
38326 2003-10-27  Vincent Celier  <celier@gnat.com>
38327
38328         * make.adb:
38329         (Gnatmake): When unable to change dir to the object dir, display the
38330         content of the parent dir of the obj dir, to try to understand why this
38331         happens.
38332
38333 2003-10-27  GNAT Script  <nobody@gnat.com>
38334
38335         * Make-lang.in: Makefile automatically updated
38336
38337 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
38338
38339         * sem_ch12.adb:
38340         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
38341         should not be done in Save/Restore_Scope_Stack, because it is performed
38342         locally.
38343
38344         * sem_ch8.adb:
38345         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38346         whether use clauses should be removed/restored.
38347
38348         * sem_ch8.ads:
38349         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38350         whether use clauses should be removed/restored.
38351
38352 2003-10-26  Andreas Jaeger  <aj@suse.de>
38353
38354         * Makefile.in: Remove duplicated lines.
38355
38356 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38357
38358         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
38359         minimize the differences with ACT tree.
38360
38361         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
38362         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
38363         Gnatvsn.Gnat_Static_Version_String to reduce differences between
38364         ACT and FSF trees.
38365
38366 2003-10-24  Pascal Obry  <obry@gnat.com>
38367
38368         PR ada/12014
38369         * adadecode.c (ostrcpy): New function.
38370         (__gnat_decode): Use ostrcpy of strcpy.
38371         (has_prefix): Set first parameter a const.
38372         (has_suffix): Set first parameter a const.
38373         Update copyright notice. Fix source name in header.
38374         Removes a trailing space.
38375
38376 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
38377
38378         * exp_disp.adb:
38379         Remove the test against being in No_Run_Time_Mode before generating a
38380         call to Register_Tag. It is redundant with the test against the
38381         availability of the function Register_Tag.
38382
38383 2003-10-24  Vincent Celier  <celier@gnat.com>
38384
38385         * g-catiio.adb: (Month_Name): Correct spelling of February
38386
38387         * make.adb: (Mains): New package
38388         (Initialize): Call Mains.Delete
38389         (Gnatmake): Check that each main on the command line is a source of a
38390         project file and, if there are several mains, each of them is a source
38391         of the same project file.
38392         (Gnatmake): When a foreign language is specified in attribute Languages,
38393         no main is specified on the command line and attribute Mains is not
38394         empty, only build the Ada main. If there is no Ada main, just compile
38395         the Ada sources and their closure.
38396         (Gnatmake): If a main is specified on the command line with directory
38397         information, check that the source exists and, if it does, that the path
38398         is the actual path of a source of a project.
38399
38400         * prj-env.adb:
38401         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
38402         Full_Path is True, return the full path instead of the simple file name.
38403         (Project_Of): New function
38404
38405         * prj-env.ads:
38406         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
38407         defaulted to False.
38408         (Project_Of): New function
38409
38410 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38411
38412         * Makefile.generic:
38413         Ensure objects of main project are always checked and rebuilt if needed.
38414         Set CC to gcc by default.
38415         Prepare new handling of link by creating a global archive (not activated
38416         yet).
38417
38418         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38419         stringt.h: Update copyright notice. Remove trailing blanks.
38420         Fix source name in header.
38421
38422 2003-10-24  Robert Dewar  <dewar@gnat.com>
38423
38424         * sem_ch12.adb: Minor reformatting
38425
38426         * sem_ch3.adb:
38427         Minor reformatting (including new function return style throughout)
38428
38429         * sem_ch3.ads:
38430         Minor reformatting (including new function return style throughout)
38431
38432 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38433
38434         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38435         stringt.h: Update copyright notice. Remove trailing blanks.
38436         Fix source name in header.
38437
38438 2003-10-24  GNAT Script  <nobody@gnat.com>
38439
38440         * Make-lang.in: Makefile automatically updated
38441
38442 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
38443
38444         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
38445         stringt.h: Convert to ISO C90 declarations and definitions.
38446
38447 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
38448
38449         PR ada/11978
38450         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
38451         External_Tag attribute definition clauses.
38452
38453 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
38454
38455         PR ada/7613
38456         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
38457         child unit, generate a fully qualified name to avoid spurious errors
38458         when the context contains renamings of different child units with
38459         the same simple name.
38460
38461         * exp_dbug.ads: Add documentation on name qualification for renamings
38462         of child units.
38463
38464 2003-10-23  Robert Dewar  <dewar@gnat.com>
38465
38466         * g-regpat.ads, g-regpat.adb: Minor reformatting
38467
38468 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
38469
38470         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
38471
38472 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38473
38474         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
38475         Machine call.
38476
38477         * urealp.h: (Machine): Update to proper definition.
38478
38479 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
38480
38481         * init.c, adaint.c: Minor reformatting.
38482
38483 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
38484
38485         * adaint.c (w32_epoch_offset): Define static const at file level.
38486         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
38487         rather than t_create, t_access in call to GetFileTime. Use union
38488         to convert between FILETIME and  unsigned long long.
38489         (__gnat_file_time_name): Test for invalid file handle.
38490         (__gnat_set_filetime_name): Support win32 targets using
38491         w32api SetFileTime.
38492
38493 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
38494
38495         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
38496
38497         * ctrl_c.c (__gnat_int_handler): Remove declaration.
38498
38499         * decl.c (creat_concat_name):  Const-ify prefix.
38500
38501         * adaint.c: Include ctype.h if __MINGW32__.
38502         (__gnat_readlink): Mark arguments as possibly unused.
38503         (__gnat_symlink): Likewise.
38504         (__gnat_is_symbolic_link): Likewise.
38505         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
38506         declaration
38507         (__gnat_file_time_name): Don't declare struct stat statbuf when
38508         not needed.
38509         (__gnat_is_absolute_path): Add parenthesis around condition of
38510         'if' statement to avoid warning.
38511         (__gnat_plist_init): Specify void as parameter.
38512         (plist_enter): Likewise.
38513         (plist_leave): Likewise.
38514         (remove_handle): Make static. Initialize prev.
38515
38516 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
38517
38518         PR ada/10110
38519         * Makefile.in: Disable build of gnatpsta.
38520         * cstreams.c (__gnat_full_name): Minor improvements and clean up
38521         of previous change.
38522
38523 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38524
38525         * tracebak.c (MAX): Avoid redefinition warning.
38526
38527         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
38528         Change msg to const char *.
38529         (__gnat_install_handler): Remove ss, unused.
38530         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
38531         to const char *.
38532         * cstreams.c (__gnat_full_name): Declare p only when used.
38533         (__gnat_full_name) [sgi] Return buffer.
38534
38535 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
38536
38537         * mingw32.h: New file.
38538         * gnat_wrapper.adb: New file.
38539
38540 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
38541
38542         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
38543         string match a pre compiled regular expression (the corresponding
38544         version of the function working on a raw regular expression)
38545         Fix typos in various comments
38546         Update copyright notice in spec
38547
38548 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
38549
38550         * exp_ch3.adb:
38551         (Component_Needs_Simple_Initialization): Return False when the type is a
38552         packed bit array. Revise spec comments to document this case.
38553
38554         * exp_prag.adb:
38555         (Expand_Pragma_Import): Set any expression on the imported object to
38556         empty to avoid initializing imported objects (in particular this
38557         covers the case of zero-initialization of bit arrays).
38558         Update copyright notice.
38559
38560 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
38561
38562         * sem_ch12.adb:
38563         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
38564         a subunit is missing.
38565         (Instantiate_Subprogram_Body): If body of function is missing, set type
38566         of return expression explicitly in dummy body, to prevent cascaded
38567         errors when a subunit is missing.
38568         Fixes PR 5677.
38569
38570         * sem_ch3.adb:
38571         (Access_Subprogram_Declaration): Verify that return type is valid.
38572         Fixes PR 8693.
38573
38574         * sem_elab.adb:
38575         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
38576         generic.
38577         Fixes PR 12318.
38578
38579         * sem_util.adb:
38580         (Corresponding_Discriminant): If the scope of the discriminant is a
38581         private type without discriminant, use its full view.
38582         Fixes PR 8247.
38583
38584 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
38585
38586         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
38587         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
38588         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
38589         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
38590         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
38591         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
38592         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38593         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
38594         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
38595         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
38596         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
38597         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
38598         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
38599         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
38600         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
38601         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
38602         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
38603         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
38604         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
38605         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
38606         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
38607         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
38608         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
38609         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
38610         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
38611         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
38612         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
38613         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
38614         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
38615         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
38616         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
38617         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
38618         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
38619         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
38620         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
38621         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
38622         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
38623         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
38624         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
38625         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
38626         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
38627         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
38628         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
38629         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
38630         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
38631         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
38632         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
38633         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
38634         vms_conv.ads, vms_conv.adb, vms_data.ads,
38635         vxaddr2line.adb: Files added. Merge with ACT tree.
38636
38637         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
38638         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
38639         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
38640         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
38641         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
38642         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
38643         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38644         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
38645         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
38646         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
38647
38648         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38649         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38650         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38651         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38652         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
38653         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
38654         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38655         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
38656         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
38657         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
38658         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
38659         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
38660         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
38661         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
38662         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
38663         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
38664         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
38665         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38666         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
38667         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
38668         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
38669         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
38670         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
38671         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
38672         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
38673         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
38674         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
38675         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
38676         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
38677         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
38678         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
38679         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
38680         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38681         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
38682         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
38683         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
38684         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
38685         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
38686         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
38687         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
38688         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
38689         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
38690         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
38691         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
38692         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
38693         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
38694         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
38695         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
38696         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
38697         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
38698         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
38699         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
38700         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
38701         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
38702         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
38703         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
38704         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
38705         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
38706         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
38707         checks.adb, checks.ads, cio.c, comperr.adb,
38708         comperr.ads, csets.adb, cstand.adb, cstreams.c,
38709         debug_a.adb, debug_a.ads, debug.adb, decl.c,
38710         einfo.adb, einfo.ads, errout.adb, errout.ads,
38711         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
38712         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
38713         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
38714         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38715         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
38716         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
38717         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
38718         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
38719         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
38720         fe.h, fmap.adb, fmap.ads, fname.adb,
38721         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
38722         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
38723         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
38724         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38725         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38726         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38727         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
38728         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
38729         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
38730         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
38731         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
38732         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
38733         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
38734         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
38735         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
38736         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
38737         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
38738         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
38739         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
38740         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
38741         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
38742         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
38743         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
38744         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
38745         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
38746         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
38747         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
38748         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
38749         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
38750         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
38751         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
38752         layout.adb, lib.adb, lib.ads, lib-list.adb,
38753         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
38754         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38755         link.c, live.adb, make.adb, make.ads,
38756         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
38757         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
38758         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
38759         misc.c, mkdir.c, mlib.adb, mlib.ads,
38760         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
38761         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
38762         namet.adb, namet.ads, namet.h, nlists.ads,
38763         nlists.h, nmake.adt, opt.adb, opt.ads,
38764         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
38765         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
38766         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38767         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
38768         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
38769         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
38770         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
38771         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
38772         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
38773         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
38774         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
38775         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
38776         prj-util.adb, prj-util.ads, raise.c, raise.h,
38777         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
38778         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
38779         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
38780         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
38781         scans.ads, scn.adb, scn.ads, s-crc32.adb,
38782         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
38783         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38784         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
38785         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
38786         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
38787         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38788         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38789         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
38790         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
38791         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
38792         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
38793         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
38794         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
38795         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
38796         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38797         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
38798         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
38799         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
38800         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
38801         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
38802         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
38803         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
38804         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
38805         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
38806         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
38807         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
38808         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
38809         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
38810         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
38811         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
38812         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
38813         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
38814         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
38815         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
38816         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
38817         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
38818         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
38819         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38820         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38821         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
38822         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38823         stringt.adb, stringt.ads, stringt.h, style.ads,
38824         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
38825         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
38826         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
38827         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
38828         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
38829         table.adb, table.ads, targparm.adb, targparm.ads,
38830         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
38831         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
38832         ttypes.ads, types.ads, types.h, uintp.adb,
38833         uintp.ads, uintp.h, uname.adb, urealp.adb,
38834         urealp.ads, urealp.h, usage.adb, utils2.c,
38835         utils.c, validsw.adb, validsw.ads, widechar.adb,
38836         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
38837         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
38838         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
38839         gnatvsn.ads: Merge with ACT tree.
38840
38841         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
38842
38843 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
38844
38845         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38846         (gnat_ug_vmx.info): Likewise.
38847         (gnat_ug_vxw.info): Likewise.
38848         (gnat_ug_wnt.info): Likewise.
38849         (gnat_rm.info): Likewise.
38850         (gnat-style.info): Likewise.
38851
38852         * Make-lang.in (ada.install-info): Remove target.
38853         (info): New target.
38854         (install-info): Likewise.
38855         (gnat_ug_unx.info): Simplify rule.
38856         (gnat_ug_vmx.info): Likewise.
38857         (gnat_ug_vxw.info): Likewise.
38858         (gnat_ug_wnt.info): Likewise.
38859         (gnat_rm.info): Likewise.
38860         (gnat-style.info): Likewise.
38861
38862 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
38863
38864         * Make-lang.in: Replace uses of $(target_alias) with
38865         $(target_noncanonical).
38866         * ada/Makefile.in: Remove unused mention of $(target_alias).
38867
38868 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
38869
38870         * Make-lang.in (ada.info): Replace with ...
38871         (info): ... this.
38872         (ada.dvi): Replace with ...
38873         (dvi): ... this.
38874
38875 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
38876
38877         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38878         initialize dconstp5 and dconstmp5.
38879
38880 2003-09-28  Richard Henderson  <rth@redhat.com>
38881
38882         * trans.c (tree_transform): Update call to expand_asm_operands.
38883
38884 2003-09-21  Richard Henderson  <rth@redhat.com>
38885
38886         * trans.c, utils.c: Revert.
38887
38888 2003-09-21  Richard Henderson  <rth@redhat.com>
38889
38890         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38891         change to const.
38892
38893 2003-09-04  Michael Matz  <matz@suse.de>
38894
38895         * misc.c: Include "target.h".
38896         * Make-lang.in (misc.o): Add dependency on target.h.
38897
38898 2003-09-03  DJ Delorie  <dj@redhat.com>
38899
38900         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38901         hook.
38902
38903 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
38904
38905         * Makefile.in: Update substitutions to match changes to
38906         configure.  Use include directives instead of @-insertions
38907         to read in host and target fragments.  Add a rule to
38908         regenerate ada/Makefile.
38909
38910 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
38911
38912         * lang-options.h: Remove.
38913         * lang.opt: Add help text.
38914
38915 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
38916
38917         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38918         calls.
38919
38920 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
38921
38922         * misc.c (gnat_handle_option): Don't handle filenames.
38923
38924 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
38925
38926         * Make-lang.in: Replace PWD with PWD_COMMAND.
38927         * Makefile.adalib: Likewise.
38928         * Makefile.in: Likewise.
38929
38930 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
38931
38932         * misc.c (gnat_argv): Revert last change.
38933         (gnat_handle_option, gnat_init_options): Copy arguments.
38934
38935 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
38936
38937         * misc.c (gnat_argv): Make const.
38938
38939 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38940
38941         * misc.c (save_argc, save_argv): Keep non-static!
38942
38943 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38944
38945         * misc.c (save_argc, save_argv): Make static.
38946         (gnat_init_options): New prototype.
38947         (gnat_init_options): Update.
38948
38949 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
38950
38951         * gnat_ug.texi: Remove unlikely characters from @vars.
38952         * gnat_ug_vms.texi: Regenerate.
38953
38954 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
38955
38956         * misc.c (record_code_position): Adjust emit_note call.
38957
38958 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
38959
38960         * misc.c (gnat_handle_option): Don't check for missing arguments.
38961
38962 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
38963
38964         * utils.c (end_subprog_body): Adjust expand_function_end call.
38965
38966 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
38967
38968         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38969         Bind_Main_Program.
38970
38971 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
38972
38973         * lang.opt: Declare Ada.
38974         * misc.c (gnat_init_options): Update.
38975
38976 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
38977
38978         * utils.c (begin_subprog_body): Adjust init_function_start call.
38979
38980 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38981
38982         * Make-lang.in: Update to use options.c and options.h.
38983         * misc.c: Include options.h not aoptions.h.
38984         (gnat_handle_option): Abort on unrecognized switch.
38985         (gnat_init_options): Request Ada switches.
38986
38987 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38988
38989         * lang.opt: Add -Wall.
38990         * misc.c (gnat_handle_option): Handle it.
38991
38992 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
38993
38994         * misc.c (gnat_handle_option): Fix warnings.
38995
38996 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
38997
38998         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38999
39000 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
39001
39002         * Make-lang.in: Update to handle command-line options.
39003         * lang.opt: New file.
39004         * misc.c: Include aoptions.h.
39005         (cl_options_count, cl_options): Remove.
39006         (gnat_handle_option): New.
39007         (gnat_decode_option): Remove.
39008         (LANG_HOOKS_DECODE_OPTION): Remove.
39009         (LANG_HOOKS_HANDLE_OPTION): Override.
39010
39011 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
39012
39013         * init.c, misc.c, trans.c, utils.c: Remove dead code.
39014
39015 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
39016
39017         * Makefile.in: Replace "host_canonical" with "host" for autoconf
39018         substitution.
39019
39020 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
39021
39022         * Make-lang.in: Update.
39023         * misc.c: Include opts.h. Define cl_options_count and cl_options.
39024
39025 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
39026
39027         * misc.c (gnat_init_options): Update.
39028
39029 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39030
39031         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39032         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39033         __attribute__ ((__unused__)).
39034
39035 2003-06-05  Jan Hubicka  <jh@suse.cz>
39036
39037         * Make-lang.in:  Add support for stageprofile and stagefeedback
39038
39039 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
39040
39041         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39042         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39043
39044 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
39045
39046         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39047         Remove non-VMS directive.
39048         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39049         alternatives.
39050         (Examples of gnatls Usage): Remove VMS alternative.
39051
39052 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
39053
39054         PR ada/9953
39055         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39056         and turn ZCX_By_Default back to False since the underlying support
39057         is not quite there yet.
39058
39059 2003-06-01  Andreas Jaeger  <aj@suse.de>
39060
39061         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39062         and ROUND_TYPE_SIZE_UNIT.
39063
39064 2003-05-22   Geert Bosch  <bosch@gnat.com>
39065
39066         * gnat_rm.texi : Remove reference to Ada Core Technologies.
39067
39068 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
39069
39070         * trans.c (tree_transform): Use location_t and input_location
39071         directly.
39072         (build_unit_elab): Likewise.
39073         * utils.c (create_label_decl): Likewise.
39074
39075 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
39076
39077         * trans.c (tree_transform, build_unit_elab,
39078         set_lineno): Rename lineno to input_line.
39079         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39080         end_subprog_body): Likewise.
39081         * utils2.c (build_call_raise): Likewise.
39082
39083 2003-05-01  Laurent Guerby  <guerby@acm.org>
39084
39085         PR ada/10546
39086         * 5iosinte.ads: Increase pthread_cond_t size to match recent
39087         LinuxThread and NPTL version, merge from ACT.
39088
39089 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
39090
39091         * utils.c (convert): No need to clear TREE_CST_RTL.
39092
39093 2003-04-23   Geert Bosch  <bosch@gnat.com>
39094
39095         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39096         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39097         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39098         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39099         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39100         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39101         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39102         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39103         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39104         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39105         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39106         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39107         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39108         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39109         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39110         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39111         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39112         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39113         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39114         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39115         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39116         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39117         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39118         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39119         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39120         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39121         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39122         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39123         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39124         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39125         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39126         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39127         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39128         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39129         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39130         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39131         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39132         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39133         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39134         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39135         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39136         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39137         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39138         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39139         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39140         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39141         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39142         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39143         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39144         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39145         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39146         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39147         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39148         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39149         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39150         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39151         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39152         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39153         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39154         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39155         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39156         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39157         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39158         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39159         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39160         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39161         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39162         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39163         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39164         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39165         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39166         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39167         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39168         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39169         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39170         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39171         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39172         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39173         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39174         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39175         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39176         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39177         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39178         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39179         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39180         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39181         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39182         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39183         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39184         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39185         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39186         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39187         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39188         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39189         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39190         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39191         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39192         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39193         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39194         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39195         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39196         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39197         ali.adb, ali.ads, alloc.ads, argv.c,
39198         atree.adb, atree.ads, atree.h, aux-io.c,
39199         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39200         binde.adb, binde.ads, binderr.adb, binderr.ads,
39201         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39202         butil.adb, butil.ads, cal.c, calendar.ads,
39203         casing.adb, casing.ads, ceinfo.adb, checks.adb,
39204         checks.ads, cio.c, comperr.adb, comperr.ads,
39205         config-lang.in, csets.adb, csets.ads, csinfo.adb,
39206         cstand.adb, cstand.ads, cuintp.c, debug.adb,
39207         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39208         dec-io.ads, dec.ads, deftarg.c, directio.ads,
39209         einfo.adb, einfo.ads, elists.adb, elists.ads,
39210         elists.h, errno.c, errout.adb, errout.ads,
39211         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39212         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39213         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39214         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39215         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39216         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39217         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39218         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39219         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39220         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39221         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39222         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39223         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39224         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39225         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39226         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39227         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39228         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39229         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39230         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39231         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39232         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39233         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39234         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39235         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39236         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39237         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39238         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39239         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39240         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39241         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39242         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39243         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39244         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39245         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39246         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39247         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39248         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39249         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39250         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39251         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39252         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39253         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39254         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39255         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39256         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39257         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39258         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39259         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39260         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39261         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39262         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39263         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39264         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39265         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39266         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39267         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39268         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39269         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39270         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39271         lib.adb, lib.ads, live.adb, live.ads,
39272         machcode.ads, make.adb, make.ads, makeusg.adb,
39273         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39274         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39275         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39276         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39277         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39278         mlib.ads, namet.adb, namet.ads, nlists.adb,
39279         nlists.ads, opt.adb, opt.ads, osint-b.adb,
39280         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39281         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39282         osint.ads, output.adb, output.ads, par-ch10.adb,
39283         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39284         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39285         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39286         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39287         par-tchk.adb, par-util.adb, par.adb, par.ads,
39288         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
39289         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
39290         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
39291         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
39292         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
39293         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
39294         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
39295         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
39296         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
39297         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
39298         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
39299         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
39300         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
39301         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
39302         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
39303         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
39304         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
39305         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39306         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
39307         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
39308         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
39309         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
39310         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39311         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
39312         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
39313         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
39314         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
39315         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
39316         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
39317         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
39318         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
39319         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
39320         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
39321         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
39322         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
39323         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
39324         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
39325         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
39326         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
39327         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
39328         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
39329         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
39330         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
39331         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
39332         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
39333         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
39334         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
39335         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
39336         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
39337         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
39338         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
39339         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
39340         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
39341         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
39342         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
39343         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
39344         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
39345         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
39346         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
39347         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
39348         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
39349         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
39350         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
39351         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
39352         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
39353         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
39354         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
39355         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
39356         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
39357         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
39358         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
39359         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
39360         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
39361         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
39362         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
39363         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
39364         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
39365         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
39366         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
39367         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
39368         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
39369         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
39370         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
39371         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39372         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
39373         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
39374         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
39375         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
39376         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
39377         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
39378         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
39379         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
39380         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
39381         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
39382         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
39383         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
39384         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
39385         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
39386         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
39387         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
39388         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
39389         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
39390         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
39391         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
39392         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
39393         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
39394         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
39395         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
39396         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
39397         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
39398         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39399         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39400         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
39401         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
39402         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
39403         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
39404         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
39405         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
39406         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
39407         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
39408         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
39409         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
39410         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
39411         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
39412         snames.ads, sprint.adb, sprint.ads, stand.adb,
39413         stand.ads, stringt.adb, stringt.ads, style.adb,
39414         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
39415         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
39416         switch-m.ads, switch.adb, switch.ads, system.ads,
39417         table.adb, table.ads, targparm.adb, targparm.ads,
39418         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
39419         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
39420         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
39421         ttypef.ads, ttypes.ads, types.adb, types.ads,
39422         uintp.adb, uintp.ads, uname.adb, uname.ads,
39423         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
39424         usage.adb, usage.ads, validsw.adb, validsw.ads,
39425         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
39426         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
39427         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
39428         formatting and other trivial changes from ACT.
39429
39430 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
39431
39432         * gigi.h, utils2.c (build_constructor):
39433         Rename gnat_build_constructor. Use build_constructor.
39434         * decl.c (gnat_to_gnu_entity)
39435         * trans.c (tree_transform, pos_to_constructor, extract_values)
39436         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
39437         (unchecked_convert)
39438         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
39439         (fill_vms_descriptor):
39440         Update to match.
39441
39442 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
39443
39444         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
39445         * misc.c (gnat_tree_size): New function.
39446         (LANG_HOOKS_TREE_SIZE): Override.
39447
39448 2003-04-03  Jason Merrill  <jason@redhat.com>
39449
39450         * misc.c (gnat_adjust_rli): #if 0.
39451
39452 2003-03-31   Geert Bosch  <bosch@gnat.com>
39453
39454         PR ada/10020
39455         * link.c : Fix misspelled "const" keyword
39456
39457 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
39458
39459         PR c++/7086
39460         * utils2.c: Adjust calls to put_var_into_stack.
39461
39462 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
39463
39464         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
39465
39466 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
39467
39468         * misc.c (gnat_init): Update for new prototype.
39469
39470 2003-03-05  Olivier Hainque  <hainque@gnat.com>
39471
39472         ada/9961
39473         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
39474         warning, and fix return type for the IN_RTS && !SJLJ case.
39475
39476 2003-03-04  Tom Tromey  <tromey@redhat.com>
39477
39478         * Make-lang.in (ada.tags): New target.
39479
39480 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
39481
39482         ada/9911
39483         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
39484         wrapper, which name remains constant whatever underlying GCC
39485         scheme.
39486
39487         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
39488         the stable interface needed for a-except.
39489
39490 2003-03-02  Andreas Jaeger  <aj@suse.de>
39491
39492         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39493         gnat_ug_wnt.texi: Regenerate.
39494
39495 2003-03-02  Laurent Guerby  <guerby@acm.org>
39496
39497         * Makefile.in (install-gnatlib): Match previous change there
39498         so it works.
39499
39500 2003-02-28  Andreas Schwab  <schwab@suse.de>
39501
39502         * Make-lang.in (install-gnatlib): Change to ada directory before
39503         running make instead of using ada/Makefile directly.
39504
39505 2003-02-18  Ben Elliston  <bje@redhat.com>
39506
39507         Part of PR ada/9406
39508         * gnat_ug.texi (Binder output file): Grammar fix.
39509
39510 2003-02-18  Ben Elliston  <bje@redhat.com>
39511
39512         PR other/7350
39513         * 5qtaprop.adb (Sleep): Fix typo in comment.
39514
39515 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
39516
39517         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
39518         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39519         gnat_ug_wnt.texi: Regenerate.
39520
39521 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
39522
39523         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
39524         be created if necessary.
39525         (ada.install-common): Let $(DESTDIR)$(bindir) be created
39526         if necessary.  Remove erroneous and redundant gnatchop
39527         installation commands.  Test for gnatdll before attempting
39528         to install it.
39529         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
39530         and gnatdll from all plausible locations.
39531
39532 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
39533
39534         * utils2.c (build_unary_op): Don't check flag_volatile.
39535         * gnat_ug.texi: Remove -fvolatile from example.
39536         * gnat_ug_vxw.texi: Likewise.
39537
39538 2003-01-29  Laurent Guerby  <guerby@acm.org>
39539
39540         PR ada/8344
39541         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
39542         * Makefile.in: match previous change.
39543         * Make-lang.in: match previous change.
39544
39545 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
39546
39547         * 5rosinte.ads: Add SIGXCPU.
39548         * 5rtpopsp.adb: New file.
39549         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
39550         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
39551         specific file 5rtpopsp.adb.
39552         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
39553         is likely needed for all newlib targets.
39554         * init.c: Add RTEMS specific version of __gnat_initialize().
39555
39556 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39557
39558         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
39559
39560 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39561
39562         * init.c (__gnat_error_handler): Make msg const.
39563
39564         * gmem.c (convert_addresses): Move declaration ...
39565         * adaint.h: ... here.
39566         * adaint.c (convert_addresses): Adapt addrs type to match
39567         prototype.
39568
39569         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
39570
39571 2003-01-24  Andreas Schwab  <schwab@suse.de>
39572
39573         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
39574         size_t to avoid warning.
39575
39576 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
39577
39578         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
39579
39580 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
39581
39582         * gnat_rm.texi: Remove RCS version number.
39583
39584         * ada-tree.h (union lang_tree_node): Add chain_next option.
39585
39586 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
39587
39588         * Make-lang.in (ada.install-info, ada.install-common,
39589         ada.uninstall): Prepend $(DESTDIR) to the destination
39590         directory in all (un)installation commands.
39591         * Makefile.in (install-gnatlib, install-rts): Ditto.
39592
39593 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
39594
39595         * gnat_rm.texi, gnat_ug.texi: Use @copying.
39596         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39597         gnat_ug_wnt.texi: Regenerate.
39598
39599 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
39600
39601         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
39602         only.
39603         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
39604         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
39605         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
39606         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
39607         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
39608         $(srcdir)/doc/include/gcc-common.texi.
39609
39610 2002-12-15   Geert Bosch  <bosch@gnat.com>
39611
39612         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
39613
39614 2002-12-14   Geert Bosch  <bosch@gnat.com>
39615
39616         PR ada/5690
39617         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
39618         case of a body created for a Renaming_As_Body, on which
39619         conformance checks are not performed.
39620
39621 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
39622
39623         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
39624         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
39625         not already included.
39626         * Make-lang.in: Update dependencies.
39627
39628 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
39629         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
39630         solution to buffer overflow bug on GNU/Linux.
39631
39632 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39633
39634         PR ada/5856
39635         PR ada/6919
39636         * bindgen.adb: Remove all references to Public_Version.
39637         * comperr.adb: Remove all references to Public_Version and
39638         GNATPRO_Version; correct bug reporting instructions.
39639         * comperr.ads: Change to match bug box.
39640         * gnatvsn.ads: Remove all references to Public version and
39641         GNATPRO version.
39642
39643 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
39644
39645         PR ada/6919
39646         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
39647         GNU/Linux.
39648
39649         PR ada/6558
39650         * config-lang.in: Remove diff_excludes.
39651
39652 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
39653
39654         PR ada/8358
39655         * trans.c (gnu_pending_elaboration_lists): New GC root.
39656         (build_unit_elab): Use..
39657
39658 2002-10-30   Geert Bosch  <bosch@gnat.com>
39659
39660         PR ada/6558
39661         * misc.c : Include optabs.h
39662
39663         * Make-lang.in (misc.o): Add dependency on optabs.h
39664
39665 2002-10-29   Geert Bosch  <bosch@gnat.com>
39666
39667         PR ada/6558
39668         * Make-lang.in (gnatbind): Depend on CONFIG_H
39669
39670 2002-10-29  Geert bosch  <bosch@gnat.com>
39671
39672         PR ada/6558
39673         * misc.c: Unrevert misc.c (1.13)
39674
39675 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
39676
39677         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
39678         maintainership comments.
39679
39680 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
39681
39682         PR ada/5904
39683         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
39684         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
39685         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
39686         7staprop.adb: Correct statements in comments about
39687         maintainership of GNAT.
39688
39689         PR ada/5904
39690         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
39691         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
39692         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
39693         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
39694         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
39695         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
39696         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
39697         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
39698         comments about maintainership of GNAT.
39699
39700         PR ada/6919 (forward port of patch for PR ada/5904)
39701         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
39702         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
39703         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
39704         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
39705         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
39706         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
39707         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
39708         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
39709         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
39710         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
39711         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
39712         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
39713         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
39714         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
39715         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
39716         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
39717         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
39718         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
39719         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
39720         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
39721         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
39722         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
39723         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
39724         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
39725         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
39726         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
39727         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
39728         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
39729         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
39730         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
39731         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
39732         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
39733         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
39734         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
39735         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
39736         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
39737         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
39738         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
39739         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
39740         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
39741         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
39742         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
39743         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
39744         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
39745         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
39746         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
39747         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
39748         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
39749         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
39750         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
39751         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
39752         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
39753         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
39754         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
39755         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
39756         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
39757         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
39758         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
39759         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
39760         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
39761         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
39762         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
39763         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
39764         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
39765         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
39766         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
39767         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
39768         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
39769         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
39770         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
39771         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
39772         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
39773         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
39774         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
39775         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
39776         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
39777         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
39778         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
39779         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
39780         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
39781         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
39782         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
39783         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
39784         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
39785         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
39786         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
39787         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
39788         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
39789         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
39790         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
39791         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
39792         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
39793         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
39794         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
39795         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
39796         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
39797         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
39798         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
39799         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
39800         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
39801         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
39802         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
39803         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
39804         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
39805         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
39806         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
39807         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
39808         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
39809         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
39810         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
39811         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
39812         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
39813         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
39814         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
39815         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
39816         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
39817         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
39818         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
39819         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
39820         par-endh.adb par-labl.adb par-load.adb par-prag.adb
39821         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
39822         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
39823         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
39824         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
39825         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
39826         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
39827         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
39828         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
39829         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
39830         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
39831         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
39832         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
39833         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
39834         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
39835         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
39836         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
39837         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
39838         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
39839         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
39840         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
39841         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
39842         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
39843         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39844         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39845         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39846         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39847         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39848         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39849         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39850         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39851         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39852         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39853         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39854         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39855         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39856         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39857         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39858         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39859         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39860         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39861         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39862         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39863         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39864         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39865         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39866         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39867         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39868         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39869         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39870         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39871         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39872         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39873         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39874         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39875         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39876         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39877         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39878         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39879         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39880         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39881         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39882         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39883         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39884         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39885         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39886         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39887         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39888         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39889         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39890         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39891         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39892         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39893         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39894         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39895         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39896         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39897         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39898         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39899         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39900         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39901         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39902         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39903         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39904         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39905         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39906         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39907         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39908         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39909         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39910         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39911         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39912         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39913         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39914         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39915         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39916         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39917         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39918         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39919         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39920         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39921         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39922         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39923         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39924         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39925         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39926         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39927         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39928         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39929         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39930         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39931         stringt.ads stringt.h style.adb style.ads stylesw.adb
39932         stylesw.ads switch.adb switch.ads sysdep.c system.ads
39933         table.adb table.ads targparm.adb targparm.ads targtyps.c
39934         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39935         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39936         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39937         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39938         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39939         usage.ads utils.c utils2.c validsw.adb validsw.ads
39940         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39941         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
39942         xtreeprs.adb: Correct statements in comments about maintainership
39943         of GNAT.
39944
39945 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
39946
39947         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39948         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39949         * gnatvsn.ads: Gnat_Version_String is now a function.
39950         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
39951         copy the C version_string into a String and return it.
39952         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39953         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39954         Remove pragma Ident (Gnat_Version_String).  If this was the
39955         sole use of package Gnatvsn, remove the with statement too.
39956         * gnat1drv.adb: Tweak -gnatv output.
39957
39958 2002-09-17  Richard Henderson  <rth@redhat.com>
39959
39960         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39961         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39962         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39963         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39964         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39965         and real_2expN instead of a loop.
39966         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39967         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39968
39969 2002-08-25  Andre Leis  <a.leis@gmx.net>
39970             David Billinghurst  <David.Billinghurst@riotinto.com>
39971
39972         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
39973
39974 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39975
39976         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39977         Remove $(CONFIG_H) dependency.
39978
39979 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
39980
39981         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39982
39983 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39984
39985         * adadecode.c (ada_demangle): Use xstrdup in lieu of
39986         xmalloc/strcpy.
39987         * misc.c (gnat_decode_option): Likewise.
39988
39989 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
39990
39991         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
39992         function approach did not work well because of a side effect (the
39993         function call could reallocate the table which was being indexed
39994         using its result). Fixes ada/4851. [RESURRECTED]
39995
39996 2002-07-01  Roger Sayle  <roger@eyesopen.com>
39997
39998         * ada/utils.c (builtin_function): Accept an additional parameter.
39999
40000 2002-06-28  Andreas Jaeger  <aj@suse.de>
40001
40002         PR ada/7144
40003         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40004         <adi@thur.de>.
40005
40006 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40007
40008         * Makefile.in (SHELL): Set to @SHELL@.
40009
40010 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40011
40012         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40013         array size calculation.
40014
40015 2002-06-04  Andreas Jaeger  <aj@suse.de>
40016
40017         * Make-lang.in (gnatbind): Readd rule that has been lost in last
40018         patch.
40019
40020 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
40021
40022         Merge from pch-branch:
40023
40024         * config-lang.in (gtfiles): Add ada-tree.h.
40025         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40026         (SET_TYPE_MODULUS): New.
40027         (SET_TYPE_INDEX): New.
40028         (SET_TYPE_DIGITS_VALUE): New.
40029         (SET_TYPE_RM_SIZE): New.
40030         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40031         (SET_TYPE_ADA_SIZE): New.
40032         (SET_TYPE_ACTUAL_BOUNDS): New.
40033         (SET_DECL_CONST_CORRESPONDING_VAR): New.
40034         (SET_DECL_ORIGINAL_FIELD): New.
40035         (TREE_LOOP_ID): Correct typo.
40036         * decl.c: Use new macros.
40037         * utils.c: Include debug.h, use new macros.
40038         * utils2.c: Use new macros.
40039
40040         * ada-tree.h: Update all macros for new tree description.
40041         (struct tree_loop_id): New.
40042         (union lang_tree_node): New.
40043         (struct lang_decl): New.
40044         (struct lang_type): New.
40045         * misc.c (gnat_mark_tree): Delete.
40046         (LANG_HOOKS_MARK_TREE): Delete.
40047         * trans.c (tree_transform): No longer any need to cast
40048         for TREE_LOOP_ID.
40049
40050         * utils.c (struct language_function): New dummy structure.
40051
40052         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40053         (misc.o): Likewise.
40054         (utils.o): Likewise; also gtype-ada.h.
40055         * Make-lang.in (gnat1): Add dependency on s-gtype.
40056         (gnatbind): Add dependency on $(CONFIG_H).
40057         * utils.c: Correct last #include.
40058         (stuct e_stack): Remove unnecessary 'static'.
40059         (mark_e_stack): Remove unused prototype.
40060
40061         * scn-nlit.adb: Remove whitespace after version number to
40062         keep lines under 80 chars.
40063         * snames.adb: Likewise.
40064         * treepr.ads: Likewise.
40065
40066         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40067         (misc.o): Likewise.
40068         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40069         * config-lang.in (gtfiles): New.
40070         * decl.c: Use gengtype for roots.
40071         * gigi.h: Use gengtype for roots.
40072         * trans.c: Use gengtype for roots.
40073         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
40074
40075 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
40076
40077         * misc.c (gnat_init): Adjust setting of internal_error_function.
40078
40079 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
40080
40081         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40082         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40083         gnat_ug_wnt.texi: Regenerate.
40084
40085 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
40086
40087         * 5ntaprop.adb (with System.OS_Primitives): Remove.
40088
40089         * cstreams.c (max_path_len): Move from here ...
40090         * adaint.c (__gnat_max_path_len): ... to here.
40091         * adaint.c (__gnat_max_path_len): Declare.
40092         * g-dirope.adb (Max_Path): Adjust.
40093         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40094         * i-cstrea.ads (max_path_len): Adjust.
40095         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40096         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40097
40098         * Makefile.in, Make-lang.in: Documentation is now built in
40099         Make-lang.in.  Store Info and generated Texinfo files in the
40100         source directory.
40101         * gnat_ug.texi: Remove CVS keywords, correct version number.
40102         Set file name correctly.
40103
40104         * gnat_ug_*.texi: Add.
40105         * .cvsignore: Ignore generated Texinfo files.
40106
40107 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
40108
40109         * ada.h: Add MI guard macro.
40110         (SUBTYPE): Define constants with an anonymous enum, not static
40111         const variables.
40112         (IN): Cast constants to appropriate type before use.
40113
40114 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
40115
40116         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40117         (experimental)".
40118
40119 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40120
40121         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40122         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40123         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40124         (ALL_ADA_CFLAGS): Likewise.
40125         (ADA_INCLUDES): Likewise.
40126         Adapt for new working dir.
40127         (GNATBIND): Use Makefile.in version.
40128         (.SUFFIXES): Copy from Makefile.in.
40129         (ada-warn): Define.
40130         (.adb.o, .ads.o): Copy from Makefile.in.
40131         Added $(OUTPUT_OPTION).
40132         (GNAT1_C_OBJS): Moved from Makefile.in.
40133         Prefix with ada subdir.
40134         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40135         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40136         Adapt for new working dir.
40137         (EXTRA_GNATBIND_OBJS): Likewise.
40138         (ADA_BACKEND): Moved from Makefile.in.
40139         Renamed to avoid conflict with global BACKEND.
40140         Use that one.
40141         (TARGET_ADA_SRCS): Moved from Makefile.in.
40142         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40143         Use ADA_BACKEND.
40144         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40145         (ada_extra_files): Moved from Makefile.in.
40146         Prefix with ada subdir.
40147         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40148         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40149         (ada/nmake.ads): Likewise.
40150         (update-sources): Moved from Makefile.in.
40151         Prefix with ada subdir.
40152         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40153         (ADA_TREE_H): Likewise.
40154         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40155         (ada/memtrack.o): Likewise.
40156         (ada/adadecode.o): Likewise.
40157         Update dependencies.
40158         (ada/adaint.o): New.
40159         (ada/argv.o): Moved from Makefile.in.
40160         Prefix with ada subdir.
40161         Update dependencies.
40162         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40163         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40164         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40165         Prefix with ada subdir.
40166         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40167         (GNAT DEPENDENCIES): Regenerate.
40168         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40169         toplevel Makefile.in.
40170         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40171         (TARGET_ADA_SRCS): Removed.
40172         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40173         (GNATBIND_OBJS): Likewise.
40174         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40175         (BACKEND): Removed.
40176         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40177         (TREE_H): Likewise.
40178         (ada_extra_files): Likewise.
40179         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40180         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40181         (update-sources): Likewise.
40182         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40183         (ADA_TREE_H): Likewise.
40184         (adadecoce.o): Likewise.
40185         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40186         (GNAT DEPENDENCIES): Likewise.
40187
40188 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40189
40190         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40191         * Makefile.in: Likewise.
40192
40193 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40194
40195         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40196         Restore $(CONFIG_H) and prefix.o dependencies.
40197         (ada.stage[1-4]): Depend on stage?-start.
40198
40199         * Makefile.in (b_gnatb.c): Depend on interfac.o.
40200
40201 2002-05-02  Jim Wilson  <wilson@redhat.com>
40202
40203         * utils.c (finish_record_type): Change record_size to record_type.
40204
40205 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
40206
40207         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40208         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40209         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40210
40211 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40212
40213         * misc.c (gnat_parse_file): Update.
40214
40215 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40216
40217         * misc.c (gnat_init): Don't set lang_attribute_common.
40218
40219 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
40220
40221         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40222
40223 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
40224
40225         * gnat_ug.texi: New file.
40226
40227         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
40228         instead of gfdl.texi
40229
40230         * xgnatug.adb, ug_words: New files.
40231
40232         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
40233         gnat_rm and gnat-style manuals.
40234
40235 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40236
40237         * gigi.h (incomplete_type_error): Remove.
40238         * utils.c (incomplete_type_error): Remove.
40239
40240 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
40241
40242         * trans.c (tree_transform): Add has_scope argument to
40243         expand_start_stmt_expr.
40244
40245 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40246
40247         * gigi.h (truthvalue_conversion): Rename.
40248         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40249         * trans.c (tree_transform): Update.
40250         * utils2.c (truthvalue_conversion): Rename, update.
40251         (build_binary_op, build_unary_op): Update.
40252
40253 2002-04-04  Laurent Guerby  <guerby@acm.org>
40254
40255         * make.adb: Implement -margs, remove restriction about file name placement.
40256         * makeusg.adb: Documentation update.
40257         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40258         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40259
40260 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40261
40262         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40263         (builtin_function): Similarly.
40264
40265 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40266
40267         * decl.c (gnat_to_gnu_entity): Update.
40268         * gigi.h (mark_addressable): Rename.
40269         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40270         * trans.c (tree_transform): Update.
40271         * utils.c (create_var_decl): Update.
40272         * util2.c (build_binary_op, build_unary_op,
40273         fill_vms_descriptor): Update.
40274         (mark_addressable): Rename, update.
40275
40276 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40277
40278         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40279         Rename.
40280         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40281         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40282         * trans.c (tree_transform, convert_with_check): Update.
40283         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40284         Rename.
40285
40286 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
40287
40288         * gigi.h (finish_incomplete_decl): Rename.
40289         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
40290         * utils.c (gnat_init_decl_processing): Don't set hook.
40291         (finish_incomplete_decl): Rename.
40292
40293 2002-03-29  Andreas Schwab  <schwab@suse.de>
40294
40295         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
40296         directory.
40297
40298 2001-03-28  Robert Dewar  <dewar@gnat.com>
40299
40300         * checks.ads:
40301         (Remove_Checks): New procedure
40302
40303         * checks.adb:
40304         (Remove_Checks): New procedure
40305
40306         * exp_util.adb:
40307         Use new Duplicate_Subexpr functions
40308         (Duplicate_Subexpr_No_Checks): New procedure
40309         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40310         (Duplicate_Subexpr): Restore original form (checks duplicated)
40311         (Duplicate_Subexpr): Call Remove_Checks
40312
40313         * exp_util.ads:
40314         (Duplicate_Subexpr_No_Checks): New procedure
40315         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40316         Add 2002 to copyright notice
40317
40318         * sem_util.adb: Use new Duplicate_Subexpr functions
40319
40320         * sem_eval.adb:
40321         (Eval_Indexed_Component): This is the place to call
40322         Constant_Array_Ref and to replace the value. We simply merge
40323         the code of this function in here, since it is now no longer
40324         used elsewhere. This fixes the problem of the back end not
40325         realizing we were clever enough to see that this was
40326         constant.
40327         (Expr_Val): Remove call to Constant_Array_Ref
40328         (Expr_Rep_Val): Remove call to Constant_Array_Ref
40329         Minor reformatting
40330         (Constant_Array_Ref): Deal with string literals (patch
40331         suggested by Zack Weinberg on the gcc list)
40332
40333 2001-03-28  Ed Schonberg  <schonber@gnat.com>
40334
40335         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
40336         Duplicate_Subexpr_Move_Checks.
40337
40338         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
40339         Duplicate_Subexpr_Move_Checks.
40340
40341         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
40342         value of array exists before retrieving it (it may a private
40343         protected component in a function).
40344
40345 2002-03-28   Geert Bosch  <bosch@gnat.com>
40346
40347         * prj-pp.adb : New file.
40348
40349         * prj-pp.ads : New file.
40350
40351 2002-03-28  Andreas Jaeger  <aj@suse.de>
40352
40353         * Makefile.in (stamp-sdefault): Fix path for Makefile.
40354
40355 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
40356
40357         * misc.c (gnat_expand_expr): Move prototype.
40358
40359 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40360
40361         * misc.c (insert_default_attributes): Remove.
40362
40363 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40364
40365         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
40366         (gnat_init): Don't set hook.
40367         (gnat_expand_expr): Fix prototype.
40368
40369 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40370
40371         * misc.c (ggc_p): Remove.
40372
40373 2002-03-27  Geert Bosch  <bosch@gnat.com>
40374
40375         * prj-makr.ads, prj-makr.adb : New files.
40376
40377 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
40378
40379         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
40380         (lang_mark_tree): Make static, rename.
40381
40382 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40383
40384         * misc.c (maybe_build_cleanup): Remove.
40385
40386 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40387
40388         * gigi.h (yyparse): Remove.
40389
40390 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
40391
40392         From Ben Brosgol  <brosgol@gnat.com>
40393         * gnat_rm.texi: Sync with ACT version.
40394
40395 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
40396
40397         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
40398         (gnat_init): Remove old hook.
40399
40400 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
40401
40402         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
40403         (yyparse): Rename gnat_parse_file.
40404
40405 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
40406
40407         Delete all lines containing "$Revision:".
40408         * xeinfo.adb: Don't look for revision numbers.
40409         * xnmake.adb: Likewise.
40410         * xsinfo.adb: Likewise.
40411         * xsnames.adb: Likewise.
40412         * xtreeprs.adb: Likewise.
40413
40414 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40415
40416         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
40417         gnat_tree_code_name): Delete.
40418         (tree_code_type, tree_code_length, tree_code_name): Define.
40419         (gnat_init): Don't try to copy into the various tree_code
40420         arrays.
40421
40422 2002-03-11  Richard Henderson  <rth@redhat.com>
40423
40424         * Makefile.in (.NOTPARALLEL): Add fake tag.
40425
40426 2002-03-07  Geert Bosch  <bosch@gnat.com>
40427
40428         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
40429         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
40430         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
40431         switch-m.adb, switch-m.ads : New files.
40432
40433 2002-03-07  Geert Bosch  <bosch@gnat.com>
40434
40435         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
40436         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
40437         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
40438         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
40439         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
40440         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
40441         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
40442         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
40443         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
40444         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
40445         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
40446         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
40447         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
40448         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
40449         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
40450         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
40451         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
40452         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
40453         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
40454         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
40455         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
40456         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
40457         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
40458         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
40459         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
40460         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
40461         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
40462         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
40463         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
40464         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
40465         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
40466         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
40467         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
40468         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
40469         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
40470         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
40471         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
40472         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
40473         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
40474         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
40475         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
40476         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
40477         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
40478         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
40479         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
40480         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
40481         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
40482         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
40483         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
40484         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
40485         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
40486         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
40487         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
40488         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
40489         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
40490         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
40491         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
40492         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
40493         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
40494         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
40495         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
40496         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
40497         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
40498         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
40499         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
40500         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
40501         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
40502         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
40503         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
40504         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
40505         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
40506         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
40507         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
40508         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
40509         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
40510         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40511         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
40512         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
40513         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
40514         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
40515         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
40516         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
40517         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
40518         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
40519         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
40520         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
40521         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
40522         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
40523         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
40524         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
40525         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
40526         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
40527         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
40528         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
40529         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
40530         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
40531         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
40532
40533         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
40534         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
40535         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
40536         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
40537
40538         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
40539         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
40540
40541         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
40542         to mdll-fil.ad[bs] and mdll-util.ad[bs]
40543
40544         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
40545         from mdllfile.ad[bs] and mdlltool.ad[bs]
40546
40547 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40548
40549         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
40550         lieu of explicit sizeof/sizeof.
40551
40552 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
40553
40554         * misc.c (copy_lang_decl): Remove.
40555
40556 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
40557
40558         * misc.c: Delete traditional-mode-related code copied from the
40559         C front end but not used, or used only to permit the compiler
40560         to link.
40561
40562 2002-02-07  Richard Henderson  <rth@redhat.com>
40563
40564         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
40565         * adaint.h (__gnat_to_gm_time): Update prototype.
40566
40567 2002-01-30  Richard Henderson  <rth@redhat.com>
40568
40569         * trans.c (tree_transform) [N_Loop_Statement]: Use
40570         expand_exit_loop_top_cond.
40571
40572 2001-12-23  Richard Henderson  <rth@redhat.com>
40573
40574         * utils.c (end_subprog_body): Push GC context around
40575         rest_of_compilation for nested functions.
40576
40577 2001-12-23  Richard Henderson  <rth@redhat.com>
40578
40579         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
40580
40581 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
40582
40583         * gnat-style.texi (Declarations and Types): Remove ancient style
40584         rule which was mandated by code generation issues.
40585
40586         * gnat-style.texi (header): Add @dircategory, @direntry.
40587         (title page): Remove date.
40588         (general) Add @./@: where approriate, and two spaces after the
40589         full stop at the end of a sentence.  Use @samp markup when
40590         referring concrete lexical entities (keywords, attribute names
40591         etc.), and @syntax for ARM grammar elements. Use @r for English
40592         text in comments.  Use @emph for emphasis.  Change "if-statements"
40593         etc. to "if statements" (without @samp). Break long lines.  Make
40594         casing of section names consistent.
40595         (Identifiers): Use @samp markup for variable names.
40596         (Comments): Use @samp markup for comment characters. Line-end
40597         comments may follow any Ada code, not just statements.  Fix
40598         misspelling of "Integer" as "integer".
40599         (Loop statements): Do not use variable name "I", use "J".
40600         (Subprogram Declarations): Document alignment.
40601         (Subprogram Bodies, Block statements): Document empty line before
40602         "begin".
40603
40604 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
40605
40606         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40607         function approach did not work well because of a side effect (the
40608         function call could reallocate the table which was being indexed
40609         using its result). Fixes ada/4851.
40610
40611 2001-12-19  Robert Dewar  <dewar@gnat.com>
40612
40613         * bindgen.adb: Minor reformatting
40614
40615         * cstand.adb: Minor reformatting
40616
40617         * fmap.adb: Minor reformatting
40618         Change name from Add for Add_To_File_Map (Add is much too generic)
40619         Change Path_Name_Of to Mapped_Path_Name
40620         Change File_Name_Of to Mapped_File_Name
40621         Fix copyright dates in header
40622
40623         * fmap.ads:
40624         Change name from Add for Add_To_File_Map (Add is much too generic)
40625         Change Path_Name_Of to Mapped_Path_Name
40626         Change File_Name_Of to Mapped_File_Name
40627         Fix copyright dates in header
40628
40629         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
40630         Add use clause for Fmap.
40631
40632         * make.adb: Minor reformatting
40633
40634         * osint.adb: Minor reformatting.  Change of names in Fmap.
40635         Add use clause for Fmap.
40636
40637         * prj-env.adb: Minor reformatting
40638
40639         * prj-env.ads: Minor reformatting
40640
40641         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
40642         error found (there were odd exceptions to this general rule in
40643         -gnatec/-gnatem processing)
40644
40645 2001-12-19  Olivier Hainque  <hainque@gnat.com>
40646
40647         * raise.c (__gnat_eh_personality): Exception handling personality
40648         routine for Ada.  Still in rough state, inspired from the C++ version
40649         and still containing a bunch of debugging artifacts.
40650         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
40651         inspired from the C++ library.
40652
40653         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
40654         exception handling integration.
40655
40656 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40657
40658         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
40659         (HIE_SOURCES): Add s-secsta.ad{s,b}.
40660         (HIE_OBJS): Add s-fat*.o
40661         (RAVEN_SOURCES): Remove files that are no longer required. Add
40662         interrupt handling files.
40663         (RAVEN_MOD): Removed, no longer needed.
40664
40665 2001-12-19  Robert Dewar  <dewar@gnat.com>
40666
40667         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
40668         Add 2001 to copyright date
40669
40670         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
40671         need to force universal inlining for these cases.
40672
40673 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40674
40675         * s-taprob.adb: Minor clean ups so that this unit can be used in
40676         Ravenscar HI.
40677
40678         * exp_ch7.adb: Allow use of secondary stack in HI mode.
40679         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
40680
40681 2001-12-19  Vincent Celier  <celier@gnat.com>
40682
40683         * prj-tree.ads (Project_Node_Record): Add comments for components
40684         Pkg_Id and Case_Insensitive.
40685
40686 2001-12-19  Pascal Obry  <obry@gnat.com>
40687
40688         * g-socket.adb: Minor reformatting. Found while reading code.
40689
40690 2001-12-19  Robert Dewar  <dewar@gnat.com>
40691
40692         * prj-tree.ads: Minor reformatting
40693
40694 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
40695
40696         * config-lang.in (diff_excludes): Remove.
40697
40698 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40699
40700         * sem_res.adb (Resolve_Selected_Component): do not generate a
40701         discriminant check if the selected component is a component of
40702         the argument of an initialization procedure.
40703
40704         * trans.c (tree_transform, case of arithmetic operators): If result
40705         type is private, the gnu_type is the base type of the full view,
40706         given that the full view itself may be a subtype.
40707
40708 2001-12-17  Robert Dewar  <dewar@gnat.com>
40709
40710         * sem_res.adb: Minor reformatting
40711
40712         * trans.c (tree_transform, case N_Real_Literal): Add missing third
40713         parameter in call to Machine (unknown horrible effects from this
40714         omission).
40715
40716         * urealp.h: Add definition of Round_Even for call to Machine
40717         Add third parameter for Machine
40718
40719 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40720
40721         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
40722         predefined units in No_Run_Time mode.
40723
40724 2001-12-17  Richard Kenner  <kenner@gnat.com>
40725
40726         * misc.c (insn-codes.h): Now include.
40727
40728 2001-12-17  Olivier Hainque  <hainque@gnat.com>
40729
40730         * a-except.adb: Preparation work for future integration of the GCC 3
40731         exception handling mechanism
40732         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
40733         to factorize previous code sequences and make them externally callable,
40734         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
40735         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
40736         Use the new notification routines.
40737
40738 2001-12-17  Emmanuel Briot  <briot@gnat.com>
40739
40740         * prj-tree.ads (First_Choice_Of): Document the when others case
40741
40742 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40743
40744         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
40745         HI-E mode, in order to support Ravenscar profile properly.
40746
40747         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
40748         mode on 32 bits targets.
40749
40750 2001-12-17  Vincent Celier  <celier@gnat.com>
40751
40752         * fmap.adb: Initial version.
40753
40754         * fmap.ads: Initial version.
40755
40756         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
40757         If search is successfully done, add to mapping.
40758
40759         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
40760
40761         * make.adb:
40762         (Gnatmake): Add new local variable Mapping_File_Name.
40763          Create mapping file when using project file(s).
40764          Delete mapping file before exiting.
40765
40766         * opt.ads (Mapping_File_Name): New variable
40767
40768         * osint.adb (Find_File): Use path name found in mapping, if any.
40769
40770         * prj-env.adb (Create_Mapping_File): New procedure
40771
40772         * prj-env.ads (Create_Mapping_File): New procedure.
40773
40774         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
40775         (Mapping_File)
40776
40777         * usage.adb: Add entry for new switch -gnatem.
40778
40779         * Makefile.in: Add dependencies for fmap.o.
40780
40781 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40782
40783         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
40784         is a package instantiation rewritten as a package body.
40785         (Install_Withed_Unit): Undo previous change, now redundant.
40786
40787 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
40788
40789         * layout.adb:
40790         (Compute_Length): Move conversion to Unsigned to callers.
40791         (Get_Max_Size): Convert Len expression to Unsigned after calls to
40792         Compute_Length and Determine_Range.
40793         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
40794         Compute_Length and Determine_Range.
40795         Above changes fix problem with length computation for supernull arrays
40796         where Max (Len, 0) wasn't getting applied due to the Unsigned
40797         conversion used by Compute_Length.
40798
40799 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40800
40801         * rtsfind.ads:
40802         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
40803          System.Secondary_Stack.
40804         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
40805          in HI-E mode.
40806         Remove unused entity RE_Exception_Data.
40807
40808         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
40809
40810         * rident.ads (No_Secondary_Stack): New restriction.
40811
40812 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40813
40814         * gnat_rm.texi: Fix minor typos. Found while reading the section
40815         regarding "Bit_Order Clauses" that was sent to a customer.
40816         Very interesting documentation!
40817
40818 2001-12-17  Robert Dewar  <dewar@gnat.com>
40819
40820         * sem_case.adb (Choice_Image): Avoid creating improper character
40821         literal names by using the routine Set_Character_Literal_Name. This
40822         fixes bombs in certain error message cases.
40823
40824 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40825
40826         * a-reatim.adb: Minor reformatting.
40827
40828 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40829
40830         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
40831         case where the formal is an extension of another formal in the current
40832         unit or in a parent generic unit.
40833
40834 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40835
40836         * s-tposen.adb: Update comments.  Minor reformatting.
40837         Minor code clean up.
40838
40839         * s-tarest.adb: Update comments.  Minor code reorganization.
40840
40841 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
40842
40843         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
40844         when Java_VM.
40845
40846 2001-12-17  Robert Dewa  <dewar@gnat.com>
40847
40848         * exp_attr.adb: Minor reformatting
40849
40850 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40851
40852         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
40853         derivations nested within a child unit: verify that the parent
40854         type is declared in an outer scope.
40855
40856 2001-12-17  Robert Dewar  <dewar@gnat.com>
40857
40858         * sem_ch12.adb: Minor reformatting
40859
40860 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40861
40862         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40863         warning if current unit is a predefined one, from which bodies may
40864         have been deleted.
40865
40866 2001-12-17  Robert Dewar  <dewar@gnat.com>
40867
40868         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40869         Fix header format. Add 2001 to copyright date.
40870
40871         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
40872         which caused CE during compilation if checks were enabled.
40873
40874 2001-12-17  Vincent Celier  <celier@gnat.com>
40875
40876         * make.adb:
40877         (Switches_Of): New function
40878         (Test_If_Relative_Path): New procedure
40879         (Add_Switches): Use new function Switches_Of
40880         (Collect_Arguments_And_Compile): Use new function Switches_Of.
40881         When using a project file, test if there are any relative
40882         search path. Fail if there are any.
40883         (Gnatmake): Only add switches for the primary directory when not using
40884         a project file. When using a project file, change directory to the
40885         object directory of the main project file. When using a project file,
40886         test if there are any relative search path. Fail if there are any.
40887         When using a project file, fail if specified executable is relative
40888         path with directory information, and prepend executable, if not
40889         specified as an absolute path, with the exec directory.  Make sure
40890         that only one -o switch is transmitted to the linker.
40891
40892         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
40893
40894         * prj-nmsc.adb:
40895         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40896         when using a non standard naming scheme.
40897         (Check_Ada_Naming_Scheme): Make sure that error messages
40898         do not raise exceptions.
40899         (Is_Illegal_Append): Return True if there is no dot in the suffix.
40900         (Language_Independent_Check): Check the exec directory.
40901
40902         * prj.adb (Project_Empty): Add new component Exec_Directory
40903
40904         * prj.ads:
40905         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40906         (Project_Data): Add component Exec_Directory
40907
40908         * snames.adb: Updated to match snames.ads revision 1.215
40909
40910         * snames.ads: Added Exec_Dir
40911
40912 2001-12-17  Robert Dewar  <dewar@gnat.com>
40913
40914         * make.adb: Minor reformatting
40915
40916         * prj-nmsc.adb: Minor reformatting
40917
40918         * snames.adb: Updated to match snames.ads
40919
40920         * snames.ads: Alphebetize entries for project file
40921
40922 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40923
40924         * trans.c (process_freeze_entity): Do nothing if the entity is a
40925         subprogram that was already elaborated.
40926
40927 2001-12-17  Richard Kenner  <kenner@gnat.com>
40928
40929         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
40930         and Esize if object is referenced via pointer.
40931
40932 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40933
40934         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
40935         is discrete before analyzing choices.
40936
40937 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40938
40939         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40940         containing the name of the Ada Main Program. This string is mainly
40941         intended for the debugger.
40942         (Gen_Output_File_C): Do the equivalent change when generating a C file.
40943
40944 2001-12-17  Robert Dewar  <dewar@gnat.com>
40945
40946         * ali.adb: Set new Dummy_Entry field in dependency entry
40947
40948         * ali.ads: Add Dummy_Entry field to source dependency table
40949
40950         * bcheck.adb (Check_Consistency): Ignore dummy D lines
40951
40952         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
40953
40954         * lib-writ.ads: Document dummy D lines for missing files.
40955
40956         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40957
40958 2001-12-17  Robert Dewar  <dewar@gnat.com>
40959
40960         * ali.adb: Type reference does not reset current file.
40961
40962         * ali.adb: Recognize and scan renaming reference
40963
40964         * ali.ads: Add spec for storing renaming references.
40965
40966         * lib-xref.ads: Add documentation for handling of renaming references
40967
40968         * lib-xref.adb: Implement output of renaming reference.
40969
40970         * checks.adb:
40971         (Determine_Range): Document local variables
40972         (Determine_Range): Make sure Hbound is initialized. It looks as though
40973          there could be a real problem here with an uninitialized reference
40974          to Hbound, but no actual example of failure has been found.
40975
40976 2001-12-17  Laurent Pautet  <pautet@gnat.com>
40977
40978         * g-socket.ads:
40979         Fix comment of Shutdown_Socket and Close_Socket. These functions
40980         should not fail silently because if they are called twice, this
40981         probably means that there is a race condition in the user program.
40982         Anyway, this behaviour is consistent with the rest of this unit.
40983         When an error occurs, an exception is raised with the error message
40984         as exception message.
40985
40986 2001-12-17  Robert Dewar  <dewar@gnat.com>
40987
40988         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
40989         that it happens before modification of Sloc values for -gnatD.
40990
40991         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
40992         so that it happens before modification of Sloc values for -gnatD.
40993
40994         * switch.adb: Minor reformatting
40995
40996 2001-12-15  Richard Henderson  <rth@redhat.com>
40997
40998         * sem_ch7.adb: Wrap comment.
40999
41000 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41001
41002         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41003         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41004         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41005         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41006         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41007         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41008         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41009         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41010         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41011         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41012         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41013         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41014         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41015         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41016         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41017         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41018         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41019         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41020         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41021         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41022         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41023         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41024         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41025         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41026         spelling errors.
41027
41028 2001-12-14  Vincent Celier  <celier@gnat.com>
41029
41030         * osint.adb(Create_Debug_File): When an object file is specified,
41031         put the .dg file in the same directory as the object file.
41032
41033 2001-12-14  Robert Dewar  <dewar@gnat.com>
41034
41035         * osint.adb: Minor reformatting
41036
41037         * lib-xref.adb (Output_Instantiation): New procedure to generate
41038         instantiation references.
41039
41040         * lib-xref.ads: Add documentation of handling of generic references.
41041
41042         * ali.adb (Read_Instantiation_Ref): New procedure to read
41043         instantiation references
41044
41045         * ali.ads: Add spec for storing instantiation references
41046
41047         * bindusg.adb: Minor reformatting
41048
41049         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41050
41051         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41052
41053         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41054
41055         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41056
41057         * csets.ads:
41058         Fix header format
41059         Add 2001 to copyright date
41060         Add entry for Latin-5 (Cyrillic ISO-8859-5)
41061
41062 2001-12-14  Matt Gingell  <gingell@gnat.com>
41063
41064         * adaint.c: mktemp is a macro on Lynx and can not be used as an
41065         expression.
41066
41067 2001-12-14  Richard Kenner  <kenner@gnat.com>
41068
41069         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41070         if operand is CONSTRUCTOR.
41071
41072 2001-12-14  Ed Schonberg  <schonber@gnat.com>
41073
41074         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41075         before emiting check on right-hand side, so that exception information
41076         is correct.
41077
41078 2001-12-14  Richard Kenner  <kenner@gnat.com>
41079
41080         * utils.c (create_var_decl): Throw away initializing expression
41081         if just annotating types and non-constant.
41082
41083 2001-12-14  Vincent Celier  <celier@gnat.com>
41084
41085         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41086         Default_Ada_...
41087
41088         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41089         Remove functions.
41090         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41091
41092         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41093         Remove functions.
41094         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41095
41096 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
41097
41098         * ChangeLog: Remove piece of diff output.
41099
41100 2001-12-14  Geert Bosch  <bosch@gnat.com>
41101
41102         * config-lang.in: Update copyright notice
41103
41104         * layout.adb: Remove commented out code.
41105
41106         * mdllfile.ads: Update copyright notice. Fix header format.
41107
41108         * sem_case.ads: Likewise.
41109
41110         * sem_ch3.adb: Minor reformatting.
41111
41112 2001-12-12  Geert Bosch  <bosch@gnat.com>
41113
41114         * freeze.ads: Update copyright date.
41115
41116         * g-comlin.ads: Minor reformatting.
41117
41118         * gnat-style.texi: Fix typo.
41119
41120 2001-12-12  Geert Bosch  <bosch@gnat.com>
41121
41122         *  einfo.h: Regenerate.
41123
41124 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41125
41126         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41127         on known node types, rather than untyped fields. Further cleanups.
41128
41129 2001-12-12  Robert Dewar  <dewar@gnat.com>
41130
41131         * sem_ch12.adb:
41132         (Save_Entity_Descendant): Minor comment update.
41133         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41134          of an N_Attribute_Reference node. As per note below, this does not
41135         eliminate need for Associated_Node in attribute ref nodes.
41136         (Associated_Node): Documentation explicitly mentions attribute
41137         reference nodes, since this field is used in such nodes.
41138
41139         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41140
41141 2001-12-12  Robert Dewar  <dewar@gnat.com>
41142
41143         * s-stalib.adb: Add more comments on with statements being needed
41144
41145         * par-ch12.adb: Minor reformatting
41146
41147         * prj-dect.ads: Fix copyright header
41148
41149         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41150         inputs fit in 32 bits, but the result still overflows.
41151
41152         * s-fatgen.ads: Minor comment improvement
41153
41154 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41155
41156         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41157         formal derived type, look for an inherited component from the full
41158         view of the parent, if any.
41159
41160 2001-12-12  Robert Dewar  <dewar@gnat.com>
41161
41162         * checks.ads (Apply_Alignment_Check): New procedure.
41163
41164         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41165         ensure that the alignment of objects with address clauses is
41166         appropriate, and raise PE if not.
41167
41168         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41169         Exp_Pakd.Known_Aligned_Enough
41170
41171         * mdllfile.ads: Minor reformatting
41172
41173         * mlib-fil.ads: Minor reformatting
41174
41175 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41176
41177         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41178         fix to any component reference if enclosing record has non-standard
41179         representation.
41180
41181 2001-12-12  Vincent Celier  <celier@gnat.com>
41182
41183         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41184         Iteration
41185
41186 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41187
41188         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41189         sem_attr.
41190
41191 2001-12-12  Robert Dewar  <dewar@gnat.com>
41192
41193         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41194
41195 2001-12-12  Emmanuel Briot  <briot@gnat.com>
41196
41197         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41198         and it adds dependencies to system.io.
41199
41200 2001-12-12  Pascal Obry  <obry@gnat.com>
41201
41202         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41203         variable name.
41204
41205 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41206
41207         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41208         that is the parent of other generics, the instance body replaces the
41209         instance node.  Retrieve the instance of the spec, which is the one
41210         that is visible in clients and within the body.
41211
41212 2001-12-11  Vincent Celier  <celier@gnat.com>
41213
41214         * gnatmain.adb: Initial version.
41215
41216         * gnatmain.ads: Initial version.
41217
41218         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41219
41220         * snames.adb: Updated to match snames.ads.
41221
41222         * snames.ads: Added Gnatstub.
41223
41224 2001-12-11  Vincent Celier  <celier@gnat.com>
41225
41226         * prj-attr.adb (Initialization_Data): Change name from
41227         Initialisation_Data.
41228
41229 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41230
41231         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41232         + and * applied to backslashed expressions like \r.
41233
41234 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
41235
41236         * g-os_lib.ads: String_List type added, Argument_List type is now
41237         subtype of String_List.
41238
41239 2001-12-11  Robert Dewar  <dewar@gnat.com>
41240
41241         * g-os_lib.ads: Change copyright to FSF
41242         Add comments for String_List type
41243
41244 2001-12-11  Vincent Celier  <celier@gnat.com>
41245
41246         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41247         string to the buffer).
41248
41249 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41250
41251         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41252         sem_attr.
41253
41254         * sem_attr.adb: Simplify previous fix for Address.
41255         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41256         to avoid anomalies where the bound of the type appears to raise
41257         constraint error.
41258
41259 2001-12-11  Robert Dewar  <dewar@gnat.com>
41260
41261         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41262         handled.
41263
41264 2001-12-11  Ed Schonber   <schonber@gnat.com>
41265
41266         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41267         renamed unit before checking for recursive instantiations.
41268
41269 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41270
41271         * prj.ads: Add comments for some of the fields.
41272
41273 2001-12-11  Robert Dewar  <dewar@gnat.com>
41274
41275         * lib-xref.adb (Output_Refs): Don't output type references outside
41276         the main unit if they are not otherwise referenced.
41277
41278 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41279
41280         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41281         code and diagnose additional illegal uses
41282
41283         * sem_util.adb (Is_Object_Reference): An indexed component is an
41284         object only if the prefix is.
41285
41286 2001-12-11  Vincent Celier  <celier@gnat.com>
41287
41288         * g-diopit.adb: Initial version.
41289
41290         * g-diopit.ads: Initial version.
41291
41292         * g-dirope.adb:
41293         (Expand_Path): Avoid use of Unbounded_String
41294         (Find, Wildcard_Iterator): Moved to child package Iteration
41295
41296         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
41297
41298 2001-12-11  Robert Dewar  <dewar@gnat.com>
41299
41300         * sem_attr.adb: Minor reformatting
41301
41302 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41303
41304         * sem_ch3.adb: Clarify some ???.
41305
41306 2001-12-11  Robert Dewar  <dewar@gnat.com>
41307
41308         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
41309         Exp_Pakd.Known_Aligned_Enough
41310
41311         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
41312         version is moved to Exp_Ch13.
41313
41314 2001-12-11  Robert Dewar  <dewar@gnat.com>
41315
41316         * einfo.ads: Minor reformatting
41317
41318         * exp_ch5.adb: Add comment for previous.change
41319
41320         * ali.adb: New interface for extended typeref stuff.
41321
41322         * ali.ads: New interface for typeref stuff.
41323
41324         * checks.adb (Apply_Alignment_Check): New procedure.
41325
41326         * debug.adb: Add -gnatdM for modified ALI output
41327
41328         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
41329
41330         * lib-xref.adb: Extend generation of <..> notation to cover
41331         subtype/object types. Note that this is a complete rewrite,
41332         getting rid of the very nasty quadratic algorithm previously
41333         used for derived type output.
41334
41335         * lib-xref.ads: Extend description of <..> notation to cover
41336         subtype/object types. Uses {..} for these other cases.
41337         Also use (..) for pointer types.
41338
41339         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
41340
41341         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
41342         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
41343
41344 2001-12-11  Vincent Celier  <celier@gnat.com>
41345
41346         * gnatcmd.adb:
41347         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
41348         Changed /BIND_ONLY to /ACTIONS=BIND
41349         Changed /LINK_ONLY to /ACTIONS=LINK
41350
41351 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41352
41353         * sem_ch8.adb (Find_Selected_Component): improved search for a
41354         candidate package in case of error.
41355
41356         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
41357         chain back on scope stack before reinstalling use clauses.
41358
41359         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
41360         is enabled, do not kill the code for the condition, to preserve
41361         warning.
41362
41363 2001-12-11  Robert Dewar  <dewar@gnat.com>
41364
41365         * checks.adb (Insert_Valid_Check): Apply validity check to expression
41366         of conversion, not to result of conversion.
41367
41368 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41369
41370         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
41371         before freezing parent. If the declarations are mutually recursive,
41372         an access to the current record type may be frozen before the
41373         derivation is complete.
41374
41375 2001-12-05  Vincent Celier  <celier@gnat.com>
41376
41377         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
41378         -c /COMPILE_ONLY, -l /LINK_ONLY
41379
41380         * opt.ads:
41381         (Bind_Only): New Flag
41382         (Link_Only): New flag
41383
41384         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
41385         and -l (Link_Only)
41386
41387         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
41388
41389         * make.adb:
41390         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
41391         (Gnatmake): Set the step flags. Only perform a step if the
41392         corresponding step flag is True.
41393         (Scan_Make_Arg): Reset the bind and link step flags when -u
41394         or -gnatc has been specified.
41395
41396 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41397
41398         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
41399         get bounds from right operand.
41400
41401         * sem_eval.adb: Minor reformatting
41402
41403         * exp_util.adb (Make_Literal_Range): use bound of literal rather
41404         than Index'First, its lower bound may be different from 1.
41405
41406         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
41407         and C48009J
41408
41409 2001-12-05  Vincent Celier  <celier@gnat.com>
41410
41411         * prj-nmsc.adb Minor reformatting
41412
41413         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
41414         set and libraries are not supported.
41415
41416 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41417
41418         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
41419         private view explicitly, so the back-end can treat as a global
41420         when appropriate.
41421
41422 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41423
41424         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
41425          unit, always replace instance node with new body, for ASIS use.
41426
41427 2001-12-05  Vincent Celier  <celier@gnat.com>
41428
41429         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
41430         libraries are not supported and both attributes Library_Name and
41431         Library_Dir are specified.
41432
41433         * prj-proc.adb (Expression): Set location of Result to location of
41434         first term.
41435
41436         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
41437         (prj-nmsc is now importing MLib.Tgt)
41438
41439         * prj-proc.adb: Put the change indicated above that was forgotten.
41440
41441 2001-12-05  Robert Dewar  <dewar@gnat.com>
41442
41443         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
41444
41445 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41446
41447         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
41448         constraint, introduce explicit subtype declaration and derive from it.
41449
41450         * sem_ch3.adb: Minor reformatting
41451
41452 2001-12-05  Robert Dewar  <dewar@gnat.com>
41453
41454         * checks.adb (Determine_Range): Increase cache size for checks.
41455         Minor reformatting
41456
41457         * exp_ch6.adb: Minor reformatting
41458         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
41459         a parameter whose root type is System.Address, since treating such
41460         subprograms as pure in the code generator is almost surely a mistake
41461         that will lead to unexpected results.
41462
41463         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
41464         change handling of conversions.
41465
41466         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
41467
41468 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41469
41470         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
41471         aggregate with static wrong size, attach generated Raise node to
41472         declaration.
41473
41474 2001-12-05  Robert Dewar  <dewar@gnat.com>
41475
41476         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
41477         Fixes compilation abandoned bomb in B24009B.
41478
41479 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41480
41481         * sem_ch12.adb:
41482         Document use of Associated_Node on Selected_Components.
41483         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
41484         to clarify use of untyped descendant fields.
41485
41486 2001-12-05  Robert Dewar  <dewar@gnat.com>
41487
41488         * prj-dect.ads: Add ??? comment
41489         Add 2001 to copyright notice (was not done in after all)
41490
41491         * prj-part.adb: Minor reformatting. Reword one awkward error message.
41492
41493         * prj.ads: Minor reformatting throughout, and add some ??? comments
41494
41495         * snames.ads: Minor reformatting
41496
41497 2001-12-05  Geert Bosch  <bosch@gnat.com>
41498
41499         * snames.adb: Autoupdate
41500
41501 2001-12-05  Vincent Celier  <celier@gnat.com>
41502
41503         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
41504
41505         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
41506
41507         * prj-env.adb: Minor comment changes (modifying -> extends).
41508
41509         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
41510
41511         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
41512         Tok_Extends.
41513
41514         * prj.adb (Initialize): Change Modifying to Extends.
41515
41516         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
41517
41518         * prj.ads: Minor comment change (Modifying -> extending).
41519
41520         * snames.ads: Change modifying to extends.
41521
41522 2001-12-05  Robert Dewar  <dewar@gnat.com>
41523
41524         * sem_warn.adb: Remove stuff for conditionals, we are not going to
41525         do this after all.
41526
41527         * sem_warn.ads: Remove stuff for conditionals, we are not going to
41528         do this after all.  Add 2001 to copyright notice
41529
41530 2001-12-04  Geert Bosch  <bosch@gnat.com>
41531
41532         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
41533
41534 2001-12-04  Robert Dewar  <dewar@gnat.com>
41535
41536         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
41537         location if we already have errors. Stops some cases of cascaded
41538         errors.
41539
41540         * errout.adb: Improve comment.
41541
41542 2001-12-04  Robert Dewar  <dewar@gnat.com>
41543
41544         * sem_ch12.adb:
41545         (Analyze_Formal_Type_Definition): Defend against Error.
41546         (Analyze_Formal_Subprogram): Defend against Error.
41547
41548         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
41549         remove following semicolon if present. Removes cascaded error.
41550
41551 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
41552
41553         * bindgen.adb:
41554         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
41555          exceptions equals 0.
41556         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
41557         Fixes PIWG E tests (which have to be run with -gnatL).
41558
41559 2001-12-04  Robert Dewar  <dewar@gnat.com>
41560
41561         * einfo.ads: Minor reformatting
41562
41563 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41564
41565         * einfo.ads: Block_Node points to the identifier of the block, not to
41566         the block node itself, to preserve the link when the block is
41567         rewritten, e.g. within an if-statement with a static condition.
41568
41569         * inline.adb (Cleanup_Scopes): recover block statement from block
41570         entity using new meaning of Block_Node.
41571
41572         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
41573         identifier of block node, rather than to node itself.
41574
41575 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
41576
41577         * layout.adb:
41578         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
41579         (Discrimify): Go back to setting the Etypes of the selected component
41580         because the Vname component does not exist at this point and will
41581         fail name resolution. Also set Analyzed.
41582         Remove with and use of Sem_Res.
41583
41584 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
41585
41586         * Makefile.in: (HIE_SOURCES): add s-fat*.
41587
41588 2001-12-04  Robert Dewar  <dewar@gnat.com>
41589
41590         * sem_attr.adb:
41591         (Compile_Time_Known_Attribute): New procedure.
41592         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
41593          proper range check.
41594
41595 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41596
41597         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
41598         processing discriminants to diagnose illegal default values.
41599
41600 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41601
41602         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
41603         access discriminant within a type extension that constrains its
41604         parent discriminants.
41605
41606 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41607
41608         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
41609         is malformed, use instance of Any_Id to allow analysis to proceed.
41610
41611         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
41612         type definition is illegal.
41613         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
41614         misplaced.
41615
41616 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41617
41618         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
41619         constants.
41620
41621 2001-12-04  Robert Dewar  <dewar@gnat.com>
41622
41623         * errout.adb: Minor reformatting
41624
41625 2001-12-04  Robert Dewar  <dewar@gnat.com>
41626
41627         * exp_util.adb: Minor reformatting from last change
41628
41629         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
41630         which is a rewriting of an expression, traverse the original
41631         expression to remove warnings that may have been posted on it.
41632
41633 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41634
41635         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
41636         record that has other packed components.
41637
41638 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41639
41640         * adaint.c: Minor cleanups.
41641
41642 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41643
41644         * adaint.c: Do not use utime.h on vxworks.
41645
41646 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
41647
41648         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
41649         more confusion than it solves.
41650
41651 2001-12-04  Geert bosch  <bosch@gnat.com>
41652
41653         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
41654
41655 2001-12-04  Geert Bosch  <bosch@gnat.com>
41656
41657         * Makefile.in (update-sources): New target.
41658         For use by gcc_release script.
41659
41660 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41661
41662         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
41663         a configuration pragma, it is now legal wherever a pragma can appear.
41664
41665 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
41666
41667         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
41668         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
41669         is now @CROSS@ -DIN_GCC; update comment.
41670
41671 2001-12-04  Robert Dewar  <dewar@gnat.com>
41672
41673         * einfo.adb (Has_Pragma_Pure_Function): New flag.
41674         Fix problem that stopped ceinfo from working
41675
41676         * einfo.ads (Has_Pragma_Pure_Function): New flag.
41677
41678         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
41679
41680 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
41681
41682         * gnatchop.adb:
41683         (File_Time_Stamp): New procedure.
41684         (Preserve_Mode): New boolean.
41685         (Write_Unit): Pass time stamp.
41686         Implement -p switch (preserve time stamps).
41687
41688         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
41689
41690         * gnatchop.adb: Do usage info for -p switch
41691
41692         * adaint.h (__gnat_set_file_time_name): New function
41693
41694         * adaint.c (__gnat_set_file_time_name): Implement
41695
41696         * adaint.h: Fix typo
41697
41698 2001-12-03  Robert Dewar  <dewar@gnat.com>
41699
41700         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
41701         have Associated_Node.
41702
41703 2001-12-03  Robert Dewar  <dewar@gnat.com>
41704
41705         * prj-proc.adb: Minor reformatting
41706
41707         * make.adb: Minor reformatting
41708
41709 2001-12-03  Geert Bosch  <bosch@gnat.com>
41710
41711         * make.adb: Minor reformatting.
41712
41713 2001-12-03 Robert Dewar  <dewar@gnat.com>
41714
41715         * sem_ch12.adb: Minor reformatting
41716
41717 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41718
41719         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
41720         push Standard on the stack before analyzing the instance body,
41721         in order to have a clean visibility environment.
41722
41723         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
41724
41725 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41726
41727         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
41728         instantiation of a body that contains an inlined body.
41729
41730 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41731
41732         * sem_ch12.adb:
41733         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
41734         to prevent freezing within formal packages.
41735         (Freeze_Subprogram_Body): If body comes from another instance that
41736         appeared before its own body, place freeze node at end of current
41737         declarative part, to prevent a back-end crash.
41738         (Inline_Instance_Body): Handle properly a package instance within
41739         a subprogram instance that is a child unit.
41740
41741 2001-12-01  Graham Stott  <grahams@redhat.com>
41742
41743         * Makefile.in (misc.o): Add missing $(srcdir) prefix
41744         and add optabs.h dependency.
41745
41746         * misc.c: Include optabs.h
41747         (gnat_tree_code_type): Make static and const.
41748         (gnat_tree_code_length): Likewise.
41749         (gnat_tree_code_name): Likewise.
41750         (update_setjmp_buf): Obtain operands mode from insn_data.
41751
41752 2001-11-29  Richard Henderson  <rth@redhat.com>
41753
41754         * init.c: Remove obsolete dwarf2 frame.h section.
41755
41756 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
41757
41758         * Make-lang.in (ada.generated-manpages): New dummy target.
41759
41760 2001-11-29  Ed Schonberg  <schonber@gnat.com>
41761
41762         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
41763         into Command, an array conversion is illegal here. Uncovered by
41764         ACATS B460005.
41765
41766 2001-11-28  Geert Bosch  <bosch@gnat.com>
41767
41768         * init.c: Minor whitespace changes.
41769
41770 2001-11-28  Doug Rupp  <rupp@gnat.com>
41771
41772         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
41773         signal stack.
41774
41775 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
41776
41777         * misc.c (gnat_expand_constant): Move declaration above
41778         definition of lang_hooks.
41779         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
41780         (gnat_init): lang_expand_constant no longer exists.
41781
41782         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
41783         always have vprintf.
41784         (gnat_init): Always call set_internal_error_function.
41785
41786 2001-11-27  Andreas Jaeger  <aj@suse.de>
41787
41788         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
41789
41790 2001-11-27  Laurent Guerby  <guerby@acm.org>
41791
41792         * Makefile.in: Regenerate Ada dependencies.
41793
41794 2001-11-26  Richard Henderson  <rth@redhat.com>
41795
41796         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
41797         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
41798         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
41799
41800 2001-11-25  Laurent Guerby  <guerby@acm.org>
41801
41802         * sysdep.c (rts_get_*): Fix style.
41803
41804 2001-11-19  Laurent Guerby  <guerby@acm.org>
41805
41806         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
41807         since it is of no apparent use and cause warnings.
41808
41809 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41810
41811         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
41812         static too.
41813         (gnat_init): Don't return NULL.
41814         (finish_parse): Remove.
41815
41816 2001-11-17  Laurent Guerby  <guerby@acm.org>
41817
41818         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
41819         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
41820         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
41821         * lang-spec.h: Add missing struct field to silence warnings.
41822         * sysdep.c (rts_get_*): Provide K&R prototype.
41823         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
41824         * traceback.c (Unlock_Task, Lock_Task): Likewise.
41825         * tracebak.c (__gnat_backtrace): Remove unused variable.
41826         * utils.c (end_subprog_body): Move to K&R style.
41827
41828 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41829
41830         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
41831
41832 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
41833
41834         * misc.c (gnat_init): Change prototype.  Include the
41835         functionality of the old init_parse and init_decl_processing.
41836         (gnat_init_decl_processing): New prototype.
41837         (init_parse): Remove.
41838         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
41839
41840 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41841
41842         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
41843         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41844         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41845         set_yydebug): Remove.
41846
41847 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41848
41849         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41850         (struct lang_hooks): Constify.
41851         (language_string, lang_identify): Remove.
41852         * utils.c (init_decl_processing): Update.
41853
41854 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
41855
41856         * misc.c: Include langhooks-def.h.
41857         * Makefile.in: Update.
41858
41859 2001-10-30  Robert Dewar  <dewar@gnat.com>
41860
41861         * style.adb:
41862         (Check_Identifier): Rewrite circuit to be compatible with use of letters
41863         in the upper half of ASCII.
41864         (Check_Identifier): Minor reformatting
41865
41866 2001-10-30  Geert Bosch  <bosch@gnat.com>
41867
41868         * (Associated_Node, Set_Associated_Node): Do not check for
41869         Freeze_Entity.
41870
41871 2001-10-30  Robert Dewar  <dewar@gnat.com>
41872
41873         * a-reatim.ads: Minor reformatting
41874
41875 2001-10-30  Robert Dewar  <dewar@gnat.com>
41876
41877         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
41878         undocumented declarations.
41879
41880 2001-10-30  Pascal Obry  <obry@gnat.com>
41881
41882         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
41883         to the binder and linker.
41884         Minor style fix.
41885
41886         * mdll.ads: Fix layout.  Update copyright notice.
41887
41888         * mdll.adb: Fix layout.  Update copyright notice.
41889
41890 2001-10-30  Robert Dewar  <dewar@gnat.com>
41891
41892         * usage.adb: Minor fix to output for -gnaty.
41893
41894 2001-10-30  Ed Schonberg  <schonber@gnat.com>
41895
41896         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41897         to accommodate all its possible values.
41898
41899         * a-reatim.adb (Split): Special-case handling of Time_Span_First
41900         and of small absolute values of T.
41901
41902 2001-10-30  Richard Kenner  <kenner@gnat.com>
41903
41904         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41905         set_mem_attributes since not needed and wrong if RESULT if a REG;
41906         fixes ACATS failures.
41907
41908 2001-10-30  Geert Bosch  <bosch@gnat.com>
41909
41910         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41911         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41912
41913 2001-10-30  Robert Dewar  <dewar@gnat.com>
41914
41915         * bindusg.adb: Undocument -f switch.
41916
41917         * gnatcmd.adb: Remove /FULL_ELABORATION.
41918
41919         * opt.ads (Force_RM_Elaboration_Order): Document that this is
41920         obsolescent.
41921
41922         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
41923
41924         * gnatbind.adb: Minor update of warning msg.
41925
41926 2001-10-30  Vincent Celier  <celier@gnat.com>
41927
41928         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
41929         for project file switches (-P (/PROJECT_FILE=),
41930          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
41931         or MEDIUM or HIGH)
41932
41933 2001-10-30  Geert Bosch  <bosch@gnat.com>
41934
41935         * decl.c: Minor whitespace fixes.
41936
41937 2001-10-30  Richard Kenner  <kenner@gnat.com>
41938
41939         * utils2.c (build_allocator): Test for SIZE overflow in array case too
41940
41941 2001-10-30  Geert Bosch  <bosch@gnat.com>
41942
41943         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
41944         Found due to GCC 3.0 warning of using uninitialized value.
41945
41946         * layout.adb:
41947         (Get_Max_Size): Use variant record for tracking value/expression.
41948          Makes logic clearer and prevents warnings for uninitialized variables.
41949         (Layout_Array_Type): Use variant record for tracking value/expression.
41950          Makes logic clearer and prevents warnings for uninitialized variables.
41951
41952 2001-10-30  Robert Dewar  <dewar@gnat.com>
41953
41954         * lib.adb: Minor reformatting
41955
41956         * s-taprop.ads: Minor reformatting
41957
41958 2001-10-29  Laurent Guerby  <guerby@acm.org>
41959
41960         * init.c:
41961         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41962         const.
41963         (_gnat_error_handler): Make MSG const.
41964
41965 2001-10-29  Richard Kenner  <kenner@gnat.com>
41966
41967         * sysdep.c: Fix localtime_r problem on LynxOS.
41968         Also remove #elif to avoid warnings.
41969
41970         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
41971         used by this.
41972
41973         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41974
41975 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
41976
41977         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41978         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41979         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41980         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41981         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41982         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41983         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41984         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41985         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41986         types.ads, urealp.adb: Fix spelling errors.
41987
41988 2001-10-27  Laurent Guerby  <guerby@acm.org>
41989
41990         * trans.c (gigi): Fix non determinism leading to bootstrap
41991         comparison failures for debugging information.
41992
41993 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
41994
41995         * gnat_rm.texi: Use @./@: where appropriate.
41996
41997 2001-10-26  Robert Dewar  <dewar@gnat.com>
41998
41999         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42000
42001 2001-10-26  Richard Kenner  <kenner@gnat.com>
42002
42003         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42004
42005 2001-10-26  Richard Kenner  <kenner@gnat.com>
42006
42007         * decl.c (validate_size): Modify message for bad size to avoid
42008         implication that compiler is modifying the size.
42009
42010 2001-10-26  Robert Dewar  <dewar@gnat.com>
42011
42012         * prj-util.adb: Minor reformatting. Fix bad header format.
42013
42014 2001-10-26  Robert Dewar  <dewar@gnat.com>
42015
42016         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42017
42018         * sinfo.ads: Clarify use of Associated_Node (documentation only).
42019
42020         * sem_ch12.adb: Change Node4 to Associated_Node. Change
42021         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42022         much more narrowly in places where needed. These are cleanups.
42023
42024 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
42025
42026         * 5zosinte.ads (null_pthread): new constant.
42027
42028         * 5ztaprop.adb:
42029         (Initialize_TCB): Initialize thread ID to null, to be able to verify
42030          later that this field has been set.
42031         (Finalize_TCB): ditto.
42032         (Suspend_Task): Verify that the thread ID is not null before using it.
42033         (Resume_Task): ditto.
42034
42035         * s-tasdeb.adb:
42036         (Resume_All_Tasks): Lock the tasks list before using it.
42037         (Suspend_All_Tasks): ditto.
42038
42039 2001-10-26  Richard Kenner  <kenner@gnat.com>
42040
42041         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42042         Make constant variant of designated type for Is_Access_Constant.
42043         Call update_pointer_to with main variant.
42044
42045         * trans.c (process_freeze_entity, process_type):
42046         Call update_pointer_to on main variant.
42047
42048         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42049         If main variant, update all other variants.
42050
42051         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42052         TREE_STATIC.
42053
42054 2001-10-26  Robert Dewar  <dewar@gnat.com>
42055
42056         * prj-util.adb: Minor reformatting
42057
42058 2001-10-26  Robert Dewar  <dewar@gnat.com>
42059
42060         * prj-util.adb: Minor reformatting
42061
42062 2001-10-26  Robert Dewar  <dewar@gnat.com>
42063
42064         * prj-attr.adb: Minor reformatting throughout
42065
42066 2001-10-26  Robert Dewar  <dewar@gnat.com>
42067
42068         * prj-attr.ads: Minor reformatting
42069         Add ??? comment (this whole spec has almost no comments)
42070
42071 2001-10-26  Vincent Celier  <celier@gnat.com>
42072
42073         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42074         ("//") that precede the drive letter on Interix.
42075
42076 2001-10-26  Geert Bosch  <bosch@gnat.com>
42077
42078         * gnat_rm.texi: Add GNAT Reference Manual.
42079
42080 2001-10-25  Robert Dewar  <dewar@gnat.com>
42081
42082         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42083         is Error. Similar change for other renaming cases.
42084
42085 2001-10-25  Robert Dewar  <dewar@gnat.com>
42086
42087         * s-atacco.ads: Add pragma Inline_Always for functions.
42088         Fix header format. Add copyright 2001
42089
42090 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42091
42092         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42093         return Error rather than Empty so that analysis can proceed.
42094
42095 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42096
42097         * sem_util.adb (Enter_Name): better handling of cascaded error
42098         messages when a unit appears in its own context.
42099
42100 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42101
42102         * sem_util.adb (Defining_Entity): in case of error, attach created
42103         entity to specification, so that semantic analysis can proceed.
42104
42105 2001-10-25  Robert Dewar  <dewar@gnat.com>
42106
42107         * sem_util.adb
42108         (Defining_Entity): Deal with Error.
42109         (Process_End_Label): Deal with bad end label for.
42110
42111 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42112
42113         * sem_elab.adb (Check_A_Call): refine message when call is in an
42114         instance but callee is not declared in the generic unit.
42115
42116 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42117
42118         * sem_elab.adb (Check_A_Call): check for renaming before finding the
42119         enclosing unit, which may already be different from the calling unit.
42120
42121 2001-10-25  Geert Bosch  <bosch@gnat.com>
42122
42123         * 4gintnam.ads: fix header format.
42124
42125 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42126
42127         * sem_res.adb (Resolve_Call): if the call is actually an indexing
42128         operation on the result of a parameterless call, perform elaboration
42129         check after the node has been properly rewritten.
42130
42131         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42132         inlined within the generic tree, the defining identifier is not a
42133         compilation_unit.
42134
42135 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42136
42137         * sem_res.adb (Resolve): special-case resolution of Null in an
42138          instance or an inlined body to avoid view conflicts.
42139
42140         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42141          compatibility by retrieving the access type of the generic copy.
42142
42143 2001-10-25  Robert Dewar  <dewar@gnat.com>
42144
42145         * sem_ch3.adb:
42146         (Analyze_Number_Declaration): Handle error expression.
42147         (Signed_Integer_Type_Declaration): Handle error bound.
42148         (Analyze_Subtype_Indication): Handle error range.
42149
42150         * sem_util.adb (Get_Index_Bounds): Check for Error.
42151
42152 2001-10-25  Robert Dewar  <dewar@gnat.com>
42153
42154         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42155         in no run time mode.
42156
42157 2001-10-25  Pascal Obry  <obry@gnat.com>
42158
42159         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42160         mode case for ALLOC case.
42161
42162         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42163         all platforms. Improvement of last change.
42164
42165 2001-10-25  Robert Dewar  <dewar@gnat.com>
42166
42167         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42168
42169 2001-10-25  Geert Bosch  <bosch@gnat.com>
42170
42171         * osint.adb (Is_Relative): Remove duplicate.
42172
42173 2001-10-25  Pascal Obry  <obry@gnat.com>
42174
42175         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42176         pathnames in UNIX and DOS style with drive letter.
42177         (Is_Relative): new routine.
42178
42179         * osint.adb: Minor reformatting
42180
42181         * osint.adb (Is_Relative): implementation using
42182         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42183
42184 2001-10-25  Pascal Obry  <obry@gnat.com>
42185
42186         * g-dirope.adb (Basename): correctly compute offset between the
42187         original Path and the translated one.
42188
42189         * g-dirope.adb: (Base_Name): add some comments.
42190
42191 2001-10-25  Robert Dewar  <dewar@gnat.com>
42192
42193         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42194         in HIE mode, avoids compilation abandoned message
42195
42196         * exp_imgv.adb: Correct typo in previous change
42197
42198         * exp_imgv.adb: Correct typo in previous change (not my day!)
42199
42200 2001-10-25  Robert Dewar  <dewar@gnat.com>
42201
42202         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42203
42204 2001-10-25  Pascal Obry  <obry@gnat.com>
42205
42206         * g-awk.ads: Move all pragma inlines next to the routine
42207          declarations. This is more uniform with other GNAT spec.
42208
42209 2001-10-22  Geert Bosch  <bosch@gnat.com>
42210
42211         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42212
42213 2001-10-19  Geert Bosch  <bosch@gnat.com>
42214
42215         * Makefile.in (tools, gnattools): Remove gnatmem.
42216
42217 2001-10-17  Richard Henderson  <rth@redhat.com>
42218
42219         * Makefile.in (misc.o): Depend on langhooks.h.
42220         * misc.c: Include it.
42221         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42222         (LANG_HOOKS_DECODE_OPTION): New.
42223         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42224
42225 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
42226
42227         * trans.c (tree_transform): Adjust to recent change in
42228         expand_asm_operands to implement named asm operands.
42229
42230 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42231
42232         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42233         renaming of discriminant for mutable record type.
42234
42235 2001-10-11  Robert Dewar  <dewar@gnat.com>
42236
42237         * validsw.adb: Properly save -gnatVn status.
42238
42239 2001-10-11  Robert Dewar  <dewar@gnat.com>
42240
42241         * usage.adb: Add lines for V switch.
42242
42243         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42244         (/VALIDITY_CHECKING).
42245
42246 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42247
42248         * sem_type.adb (Add_One_Interp): an operator for a type declared in
42249         an extension of System is known to be visible.
42250
42251 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42252
42253         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42254         properly. Fixes regression on ACATS C34005G.
42255
42256 2001-10-11  Robert Dewar  <dewar@gnat.com>
42257
42258         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42259         loop in generic instance, since this is likely not very useful.
42260
42261 2001-10-11  Robert Dewar  <dewar@gnat.com>
42262
42263         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42264         the error message for high integrity mode.
42265
42266         * rtsfind.adb (RTE): Give message if we try to find an entity that
42267         is not available in high integrity mode.
42268
42269         * rtsfind.ads:
42270         (OK_To_Use_In_HIE_Mode): New array.
42271         (RTE): May return Empty in high integrity mode.
42272
42273         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42274         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42275
42276         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42277         unit if not inlined always and in no runtime mode. Fixes problem
42278         caused by new Rtsfind changes.
42279
42280         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42281         body is deleted.
42282
42283         * rtsfind.adb (RTE): Make sure we do not try to load unit after
42284         giving message for entity not available in high integrity mode.
42285
42286 2001-10-11  Pascal Obry  <obry@gnat.com>
42287
42288         * impunit.adb: Add GNAT.CRC32.
42289
42290 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42291
42292         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
42293         properly the case where one universal operand in a non-static
42294         exponentiation of a real literal.
42295
42296 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42297
42298         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
42299         clause, return the gobal finalization list, for lack of anthing else.
42300
42301 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42302
42303         * exp_ch7.adb (Make_Transient_Block): if statement is within
42304         exception handler, always use new transient scope to place Clean
42305         procedure.
42306
42307 2001-10-11  Pascal Obry  <obry@gnat.com>
42308
42309         * Makefile.in:
42310         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42311         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42312         (GNATLS_RTL_OBJS): add g-crc32.o
42313         (GNATMAKE_RTL_OBJS): add g-crc32.o
42314
42315         * ali-util.adb:
42316         (CRC_Match): new function.
42317         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
42318         instead of the previous simple checksum algorithm.
42319         (Time_Stamp_Mismatch): use CRC_Match for comparison.
42320         (Set_Source_Table): idem.
42321
42322         * ali-util.ads:
42323         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
42324         instead of simple checksum.
42325         (CRC_Match): new function.
42326         (CRC_Error): new constant.
42327
42328         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
42329         a CRC now and not a simple checksum. A CRC uses lower-case hex
42330         letters, fixes ambiguity in parsing.
42331
42332         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
42333         is what this variable will store.
42334
42335         * bcheck.adb: Change reference to chechsum in comments by CRC.
42336         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
42337         rename All_Checksum_Match to All_CRC_Match. Change due to API
42338         renaming since now GNAT does not use a simple checksum but a
42339         CRC using GNAT.CRC32.
42340
42341         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
42342         now and not anymore a simple checksum.
42343
42344         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
42345         places.
42346
42347         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
42348
42349         * scans.adb:
42350         (Restore_Scan_State): rename Checksum to CRC.
42351         (Save_Scan_State): idem.
42352
42353         * scans.ads:
42354         With GNAT.CRC32.
42355         (Checksum): rename to CRC.
42356         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
42357
42358         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
42359         GNAT.CRC32).  Update copyright notice.
42360
42361         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
42362         GNAT.CRC32).  Update copyright notice.
42363
42364         * scn.adb:
42365         (Accumulate_Checksum): removed.
42366         (Update): new procedure. Add a wide-character into the CRC.
42367
42368         * sinput-l.adb:
42369         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
42370         (Load_File): fix initialization of S (change Source_Checksum to
42371         Source_CRC)
42372
42373         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
42374         Source_CRC in S initialization.
42375
42376         * sinput.adb (Source_Checksum): renamed to Source_CRC.
42377
42378         * sinput.ads (Source_Checksum): renamed to Source_CRC.
42379         Update comments for the CRC.
42380
42381         * types.adb (Hex): Use lowercase for the letter part.
42382
42383         * types.ads (Get_Hex_String): Returns the hexadecimal representation
42384         for a word. This is currently used only for CRC. In previous version,
42385         the checksum was using a representation with all letter being
42386         upper-case. With the new implementation (using CRC) we do not remove
42387         the 32th bit of the CRC, so we can have an upper-case starting letter
42388         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
42389         It is ambigous since the CRC was optional and could be followed by
42390         options like EB, EE. So now this routines uses lower-case letter for
42391         the hexadecimal representation. Strange enough only lower case letters
42392         where checked in Scan_ALI (even if this was not a possible case).
42393
42394         * gnatvsn.ads (Library_Version): changed to 3.15a.
42395
42396         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
42397         for the compiler.
42398
42399         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
42400         for the compiler.
42401
42402         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
42403         Add 2001 to copyright notice
42404         (Accumulate_Checksum): Modify to use System.CRC32.
42405
42406         * ali-util.ads: Redo changes of previous revision to continue to use
42407         the word Checksum. Add 2001 to copyright notice.
42408
42409         * ali.adb: Undo some of previous changes, not needed.
42410         Keep the change for lower case letters in the checksum.
42411
42412         * ali.ads: Undo previous change not needed.
42413
42414         * bcheck.adb: Undo most of previous change, not needed.
42415         But do use Checksums_Match for checksum comparison.
42416
42417         * gnatls.adb: Undo most of previous change, not needed.
42418         But do use Checksums_Match for comparing checksums.
42419
42420         * lib-load.adb: Undo previous change, not needed.
42421
42422         * lib-writ.adb: Undo previous change, not needed.
42423
42424         * lib-writ.ads: Document that checksums use lower case,
42425         not upper case letters.
42426
42427         * scans.adb: Undo previous change, not needed
42428
42429         * scans.ads: Undo previous change, not needed.
42430
42431         * scn-nlit.adb: Undo previous changes, not needed.
42432
42433         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
42434
42435         * scn.adb:
42436         (Accumulate_Checksum): Use System.CRC32.
42437         (Initialize_Checksum): New procedure.
42438         Remove other changes of previous revision.
42439
42440         * sinput-p.adb: Undo previous change, not needed.
42441
42442         * sinput.adb: Undo previous change, not needed.
42443
42444         * sinput-l.adb: Undo previous change, not needed.
42445
42446         * sinput.ads: Undo previous change, not needed.  Keep only comment
42447         on new checksum algorithm
42448
42449         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
42450         Also remove a-tags and a-stream from GNAT sources.
42451
42452         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
42453
42454         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
42455
42456 2001-10-11  Geert Bosch  <bosch@gnat.com>
42457
42458         * einfo.h: Regenerate.
42459
42460         * nmake.ads: Regenerate.
42461
42462         * nmake.adb: Regenerate.
42463
42464         * sinfo.h: Regenerate.
42465
42466         * treeprs.adb: Regenerate.
42467
42468 2001-10-10  Geert Bosch  <bosch@gnat.com>
42469
42470         * gnat-style.texi: New file describing coding guidelines for Ada.
42471
42472 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42473
42474         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
42475         is Flag174.
42476
42477 2001-10-10  Geert Bosch  <bosch@gnat.com>
42478
42479         * snames.ads: Add new names for project facility.
42480
42481         * snames.adb: Update to reflect snames.ads changes.
42482
42483         * snames.h: Update to reflect snames.ads changes.
42484
42485 2001-10-10  Vincent Celier  <celier@gnat.com>
42486
42487         * make.adb:
42488         (Add_Switches): reflect the changes for the switches attributes
42489         Default_Switches indexed by the programming language,
42490         Switches indexed by the file name.
42491         (Collect_Arguments_And_Compile): Idem.
42492         Reflect the attribute name changes.
42493
42494         * prj-attr.adb:
42495         (Initialisation_Data): Change the names of some packages and
42496         attributes.
42497         (Initialize): process case insensitive associative arrays.
42498
42499         * prj-attr.ads:
42500         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
42501
42502         * prj-dect.adb:
42503         (Parse_Attribute_Declaration): For case insensitive associative
42504          arrays, set the index string to lower case.
42505
42506         * prj-env.adb:
42507         Reflect the changes of the project attributes.
42508
42509         * prj-nmsc.adb:
42510         Replace Check_Naming_Scheme by Ada_Check and
42511         Language_Independent_Check.
42512
42513         * prj-nmsc.ads:
42514         Replaced Check_Naming_Scheme by 2 procedures:
42515         Ada_Check and Language_Independent_Check.
42516
42517         * prj-proc.adb:
42518         (Process_Declarative_Items): For case-insensitive associative
42519         arrays, set the index string to lower case.
42520         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
42521         Prj.Nmsc.Check_Naming_Scheme.
42522
42523         * prj-tree.adb:
42524         (Case_Insensitive): New function
42525         (Set_Case_Insensitive): New procedure
42526
42527         * prj-tree.ads:
42528         (Case_Insensitive): New function
42529         (Set_Case_Insensitive): New procedure
42530         (Project_Node_Record): New flag Case_Insensitive.
42531
42532         * prj-util.adb:
42533         (Value_Of): new function to get the string value of a single
42534         string variable or attribute.
42535
42536         * prj-util.ads:
42537         (Value_Of): new function to get the string value of a single
42538         string variable or attribute.
42539
42540         * prj.adb:
42541         (Ada_Default_Spec_Suffix): New function
42542         (Ada_Default_Impl_Suffix): New function
42543         Change definitions of several constants to reflect
42544         new components of record types.
42545
42546         * prj.ads:
42547         (Naming_Data): Change several components to reflect new
42548         elements of naming schemes.
42549         (Project_Data): New flags Sources_Present and
42550         Language_Independent_Checked.
42551         (Ada_Default_Spec_Suffix): New function.
42552         (Ada_Default_Impl_Suffix): New function.
42553
42554         * snames.ads:
42555         Modification of predefined names for project manager: added
42556         Implementation, Specification_Exceptions, Implementation_Exceptions,
42557         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
42558         Default_Switches, _Languages, Builder, Cross_Reference,
42559         Finder. Removed Body_Part, Specification_Append, Body_Append,
42560         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
42561         Gnatlink.
42562
42563         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42564         Add comments.
42565
42566         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
42567         not that it is Nil_Variable_Value.
42568
42569         * prj.ads: Add ??? for uncommented declarations
42570
42571 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42572
42573         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
42574         constant, do not indicate possible modification, so that gigi can
42575         treat it as a bona fide constant.
42576
42577 2001-10-10  Robert Dewar  <dewar@gnat.com>
42578
42579         * sem_prag.adb: Add processing for pragma External.
42580
42581         * snames.ads: Add entry for pragma External.
42582
42583         * par-prag.adb: Add pragma External.
42584
42585         * snames.adb: Updated to match snames.ads.
42586
42587 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42588
42589         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
42590         a dynamic task if the allocator appears in an indexed assignment
42591         or selected component assignment.
42592
42593         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
42594         For a dynamic task in an assignment statement, use target of
42595         assignment to generate meaningful name.
42596
42597 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42598
42599         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
42600         a generic package.
42601
42602         * einfo.ads: Body_Entity is also defined for generic package.
42603         Documentation change only
42604
42605         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
42606         others_choice for a discriminated component initialization,
42607         convert discriminant references into the corresponding discriminals.
42608
42609         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
42610         only if original type is private and expression has to be wrapped
42611         in a conversion.
42612
42613         * checks.adb:
42614         (Apply_Constraint_Check): Do not perform length check
42615         if expression is an aggregate with only an others_choice.
42616         (Length_N_Cond): two references to the same in_parameter
42617         (typically the discriminal in an init_proc) denote the same value.
42618         Two useful optimization uncovered by bugfixes above.
42619
42620 2001-10-10  Robert Dewar  <dewar@gnat.com>
42621
42622         * xeinfo.adb: Change int to char in translation of enumeration types.
42623         This fixes a problem in the C representation of component alignment.
42624         Add 2001 to copyright notice
42625
42626 2001-10-10  Richard Kenner  <kenner@gnat.com>
42627
42628         * decl.c: (validate_size): Do check size of object of integral type
42629         if it is a packed array type.
42630
42631 2001-10-10  Richard Kenner  <kenner@gnat.com>
42632
42633         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
42634         VAR_DECL for constant if not Is_Public but -O0.
42635
42636 2001-10-10  Richard Kenner  <kenner@gnat.com>
42637
42638         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
42639
42640 2001-10-10  Geert Bosch  <bosch@gnat.com>
42641
42642         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
42643         use '/' as switch character, allowing for absolute file names.
42644
42645 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
42646
42647         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
42648         FSF address.
42649
42650 2001-10-08  Geert Bosch  <bosch@gnat.com>
42651
42652         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
42653         Automatically build utilities when files need to be regenerated.
42654
42655 2001-10-08  Geert Bosch  <bosch@gnat.com>
42656
42657         * xsnames.adb: New utility for updating snames.ads and snames.adb
42658
42659 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
42660
42661         * Make-lang.in (ADAFLAGS): Add -W -Wall.
42662         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
42663         (gnat1): Also depend on attribs.o.
42664         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
42665         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
42666         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
42667         (ADAFLAGS): Add -W -Wall.
42668         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
42669         take out CFLAGS.
42670
42671         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
42672         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
42673         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
42674         Use $(ADAC), not $(CC), as compilation command.
42675
42676         (gnattools): Depend directly on tools to build, don't use
42677         recursive make.
42678         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
42679
42680         * einfo.h, sinfo.h: New files (autogenerated).
42681
42682 2001-10-08  Richard Henderson  <rth@redhat.com>
42683
42684         * comperr.adb (Abort_In_Progress): New.
42685         (Compiler_Abort): Use it to prevent recursion.
42686
42687 2001-10-08  Robert Dewar  <dewar@gnat.com>
42688
42689         * atree.adb: Set Error_Posted in Error node, helps error recovery.
42690
42691         * par-endh.adb (Output_End_Expected): We should also not test
42692         Error_Posted on the Error node, since now it is always set.
42693
42694         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
42695         to help error recovery. Part of general work on 9407-004.
42696
42697         * par.adb: Add ??? for misuse of error
42698
42699         * sem_res.adb:
42700         (Resolve): Defend against Error, fixes 9407-003.
42701         (Resolve_Discrete_Subtype_Indication): Defend against Error.
42702
42703         * sinfo.ads (N_Error): Now has Etype field (which will be set
42704         to Any_Type to help error recovery).
42705
42706 2001-10-08  Richard Kenner  <kenner@gnat.com>
42707
42708         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
42709         Consistently set MEM attributes from expression; fixes
42710         bootstrap failure on x86.
42711
42712 2001-10-08  Geert Bosch  <bosch@gnat.com>
42713
42714         * 5oosinte.adb: Add 2001 to copyright notice.
42715
42716 2001-10-08  Geert Bosch  <bosch@gnat.com>
42717
42718         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
42719
42720         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
42721
42722 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
42723
42724         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
42725
42726 2001-10-05  Geert Bosch  <bosch@gnat.com>
42727
42728         * adaint.h: Small formatting fix.
42729
42730 2001-10-04  Geert Bosch  <bosch@gnat.com>
42731
42732         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
42733         Arg is int, not FILE *, in dummy version of functions.
42734
42735         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
42736         Arg is int, not FILE *.
42737
42738 2001-10-04  Geert Bosch  <bosch@gnat.com>
42739
42740         * 3lsoccon.ads: Added file, missed with initial check ins.
42741
42742         * 4lintnam.ads: Fix header format.
42743         Change Linux to GNU/Linux.
42744
42745         * 5iosinte.adb: Change Linux to GNU/Linux.
42746
42747         * 5iosinte.ads: Change Linux to GNU/Linux.
42748
42749         * 5itaprop.adb: Change Linux to GNU/Linux.
42750
42751         * 5itaspri.ads: Change Linux to GNU/Linux.
42752         Update copyright notice.
42753
42754         * 5lintman.adb: Change Linux to GNU/Linux.
42755
42756         * 5lml-tgt.adb: Change Linux to GNU/Linux.
42757
42758         * 5losinte.ads: Change Linux to GNU/Linux.
42759
42760         * 5lsystem.ads: Change Linux to GNU/Linux.
42761
42762         * 5qosinte.adb: Change Linux to GNU/Linux.
42763
42764         * 5qosinte.ads: Change Linux to GNU/Linux.
42765
42766         * 5qparame.ads: Change Linux to GNU/Linux.
42767
42768         * 5qtaprop.adb: Change Linux to GNU/Linux.
42769
42770         * 5qtaspri.ads: Change Linux to GNU/Linux.
42771         Add 2001 to copyright notice.
42772
42773         * 5vintman.ads: Change Linux to GNU/Linux.
42774         Fix header format.  Add 2001 to copyright notice.
42775
42776         * g-soccon.ads: Change Linux to GNU/Linux.
42777
42778         * g-trasym.ads: Change Linux to GNU/Linux.
42779         Add 2001 to copyright notice.
42780
42781         * memtrack.adb: Change Linux to GNU/Linux.
42782
42783         * s-intman.ads: Change Linux to GNU/Linux.
42784         Add 2001 to copyright notice.  Fix header format.
42785
42786         * s-stache.adb: Change Linux to GNU/Linux.
42787
42788         * adaint.c: Change Linux to GNU/Linux.
42789
42790         * cio.c: Change Linux to GNU/Linux.
42791
42792         * cstreams.c: Change Linux to GNU/Linux.
42793
42794         * init.c: Change Linux to GNU/Linux.
42795
42796         * gmem.c: Change Linux to GNU/Linux.
42797
42798         * tracebak.c: Change Linux to GNU/Linux.
42799
42800
42801 2001-10-02  Geert Bosch  <bosch@gnat.com>
42802
42803         * misc.c (insert_default_attributes): Add dummy version.